		var randomnumber;
		var x;
		var books;
		
		books = 9;
		
		randomnumber = Math.floor(Math.random() * books);
		randomnumber = randomnumber + 1;
		
		switch(randomnumber)
			{
			case 1:
				document.write('<a href="http://www.ironmanbranson.com/" target="_blank"><img src="http://www.trifind.net/b/Z/k/side-mo.jpg"');
				document.write(' border="0"');
				document.write(' alt="ironmanbranson.com"></a>');
				document.write('<br><br><iframe src="http://www.trifind.net/b/best-of-the-us/2010/side/MO1.html" width=130 height=130 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 2:
				document.write('<a href="http://www.ironmanbranson.com/" target="_blank"><img src="http://www.trifind.net/b/Z/k/side-mo.jpg"');
				document.write(' border="0"');
				document.write(' alt="ironmanbranson.com"></a>');
				document.write('<br><br><iframe src="http://www.trifind.net/b/pigman/2009/3.html" width=130 height=160 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 3:
				document.write('<br><br><iframe src="http://www.trifind.net/b/best-of-the-us/2010/side/MO2.html" width=130 height=130 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 4:
				document.write('<a href="http://www.ironmanbranson.com/" target="_blank"><img src="http://www.trifind.net/b/Z/k/side-mo.jpg"');
				document.write(' border="0"');
				document.write(' alt="ironmanbranson.com"></a>');
				document.write('<br><br><a href="http://www.midwesttriathloncoaching.com/" target="_blank"><img src="http://www.trifind.net/b/kc-tri-coach/side.jpg"');
				document.write(' border="0"');
				document.write(' alt="Multi Sport Training"></a>');
				break;
			case 5:
				document.write('<br><br><iframe src="http://www.trifind.net/b/best-of-the-us/2010/side/MO1.html" width=130 height=130 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				document.write('<br><br><a href="http://www.ironmanbranson.com/" target="_blank"><img src="http://www.trifind.net/b/Z/k/side-mo.jpg"');
				document.write(' border="0"');
				document.write(' alt="ironmanbranson.com"></a>');
				break;
			case 6:
				document.write('<iframe src="http://www.trifind.net/b/pigman/2009/1.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/best-of-the-us/2010/side/MO2.html" width=130 height=130 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			case 7:
				document.write('<a href="http://www.ironmanbranson.com/" target="_blank"><img src="http://www.trifind.net/b/Z/k/side-mo.jpg"');
				document.write(' border="0"');
				document.write(' alt="ironmanbranson.com"></a>');
				break;
			case 8:
				document.write('<a href="http://www.ironmanbranson.com/" target="_blank"><img src="http://www.trifind.net/b/Z/k/side-mo.jpg"');
				document.write(' border="0"');
				document.write(' alt="ironmanbranson.com"></a>');
				document.write('<br><br><a href="http://www.midwesttriathloncoaching.com/" target="_blank"><img src="http://www.trifind.net/b/kc-tri-coach/side.jpg"');
				document.write(' border="0"');
				document.write(' alt="Multi Sport Training"></a>');
				break;
			case 9:
				document.write('<a href="http://www.ironmankansas.com/" target="_blank"><img src="http://www.trifind.net/b/Z/k/side.jpg"');
				document.write(' border="0"');
				document.write(' alt="half ironman kansas"></a>');
				document.write('<br><br><iframe src="http://www.trifind.net/b/pigman/2009/3.html" width=130 height=160 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>');
				break;
			}



				