		var randomnumber;
		var x;
		var books;
		
		books = 20;
		
		randomnumber = Math.floor(Math.random() * books);
		randomnumber = randomnumber + 1;
		
		switch(randomnumber)
			{
			case 1:
				document.write('<iframe src="http://www.trifind.net/b/BBSC/2010/ban/1.html" width=468 height=60 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 2:
				document.write('<a href="http://www.bamtriathlon.com/" target="_blank"><img src="http://www.trifind.net/b/BAM/SS.gif"');
				document.write(' border="0"');
				document.write(' alt="triathlon, duathlon, expo, more ...."></a>');
				break;
			case 3:
				document.write('<a href="http://www.bamtriathlon.com/" target="_blank"><img src="http://www.trifind.net/b/BAM/SS.gif"');
				document.write(' border="0"');
				document.write(' alt="triathlon, duathlon, expo, more ...."></a>');
				break;
			case 4:
				document.write('<iframe src="http://www.trifind.net/b/BBSC/2010/SS/2.html" width=728 height=90 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 5:
				document.write('<a href="http://www.bamtriathlon.com/" target="_blank"><img src="http://www.trifind.net/b/BAM/SS.gif"');
				document.write(' border="0"');
				document.write(' alt="triathlon, duathlon, expo, more ...."></a>');
				break;
			case 6:
				document.write('<iframe src="http://www.trifind.net/b/BBSC/2010/SS/3.html" width=728 height=90 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 7:
				document.write('<a href="http://www.bamtriathlon.com/" target="_blank"><img src="http://www.trifind.net/b/BAM/SS.gif"');
				document.write(' border="0"');
				document.write(' alt="triathlon, duathlon, expo, more ...."></a>');
				break;
			case 8:
				document.write('<iframe src="http://www.trifind.net/b/title/SS/1.html" width=728 height=90 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 9:
				document.write('<iframe src="http://www.trifind.net/b/BBSC/2010/SS/1.html" width=728 height=90 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 10:
				document.write('<a href="http://www.bamtriathlon.com/" target="_blank"><img src="http://www.trifind.net/b/BAM/SS.gif"');
				document.write(' border="0"');
				document.write(' alt="triathlon, duathlon, expo, more ...."></a>');
				break;
			case 11:
				document.write('<a href="http://www.bamtriathlon.com/" target="_blank"><img src="http://www.trifind.net/b/BAM/SS.gif"');
				document.write(' border="0"');
				document.write(' alt="triathlon, duathlon, expo, more ...."></a>');
				break;
			case 12:
				document.write('<iframe src="http://www.trifind.net/b/title/SS/1.html" width=728 height=90 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 13:
				document.write('<a href="http://www.triathlonchristmas.com/" target="_blank"><img src="http://www.triathlonchristmas.com/images/christmas_banner_728x90.jpg"');
				document.write(' border="0"');
				document.write(' alt="christmas gifts for triathletes"></a>');
				break;
			case 14:
				document.write('<a href="http://www.bamtriathlon.com/" target="_blank"><img src="http://www.trifind.net/b/BAM/SS.gif"');
				document.write(' border="0"');
				document.write(' alt="triathlon, duathlon, expo, more ...."></a>');
				break;
			case 15:
				document.write('<iframe src="http://www.trifind.net/b/title/SS/1.html" width=728 height=90 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 16:
				document.write('<a href="http://www.bamtriathlon.com/" target="_blank"><img src="http://www.trifind.net/b/BAM/SS.gif"');
				document.write(' border="0"');
				document.write(' alt="triathlon, duathlon, expo, more ...."></a>');
				break;
			case 17:
				document.write('<a href="http://www.triathlonchristmas.com/" target="_blank"><img src="http://www.triathlonchristmas.com/images/christmas_banner_728x90.jpg"');
				document.write(' border="0"');
				document.write(' alt="christmas gifts for triathletes"></a>');
				break;
			case 18:
				document.write('<iframe src="http://www.trifind.net/b/title/SS/1.html" width=728 height=90 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 19:
				document.write('<a href="http://www.bamtriathlon.com/" target="_blank"><img src="http://www.trifind.net/b/BAM/SS.gif"');
				document.write(' border="0"');
				document.write(' alt="triathlon, duathlon, expo, more ...."></a>');
				break;
			case 20:
				document.write('<a href="http://www.bamtriathlon.com/" target="_blank"><img src="http://www.trifind.net/b/BAM/SS.gif"');
				document.write(' border="0"');
				document.write(' alt="triathlon, duathlon, expo, more ...."></a>');
				break;
			}

