function hl(trow) {trow.bgColor = 'lightgreen';
} 
function unhl(trow) {trow.bgColor = 'white';
} 


function writeContents() {
document.write("<table border=1 cellpadding=3 cellspacing=0 align=right width=150><tr>");
document.write("<td bgcolor=ddeeee><font face=arial,helvetica><center><b>Congratulations Racers!<BR>Thank you volunteers!</B><BR>Great Race 35 is<BR> August 12, 2012.</font><BR><font face=arial,helvetica size=-1>");
document.write("<BR><A HREF='/awards.htm'>2011 Awards winners</a></font></center></td></tr></table>");
}

function sideBar(ev)  {
}

function menBott(yr) {
document.write("<TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD>&nbsp;</TD><td colspan=8><small><center><b>"+yr+" - </b>");
}

function menTop() {
document.write("<td colspan=6><font size=-1><CENTER><B>Look through results from over the years</B></CENTER></td><TD><font color=ddeeee>-</font>&nbsp;</TD><TD>&nbsp;</TD></tr><TR><TD>&nbsp;</TD>");
}

function rowBr() {
document.write("<TD>&nbsp;</TD></TR><TR><TD>&nbsp;</TD>");
}
targVal=new Array('res','10k','bike','canoe','grlong','5k','sbike','scanoe','grshrt')
resVal=new Array("Q",'10k','Long Bike','Long Canoe','Long Teams','5k','Short Bike','Short Canoe','Short Teams');
        function go(yrnum){ 
	var yn2=yrnum.substring(2,4)
	var yrInd='document.grselect.gr'+yn2+'.selectedIndex'
	var fname=targVal[eval(yrInd)]
	if (eval(yrInd)!=0){var parstring='parent.location.href = "../res'+yn2+'/'+fname+yn2+'.htm"';}  
	else {var parstring='parent.location.href = "../res'+yn2+'/'+yrnum+'res.htm"';}
	eval(parstring)
}

function selRes(i) {
yn=i.toString();ynd2=yn.substring(2,4);ynd4="'"+yn+"'";resVal[0]=yn
	if (i<1995) {var ti=4}
	else {var ti=8}
document.write('<td><select name="gr'+ynd2+'" size=1 onchange="go('+ynd4+')">');
for (var k=0;k<=ti;k++) {document.write('<OPTION VALUE="">'+resVal[k]);}
document.write('</select></td>');
}

function constMenu(nyear,pos) {
for (var j=2011;j>=1988;j--) {
if (j!=nyear){selRes(j);
	if (pos=="S") {document.write("</TR><TR>");}
	else {	if (j==2004) {if (nyear<2004) {rowBr()}}
		if (j==2003) {if (nyear>2003) {rowBr()}}
//		if (j==1996) {if (nyear<1996) {rowBr();document.write("<TD>&nbsp;</TD>")}}
//		if (j==1995) {if (nyear>1995) {rowBr();document.write("<TD>&nbsp;</TD>")}}
		if (j==1996) {if (nyear<1996) {rowBr()}}
		if (j==1995) {if (nyear>1995) {rowBr()}}

	     }
}}}

