		var randomnumber;
		var x;
		var books;
		
		books = 5;
		
		randomnumber = Math.floor(Math.random() * books);
		randomnumber = randomnumber + 1;
		
		switch(randomnumber)
			{
			case 1:
				document.write('<a href="http://www.amazon.com/gp/product/B000FDK78W?ie=UTF8&tag=trifindcom&linkCode=as2&camp=1789&creative=9325&creativeASIN=B000FDK78W" target="_blank"><img src="http://www.trifind.net/dvd/freestyle_made_easy.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/B000FDK78W?ie=UTF8&tag=trifindcom&linkCode=as2&camp=1789&creative=9325&creativeASIN=B000FDK78W" target="_blank"><img src="http://www.trifind.net/dvd/freestyle_made_easy.jpg"');
				document.write(' border="0"');
				document.write(' alt="Improve Your Swimming Times"></a>');
				break;
			case 3:
				document.write('<a href="http://www.amazon.com/gp/product/B000FDK78W?ie=UTF8&tag=trifindcom&linkCode=as2&camp=1789&creative=9325&creativeASIN=B000FDK78W" target="_blank"><img src="http://www.trifind.net/dvd/freestyle_made_easy.jpg"');
				document.write(' border="0"');
				document.write(' alt="Improve Your Swimming Times"></a>');
				break;
			case 4:
				document.write('<a href="http://www.amazon.com/gp/product/B000FDK78W?ie=UTF8&tag=trifindcom&linkCode=as2&camp=1789&creative=9325&creativeASIN=B000FDK78W" target="_blank"><img src="http://www.trifind.net/dvd/freestyle_made_easy.jpg"');
				document.write(' border="0"');
				document.write(' alt="Improve Your Swimming Times"></a>');
				break;
			case 5:
				document.write('<a href="http://beachblasttriathlon.com" target="_blank"><img src="http://www.trifind.net/b/beach_blast/pic-1.jpg"');
				document.write(' border="0"');
				document.write(' alt="the beach blast triathlon"><br><b><font size="2">The Beach Blast Triathlon</font></b></a>');
				break;
			case 6:
				document.write('<a href="http://beachblasttriathlon.com" target="_blank"><img src="http://www.trifind.net/b/beach_blast/bb.jpg"');
				document.write(' border="0"');
				document.write(' alt="A-1-A Marathon"></a><br><font size="2"><b>2009 Beach Blast - Mexico Beach, Florida - April 25th</b></font>');
				break;
			case 7:
				document.write('<a href="http://beachblasttriathlon.com" target="_blank"><img src="http://www.trifind.net/b/beach_blast/bb.jpg"');
				document.write(' border="0"');
				document.write(' alt="A-1-A Marathon"></a><br><font size="2"><b>2009 Beach Blast - Mexico Beach, Florida - April 25th</b></font>');
				break;
			case 8:
				document.write('<a href="http://beachblasttriathlon.com" target="_blank"><img src="http://www.trifind.net/b/beach_blast/bb.jpg"');
				document.write(' border="0"');
				document.write(' alt="A-1-A Marathon"></a><br><font size="2"><b>2009 Beach Blast - Mexico Beach, Florida - April 25th</b></font>');
				break;
			}



				