SSImg = new Array (
	new Array("images/p0.jpg", "Site H2"),
	new Array("images/p1.jpg", "Shady Haven"),
	new Array("images/p2.jpg", "Woodchuck Hill"),
	new Array("images/p3.jpg", "View from the Island"),
	new Array("images/p4.jpg", "Site F"),
	new Array("images/p5.jpg", "Site G"),
	new Array("images/p6.jpg", "Site Z"),
	new Array("images/p7.jpg", "Hoola-Hoop Fun at Kids Fair on Memorial Weekend 2009"),
	new Array("images/p8.jpg", "Playground"),
	new Array("images/p9.jpg", "Wagon Rides on Memorial Weekend 2004"),
	new Array("images/p10.jpg", "Recreational Building (small barn)"),
	new Array("images/p11.jpg", "Summer Sunsets"),
	new Array("images/p12.jpg", "Secluded Glen"),
	new Array("images/p13.jpg", "Lakeview"),
	new Array("images/p14.jpg", "Campground Store"),
	new Array("images/p15.jpg", "Fishing at Cooper's Lake"),
	new Array("images/p16.jpg", "10 Acre Lake"),
	new Array("images/p17.jpg", "Activity Building (big barn)"),
	new Array("images/p18.jpg", "Battlefield"),
	new Array("images/p19.jpg", "Candy Toss on Memorial Weekend 2009"),
	new Array("images/p20.jpg", "Ice Cream Stand on Memorial Weekend 2009"),
	new Array("images/p21.jpg", "Hidden Acres"),
	new Array("images/p22.jpg", "Looking south over the Battlefield"),
	new Array("images/p23.jpg", "Kids Fun Fair on Memorial Weekend 2009"),
	new Array("images/p24.jpg", "Clean Restrooms and Hot Showers"),
	new Array("images/p25.jpg", "Site B"),
	new Array("images/p26.jpg", "Recreational Building (small barn)"),
	new Array("images/p27.jpg", "Penninsula"),
	new Array("images/p28.jpg", "Laundromat"),
	new Array("images/p29.jpg", "Picnic Pavilion"),
	new Array("images/p30.jpg", "Canoeing on Cooper's Lake"),
	new Array("images/p31.jpg", "Dogs love ice cream at Cooper's Lake")
);

var SSImgLength = SSImg.length - 1;

function chgImg(direction) {
	if (document.images) {
		var index = parseInt(document.slideShowImg.alt) + direction;
		if (index > SSImgLength) {
			index = 0;
		}
		if (index < 0) {
			index = SSImgLength;
		}
		document.slideShowImg.src = SSImg[index][0];
		document.slideShowImg.alt = index;
		document.getElementById("caption").innerHTML = SSImg[index][1];
   }
}

function getCaption() {
	var index = parseInt(document.slideShowImg.alt);
	document.getElementById("caption").innerHTML = SSImg[index][1];
}
