		var randomnumber;
		var x;
		var books;
		
		books = 16;
		
		randomnumber = Math.floor(Math.random() * books);
		randomnumber = randomnumber + 1;
		
		switch(randomnumber)
			{
			case 1:
				document.write('<a href="http://www.teammossman.com/races.htm" target="_blank"><img src="http://www.findaraceevent.com/p/mossman/ban.gif"');
				document.write(' border="0"');
				document.write(' alt="click for race info"></a>');
				break;
			case 2:
				document.write('<a href="http://www.bbscendurancesports.com/" target="_blank"><img src="http://www.trifind.net/b/BBSC/2-banner.gif"');
				document.write(' border="0"');
				document.write(' alt="do a vegas triathlon - click for more info"></a>');
				break;
			case 3:
				document.write('<a href="http://www.bbscendurancesports.com/" target="_blank"><img src="http://www.trifind.net/b/BBSC/2-banner.gif"');
				document.write(' border="0"');
				document.write(' alt="do a vegas triathlon - click for more info"></a>');
				break;
			case 4:
				document.write('<a href="http://www.flybynightdu.com/c.php?code=1" target="_blank"><img src="http://www.trifind.net/b/musselman/fbn_ban.gif"');
				document.write(' border="0"');
				document.write(' alt="fly by night duathlon"></a>');
				break;
			case 5:
				document.write('<a href="http://www.bbscendurancesports.com/" target="_blank"><img src="http://www.trifind.net/b/BBSC/2-banner.gif"');
				document.write(' border="0"');
				document.write(' alt="do a vegas triathlon - click for more info"></a>');
				break;
			case 6:
				document.write('<a href="http://www.thebeachblast.com/" target="_blank"><img src="http://www.trifind.net/b/beach_blast/blast.jpg"');
				document.write(' border="0"');
				document.write(' alt="triathlon and duathlon"></a>');
				break;
			case 7:
				document.write('<a href="http://www.thebeachblast.com/" target="_blank"><img src="http://www.trifind.net/b/beach_blast/blast.jpg"');
				document.write(' border="0"');
				document.write(' alt="triathlon and duathlon"></a>');
				break;
			case 8:
				document.write('<a href="http://www.thebeachblast.com/" target="_blank"><img src="http://www.trifind.net/b/beach_blast/blast.jpg"');
				document.write(' border="0"');
				document.write(' alt="triathlon and duathlon"></a>');
				break;
			case 9:
				document.write('<a href="http://www.thebeachblast.com/" target="_blank"><img src="http://www.trifind.net/b/beach_blast/blast.jpg"');
				document.write(' border="0"');
				document.write(' alt="triathlon and duathlon"></a>');
				break;
			case 10:
				document.write('<a href="http://www.teammossman.com/races.htm" target="_blank"><img src="http://www.findaraceevent.com/p/mossman/ban.gif"');
				document.write(' border="0"');
				document.write(' alt="click for race info"></a>');
				break;
			case 11:
				document.write('<a href="http://www.cgiracing.com/" target="_blank"><img src="http://www.trifind.net/b/cgi/banner.jpg"');
				document.write(' border="0"');
				document.write(' alt="olympic, sprint, half distance and more"></a>');
				break;
			case 12:
				document.write('<a href="http://www.cgiracing.com/" target="_blank"><img src="http://www.trifind.net/b/cgi/banner.jpg"');
				document.write(' border="0"');
				document.write(' alt="olympic, sprint, half distance and more"></a>');
				break;
			case 13:
				document.write('<a href="http://www.flybynightdu.com/c.php?code=1" target="_blank"><img src="http://www.trifind.net/b/musselman/fbn_ban.gif"');
				document.write(' border="0"');
				document.write(' alt="fly by night duathlon"></a>');
				break;
			case 14:
				document.write('<a href="http://www.active.com/framed/event_detail.cfm?event_id=1499959" target="_blank"><img src="http://www.trifind.net/silverman/silverman_banner.gif"');
				document.write(' border="0"');
				document.write(' alt="full and half ironman distance triathlons"></a>');
				break;
			case 15:
				document.write('<a href="http://www.active.com/framed/event_detail.cfm?event_id=1499959" target="_blank"><img src="http://www.trifind.net/silverman/silverman_banner.gif"');
				document.write(' border="0"');
				document.write(' alt="full and half ironman distance triathlons"></a>');
				break;
			case 16:
				document.write('<a href="http://www.active.com/framed/event_detail.cfm?event_id=1499959" target="_blank"><img src="http://www.trifind.net/silverman/silverman_banner.gif"');
				document.write(' border="0"');
				document.write(' alt="full and half ironman distance triathlons"></a>');
				break;
			}


				