		var randomnumber;
		var x;
		var books;
		
		books = 16;
		
		randomnumber = Math.floor(Math.random() * books);
		randomnumber = randomnumber + 1;
		
		switch(randomnumber)
			{
			case 1:
				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>');
		case 2:
				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 3:
				document.write('<a href="http://www.bbsctri.com" target="_blank"><img src="http://www.trifind.net/b/BBSC/east/bbsc-468x60-rotating.gif"');
				document.write(' border="0"');
				document.write(' alt="BBSC"></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.bbsctri.com" target="_blank"><img src="http://www.trifind.net/b/BBSC/east/bbsc-468x60-rotating.gif"');
				document.write(' border="0"');
				document.write(' alt="BBSC"></a>');
				break;
			case 6:
				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 7:
				document.write('<a href="http://www.bbsctri.com" target="_blank"><img src="http://www.trifind.net/b/BBSC/east/bbsc-468x60-rotating.gif"');
				document.write(' border="0"');
				document.write(' alt="BBSC"></a>');
				break;
			case 8:
				document.write('<a href="http://www.bbsctri.com" target="_blank"><img src="http://www.trifind.net/b/BBSC/east/bbsc-468x60-rotating.gif"');
				document.write(' border="0"');
				document.write(' alt="BBSC"></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.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 11:
				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 12:
				document.write('<a href="http://www.thegrandcolumbian.com" target="_blank"><img src="http://www.trifind.net/b/coulee1.gif"');
				document.write(' border="0"');
				document.write(' alt="Full and Half Iron Distance Triathlons - click for more info"></a>');
				break;
			case 13:
				document.write('<a href="http://www.bbsctri.com" target="_blank"><img src="http://www.trifind.net/b/BBSC/east/bbsc-468x60-rotating.gif"');
				document.write(' border="0"');
				document.write(' alt="BBSC"></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.bbsctri.com" target="_blank"><img src="http://www.trifind.net/b/BBSC/east/bbsc-468x60-rotating.gif"');
				document.write(' border="0"');
				document.write(' alt="BBSC"></a>');
				break;
			case 16:
				document.write('<iframe src="http://www.trifind.net/b/acvap/banner/1.html" width=580 height=70 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			}



				