//**************************************************************************
// Java Script 
// Contains the common javascript functions used 
//**************************************************************************


<!--
    // First Set
    var ic1 = 4;     // Number of alternative images
    var xoxo1 = new Array(ic1);  // Array to hold filenames
			
	xoxo1[0] = "http://www.revolution-games.com/graphics/temp_ad.jpg";
	xoxo1[1] = "http://www.revolution-games.com/graphics/temp_ad2.jpg";
	xoxo1[2] = "http://www.revolution-games.com/graphics/temp_ad3.jpg";
	xoxo1[3] = "http://www.revolution-games.com/graphics/temp_ad4.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
	
// -->

			
	
