/* 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.
*/



function bannerImage3ToUse(imgNum3){			
/*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 randomPics3 = new Array("aquatanks", "artm", "chrism", "chrisn", "coopres", "coopres2", "coopres3", "davidb", "jebb", "jebb2", "marshman", "mussels3", "net2", "nhep", "nhep2", "nhep3", "nhep4", "oysters", "rayg", "reefplanting", "sampling", "tech7972", "troyh", "underwater", "underwater2");
	imageDisplayed3 = randomPics3[imgNum3];
	return imageDisplayed3;
			
}


/*  
	!! 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 getImgNum3(){	
			var numItems3 = 24;
			var imgNum3 = Math.floor(Math.random()*numItems3) + 0;
			
			if(imgNum3 >= numItems3){
				imgNum3 = 0;
				}
return imgNum3;
}


