		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="free mp3 workouts"></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('<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 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('<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="full and half ironman distance triathlons"></a>');
				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('<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 10:
				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="full and half ironman distance triathlons"></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('<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 13:
				document.write('<a href="http://www.sunsetracing.com" target="_blank"><img src="http://www.trifind.net/b/sunset/vegas.jpg"');
				document.write(' border="0"');
				document.write(' alt="a sunset racing event"></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="full and half ironman distance triathlons"></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="full and half ironman distance triathlons"></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;
			}



				