/* 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.
*/

/* PICTURE SIZE - Enter width and height, respectively, for all the images being rotated. */	
	var imgWidth = 360;
	var imgHeight = 265;

function imageToUse(picNum){			

/*ROTATING PICTURES - 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 seprate items.*/
		
	var randomPics = new Array("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25");
	imageDisplayed = randomPics[picNum];
	return imageDisplayed;
	}

/*ALTERNATIVE CAPTIONS FOR THE ROTATING PICTURES - Place the captions within the array below. Place them in the same order
as the picture names in the array above. Captions must be surrounded in quotes and commas must seprate items.*/	

	
var randomPicsText = new Array("The UNH Earth Sciences Department organizes field trips to near and far including this one to the Grand Canyon",
							   "Hydrology research at UNH studies hydrologic phenomena, such as this kettle pond breach in Massachusetts",
								"UNH graduate and undergraduate students on a field trip to Grand Manan Island, New Brunswick, Canada",
								"Department research on glacial ice focuses on documenting recent changes in climate",
								"All work and no play, UNH students and professor take a lunch break from fieldwork on Mt. Monadnock",
								"A tight fold in the Kittery Formation, located only ten minute from campus",
								"The Billings Fold on Mt. Monadnock",
								"An overturned syncline in western Vermont",
								"UNH researchers and students at the Massabesic Gneiss Complex",
								"Geology students on the Rye Formation. The complex geology of this region exhibits a wide range of structures and lithologies within minutes of campus",
								"Helicopter support for a UNH glaciology research expedition",
								"A series of paleosols from the Eocene of Wyoming. Faculty members at UNH are actively pursuing paleontological and stratigraphic research in this region",
								"Researchers at UNH are actively looking into biogeochemical cycles, and the impact that human activity (such as agriculture) has on these cycles",
								"Larry Dingman",
								"Presidential Range, New Hampshire",
								"",
								"",
								"",
								"",
								"",
								 "A UNH Earth Sciences student contemplates the geology of the Colorado Plateau on a recent field trip",
"A recent UNH Earth Sciences field trip to the Pacific Northwest",
"UNH Earth Sciences graduate student collects geological samples for Cosmogenic surface exposure dating",
"UNH Earth Sciences students discuss the geology and paleontology of the Lake Champlain region during a recent field trip", "Students and faculty on a recent field trip to the Grand Canyon"
						
								);

function picsText(picNum){
	textToUse =randomPicsText[picNum];			
return textToUse; 
}


/*  Make No Other Changes   */	

function getPicNum(){	
			var numItems = randomPicsText.length;
			var picNum = Math.floor(Math.random()*numItems) + 0;
			
			if(picNum >= numItems){
				picNum = 0;
				}
return picNum;
}
	


