/* JavaScript DocumentDeveloped by: 	Mike McIntire	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 = 225;	var imgHeight = 145;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 seprate items.*/			var randomPics = new Array( "allen/allenImage_small", "boomer/boomerImage_small", "capiella/capiellaImage_small", "deal/dealImage_small", "dickson/dicksonImage_small", "dreyfuss/dreyfussImage_small", "feurt/feurtImage_small", "godwin/godwinImage_small", "keeley/keeleyImage_small", "khangaonkar/khangaonkarImage_small", "lathrop/lathropImage_small", "ohalloran/ohalloranImage_small", "rubin/rubinImage_small"							   							   );	imageDisplayed = randomPics[picNum];	return imageDisplayed;			}function picsText(picNum){	/*place text within this array in the format in the example. Place them in the same order as the picture names in the above array. Captions must be surrounded in quotes and commas must seprate items.*/		var randomPicsText = new Array(									   	"Researchers from East Carolina University are developing VISSTA, a model to assess cumulative impacts of stormwater runoff. Working with established outreach organizations, they will help planners and decision-makers apply these tools in North Carolina.",				"The Smithsonian Environmental Research Center is partnering with other organizations in Chesapeake Bay to develop comprehensive planning tools that objectively evaluate different development scenarios and their impacts on watersheds and coastal communities.", 						"A team from the Center for Watershed Protection is developing an improved and simplified land use planning toolkit, customized to work effectively in coastal plain watersheds. ",												"A project team from the University of Illinois is applying technologies, modeling, and web-based information retrieval approaches to create a watershed planning support system (WPSS) for the Lake Michigan watershed. ", 				"The Connecticut NEMO program is developing an online interactive version of its Community Resource Inventory tool to help communities manage land use while protecting natural resources. They are working to expand the tool to Rhode Island, South Carolina and Minnesota.",				"Chagrin River Watershed Partners is working with communities in the Ohio Lake Erie Basin to implement an effective approach to incorporate resource data in local watershed planning.", 		"Using Sanford, Maine, as a case study, a team from the Wells National Estuarine Research Reserve is using collaborative learning to develop a regional training on ecosystem based management tools for land use planning.", 									 		"A project team from Oregon State University is packaging lessons learned in urban Oregon into SWAMP&mdash;an open source stormwater assessment and management decision support process&mdash;for use by rural communities under development pressure.", 				"To help U.S. urban areas encourage and maintain green space in a way that sustains natural resources, researchers from George Washington University are recalibrating the  Green Area Ratio (GAR) decision support system from Germany, and piloting its use in Washington, D.C.", 				"Researchers in Washington's Northern Puget Sound are developing a basin-scale hydrodynamic modeling tool to make it possible for land use decision makers to forecast the effects of restoration plans in their own communities and the watershed.", 				"A team from Rutgers University and the Jacques Cousteau National Estuarine Research Reserve is working in New Jersey's Ocean County to develop internet-based geospatial tools, combined with an inventory of stormwater management systems, to improve watershed-scale management of stormwater.", 				"A team from the University of Wisconsin is enabling community planners to identify, prioritize, and manage areas critical to maintaining the health and quality of coastal resources in the Lake Superior Basin.", 				"University of New Hampshire researchers are developing geospatial software tools to balance community growth and resource protection. Working with the town of Exeter, they are insuring the relevance of the tools, for planners and decisions makers."								   );	textToUse =randomPicsText[picNum];				return textToUse; }	/* Background color of filler div.*/	var fillerBkgnd = new Array("#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff"																			);						/* Color of text in randomPicsText */	var captionColor = new Array( "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff"								 								 );		/* Color of links in randomPicsText */	var captionLinks = new Array("#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff"								 								 ); 			/* Color of hovers in randomPicsText */	var captionHovers = new Array("#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff", "#fff"								  								  );	function picsURL(picNum){	var randomPicsURL = new Array("projects/vissta.html", "projects/watershed_management_models.html", "projects/coastal_plain_network.html", "projects/lake_michigan.html", "projects/online_resource_planning.html", "projects/lake_erie_basin.html", "projects/collaborative_learning.html", "projects/swamps.html", "projects/green_area_ratio.html",  "projects/puget_sound.html", "projects/stormwater_information_system.html", "projects/lake_superior.html", "projects/geospatial_web_technology.html"			  );						  	URLToUse =randomPicsURL[picNum];				return URLToUse; }	/*  Make No Other Changes   */	function getPicNum(){				var numItems = captionColor.length;			var picNum = Math.floor(Math.random()*numItems) + 0;						if(picNum >= numItems){				picNum = 0;				}return picNum;}			//document.write("<div id='filler' style='background-color:" + fillerBkgnd[picNum] +";'><div id='holder'><div id='content'><img src=images/i/" + randomPics[picNum] + ".jpg border='0' width='" + imgWidth + "' height='"+ imgHeight + "' >  </div><div id='sidebar-b'><p style='color:" + captionColor[picNum] +"'>" +  randomPicsText[picNum] +"</p>");			//document.write("<div id='filler'><div id='content'><img src=images/i/" + randomPics[picNum] + ".jpg border=0 width='" + imgWidth + "' height='"+ imgHeight + "' >  </div><div id='sidebar-b'><p>" +  randomPicsText[picNum] +"</p>");