	function rotateImg() { // Rotating images on entry page
	// Set up the random number, which will be used as array index for actual image and image alt text
	var num = Math.round(Math.random() * 3);
	
	// Set image path once and concatenate later 
	// **Should probably pass as a parameter in the function in future
	var imgPath = "http://info.piercecollege.edu/media/vidgen/images/";

	// ALL THREE ARRAYS MUST HAVE THE SAME ORDER!
	// Array for images
	var img = new Array();
	img[0] = imgPath + "video1_0.gif";
	img[1] = imgPath + "video2_0.gif";
	img[2] = imgPath + "video3_0.gif";
	img[3] = imgPath + "video4_0.gif";


	// Array for alt text
	var text = new Array();
	text[0] = "Featured Video Highlights";
	text[1] = "Featured Video Highlights";
	text[2] = "Featured Video Highlights";
	text[3] = "Featured Video Highlights";		

	// Array for link
	var place = new Array();
	place[0] = "http://info.piercecollege.edu/media/vidgen/influenza.htm"; 
	place[1] = "http://info.piercecollege.edu/media/vidgen/tisha.htm";
	place[2] = "http://www.piercecollege.edu/webapps/orientation/index.html";
	place[3] = "http://info.piercecollege.edu/media/vidgen/katherine.htm";
		
	// Grab objects by id
	var val = document.getElementById('splashImage');
	var val2 = document.getElementById('mainLink');
		
	// Set new values for image 'src' and 'alt' attributes
	val.src = img[num];
	val.alt = text[num];
	
	// Set new values for link attribute
	val2.href = place[num];	
}

function rollOn() {
	var d = document.getElementById('splashImage');
	var string = d.src;
	var pattern = /_0.jpg/;
	var result = string.replace(pattern, "_1.jpg");
	//alert(result);
	d.src = result;	
	}
	
function rollOff() {
	var d = document.getElementById('splashImage');
	var string = d.src;
	var pattern = /_1.jpg/;
	var result = string.replace(pattern, "_0.jpg");
	//alert(result);
	d.src = result;	
	}	


			
