/* JavaScript Document

Developed by: 
	Web Solutions
	April 2004
For:
	Rotating the image, caption, caption color and background color on the unh homepage.
Rights:
	May be used, modified, re-distributed freely dependant that alterations of the manner in which the code behaves
	is well documented to maintain ease of use.
*/

/* Enter width and height, respectively, for image being rotated */	
	var imgWidth = 800;
	var imgHeight = 166;

function imageToUse(picNum){			
/*The following code is where you name your images. .jpg will be automatically appended
so it is only necessary to use the file's name. Image names must be surrounded in quotes and commas must separate items.*/
		
	var randomPics = new Array("homeimage01","homeimage02","homeimage03","homeimage04","homeimage05","homeimage06","homeimage07","homeimage08", "homeimage09");
	imageDisplayed = randomPics[picNum];
	return imageDisplayed;
	}
	
	
// same as the array above... 
randomPics = new Array("01", "02", "03", "04", "05", "06", "07", "08", "09"); 



/*  Make No Other Changes   */	

function getPicNum(){	
			var numItems = randomPics.length;
			var picNum = Math.floor(Math.random()*numItems) + 0;
			
			if(picNum >= numItems){
				picNum = 0;
				}
return picNum;
}
	


