		var randomnumber;
		var x;
		var books;
		
		books = 8;
		
		randomnumber = Math.floor(Math.random() * books);
		randomnumber = randomnumber + 1;
		
		switch(randomnumber)
			{
			case 1:
				document.write('<iframe src="http://www.trifind.net/b/gateway-to-the-bay/side/3.html" width=130 height=160 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				document.write('<br><br><iframe src="http://www.trifind.net/b/title/side/1.html" width=120 height=120 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 2:
				document.write('<a href="http://www.captextri.com/" target="_blank"><img src="http://www.trifind.net/b/capital-of-texas/2.jpg"');
				document.write(' border="0"');
				document.write(' alt="triathlon information"></a>');
				document.write('<br><br><iframe src="http://www.trifind.net/b/title/side/2.html" width=120 height=120 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 3:
				document.write('<a href="http://www.captextri.com/" target="_blank"><img src="http://www.trifind.net/b/capital-of-texas/3.jpg"');
				document.write(' border="0"');
				document.write(' alt="triathlon information"></a>');
				document.write('<br><br><iframe src="http://trifind.net/b/auburn-triathlon/side-2010/1.html" width=112 height=160 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 4:
				document.write('<iframe src="http://www.trifind.net/b/gateway-to-the-bay/side/3.html" width=130 height=160 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				document.write('<br><br><iframe src="http://www.trifind.net/b/title/side/3.html" width=120 height=120 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/s-side.gif"');
				document.write(' border="0"');
				document.write(' alt="iron distance in vegas"></a>');
				document.write('<br><br><iframe src="http://trifind.net/b/auburn-triathlon/side-2010/2.html" width=112 height=160 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 6:
				document.write('<iframe src="http://www.trifind.net/b/gateway-to-the-bay/side/2.html" width=130 height=160 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 7:
				document.write('<iframe src="http://www.trifind.net/b/trinity-designs/side/2.html" width=124 height=160 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				document.write('<br><br><iframe src="http://www.trifind.net/b/title/side/4.html" width=120 height=120 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 8:
				document.write('<iframe src="http://www.trifind.net/b/gateway-to-the-bay/side/1.html" width=130 height=160 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			}


