
// 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['165980'] = '<h1 class="reptitle">Property in and around the City of McCoy, Texas</h1> <p><table class="datagrid"> <tr align="baseline">    <th onclick="loadPage(165980,\'F2L1cLRakE\',1,\'varchar011\',\'A\');" class="datagrid" title="sort ascending">Photo&rsquo;s</th>    <th onclick="loadPage(165980,\'F2L1cLRakE\',1,\'text004\',\'A\');" class="datagrid" title="sort ascending">Click Below to View Information (URL)</th>    <th onclick="loadPage(165980,\'F2L1cLRakE\',1,\'double000\',\'A\');" class="datagrid" title="sort ascending">Acres</th>    <th onclick="loadPage(165980,\'F2L1cLRakE\',1,\'double001\',\'A\');" class="datagrid" title="sort ascending">Price/Acre</th>    <th onclick="loadPage(165980,\'F2L1cLRakE\',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(165980,\'F2L1cLRakE\',1,\'varchar000\',\'A\');" class="datagrid" title="sort ascending">County</th>    <th onclick="loadPage(165980,\'F2L1cLRakE\',1,\'varchar001\',\'A\');" class="datagrid" title="sort ascending">Nearest City</th>    <th onclick="loadPage(165980,\'F2L1cLRakE\',1,\'text000\',\'A\');" class="datagrid" title="sort ascending">Description</th>    <th onclick="loadPage(165980,\'F2L1cLRakE\',1,\'double003\',\'A\');" class="datagrid" title="sort ascending">MLS #</th>    <th onclick="loadPage(165980,\'F2L1cLRakE\',1,\'text002\',\'A\');" class="datagrid" title="sort ascending">Status</th> </tr> <tr class="unshaded_row"  valign="baseline" id="report165980ticket50032391" name="report165980ticket50032391">    <td class="datagrid" id="grid_varchar011_50032391"><a href="http://www.SouthTexasRanches.com/133abby.htm"><img border="0"  title="ranch-style-custom-home-on-20-acres-mccoy-texas-atascosa-county.gif" src="http://www.trackvia.com/app/getdoc?source=ticket&ticketid=50032391&col=011&vcode=F2L1cLRakE&reportid=165980&datasetid=25403&accountid=27128&imgsize=tckt"></a> </td>    <td class="datagrid" id="grid_text004_50032391"><a href="http://www.SouthTexasRanches.com/133abby.htm" target="_blank">www.SouthTexasRanches.com</a></td>    <td class="datagrid" id="grid_double000_50032391"><div align="right" style="background: inherit;">20.00</div></td>    <td class="datagrid" id="grid_double001_50032391"><div align="right" style="background: inherit;">$18,000.00</div></td>    <td class="datagrid" id="grid_double002_50032391"><div align="right" style="background: inherit;">$360,000.00</div></td>    <td class="datagrid" id="grid_varchar000_50032391">Atascosa</td>    <td class="datagrid" id="grid_varchar001_50032391">Pleasanton/McCoy</td>    <td class="datagrid" id="grid_text000_50032391">SOLD</td>    <td class="datagrid" id="grid_double003_50032391"><div align="right" style="background: inherit;">762668</div></td>    <td class="datagrid" id="grid_text002_50032391">Sold</td> </tr> <tr class="shaded_row"  valign="baseline" id="report165980ticket74142395" name="report165980ticket74142395">    <td class="datagrid" id="grid_varchar011_74142395"><a href="http://www.SouthTexasRanches.com/150-Acre-Ranch-For-Sale-McCoy-Texas.htm"><img border="0"  title="150_acres_Atascosa_county_McCoy_Texas.gif" src="http://www.trackvia.com/app/getdoc?source=ticket&ticketid=74142395&col=011&vcode=F2L1cLRakE&reportid=165980&datasetid=25403&accountid=27128&imgsize=tckt"></a> </td>    <td class="datagrid" id="grid_text004_74142395"><a href="http://www.SouthTexasRanches.com/150-Acre-Ranch-For-Sale-McCoy-Texas.htm" target="_blank">www.SouthTexasRanches.com</a></td>    <td class="datagrid" id="grid_double000_74142395"><div align="right" style="background: inherit;">150.07</div></td>    <td class="datagrid" id="grid_double001_74142395"><div align="right" style="background: inherit;">$2,200.00</div></td>    <td class="datagrid" id="grid_double002_74142395"><div align="right" style="background: inherit;">$330,000.00</div></td>    <td class="datagrid" id="grid_varchar000_74142395">Atascosa</td>    <td class="datagrid" id="grid_varchar001_74142395">McCoy</td>    <td class="datagrid" id="grid_text000_74142395">150+/- acres ready to build on, or for cattle or hunting! Mostly brush, some cleared areaa.</td>    <td class="datagrid" id="grid_double003_74142395"><div align="right" style="background: inherit;">833220</div></td>    <td class="datagrid" id="grid_text002_74142395">Available</td> </tr> <tr class="unshaded_row"  valign="baseline" id="report165980ticket50035659" name="report165980ticket50035659">    <td class="datagrid" id="grid_varchar011_50035659"><a href="http://www.SouthTexasRanches.com/10-Acres-Brick-Home-FM-541-McCoy-Texas.htm"><img border="0"  title="10.gif" src="http://www.trackvia.com/app/getdoc?source=ticket&ticketid=50035659&col=011&vcode=F2L1cLRakE&reportid=165980&datasetid=25403&accountid=27128&imgsize=tckt"></a> </td>    <td class="datagrid" id="grid_text004_50035659"><a href="http://www.SouthTexasRanches.com/10-Acres-Brick-Home-FM-541-McCoy-Texas.htm" target="_blank">www.SouthTexasRanches.com</a></td>    <td class="datagrid" id="grid_double000_50035659"><div align="right" style="background: inherit;">10.00</div></td>    <td class="datagrid" id="grid_double001_50035659"><div align="right" style="background: inherit;">$23,900.00</div></td>    <td class="datagrid" id="grid_double002_50035659"><div align="right" style="background: inherit;">$239,000.00</div></td>    <td class="datagrid" id="grid_varchar000_50035659">Atascosa</td>    <td class="datagrid" id="grid_varchar001_50035659">Pleasanton/McCoy</td>    <td class="datagrid" id="grid_text000_50035659">Very Nice 3 bedroom/2.5 bath, two story home. At 1,833 sq. feet, more or less,  this quiet country home is a treat to see. Beautiful front and back porches, downstairs master bedroom, kitchen features <span class="greyital">(more...)</span></td>    <td class="datagrid" id="grid_double003_50035659"><div align="right" style="background: inherit;">817172</div></td>    <td class="datagrid" id="grid_text002_50035659">Pulled of Market</td> </tr> <tr class="shaded_row"  valign="baseline" id="report165980ticket63668129" name="report165980ticket63668129">    <td class="datagrid" id="grid_varchar011_63668129"><a href="http://www.SouthTexasRanches.com/60-Acres-Ranch-For-Sale-Atascosa-County-McCoy-Texas.htm"><img border="0"  title="60-acre-Atascosa-County-McCoy-pic.gif" src="http://www.trackvia.com/app/getdoc?source=ticket&ticketid=63668129&col=011&vcode=F2L1cLRakE&reportid=165980&datasetid=25403&accountid=27128&imgsize=tckt"></a> </td>    <td class="datagrid" id="grid_text004_63668129"><a href="http://www.SouthTexasRanches.com/60-Acres-Ranch-For-Sale-Atascosa-County-McCoy-Texas.htm" target="_blank">www.SouthTexasRanches.com</a></td>    <td class="datagrid" id="grid_double000_63668129"><div align="right" style="background: inherit;">60.00</div></td>    <td class="datagrid" id="grid_double001_63668129"><div align="right" style="background: inherit;">$3,500.00</div></td>    <td class="datagrid" id="grid_double002_63668129"><div align="right" style="background: inherit;">$210,000.00</div></td>    <td class="datagrid" id="grid_varchar000_63668129">Atascosa</td>    <td class="datagrid" id="grid_varchar001_63668129">McCoy</td>    <td class="datagrid" id="grid_text000_63668129">SOLD</td>    <td class="datagrid" id="grid_double003_63668129"><div align="right" style="background: inherit;">81543</div></td>    <td class="datagrid" id="grid_text002_63668129">Sold</td> </tr> <tr class="unshaded_row"  valign="baseline" id="report165980ticket74121558" name="report165980ticket74121558">    <td class="datagrid" id="grid_varchar011_74121558"><a href="http://www.SouthTexasRanches.com/23-Acre-Ranch-For-Sale-McCoy-Texas.htm"><img border="0"  title="23-acre-atascosa-county-rotate.gif" src="http://www.trackvia.com/app/getdoc?source=ticket&ticketid=74121558&col=011&vcode=F2L1cLRakE&reportid=165980&datasetid=25403&accountid=27128&imgsize=tckt"></a> </td>    <td class="datagrid" id="grid_text004_74121558"><a href="http://www.SouthTexasRanches.com/23-Acre-Ranch-For-Sale-McCoy-Texas.htm" target="_blank">www.SouthTexasRanches.com</a></td>    <td class="datagrid" id="grid_double000_74121558"><div align="right" style="background: inherit;">23.00</div></td>    <td class="datagrid" id="grid_double001_74121558"><div align="right" style="background: inherit;">$6,500.00</div></td>    <td class="datagrid" id="grid_double002_74121558"><div align="right" style="background: inherit;">$152,490.00</div></td>    <td class="datagrid" id="grid_varchar000_74121558">Atascosa</td>    <td class="datagrid" id="grid_varchar001_74121558">McCoy, Texas</td>    <td class="datagrid" id="grid_text000_74121558">If your looking for a small place in the country to get away from the fast paced city life, you definitely need to see this ranch.</td>    <td class="datagrid" id="grid_double003_74121558"><div align="right" style="background: inherit;">1111</div></td>    <td class="datagrid" id="grid_text002_74121558">Available</td> </tr> <table> <tr><td colspan="10"><span class="greyital">Showing mls #s 1 - 5 of 5.</span></td></tr> </table></p> ';
window.trackvia_content['165980-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('165980');
}

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()
