		var randomnumber;
		var x;
		var books;
		
		books = 10;
		
		randomnumber = Math.floor(Math.random() * books);
		randomnumber = randomnumber + 1;
		
		switch(randomnumber)
			{
			case 1:
				document.write('<a href="http://www.amazon.com/gp/product/1931382204?ie=UTF8&tag=trifindcom&linkCode=as2&camp=1789&creative=9325&creativeASIN=1931382204" target="_blank"><img src="http://trifind.net/books/swim-b.jpg"');
				document.write(' border="0"');
				document.write(' alt="Improve Your Swimming Times"></a>');
				break;
			case 2:
				document.write('<a href="http://www.amazon.com/gp/product/1931382204?ie=UTF8&tag=trifindcom&linkCode=as2&camp=1789&creative=9325&creativeASIN=1931382204" target="_blank"><img src="http://trifind.net/books/swim-b.jpg"');
				document.write(' border="0"');
				document.write(' alt="Improve Your Swimming Times"></a>');
				break;
			case 3:
				document.write('<a href="http://www.pigmantri.com/" target="_blank"><img src="http://www.trifind.net/b/pigman/pic-1.jpg"');
				document.write(' border="0"');
				document.write(' alt="pigman - half ironman distance triathlon"></a><br><font size="2"><b>The Pigman Triathlon is a Half Iron <u>Distance</u> Event in Palo, Iowa</b></font>');
				break;
			case 4:
				document.write('<a href="http://www.peregrinecharities.org/TRI/" target="_blank"><img src="http://www.trifind.net/b/peregrine/pic.jpg"');
				document.write(' border="0"');
				document.write(' alt="Peregrine Charities Triathlon"></a><br><font size="2"><b>Peregrine Charities Triathlon - Waterloo, Iowa</b></font>');
				break;
			case 5:
				document.write('<a href="http://www.amazon.com/gp/product/1931382204?ie=UTF8&tag=trifindcom&linkCode=as2&camp=1789&creative=9325&creativeASIN=1931382204" target="_blank"><img src="http://trifind.net/books/swim-b.jpg"');
				document.write(' border="0"');
				document.write(' alt="Improve Your Swimming Times"></a>');
				break;
			case 6:
				document.write('<a href="http://www.amazon.com/gp/product/1931382204?ie=UTF8&tag=trifindcom&linkCode=as2&camp=1789&creative=9325&creativeASIN=1931382204" target="_blank"><img src="http://trifind.net/books/swim-b.jpg"');
				document.write(' border="0"');
				document.write(' alt="Improve Your Swimming Times"></a>');
				break;
			case 7:
				document.write('<a href="http://www.amazon.com/gp/product/1931382204?ie=UTF8&tag=trifindcom&linkCode=as2&camp=1789&creative=9325&creativeASIN=1931382204" target="_blank"><img src="http://trifind.net/books/swim-b.jpg"');
				document.write(' border="0"');
				document.write(' alt="Improve Your Swimming Times"></a>');
				break;
			case 8:
				document.write('<a href="http://www.amazon.com/gp/product/1931382204?ie=UTF8&tag=trifindcom&linkCode=as2&camp=1789&creative=9325&creativeASIN=1931382204" target="_blank"><img src="http://trifind.net/books/swim-b.jpg"');
				document.write(' border="0"');
				document.write(' alt="Improve Your Swimming Times"></a>');
				break;
			case 9:
				document.write('<a href="http://www.bluffcreektri.com" target="_blank"><img src="http://www.trifind.net/b/hickory-grove/2009-pic.jpg"');
				document.write(' border="0"');
				document.write(' alt="Triathlon Information"></a>');
				break;
			case 10:
				document.write('<a href="http://www.peregrinecharities.org/TRI/" target="_blank"><img src="http://www.trifind.net/b/peregrine/pic.jpg"');
				document.write(' border="0"');
				document.write(' alt="Peregrine Charities Triathlon"></a><br><font size="2"><b>Peregrine Charities Triathlon - Waterloo, Iowa</b></font>');
				break;
			}


