		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.portlandtri.com/c.php?code=1" target="_blank"><img src="http://www.trifind.net/b/musselman/or/ban.gif"');
				document.write(' border="0"');
				document.write(' alt="city of portland triathlon"></a>');
				break;
			case 2:
				document.write('<iframe src="http://www.trifind.net/b/BBSC/2009/ban/1.html" width=468 height=60 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 3:
				document.write('<a href="http://www.totalhealthevents.com/" target="_blank"><img src="http://www.trifind.net/b/coulee1.gif"');
				document.write(' border="0"');
				document.write(' alt="click for race information"></a>');
				break;
			case 4:
				document.write('<iframe src="http://www.trifind.net/b/BBSC/2009/ban/1.html" width=468 height=60 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 5:
				document.write('<iframe src="http://www.trifind.net/b/BBSC/2009/ban/1.html" width=468 height=60 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 6:
				document.write('<iframe src="http://www.trifind.net/b/BBSC/2009/ban/1.html" width=468 height=60 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 7:
				document.write('<iframe src="http://www.trifind.net/b/BBSC/2009/ban/1.html" width=468 height=60 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 8:
				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 9:
				document.write('<a href="http://www.bbscendurancesports.com" target="_blank"><img src="http://www.trifind.net/b/BBSC/pumpkinman.gif"');
				document.write(' border="0"');
				document.write(' alt="swim, bike, run in las vegas, nevada"></a>');
				break;
			case 10:
				document.write('<a href="http://www.totalhealthevents.com/" target="_blank"><img src="http://www.trifind.net/b/coulee1.gif"');
				document.write(' border="0"');
				document.write(' alt="click for race information"></a>');
				break;
			case 11:
				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 12:
				document.write('<iframe src="http://www.trifind.net/b/BBSC/2009/ban/1.html" width=468 height=60 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 13:
				document.write('<a href="http://www.bbscendurancesports.com" target="_blank"><img src="http://www.trifind.net/b/BBSC/pumpkinman.gif"');
				document.write(' border="0"');
				document.write(' alt="swim, bike, run in las vegas, nevada"></a>');
				break;
			case 14:
				document.write('<a href="http://www.silvermannv.com" target="_blank"><img src="http://www.trifind.net/silverman/silverman_banner.gif"');
				document.write(' border="0"');
				document.write(' alt="SilverMan Triathlon - Las Vegas Neveda"></a>');
				break;
			case 15:
				document.write('<a href="http://www.silvermannv.com" target="_blank"><img src="http://www.trifind.net/silverman/silverman_banner.gif"');
				document.write(' border="0"');
				document.write(' alt="SilverMan Triathlon - Las Vegas Neveda"></a>');
				break;
			case 16:
				document.write('<a href="http://www.trifind.com/books" target="_blank"><img src="http://www.trifind.com/b/TriBooks2.gif"');
				document.write(' border="0"');
				document.write(' alt="Click Here For Best Selling Triathlon Books"></a>');
				break;
			}



				