/* 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.*//* Enter width and height, respectively, for image being rotated */		var imgWidth = 500;	var imgHeight = 300;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("rotate0","rotate1","rotate4","rotate5", "rotate6", "rotate7","rotate8");	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("When the Large Hadron Collider, a particle accelerator that is the world's most eagerly anticipated physics experiment, starts up near Geneva, Switzerland on September 10, 2008, a UNH undergraduate will be among the 7,000 scientists worldwide to claim credit for the creation of this landmark scientific instrument.<br><a href='http://unh.edu/news/campusjournal/2008/Sep/10hadron.cfm' target='_blank'>Learn more</a><br>(Photo credit: Austin Purves.)",							   							   "(L) All four stages of the 65-foot-tall Black Brant XII sounding rocket are shown being fired in this photograph of the successful launch to study pulsating aurora. The foreground snow reflects the glow of the Northern Lights. Photo by Todd Valentic, SRI, Inc. (R) The aurora borealis is well known and well studied, but pulsating auroras - ephemeral, high-energy patches of light that occur at the end of auroral episodes are not. Photo copyright Romko Krochuk. <a href='news/spin.html'>Learn more</a>",										   							   "DeMeritt Hall, home of the physics department since 1914, is scheduled to be rebuilt beginning summer 2007. Learn more about the DeMeritt reconstruction project and the May 5th celebration of the life and times of DeMeritt Hall.<br /> <a href='demeritt/index.html'> Learn More.</a>",							   							   "Undergraduate Ben MacBride joins in the effort to solve the mystery of heating the solar wind... <a href='news/macbride.html'>Learn More</a>",							   							   "Graduate student Bogdan Dianconescu and Professor Karsten Pohl prove the existence of acoustic surface plasmons and publish their work in <em>Nature</em>. <a href='news/pohl-bogdan.html'>Learn more</a>.",							   							   "UNH undergraduate alum Cyndi Heiner (B.S. 2001), her graduate advisor Gerard Meijer of the Fritz Haber Institute in Berlin, and colleagues design and build a novel synchrotron to accelerate neutral particles. (Photo Credit: Jacqueline van Veldhoven/FHIBerlin). <a href='news/heiner2.html'>Learn more</a>.",							   							   "UNH undergraduate student George B. Clarke wins a prize for his poster at the Undergraduate Research Conference. A total of 18 undergraduate students presented 13 separate posters. <a href='research/URC/index.html'>See photos of all the posters here.</a>"); 		/* OLD NEWS:								"rotate2",						   							   "Two UNH Physics Professors are awarded prestigious National Science Foundation CAREER grants for theoretical work on string theory and the structure of the nucleus. <a href='news/carrer.html'>Learn more</a>",							    "#292644", 								"#ffffff",								"#ffffff",								"#ffffff",*/								textToUse =randomPicsText[picNum];			return textToUse; }/* Background color of filler div.*/	var fillerBkgnd = new Array("#B5C0D2","#556F4C","#4E3B35", "#510100", "#201d16", "#3F1516","#7a8939");						/* Color of text in randomPicsText */	var captionColor = new Array("#000066", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff","#ffffff");	/* Color of links in randomPicsText */	var captionLinks = new Array("#000066", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff","#ffffff");/* Color of hovers in randomPicsText */	var captionHovers = new Array("#000066", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff","#ffffff");/*  Make No Other Changes   */	function getPicNum(){				var numItems = captionColor.length;			var picNum = Math.floor(Math.random()*numItems) + 0;			/* TEMPORARY OVERRIDE !!!! Only show the first item. */			/*			picNum= 0  */						if(picNum >= numItems){				picNum = 0;				}return picNum;}