
		//update 'numImages' to reflect the number of images in random dbase (images/random)
		//be sure to name images with correct format. (e.g. 5.jpg, 6.jpg, etc)
		//extensions of .jpeg or .gif will not work

		
		var numImages = 16;
		

		//only change 'path' variable if the images are moved to a different directory.
		//NOTE: the path is relative to the page the images will be displayed on; not this script.
		

		var path = "images/random/";
		

		//DO NOT NEED TO EDIT THIS BLOCK WHEN UPDATING PICTURES*******

		var num; //random number
		var altCap; //alt text for each picture. 
		var caption; //display text under picture (description)

		num = 1 + (Math.round(numImages * Math.random()/1.0) % numImages);
		
		
		var randImage;
		randImage=path+num+".jpg";
		
		//************************************************************
		


		//as images are added, new captions and alt text will also have to be added
		//copy an if block below and replace both 'caption' and 'altCap' with correct
		//strings for the corresponding image number (name of image).
		
		//*********EXAMPLE FOR ADDING A PICTURE NAMED 5.JPG**************
		// if(num==5){
		// caption="Here is the text that will appear under 5.jpg.";
		// altCap="Here&nbsp;is&nbsp;the&nbsp;alt&nbsp;text."
		//	}
		//**************************************************************
		

		if(num==1){
		caption="UMF students mourn their flooded cars, Farmington, 2003.  MEMA photo by Gene Maxim.";
		altCap="Photo_of_flooded_cars"
			}
		if(num==2){
		caption="This tree damage is typical of that seen across central Maine from Ice Storm '98. NWS photo";
		altCap="Photo_of_ice_tree"
			}
		if(num==3){
		caption="House in Allagash removed from its foundation by the ice jam flood of '91. MEMA photo."
		altCap="1991&nbsp;Allagash&nbsp;flood.&nbsp;MEMA photo."
		}
		if(num==4){
		caption="Road washout in York County from the heavy rains of October, 1996.  MEMA photo."
		altCap="Typical&nbsp;flooded&nbsp;road&nbsp;washout."
			}
		if(num==5){
		caption="July, 2000 dam breach and road washout. Photo by Somerset County SO & EMA.";
		altCap="July,&nbsp;2000&nbsp;road&nbsp;washout.&nbsp;Picture&nbsp;by&nbsp;Somerset&nbsp;County&nbsp;SO&nbsp;&&nbsp;EMA."
			}
		if(num==6){
		caption="Cleo traverses an alien landscape, Readfield Maine, January 1998. MEMA photo";
		altCap="Cat&nbsp;after&nbsp;1998&nbsp;Ice&nbsp;Storm.&nbsp;MEMA&nbsp;photo"
			}
		
		if(num==7){
		caption="River City Realty in Augusta lives up to its name during the 1987 flood.  MDOT photo";
		altCap="1987&nbsp;flood"
			}
		if(num==8){
		caption="A canoe traverses Hallowell's Water Street. This greater than 100-year event occurred just 51 years after the last one - the great flood of 1936. Kennebec Journal photo.";
		altCap="Kennebec&nbsp;River&nbsp;flooding."
			}
		if(num==9){
		caption="A house in Allagash destroyed by 1991 St. John River ice jam and flood.  MEMA photo.";
		altCap="1991&nbsp;Allagash&nbsp;flood.&nbsp;MEMA photo."
			}
		if(num==10){
		caption="Kennebec River flood waters flow down Water Street in Hallowell, 1923. Kennebec Journal photo.";
		altCap="1923&nbsp;Kennebec&nbsp;River&nbsp;flood.Kennebec&nbsp;Journal&nbsp;photo."
			}
		if(num==11){
		caption="The Fairbanks Bridge, torn apart by flood waters on the Sandy River, April 1987. MDOT photo.";
		altCap="The&nbsp;Fairbanks&nbsp;Bridge.&nbsp;MDOT&nbsp;photo."
			}
		if(num==12){
		caption="Aftermath of a tornado in Kennebec County, July 1996.  MEMA photo.";
		altCap="A&nbsp;Tornado&nbsp;in&nbsp;Maine,&nbsp;Kennebec&nbsp;County,&nbsp;July&nbsp;1996."
			}
		if(num==13){
		caption="July, 2000 dam breach and road washout. Picture by Somerset County SO & EMA.";
		altCap="July,&nbsp;2000&nbsp;road&nbsp;washout.&nbsp;Picture&nbsp;by&nbsp;Somerset&nbsp;County&nbsp;SO&nbsp;&&nbsp;EMA."
			}
		if(num==14){
		caption="The US Coast Guard icebreaker, Thunder Bay, working on the Kennebec River south of the Richmond Bridge. MEMA Photo By Gene Maxim.";
		altCap="The&nbsp;US&nbsp;Coast&nbsp;Guard&nbsp;icebreaker.&nbsp;MEMA&nbsp;Photo&nbsp;by&nbsp;Gene&nbsp;Maxim"
			}
		if(num==15){
		caption="The flood of '36. Richmond, ME";
		altCap="Photo_of_1936_flood_Richmond"
			}
		if(num==16){
		caption="A truck driver had to be rescued after ignoring barricades and driving into flood water, Farmington, January 2006.  DPS photo.";
		altCap="Photo_of_trucK_in_flood_water"
			}
