
		//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="Flooded&nbsp;cars"
			}
		if(num==2){
		caption="This tree damage is typical of that seen across central Maine from Ice Storm '98. NWS photo";
		altCap="Ice&nbsp;damaged&nbsp;tree"
			}
		if(num==3){
		caption="House in Allagash removed from its foundation by the ice jam flood of '91. Have you checked your flood insurance coverage?  MEMA photo.";
		altCap="Damaged&nbsp;house&nbsp;Allagash"
		}
		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="A family disaster kit starts with picking necessary items bit by bit at the store.  It can end up a life-saver.";
		altCap="disaster&nbsp;kit"
			}
		if(num==6){
		caption="Cleo is under the eye of her owner as she tiptoes through the aftermath of the 1998 Ice Storm.  Would your pets be safe in a disaster?  MEMA photo";
		altCap="Cat&nbsp;on&nbsp;ice."
			}
		
		if(num==7){
		caption="River City Realty lives up to its name.  Water Street, Augusta, 1987.  MDOT photo";
		altCap="River&nbsp;City&nbsp;Realty"
			}
		if(num==8){
		caption="Water Street, Hallowell, April, 1987.  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="Destroyed&nbsp;house"
			}
		if(num==10){
		caption="Water Street, Hallowell, 1923. Kennebec Journal photo.";
		altCap="Kennebec&nbsp;River&nbsp;1987&nbsp;Flood"
			}
		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."
			}
		if(num==12){
		caption="Aftermath of a tornado in Kennebec County, July 1996.  MEMA photo.";
		altCap="Tornado&nbspdamage&nbsp;Kennebec&nbsp;County&nbsp;Maine"
			}
		if(num==13){
		caption="July, 2000 dam breach and road washout. Picture by Somerset County SO & EMA.";
		altCap="family&nbsp;communications&nbsp;plan&nbsp"
			}
		if(num==14){
		caption="Your family communication plan can start with a conversation around the dinner table, and a list of important phone numbers.";
		altCap="Coast&nbsp;Guard&nbsp;icebreaker"
			}
		if(num==15){
		caption="The flood of '36, Richmond, Maine. Ice jam flooding is unpredictable.  Would your home be in danger during a flood?";
		altCap="Richmond&nbsp;Maine&nbsp;1936&nbsp;flood"
			}
		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="trucK&nbsp;in&nbsp;flood&nbsp;water"
			}