
// 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['93886'] = '<h1 class="reptitle">2009 St Anton Lift Tickets in Euros (Not included in the package)</h1> <p><table class="datagrid"> <tr align="baseline">    <th onclick="loadPage(93886,\'sk2Gq7XQHv\',1,\'varchar002\',\'A\');" class="datagrid" title="sort ascending">Days</th>    <th onclick="loadPage(93886,\'sk2Gq7XQHv\',1,\'double000\',\'A\');" class="datagrid" title="sort ascending">Adult</th>    <th onclick="loadPage(93886,\'sk2Gq7XQHv\',1,\'double002\',\'A\');" class="datagrid" title="sort ascending">Child</th>    <th onclick="loadPage(93886,\'sk2Gq7XQHv\',1,\'double003\',\'A\');" class="datagrid" title="sort ascending">Youth</th>    <th onclick="loadPage(93886,\'sk2Gq7XQHv\',1,\'double004\',\'A\');" class="datagrid" title="sort ascending">Senior</th>    <th onclick="loadPage(93886,\'sk2Gq7XQHv\',1,\'varchar001\',\'A\');" class="datagrid" title="sort ascending">Updated</th>    <th onclick="loadPage(93886,\'sk2Gq7XQHv\',1,\'varchar000\',\'A\');" class="datagrid" title="sort ascending">Notes</th> </tr> <tr class="unshaded_row"  valign="baseline" id="report93886ticket37197436" name="report93886ticket37197436">    <td class="datagrid" id="grid_varchar002_37197436">1</td>    <td class="datagrid" id="grid_double000_37197436"><div align="right" style="background: inherit;">43.5</div></td>    <td class="datagrid" id="grid_double002_37197436"><div align="right" style="background: inherit;">26</div></td>    <td class="datagrid" id="grid_double003_37197436"><div align="right" style="background: inherit;">39.5</div></td>    <td class="datagrid" id="grid_double004_37197436"><div align="right" style="background: inherit;">39.5</div></td>    <td class="datagrid" id="grid_varchar001_37197436"></td>    <td class="datagrid" id="grid_varchar000_37197436"></td> </tr> <tr class="shaded_row"  valign="baseline" id="report93886ticket37197438" name="report93886ticket37197438">    <td class="datagrid" id="grid_varchar002_37197438">2</td>    <td class="datagrid" id="grid_double000_37197438"><div align="right" style="background: inherit;">83</div></td>    <td class="datagrid" id="grid_double002_37197438"><div align="right" style="background: inherit;">50</div></td>    <td class="datagrid" id="grid_double003_37197438"><div align="right" style="background: inherit;">76</div></td>    <td class="datagrid" id="grid_double004_37197438"><div align="right" style="background: inherit;">76</div></td>    <td class="datagrid" id="grid_varchar001_37197438"></td>    <td class="datagrid" id="grid_varchar000_37197438"></td> </tr> <tr class="unshaded_row"  valign="baseline" id="report93886ticket37197440" name="report93886ticket37197440">    <td class="datagrid" id="grid_varchar002_37197440">3</td>    <td class="datagrid" id="grid_double000_37197440"><div align="right" style="background: inherit;">120</div></td>    <td class="datagrid" id="grid_double002_37197440"><div align="right" style="background: inherit;">72</div></td>    <td class="datagrid" id="grid_double003_37197440"><div align="right" style="background: inherit;">107</div></td>    <td class="datagrid" id="grid_double004_37197440"><div align="right" style="background: inherit;">107</div></td>    <td class="datagrid" id="grid_varchar001_37197440"></td>    <td class="datagrid" id="grid_varchar000_37197440"></td> </tr> <tr class="shaded_row"  valign="baseline" id="report93886ticket37197442" name="report93886ticket37197442">    <td class="datagrid" id="grid_varchar002_37197442">4</td>    <td class="datagrid" id="grid_double000_37197442"><div align="right" style="background: inherit;">153</div></td>    <td class="datagrid" id="grid_double002_37197442"><div align="right" style="background: inherit;">92</div></td>    <td class="datagrid" id="grid_double003_37197442"><div align="right" style="background: inherit;">133</div></td>    <td class="datagrid" id="grid_double004_37197442"><div align="right" style="background: inherit;">133</div></td>    <td class="datagrid" id="grid_varchar001_37197442"></td>    <td class="datagrid" id="grid_varchar000_37197442"></td> </tr> <tr class="unshaded_row"  valign="baseline" id="report93886ticket37197634" name="report93886ticket37197634">    <td class="datagrid" id="grid_varchar002_37197634">5</td>    <td class="datagrid" id="grid_double000_37197634"><div align="right" style="background: inherit;">182</div></td>    <td class="datagrid" id="grid_double002_37197634"><div align="right" style="background: inherit;">109</div></td>    <td class="datagrid" id="grid_double003_37197634"><div align="right" style="background: inherit;">158</div></td>    <td class="datagrid" id="grid_double004_37197634"><div align="right" style="background: inherit;">158</div></td>    <td class="datagrid" id="grid_varchar001_37197634"></td>    <td class="datagrid" id="grid_varchar000_37197634"></td> </tr> <tr class="shaded_row"  valign="baseline" id="report93886ticket37197638" name="report93886ticket37197638">    <td class="datagrid" id="grid_varchar002_37197638">6</td>    <td class="datagrid" id="grid_double000_37197638"><div align="right" style="background: inherit;">208</div></td>    <td class="datagrid" id="grid_double002_37197638"><div align="right" style="background: inherit;">125</div></td>    <td class="datagrid" id="grid_double003_37197638"><div align="right" style="background: inherit;">181</div></td>    <td class="datagrid" id="grid_double004_37197638"><div align="right" style="background: inherit;">181</div></td>    <td class="datagrid" id="grid_varchar001_37197638"></td>    <td class="datagrid" id="grid_varchar000_37197638"></td> </tr> <tr class="unshaded_row"  valign="baseline" id="report93886ticket37197642" name="report93886ticket37197642">    <td class="datagrid" id="grid_varchar002_37197642">7</td>    <td class="datagrid" id="grid_double000_37197642"><div align="right" style="background: inherit;">230</div></td>    <td class="datagrid" id="grid_double002_37197642"><div align="right" style="background: inherit;">138</div></td>    <td class="datagrid" id="grid_double003_37197642"><div align="right" style="background: inherit;">199</div></td>    <td class="datagrid" id="grid_double004_37197642"><div align="right" style="background: inherit;">199</div></td>    <td class="datagrid" id="grid_varchar001_37197642"></td>    <td class="datagrid" id="grid_varchar000_37197642"></td> </tr> <table> <tr><td colspan="7"><span class="greyital">Showing records 1 - 7 of 7.</span></td></tr> </table></p> ';
window.trackvia_content['93886-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('93886');
}

function loadPage(reportid,testcode,num,sort1,dir1) {
    var res = '/app/pubrep?v='+testcode+'&a=update&r='+reportid+'&startnum='+num+'&postsort1='+sort1+'&dir1='+dir1+'&accountid=1448';
	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=1448';
	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()
