
// define some colors for setting and testing. We need to do it this way, because IE
// and Firefox use different schemes (hex vs RGB) when testing and comparing colors.
if (!(window.trackviaz)) {
	window.trackviaz = document.createElement('div');

	window.trackviaz.style.backgroundColor = '#ffffff'; var cUncheckedMouseOut  = window.trackviaz.style.backgroundColor;
	window.trackviaz.style.backgroundColor = '#dddddd'; var cUncheckedMouseOver = window.trackviaz.style.backgroundColor;
	window.trackviaz.style.backgroundColor = '#9999ff'; var cCheckedMouseOut    = window.trackviaz.style.backgroundColor;
	window.trackviaz.style.backgroundColor = '#bbbbff'; var cCheckedMouseOver   = window.trackviaz.style.backgroundColor;
}

var server = 'http://www.trackvia.com';

if (!(window.trackvia_content)) {
	window.trackvia_content = new Object();
}

window.trackvia_content['183792'] = '<h1 class="reptitle">Property in and around the City of Lytle, Texas</h1> <p><table class="datagrid"> <tr align="baseline">    <th onclick="loadPage(183792,\'R7Wfefg4F0\',1,\'varchar011\',\'A\');" class="datagrid" title="sort ascending">Photo&rsquo;s</th>    <th onclick="loadPage(183792,\'R7Wfefg4F0\',1,\'text004\',\'A\');" class="datagrid" title="sort ascending">Click Below to View Information (URL)</th>    <th onclick="loadPage(183792,\'R7Wfefg4F0\',1,\'double000\',\'A\');" class="datagrid" title="sort ascending">Acres</th>    <th onclick="loadPage(183792,\'R7Wfefg4F0\',1,\'double001\',\'A\');" class="datagrid" title="sort ascending">Price/Acre</th>    <th onclick="loadPage(183792,\'R7Wfefg4F0\',1,\'double002\',\'A\');" class="datagrid" title="sort ascending">Total Price&nbsp;&nbsp;<img border="0" src="http://www.trackvia.com/app/static/images/sort_desc.png"></th>    <th onclick="loadPage(183792,\'R7Wfefg4F0\',1,\'varchar000\',\'A\');" class="datagrid" title="sort ascending">County</th>    <th onclick="loadPage(183792,\'R7Wfefg4F0\',1,\'varchar001\',\'A\');" class="datagrid" title="sort ascending">Nearest City</th>    <th onclick="loadPage(183792,\'R7Wfefg4F0\',1,\'text000\',\'A\');" class="datagrid" title="sort ascending">Description</th>    <th onclick="loadPage(183792,\'R7Wfefg4F0\',1,\'double003\',\'A\');" class="datagrid" title="sort ascending">MLS #</th>    <th onclick="loadPage(183792,\'R7Wfefg4F0\',1,\'text002\',\'A\');" class="datagrid" title="sort ascending">Status</th> </tr> <tr class="unshaded_row"  valign="baseline" id="report183792ticket77592060" name="report183792ticket77592060">    <td class="datagrid" id="grid_varchar011_77592060"><a href="http://www.SouthTexasRanches.com/161-Acres-Atascosa-County-Texas.htm"><img border="0"  title="150_Acres_Atascosa_Ranch.gif" src="http://www.trackvia.com/app/getdoc?source=ticket&ticketid=77592060&col=011&vcode=R7Wfefg4F0&reportid=183792&datasetid=25403&accountid=27128&imgsize=tckt"></a> </td>    <td class="datagrid" id="grid_text004_77592060"><a href="http://www.SouthTexasRanches.com/161-Acres-Atascosa-County-Texas.htm" target="_blank">www.SouthTexasRanches.com</a></td>    <td class="datagrid" id="grid_double000_77592060"><div align="right" style="background: inherit;">161.32</div></td>    <td class="datagrid" id="grid_double001_77592060"><div align="right" style="background: inherit;">$3,333.00</div></td>    <td class="datagrid" id="grid_double002_77592060"><div align="right" style="background: inherit;">$500,000.00</div></td>    <td class="datagrid" id="grid_varchar000_77592060">Atascosa</td>    <td class="datagrid" id="grid_varchar001_77592060">Lytle and Somerset, TX</td>    <td class="datagrid" id="grid_text000_77592060">This Atascosa County ranch has approximately 1100 feet of the Atascosa River on the northern part of the ranch.  The ranch is predominantly open coastal fields with large live oaks scattered <span class="greyital">(more...)</span></td>    <td class="datagrid" id="grid_double003_77592060"><div align="right" style="background: inherit;">851413</div></td>    <td class="datagrid" id="grid_text002_77592060">Available</td> </tr> <tr class="shaded_row"  valign="baseline" id="report183792ticket66990063" name="report183792ticket66990063">    <td class="datagrid" id="grid_varchar011_66990063"><a href="http://www.SouthTexasRanches.com/10-Acre-Ranch-For-Sale-12798-Keller-Road-La-Coste-Texas-78039.htm"><img border="0"  title="10_Acre_Horse_Farm_with_Home_Bexar_County.gif" src="http://www.trackvia.com/app/getdoc?source=ticket&ticketid=66990063&col=011&vcode=R7Wfefg4F0&reportid=183792&datasetid=25403&accountid=27128&imgsize=tckt"></a> </td>    <td class="datagrid" id="grid_text004_66990063"><a href="http://www.SouthTexasRanches.com/10-Acre-Ranch-For-Sale-12798-Keller-Road-La-Coste-Texas-78039.htm" target="_blank">www.SouthTexasRanches.com</a></td>    <td class="datagrid" id="grid_double000_66990063"><div align="right" style="background: inherit;">10.00</div></td>    <td class="datagrid" id="grid_double001_66990063"><div align="right" style="background: inherit;">$26,500.00</div></td>    <td class="datagrid" id="grid_double002_66990063"><div align="right" style="background: inherit;">$265,000.00</div></td>    <td class="datagrid" id="grid_varchar000_66990063">Bexar</td>    <td class="datagrid" id="grid_varchar001_66990063">Lytle, La Coste, San Antonio, Texas</td>    <td class="datagrid" id="grid_text000_66990063">REDUCED!!  This 10 acre horse farm has it all.  The 3-side brick home was built in 2004 and is approximately 1967 sq ft.  The horse farm includes a large pole barn, a stallion pen, a circle pen, a <span class="greyital">(more...)</span></td>    <td class="datagrid" id="grid_double003_66990063"><div align="right" style="background: inherit;">811781</div></td>    <td class="datagrid" id="grid_text002_66990063">Available</td> </tr> <table> <tr><td colspan="10"><span class="greyital">Showing mls #s 1 - 2 of 2.</span></td></tr> </table></p> ';
window.trackvia_content['183792-js'] = '';

// this sets the tvNNNN div with whatever is in the content var, which can be refreshed
// via the loadPage routine, which does an on-demand javascript call which changes the value.

function redraw(reportid_string) {
        window.document.getElementById('tv'+reportid_string).style.backgroundColor = '#FFFFFF';
        window.document.getElementById('tv'+reportid_string).className = 'reportwrapper';
        window.document.getElementById('tv'+reportid_string).innerHTML = window.trackvia_content[reportid_string];
	eval(window.trackvia_content[reportid_string+'-js']);
}

function initialize() {
	var head = document.getElementsByTagName("head")[0];
	
	var styles = document.createElement('link');
	styles.href = server+'/app/static/stylesheets/public.css';
	styles.rel = "stylesheet";
	styles.type = "text/css";
	head.appendChild(styles);
	
	redraw('183792');
}

function loadPage(reportid,testcode,num,sort1,dir1) {
    var res = '/app/pubrep?v='+testcode+'&a=update&r='+reportid+'&startnum='+num+'&postsort1='+sort1+'&dir1='+dir1+'&accountid=27128';
	loadScript(res);
}

function loadCal(reportid,testcode,mon,year) {
    var res = '/app/pubrep?v='+testcode+'&a=update&r='+reportid+'&cal_month='+mon+'&cal_year='+year+'&accountid=27128';
	loadScript(res);
}

function loadScript(loc) {
	var head = document.getElementsByTagName("head")[0];
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = server + loc;
    head.appendChild(script);
}

initialize()
