		var randomnumber;
		var x;
		var books;
		
		books = 4;
		
		randomnumber = Math.floor(Math.random() * books);
		randomnumber = randomnumber + 1;
		
		switch(randomnumber)
			{
			case 1:
				document.write('<iframe src="http://www.trifind.net/b/piranha-sports/side3.html" width=126 height=156 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				document.write('<br><br><iframe src="http://www.trifind.net/b/endorfunsports/side/1.html" width=130 height=160 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 2:
				document.write('<iframe src="http://www.trifind.net/b/endorfunsports/side/2.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/REV-3/side-2010/1.html" width=130 height=160 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 3:
				document.write('<iframe src="http://www.trifind.net/b/pumpkinman/2009/2.html" width=132 height=152 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 4:
				document.write('<br><a href="http://www.sunmultisportevents.com/Patriot_Triathlon.htm" target="_blank"><img src="http://www.trifind.net/b/SunMultisportEvents/side.gif"');
				document.write(' border="0"');
				document.write(' alt="patriot half"></a>');
				document.write('<br><br><iframe src="http://www.trifind.net/b/REV-3/side-2010/2.html" width=130 height=160 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			}


