
		//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 = 12;
		

		//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 = "/mema/images/random_ex/";
		

		//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="A variety of agencies discuss strategy at the York-Cumberland Command Post during the Wells  full scale exercise held 9-09-06 (MEMA photo by M. Belserene)";
		altCap="exercise&nbsp;photo"
			}
		if(num==2){
		caption="Members of the Wells Fire Department prepare rescue equipment for their response during full scale exercise 9-09-06 (MEMA photo by M. Belserene)";
		altCap="exercise&nbsp;photo"
			}
		if(num==3){
		caption="Central Maine Emergency response Team transports contaminated victims to a decontamination shelter during full scale exercise on 9-23-06 (MEMA photo by M. Belserene)"
		altCap="exercise&nbsp;photo"
		}
		if(num==4){
		caption="Fire and HAZMAT officers coordinate response efforts from Kennebec Counties Command Post during exercise on 9-23-06 (MEMA photo by M. Belserene)"
		altCap="exercise&nbsp;photo"
			}
		if(num==5){
		caption="Participants attend briefing prior to the start of the Kennebec/Somerset County full scale event on 9-23-06 (MEMA photo by M. Belserene)";
		altCap="exercise&nbsp;photo"
			}
		if(num==6){
		caption="South Portland fire fighters set up a decontamination shelter during an exercise held 10-19-06 (MEMA photo by M. Belserene)";
		altCap="exercise&nbsp;photo"
			}
		
		if(num==7){
		caption="South Portland HAZMAT responders prepare to enter a mock meth lab during 10-19-06 exercise (MEMA photo by M. Belserene)";
		altCap="exercise&nbsp;photo"
			}
		if(num==8){
		caption="Victims of a terrorist attack flee the scene during exercise in Lincoln County held 10-14-06 (MEMA photo by M. Belserene)";
		altCap="exercise&nbsp;photo"
			}
		if(num==9){
		caption="Decon shelter and operations underway in Sagadahoc County during regional exercise held 10-14-06 (MEMA photo by M. Belserene)";
		altCap="exercise&nbsp;photo"
			}
		if(num==10){
		caption="Members from Portland fire, police, HAZMAT and special rescue in addition to Maine National Guard discuss Unified Command strategy during citywide communications exercise held 9/06 (MEMA photo by M. Belserene)";
		altCap="exercise&nbsp;photo"
			}
		if(num==11){
		caption="Maine State Police Mobile Command Post operates during Portland communications exercise 9/06 (MEMA photo by M. Belserene)";
		altCap="exercise&nbsp;photo"
			}
		if(num==12){
		caption="Members of Portland Police Crisis Response team move in to apprehend suspected terrorist during communications exercise 9/06 (MEMA photo by M. Belserene)";
		altCap="exercise&nbsp;photo"
			}
