//**************************************************************************
// Java Script 
// Contains the common javascript functions used 
//**************************************************************************


<!--
    // First Set
    var ic1 = 11;     // Number of alternative images
    var xoxo1 = new Array(ic1);  // Array to hold filenames
	        
	xoxo1[0] = "images/gallery/splash1.jpg";
	xoxo1[1] = "images/gallery/splash2.jpg";
	xoxo1[2] = "images/gallery/splash2.jpg";
	xoxo1[3] = "images/gallery/splash1.jpg";	
	xoxo1[4] = "images/gallery/splash2.jpg";	
	xoxo1[5] = "images/gallery/splash1.jpg";
	xoxo1[6] = "images/gallery/splash2.jpg";
	xoxo1[7] = "images/gallery/splash1.jpg";
	xoxo1[8] = "images/gallery/splash2.jpg";	
	xoxo1[9] = "images/gallery/splash1.jpg";	
	xoxo1[10] = "images/gallery/splash2.jpg";	
	
	// Write out an IMG tag, using a randomly-chosen image name.
	var choice1 = pickRandom(ic1);
	
	
	function pickRandom(range) {
		if (Math.random)
			return Math.round(Math.random() * (range-1));
		else {
			var now = new Date();
			return (now.getTime() / 1000) % range;
		}
	} // end function
	
// -->

			
	
