// JavaScript Document
window.onload = initAll;

var currImg = 0;
var captionText = new Array(
	"For years Robert and Herbert Radunz collected things related to ships and shipping.  In looking for a good home for this priceless collection, they felt that The Milwaukee Clipper Preservation Group could make use their collection for research. An area of the ship was created for this use, and dedicated to the Radunz family. Here, Mr. and Mrs. Radunz are being given a plaque in honor of this new facility.  Captain Bob Priefer and President Ray Hilt made the presentation. (1 of 5)",
	"The plaque tells the story. The Robert and Herbert Radunz Maritime Resource Center will house this collection as well as other archival material owned by the Museum.  (2 of 5)",
	"Mr. and Mrs. Radunz tour the Bridge. Getting a ships tour from Captain Priefer is a real treat.  The Captain served in that capacity on the Clipper for many years, and entertains his guests with many great stories. (3 of 5)",
	"Ken Jillbert of Manistee, Michigan builds ships.  They are so realistic and detailed, you might think he shrinks the real thing. His models represent all of Great Lake Shipping, from historical to modern, and from passenger liners to working ships of all kinds and sizes. Each year he displays a few of his models in our Exhibit Hall. (4 of 5)",
	"The Exhibit Hall is painted in art deco colors, and is a very pleasant atmosphere for viewing these beautiful models. There are other displays here featuring short histories of each of the model ships. There is also a feature from one of the local papers about Ken's interesting hobby. (5 of 5 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/donate" + currImg + ".jpg"
	document.getElementById("imgText").innerHTML = captionText[currImg]
}
