// JavaScript Document
window.onload = initAll;

var currImg = 0;
var captionText = new Array(
	"In July, 2006 we had a party! We work hard all year, and even though we love our work, it is great to get together just for the fun of it.  Since we sometime volunteer at different times, we frequently miss seeing some of our friends, so this picnic was a special time. (1 of 10)",
	"Here we are getting together with some of the Veterans from the Clipper. We got a few great stories out of this event! (2 of 10)",
	"On the ship, three of us stop to talk on the staircase. The passengers entered from one side of the ship in Milwaukee, and the other in Muskegon. The staircase takes you to the next deck, and the main lounge. (3 of 10)",
	"Volunteers can adopt an area to restore, based on their talents and time.  Many have chosen to restore a stateroom.  This is an example of one which is restored.  The volunteers are named on a plaque outside the stateroom. (4 of 10)",
	"This area, was completed in 2006. It is in the main lounge, and was a popular attraction to travelers on the Clipper. (5 of 10)",
	"Meet Captain Bob Priefer, Vice President of the group. Captain Priefer was also the Captain of the Clipper for many years.  He is our walking - talking ships encyclopedia! He cleans up well, but most of the time you see him in work clothes fixing something or other. (6 of 10)",
	"Captain Priefer is talking to some of the volunteers. Notice the tables and chairs, they make up the largest collection of antique Warren McArthur furniture know to exist.  They were purchased when the Clipper was rebuilt in the early 1940's, and are in excellent shape today.",
	"The Captain enjoys some refreshment with one of the volunteers. Much of the lounge - bar - dance floor areas are fully restored. The kitchen, one half of the cafeteria and many staterooms have a way to go.  If you've come this far in our photo album, you are the kind of person we want to join us.  Visit us in Muskegon this summer.  We can find you a job!",
	"The view from the bow of the Clipper is fantastic.  Muskegon Lake is one of the best natural harbors in Michigan.  From here you can see it all.  May even see a freighter entering or exiting the harbor. Bring your camera.",
	"We are not waving Goodbye, but Hello, and welcome aboard the S.S. Milwaukee Clipper as a guest or a volunteer. See you this summer? (10 of 10 END OF PHOTOS.)"
)

function initAll() {
	document.getElementById("imgText").innerHTML = captionText[0];
	document.getElementById("prevLink").onclick = processPrevious;
	document.getElementById("nextLink").onclick = processNext;
}

function processPrevious() {
	newSlide(-1);
}

function processNext() {
	newSlide(1);
}

function newSlide(direction) {
	var imgCt = captionText.length;

	currImg = currImg + direction;
	if (currImg < 0) {
		currImg = imgCt-1;
	}
	if (currImg == imgCt) {
		currImg = 0;
	}
	document.getElementById("slideshow").src = "images/volunteer" + currImg + ".jpg"
	document.getElementById("imgText").innerHTML = captionText[currImg]
}
