// Utility.js  10 Sep 2006  [GF]
// 01/07/10 Google analytics added  GLF
				
var now = new Date();
var footer = '<p><table style="color:gray;font-size:8pt; background-color:silver"'
		+ '%" border="0" cellspacing="0" cellpadding="01">'
		+ '<tr style="height:30px;" valign="bottom"><td width="33%"> &nbsp; &copy;'
		+ now.getFullYear() + ' Reston Sprint Triathlon Association</td>'
		+ '<td width="33%" align="center">'
		+ '<img src="http://www.GFarnsworth.com/home/Hitcounter.cfm?'
				 + 'site=RestonSprint&Page=' + document.title + '" width="1" height="1" border="0">'
		+ '<a href="mailto:info@restonsprinttri.org">Email us</a></td>'
		+ '<td><a href="http://www.gfarnsworth.com/Home/HitReport.cfm?Site=RestonSprint">Hits</a></td>'
		+ '<td width="33%" align="right">'
		+ '<a href="mailto:George@GFarnsworth.com?subject=Reston Sprint Triathlon"'
		+ 'style="color:gray;">Webmaster</a> &nbsp; &nbsp;'
		+ '</td></tr></table></body></html>';

function ga(){
	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
	document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
	try {
	var pageTracker = _gat._getTracker("UA-12355607-1");
	pageTracker._trackPageview();
	} catch(err) {};
};

function header(here)		
	{//alert(here);
	var hdr = '<table width="100%" style="background-color:#990000;">'
		+ '<tr><th><table align="center" cellpadding="0" cellspacing="0">'
					+	'<tr valign="bottom"><td class="top">';

// Home: no link when here
	if(here=='Home'){hdr+='<span class=here>[Home]'} 
						 else {hdr+='<span><a class=menu href="Index.htm?2010">Home'};
	 hdr += '</a></span></td><td class="top">';

// Racers: link when here
/*
	if(here=='Racers')
		{hdr+='<a class=here href="Racers.htm?Order=Name">[Racers]'} 
		 else {hdr+='<span><a class=menu href="Racers.htm?Order=Name">Racers'};
	 hdr += '</a></span></td><td class="top">';
*/
// Maps: Link when here
	if(here=='Map'){hdr+='<a class=here href="Map.htm?2010">[Course]'} 
						else {hdr+='<a class=menu href="Map.htm?2010">Course'};
	 hdr += '</a></td><td class="top">';

// Register: no link when here
	if(here=='App'){hdr+='<span class=here>[Registration]'} 
	else {hdr+='<span><a class=menu href="App.htm?2010">Registration'};
	 hdr += '</a></span></td><td class="top">';

// Info: no link when here
	if(here=='Info'){hdr+='<span class=here>[Information]'} 
	else {hdr+='<span><a class=menu href="Info.htm?2010">Information'};
	 hdr += '</a></span></td><td class="top">';
// Vols: Link when here
	if(here=='Vols'){hdr+='<a class=here href="Vols.htm?2010">[Volunteers]'} 
	else {hdr+='<a class=menu href="Vols.htm?2010">Volunteers'};
	 hdr += '</a></td><td class="top">';

// Racers: no link when here
/*	if(here=='Racers'){hdr+='<span class=here>[Racers]'} 
	else {hdr+='<span><a class=menu href="Racers.cfm">Racers'};
	 hdr += '</a></span></td><td class="top">';
*/
// Sponsors: link when here
	if(here=='Sponsors'){hdr+='<a class=here href="Sponsors.htm?2010">[Sponsors]'} 
	else {hdr+='<span><a class=menu href="Sponsors.htm?2010">Sponsors'};
	 hdr += '</a></span></td><td class="top">';

// Results: Link when here
	if(here=='Results'){hdr+='<a class=here href="RaceResults.htm?2010">[Results]'} 
	else {hdr+='<a class=menu href="RaceResults.htm?Year=2010&Order=Name&sex=M">Results'};
	 hdr += '</a></td><td class="top">';

// Pics: Link when here
	if(here=='Photos'){hdr+='<a class=here href="Photos.htm?2010">[Photos]'} 
	else {hdr+='<a class=menu href="Photos.htm?2010">Photos'};
	 hdr += '</a></td><td class="top">';

// Links: no link when here
	if(here=='Links'){hdr+='<span class=here>[Links]</span>'} 
	else {hdr+='<a class=menu href="Links.htm?2010">Links</a>'};
	 hdr += '</td>';
				
	hdr +=	'</tr> </table></th> </tr> </table>';

				document.write(hdr);
	};

function Logos()
{ document.write(	
'<table align="center" cellpadding="1" width=600>'
+ '	<tr valign="top">'
+ '		<th width="33%">'
+ '			<img src="image002.jpg" alt="Sprint logo" height="110" border="0">'
+ '		</th>'
+ '		<th width="33%"><br>'
+ '			An event to benefit<br>'
+ '				<a href="http://www.restoninterfaith.org/index.html" class="green">'
+ '					Reston Interfaith</a><p>And YOU'
+ '		</th>'
+ '		<th width="33%">'
+ '			<a href="http://www.restoninterfaith.org/index.html"><img src="image004.jpg" alt="Interfaith Logo"'
+ '			 height="90" border="0"></a>'
+ '		</th>'
+ '	</tr>'
+ '</table>');
};

function Logos2()
{ document.write(	
'<table align="center" cellpadding="10">'
+ '	<tr valign="top">'
+ '		<th width="25%">'
+ '			<img src="image002.jpg" alt="Sprint logo" height="110" border="0">'
+ '		</th>'
+ '		<th width="25%">'
+ '			<h3>An event to benefit<br>'
+ '				<a href="http://www.restoninterfaith.org/index.html" class="green">'
+ '					Reston Interfaith</a><p>And YOU'
+ '			</h3>'
+ '		</th>'
+ '		<th width="25%">'
+ '			<a href="http://www.restoninterfaith.org/index.html"><img src="image004.jpg" alt="Interfaith Logo"'
+ '			 height="90" border="01"></a>'
+ '		</th>'
+ '		<th width="25%"><a href="http://www.reston.org/" target="_new">'
+ '		<img src="RA_Logo.gif" alt="RA logo" border="0" height=90></a></th>'
+ '	</tr>'
+ '</table>');
};

