// JavaScript Document

		
/*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("thall","congreve","globe","library","bridge","walkway","englehardt");
			
			
			

/*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("<b>Most students believe that alcohol use should never interfere with academic or everyday responsibilities.</b>* <br><br> <em>*We got the facts from you: NH Higher Education Alcohol, Tobacco & Other Drug Survey, Spring 2003</em>",
									"<b>Most UNH students party 1-2 nights a week or not at all.</b>*<br><br> <em>*We got the facts from you: NH Higher Education Alcohol, Tobacco & Other Drug Survey, Spring 2003</em>",
									"<b>Most UNH students drink 1-6 drinks in a week or none at all.</b>*<br><br> <em>*We got the facts from you: NH Higher Education Alcohol, Tobacco & Other Drug Survey, Spring 2003</em>",
									"<b>Most students believe that alcohol use should never interfere with academic or everyday responsibilities.</b>* <br><br> <em>*We got the facts from you: NH Higher Education Alcohol, Tobacco & Other Drug Survey, Spring 2003</em>",
									"<b>Most UNH students party 1-2 nights a week or not at all.</b>*<br><br> <em>*We got the facts from you: NH Higher Education Alcohol, Tobacco & Other Drug Survey, Spring 2003</em>",
									"<b>Most UNH students drink 1-6 drinks in a week or none at all.</b>*<br><br> <em>*We got the facts from you: NH Higher Education Alcohol, Tobacco & Other Drug Survey, Spring 2003</em>",
									"<b>Most UNH students party 1-2 nights a week or not at all.</b>*<br><br> <em>*We got the facts from you: NH Higher Education Alcohol, Tobacco & Other Drug Survey, Spring 2003</em>"
										   );

/*Change the value of this variable to the number of items in rotation.*/
	var numItems = 7;

	
/* Background color of filler div.*/
	var fillerBkgnd = new Array("#66cc66","#cccc99","#6699cc","#66cc66","#cccc99","#6699cc","#cccc99");
			
/* Enter width and height, respectively, for image being rotated */	
	var imgWidth = 523;
	var imgHeight = 227;

/*  Make No Other Changes   */	
			

			var picNum = Math.floor(Math.random()*numItems) + 0;
			
			if(picNum >= randomPics.length){
				picNum = 0;
				}
				
			document.write("<div id='filler' style='background-color:" + fillerBkgnd[picNum] +";'><div id='content'></a><img src=images/i/" + randomPics[picNum] + ".jpg border=0 width='" + imgWidth + "' height='"+ imgHeight + "' ></div><div id='sidebar-b'><p>" +  randomPicsText[picNum] +"</p></div>");	
			//document.write("<table cellpadding=0 cellspacing=0 border=0 bgcolor=" + fillerBkgnd[picNum] +"><tr><td><img src=images/i/" + randomPics[picNum] + ".jpg border=0 width='" + imgWidth + "' height='"+ imgHeight + "' ></td><td><div id='sidebar-b'><p>" +  randomPicsText[picNum] +"</p></div></td></tr></table>");