
// 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['183703'] = '<h1 class="reptitle">Property in and around the City of MedinaTexas</h1> <p><table class="datagrid"> <tr align="baseline">    <th onclick="loadPage(183703,\'xO6cc3fh7I\',1,\'varchar011\',\'A\');" class="datagrid" title="sort ascending">Photo&rsquo;s</th>    <th onclick="loadPage(183703,\'xO6cc3fh7I\',1,\'text004\',\'A\');" class="datagrid" title="sort ascending">Click Below to View Information (URL)</th>    <th onclick="loadPage(183703,\'xO6cc3fh7I\',1,\'double000\',\'A\');" class="datagrid" title="sort ascending">Acres</th>    <th onclick="loadPage(183703,\'xO6cc3fh7I\',1,\'double001\',\'A\');" class="datagrid" title="sort ascending">Price/Acre</th>    <th onclick="loadPage(183703,\'xO6cc3fh7I\',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(183703,\'xO6cc3fh7I\',1,\'varchar000\',\'A\');" class="datagrid" title="sort ascending">County</th>    <th onclick="loadPage(183703,\'xO6cc3fh7I\',1,\'varchar001\',\'A\');" class="datagrid" title="sort ascending">Nearest City</th>    <th onclick="loadPage(183703,\'xO6cc3fh7I\',1,\'text000\',\'A\');" class="datagrid" title="sort ascending">Description</th>    <th onclick="loadPage(183703,\'xO6cc3fh7I\',1,\'double003\',\'A\');" class="datagrid" title="sort ascending">MLS #</th>    <th onclick="loadPage(183703,\'xO6cc3fh7I\',1,\'text002\',\'A\');" class="datagrid" title="sort ascending">Status</th> </tr> <tr class="unshaded_row"  valign="baseline" id="report183703ticket54947359" name="report183703ticket54947359">    <td class="datagrid" id="grid_varchar011_54947359"><a href="http://www.SouthTexasRanches.com/319.49-Acres-Hill-Country-Home-For-Sale-Springs-Ranch.htm"><img border="0"  title="320ani.gif" src="http://www.trackvia.com/app/getdoc?source=ticket&ticketid=54947359&col=011&vcode=xO6cc3fh7I&reportid=183703&datasetid=25403&accountid=27128&imgsize=tckt"></a> </td>    <td class="datagrid" id="grid_text004_54947359"><a href="http://www.SouthTexasRanches.com/319.49-Acres-Hill-Country-Home-For-Sale-Springs-Ranch.htm" target="_blank">www.SouthTexasRanches.com</a></td>    <td class="datagrid" id="grid_double000_54947359"><div align="right" style="background: inherit;">319.49</div></td>    <td class="datagrid" id="grid_double001_54947359"><div align="right" style="background: inherit;"></div></td>    <td class="datagrid" id="grid_double002_54947359"><div align="right" style="background: inherit;">$2,700,000.00</div></td>    <td class="datagrid" id="grid_varchar000_54947359">Bandera</td>    <td class="datagrid" id="grid_varchar001_54947359">Medina</td>    <td class="datagrid" id="grid_text000_54947359">Quiet, peaceful and only 1 hour from San Antonio this 319.49 acre ranch has a lovely home and has springs, a spring fed pond next to the home, water well, easy access and much more...</td>    <td class="datagrid" id="grid_double003_54947359"><div align="right" style="background: inherit;">778034</div></td>    <td class="datagrid" id="grid_text002_54947359">Available</td> </tr> <tr class="shaded_row"  valign="baseline" id="report183703ticket56821555" name="report183703ticket56821555">    <td class="datagrid" id="grid_varchar011_56821555"><a href="http://www.SouthTexasRanches.com/143-Acres-FM-471-Rio-Medina-Texas-78066.htm"><img border="0"  title="0_FM_471_450.gif" src="http://www.trackvia.com/app/getdoc?source=ticket&ticketid=56821555&col=011&vcode=xO6cc3fh7I&reportid=183703&datasetid=25403&accountid=27128&imgsize=tckt"></a> </td>    <td class="datagrid" id="grid_text004_56821555"><a href="http://www.SouthTexasRanches.com/143-Acres-FM-471-Rio-Medina-Texas-78066.htm" target="_blank">www.SouthTexasRanches.com</a></td>    <td class="datagrid" id="grid_double000_56821555"><div align="right" style="background: inherit;">143.33</div></td>    <td class="datagrid" id="grid_double001_56821555"><div align="right" style="background: inherit;">$4,877.00</div></td>    <td class="datagrid" id="grid_double002_56821555"><div align="right" style="background: inherit;">$699,000.00</div></td>    <td class="datagrid" id="grid_varchar000_56821555">Medina</td>    <td class="datagrid" id="grid_varchar001_56821555">Rio Medina, San Antonio</td>    <td class="datagrid" id="grid_text000_56821555">Unrestricted 143.328 acres with 1.25+/- miles of FM 471 road frontage.  Yancey Water Supply line on property.</td>    <td class="datagrid" id="grid_double003_56821555"><div align="right" style="background: inherit;">784614</div></td>    <td class="datagrid" id="grid_text002_56821555">Reduced</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['183703-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('183703');
}

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