		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.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 2:
				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 3:
				document.write('<a href="http://www.familyfitnessweekend.com" target="_blank"><img src="http://www.trifind.net/b/publix/banner1.gif"');
				document.write(' border="0"');
				document.write(' alt="international distance classic"></a>');
				break;
			case 4:
				document.write('<a href="http://www.trifind.net/advertising/" target="_blank"><img src="http://www.trifind.net/advertising/ad3.gif"');
				document.write(' border="0"');
				document.write(' alt="Advertise Your Product On The World\'s Largest Triathlon Calendar"></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.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 9:
				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 10:
				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 11:
				document.write('<a href="http://www.delmosports.com" target="_blank"><img src="http://www.trifind.net/b/delmo/A-ban.gif"');
				document.write(' border="0"');
				document.write(' alt="triathlons & duathlons in wildwood new jersey"></a>');
				break;
			case 12:
				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 13:
				document.write('<a href="http://www.nyctri.com" target="_blank"><img src="http://trifind.net/b/ny/ny-banner.jpg"');
				document.write(' border="0"');
				document.write(' alt="new york city triathlon"></a>');
				break;
			case 14:
				document.write('<a href="http://www.silvermannv" 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.citytri.com/" target="_blank"><img src="http://www.trifind.net/b/CityTri/banner.gif"');
				document.write(' border="0"');
				document.write(' alt="click for triathlon information"></a>');
				break;
			case 16:
				document.write('<a href="http://www.silvermannv" 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;
			}


