<!--

// Random Splash Script
// This script will choose a random splash pic from a predetermined selection
// written by Omesh Chowdhury for use with www.omesh.com
// (c) 1998 - 2004 OmeshC

var x = 14			// set x to some intial number, modify this number to match number
				// of items in case statement below

var d = Math.random()*x		// set the intial random variable between 0 and x

var c = Math.round(d) 		// round it to nearest whole number

var image="someimage"		//initialize the image source variable
var link="somelink"		//initialize the image link variable
var caption="somecaption"	//initialize the caption variable

var blah="the variable c is "

switch (c) //switch on c to get different results, change this variable to x (or any number) for debugging
{

	case 14:
		image="sunrise.jpg\""
		link="photos/051218_sunrise/IMGP0992.jpg\""
		caption="My Z4 enjoys the sunrise over Fort Lauderdale Beach."
	break

	case 13:
		image="umiamibros.jpg\""
		link="photos/050924_miami_colorado/IMGP0740.jpg\""
		caption="The Chowdhury bros, Rafiq, Eq, and Rav at the Miami-Colorado 2005 Season Home Opener."
	break

	case 12:
		image="lizard.jpg\""
		link="photos/050410_lizard/IMGP0536.jpg\""
		caption="Caught this anole sitting on the screen door in the rear of my house."
	break

	case 11:
		image="wasatch.jpg\""
		link="photos/000401_slc/image37.htm\""
		caption="Laying on my back, looking into the clouds, resting during a snowmobile ride, deep in the Wasatch Mountains in Salt Lake City, Utah."
	break

	case 10:
		image="8manbike.jpg\""
		link="photos/991123_Amsterdam/image107.htm\""
		caption="This is an interesing 8-man bicycle we found when wandering around the streets of Amsterdam, Holland."
	break

	case 9:
		image="mini.jpg\""
		link="photos/991123_Amsterdam/image80.htm\""
		caption="I found this Mini Cooper parked outside our hotel in Amsterdam, Holland."
	break

	case 8:
		image="t-rex.jpg\""
		link="photos/041016_OmeshFest2004-NewYork/image9.htm\""
		caption="This skeleton of a Tyrannosaurus Rex is on display at the American Museum of Natural History in Manhattan, NY."
	break

	case 7:
		image="geometry.jpg\""
		link="photos/041016_OmeshFest2004-Boston/image24.htm\""
		caption="This is Geometry, an adult humpback whale Joye and I encountered on a Boston Harbor Cruises whalewatch tour off the Stellwagen Banks outside Boston, MA."
	break

	case 6:
		image="rafiqgraduation.jpg\""
		link="photos/040608_RafiqGraduation/image1.htm\""
		caption="This is my youngest brother Rafiq (center), and his two friends Dan (left) and Jonathan (right), after their graduation from Cypress Bay High School. Rafiq has known Jon since 2nd grade, and Dan since Junior High."
	break

	case 5:
		image="z4.jpg\""
		link="photos/030302_Z4/image19.htm\""
		caption="My 2003 Z4 2.5i, right after I got it some new shoes (ADR M-Sport gunmetals)."
	break

	case 4:
		image="gazebo.jpg\""
		link="photos/040116_Jamaica/image20.htm\""
		caption="The beachside gazebo where Tracey and Dave got married at the Grand Lido Braco resort in Trelawny, Jamaica."
	break

	case 2:
		image="m60.jpg\""
		link="photos/030417_tank/image4.htm\""
		caption="This Tank is just sitting in the park next to the lake. If you want to see it for yourself, it's on the west side of 21st, between Commercial and Oakland Park in Fort Lauderdale."
	break

	case 1:
		image="steinbock.jpg\""
		link="010301_Switzerland/103-0371_IMG.jpg\""
		caption="The Steinbock, a symbol of the canton of Graub&uuml;nden, appears all over the Engadin Valley and St. Moritz, the area of Switzerland I visited on my ski trip."
	break

	case 0:
		image="topspeed.jpg\""
		link="frontpics/topspeed.jpg\""
		caption="I once heard Adam Marcus tell a story about a guy who went on a road trip, and at the end of the trip he posted pics on his website. One of the pictures was a snapshot of his speedometer at 130 (i think it was km/h not mph). I couldn't resist the challenge. This is a pic of my car's speedometer. My Lexus is speed-limited to 150mph. This is as close as I dared to go. Kids...DON'T TRY THIS AT HOME!!"
	break

	default:
		image="steinbock.jpg\""
		link="010301_Switzerland/103-0371_IMG.jpg\""
		caption="The Steinbock, a symbol of the canton of Graub&uuml;nden, appears all over the Engadin Valley and St. Moritz, the area of Switzerland I visited on my ski trip."
}

//document.write("<p>"+blah)

//document.write(c+"<p>")		//prints out the count so we can see what c got set to

//document.write("image is set to "+image+"<p>") //prints out contents of image
//document.write("link is set to "+link+"<p>") //prints out the contents of link
//document.write("caption is set to "+caption+"<p>") //prints out contents of counter


//This next bit sets up the random image and caption

document.write("<table width=\"652\" cellpadding=\"1\" cellspacing=\"0\" border=\"0\" valign=\"top\">")
document.write("<tr>")
document.write("<td bgcolor=\"#804848\">")
document.write("<table width=\"650\" cellpadding=\"10\" cellspacing=\"0\" border=\"0\">")
document.write("<tr>")
document.write("<td bgcolor=\"#ffffff\">")
document.write("<a href=\""+link+"><img src=\"frontpics/"+image+" width=640 height=480 alt=\"\" border=\"0\" align=\"center\"</a><br>")
document.write("</td>")
document.write("</tr>")
document.write("</table>")
document.write("</td>")
document.write("</tr>")
document.write("</table>")
document.write("<p align=\"justify\">"+caption+"</p>")
document.write("<br>")
document.write("<br>")
document.write("<p class=\"body_bold\" align=\"justify\">")
document.write("The picture and text above are randomly generated. Refresh to see something else!")
document.write("</p>")


//-->

