/* 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 = 523;	var imgHeight = 227;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( "morgan_mcnair0409",  "barneyhill0409", "poulinmfa0409", "mcgaughy0409", "urcc0409"							   							   );	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(							   	"UNH senior and McNair scholar Stephen Morgan is working on the design and development of a Portable Limit Device (PLD) that will enable the on-site analysis of soil conditions and provide results more quickly than traditional methods of testing soil consistency.",                  "Join us for a public forum and celebration of the opening of the Betty and Barney Hill Collection exhibition. The forum and exhibition highlight the couple&rsquo;s reported alien abduction in 1961, and Barney Hill&rsquo;s civil rights activism in New Hampshire in the 1960s. April 17","Join us for the 2009 Senior MFA and BFA annual exhibition celebrating the achievements of graduating art students from the department of art and art history. Opening reception April 17","Video of a narcoleptic dachshund puppy. Actor Heath Ledger&rsquo;s overdose death. Dolphin training techniques. They all have a place in psychology professor Jill McGaughy&rsquo;s classroom as she works to infuse the fun, energy, and relevance necessary to get students&rsquo; guard down and their interest up.","Spring and URC are both here! At this weeklong symposium, hundreds of UNH undergraduates from all academic disciplines present the results of their scholarly and creative research in one or more of over twenty professional and artistic venues campus&#45;wide. April 17 &#45; 25",																												 		"&rsquo;   &mdash;  &quot;  hyphen &#45;"									 						   );	textToUse =randomPicsText[picNum];				return textToUse; }	/* Background color of filler div.*/	var fillerBkgnd = new Array("#f60",  "#000", "#000", "#006", "#006"																		);						/* Color of text in randomPicsText */	var captionColor = new Array( "#fff", "#fff", "#fff", "#fff", "#fff"								 								 );		/* Color of links in randomPicsText */	var captionLinks = new Array("#fff", "#fff", "#fff", "#fff", "#fff", "#fff"								 								 ); 			/* Color of hovers in randomPicsText */	var captionHovers = new Array("#fff", "#fff", "#fff", "#fff", "#fff", "#fff"								  								  );	function picsURL(picNum){	var randomPicsURL = new Array(												 			 																"http://www.unh.edu/mcnair/profile_morgan.html",									"http://www.unh.edu/news/cj_nr/2009/apr/lw9hill.cfm",												"http://www.unh.edu/moa/current.html",								"http://www.unh.edu/facultyexcellence/2008/excellence.cfm?image=mcgaughy",								"http://www.unh.edu/urc"			  );						  	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>");