/* JavaScript Document

Developed by: 
	Web Solutions
	September 2007
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 bannerImgWidth = 145;
	var bannerImgHeight = 100;


function bannerImage1ToUse(imgNum1){			
/*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 randomPics1 = new Array("boatbuilding", "boatbuilding2", "boatbuilding3", "boatbuilding5", "discovery", "discovery2", "discovery3", "discovery4", "discovery5", "discovery6", "docents", "gbcw", "gbcw2"  , "gbcw3", "juliap", "marineed", "marineed2", "marineed3", "marineed4", "marineed5", "marineed6", "meeting", "safetyws", "safetyws2", "tech797");
	imageDisplayed1 = randomPics1[imgNum1];
	return imageDisplayed1;
			
}


/*  
	!! IMPORTANT !!
	IF YOU ADD OR DELETE PHOTOS IN THE ROTATE 
	MAKE SURE YOU CHANGE THE numItems NUMBER
	BELOW. 
	IT SHOULD BE ONE LESS THAN THE NUMBER OF 
	PHOTOS YOU ACTUALLY HAVE IN THE randomPics 
	ARRAY. FOR EXAMPLE, IF YOU HAVE 11 PICTURES, 
	THEN numItems = 10. 
	
*/

function getImgNum1(){	
			var numItems1 = 25;
			var imgNum1 = Math.floor(Math.random()*numItems1) + 0;
			
			if(imgNum1 >= numItems1){
				imgNum1 = 0;
				}
return imgNum1;
}


