//array
// nextPicture...find the source of current, then get the newpic substring, then...
// search the array for a match on the 0 position of the array element
// for (i=0;1<picSet.length;i++) {
//	alert(picSet[i]);
//}
// then take the quote from the 1 position of the element
var picSet = new Array();
	picSet[0]=["100","ACES 2008 Participant Andrew Wyatt"];//picSet[0][0] is 10, picSet[0][1] is the quote
	picSet[1]=["101","ACES 2008 Participant Chris Sawka"];
	picSet[2]=["102","ACES 2008 Participant Emily Herron"];
	picSet[3]=["103","ACES 2008 Participant Joshua Hayes"];
	picSet[4]=["104","ACES 2008 Participant Lauren Herren"];
	picSet[5]=["105","ACES 2008 Participant Michael Seip, Jr."];
	picSet[6]=["106","ACES 2008 Participant Shaun Tomko"];
	picSet[7]=["107","ACES participant Chris photographs visit to Philadelphia"];
	picSet[8]=["108","More of the Philadelphia visit"];
	picSet[9]=["109","Chris' perspective on Temple University's \"food truck\""];
	picSet[10]=["110","ACES participant Joshua enters train for Philadelphia visit"];
	
	picSet[11]=["111","One of the city\'s historic buildings"];
	picSet[12]=["112","ACES participant Lauren in class"];
	picSet[13]=["113","Instructor George Heake"];
	picSet[14]=["114","City buses await"];
	picSet[15]=["115","Chris gets on city bus"];
	picSet[16]=["116","ACES group visits book store in Center City"];
	picSet[17]=["117","ACES participants gather for special instruction"];
	picSet[18]=["118","Class turns \"physical\""];
	picSet[19]=["119","Instructor Anita Schermer works with Chris"];
	
	picSet[20]=["120","ACES participant Michael works in class"];
	picSet[21]=["121","ACES Mentor/Staff Ceasar Seabron"];
	picSet[22]=["122","Anita Schermer and Chris"];
	picSet[23]=["123","Joshua and company work together"];
	picSet[24]=["124","More Anita and Chris"];
	picSet[25]=["125","ACES participant Lauren works on her communication device"];
	picSet[26]=["126","More Anita and Chris"];
	picSet[27]=["127","Temple University campus"];
	picSet[28]=["128","ACES participant Andrew works with Instructor Priscilla Danielson"];
	picSet[29]=["129","ACES participant Emily Herron"];
	
	picSet[30]=["130","Emily finds something funny!"];
	picSet[31]=["131","ACES Instuctor Melinda Smith"];
	picSet[32]=["132","Priscilla Danielson works with communication device"];
	picSet[33]=["133","Andrew flashes his smile"];
	picSet[34]=["134","Instructor and ACES founder, Dr. Diane Nelson Bryen"];
	picSet[35]=["135","Ceasar communicates using his device"];
	picSet[36]=["136","Andrew in classroom"];
	picSet[37]=["137","Lauren with Melinda in classroom"];
	picSet[38]=["138","Ceasar Seabron"];
	picSet[39]=["139","Lauren works in classroom"];
	picSet[40]=["140","Chris works in the classroom on his device"];
	
	picSet[41]=["141","ACES participant Shaun Tomko works on his device"];
	picSet[42]=["142","Joshua in classroom"];
	picSet[43]=["143","Anita works with Lauren"];
	picSet[44]=["144","Emily intent on her work"];
	picSet[45]=["145","Andrew Wyatt"];
	picSet[46]=["146","Melinda enjoying her time at ACES!"];
	picSet[47]=["147","Emily in classroom"];
	picSet[48]=["148","Andrew works intently"];
	picSet[49]=["149","Lauren and company work on her device"];
	picSet[50]=["150","Dr. Bryen works with Emily"];
	
	picSet[51]=["151","Melinda Smith"];
	picSet[52]=["152","Ceasar and Andrew work together"];
	picSet[53]=["153","Joshua works with Anita"];
	picSet[54]=["154","Ceasar Seabron"];
	picSet[55]=["155","Emily Herron"];
	picSet[56]=["156","Chris Sawka"];
	picSet[57]=["157","Joshua and company work out a solution"];
	picSet[58]=["158","Mentor Kathleen Curcio"];
	picSet[59]=["159","Emily at graduation"];
	picSet[60]=["160","ACES classroom"];
	
	picSet[61]=["161","Andrew in the Daring to Dream section"];
	picSet[62]=["162","ACES staff Jenn Seale works with Emily"];
	picSet[63]=["163","Andrew Wyatt"];
	picSet[64]=["164","Lauren on her device"];
	picSet[65]=["165","Joshua Hayes"];
	picSet[66]=["166","Michael Seip"];
	picSet[67]=["167","Joshua works on his device"];
	picSet[68]=["168","Andrew collaborates with Jenn"];
	picSet[69]=["169","Chris with Jenn"];
	picSet[70]=["170","Shaun and Priscilla work together"];
	
	picSet[71]=["171","Shaun and Priscilla work together"];
	picSet[72]=["172","ACES graduation"];
	picSet[73]=["173","Chris Sawka"];
	picSet[74]=["174","Shaun with Priscilla"];
	picSet[75]=["175","Ceasar Seabron"];
	picSet[76]=["176","ACES classroom"];
	picSet[77]=["177","Lauren"];
	picSet[78]=["178","Jenn watches program"];
	picSet[79]=["179","Dr. Bryen enjoys presentation"];
	picSet[80]=["180","Ceasar Seabron"];
	
	picSet[81]=["181","Jenn and Andrew at graduation"];
	picSet[82]=["182","Shaun Tomko at graduation"];
	picSet[83]=["183","Jenn and Shaun at graduation"];
	picSet[84]=["184","Emily Herron at graduation"];
	picSet[85]=["185","Jenn and Emily at graduation"];
	picSet[86]=["186","Lauren Herren at graduation"];
	picSet[87]=["187","Jenn and Lauren at graduation"];
	picSet[88]=["188","Michael Seip at graduation"];
	picSet[89]=["189","Jenn and Michael at graduation"];
	picSet[90]=["190","Chris Sawka at graduation"];
	
	picSet[91]=["191","Jenn and Chris at graduation"];
	picSet[92]=["192","Shaun at graduation"];
	picSet[93]=["193","Lauren watches graduation ceremony"];
	picSet[94]=["194","Dr. Bryen welcomes attendees to ACES graduation ceremony"];
	picSet[95]=["195","Shaun makes his presentation at the ACES graduation ceremony"];
	picSet[96]=["196","Graduates"];
	picSet[97]=["197","Enjoying the celebration"];
	picSet[98]=["198","Enjoying the celebration"];
	picSet[99]=["199","Thanks for a GREAT ACES program!"];
	
// swapPhoto fires when a thumbnail is clicked
function swapPhoto(photoSRC,theCaption) {
	var displayedCaption = document.getElementById("caption");
	displayedCaption.firstChild.nodeValue = theCaption;
    document.images.imgPhoto.src = "images/" + photoSRC;		
	    }


function nextPicture() {
	var displayedCaption = document.getElementById("caption");
	var currPhoto = document.getElementById("imgPhoto");
	var currPhotoSource = currPhoto.src;
	// get the numeric portion of the image name, counting back from the end of string...
	var myIndex = currPhotoSource.length - 7;
	var myIndex2 = currPhotoSource.length - 4;
	var newpic = (currPhotoSource.substring(myIndex,myIndex2));
	var intNewpic = parseInt(newpic);
	if ((intNewpic + 1) <= 199) {
		document.images.imgPhoto.src  = "images/aces" + (intNewpic + 1) + ".jpg";
		displayedCaption.firstChild.nodeValue = picSet[(intNewpic+1)-100][1];
		
		} else {
			document.images.imgPhoto.src = "images/aces100.jpg";
			displayedCaption.firstChild.nodeValue = picSet[0][1];
			}
	  } 
		 
		 
function prevPicture() {
	var displayedCaption = document.getElementById("caption");
	var currPhoto = document.getElementById("imgPhoto");
	var currPhotoSource = currPhoto.src;
	// get the numberic portion of the image name, counting back from the end of string...
	var myIndex = currPhotoSource.length - 7;
	var myIndex2 = currPhotoSource.length - 4;
	var newpic = (currPhotoSource.substring(myIndex,myIndex2));
	var intNewpic = parseInt(newpic);
	if ((intNewpic - 1) >= 100) {
		document.images.imgPhoto.src  = "images/aces" + (intNewpic - 1) + ".jpg";
		displayedCaption.firstChild.nodeValue = picSet[(intNewpic-1)-100][1];
	} else {
		document.images.imgPhoto.src = "images/aces199.jpg";
		displayedCaption.firstChild.nodeValue = picSet[99][1];
		}		
	}// END prevPicture() function
