function banner(which, url)
{
    var LIMIT = 8;
    var sections = new Array(LIMIT);

    for (var i=0; i < sections.length; i++)
    {
	sections[i] = 'bannerthere';
    }
    if (which >= 0 && which < LIMIT)
	sections[which] = 'bannerhere';

    document.writeln('<table cellpadding=0 cellspacing=0 border=0 width=600">');
    document.writeln('<tr>');
    document.writeln('<td rowspan=3>&nbsp; </td>');
    document.writeln('<td rowspan=3 width="10%"><a href="/index.html"><img src="/images/logos/website_logo_nb.jpg" border=0 alt="click for front page"></a></td>');
    document.writeln('<td><table cellpadding=0 cellspacing=0 border=0 width=100%>');
    document.writeln('<tr>');
    document.writeln('<td width=25% align=center><a href="/races/index.html" class=' + sections[0] + '>Races</a></td>');
    document.writeln('<td width=25% align=center><a href="/undercovered/index.html" class=' + sections[1] + '>Undercovered</a></td>');
    document.writeln('<td width=25% align=center><a href="/real_life/index.html" class=' + sections[2] + '>Real Life</a></td>');
    document.writeln('<td align=center><a href="/roadtrip/index.html" class=' + sections[3] + '>Roadtrip</a></td>');
    document.writeln('</tr></table>');
    document.writeln('</td>');

    document.writeln('</tr><tr>');
    document.writeln('<td><table cellpadding=0 cellspacing=0 border=0 width=100%>');
    document.writeln('<tr>');
    document.writeln('<td width=15% align=right><a target="_blank" href="http://www.tri2b.com"><img src="/images/flags/german_flag_s.gif" border=0></a>&nbsp;<a href="/french/index.html"><img src="/images/flags/french_flag_s.gif" border=0></a></td>');
    document.writeln('<td width=15% align=right><a href="/gear/index.html" class=' + sections[4] + '>Gear</a></td>');
    document.writeln('<td width=20% align=right><a href="/lantern/index.html" class=' + sections[5] + '>Lantern</a></td>');
    document.writeln('<td width=25% align=right><a href="/subscribe/index.html" class=' + sections[6] + '>Services</a></td>');
    document.writeln('<td align=right><a href="/about/index.html" class=' + sections[7] + '>About Us</a></td>');
    document.writeln('</tr>');
    document.writeln('</table>');
    document.writeln('</td>');
    document.writeln('</tr>');

    document.writeln('<tr valign=bottom>');
    document.writeln('<td><table cellpadding=0 cellspacing=0 border=0 width=100%>');
    document.writeln('<tr>');
    document.writeln('<td width="5%">&nbsp;</td>');
    document.writeln('<td bgcolor="#bbbbbb">');
    document.writeln('<div class=text>&nbsp;');
    if (url != null)
    {
	for (var i=0; i < (url.length - 1); i=i+2)
	{
	    document.writeln('>&nbsp;<a href="' + url[i] + '">');
	    document.writeln(url[i+1]);
	    document.writeln('</a>');
	}
	document.writeln('>&nbsp;');
	document.writeln(url[url.length-1]);
    }
    document.writeln('</div>');
    document.writeln('</td>');
    document.writeln('</tr>');
    document.writeln('</table>');
    document.writeln('</td>');
    document.writeln('</tr>');
    document.writeln('</table>');
}

function footer()
{
    document.writeln('<p><table cellpadding=2 cellspacing=2 border=0 width=600>');
    document.writeln('<tr><td>&nbsp;</td></tr>');
    document.writeln('<tr>');
    document.writeln('<td align=center width="55%"><div class=notsosmall><i>partnered with</i><br>');
    document.writeln('<a href="http://www.tri2b.com"><img src="/images/tri2b_logo.jpg" border=0></a>');
    document.writeln('</div></td>');
    document.writeln('<td><div class=text><a href="http://www.triathloninformer.com"><img src="/images/logos/logo_initials.gif" border=0 align="left"></a>All images and text <br>');
    document.writeln('&nbsp; &copy;Triathlon Informer.<br>');
    document.writeln('Reproduction by written <br>');
    document.writeln('&nbsp; permission only.</div></td>');
    document.writeln('</tr>');
    document.writeln('</table>');
}
