function showImage() {
	var docImage = document.images.length - 1;
	document.images[docImage].src = imageArray[curImage].src;
	document.images[docImage].alt = altArray[curImage];
	if (document.getElementById) 
	{
		document.getElementById("alt1").innerHTML = altArray[curImage];
		document.getElementById("alt2").innerHTML = alt2Array[curImage];
	}
}
function nextShow() {
	++curImage;
	if (curImage > maxImage) { curImage = 0; }
	showImage();
}
function nextImage() {
	if (showId != null) { clearInterval(showId); }
	nextShow();
}
function prevImage() {
	if (showId != null) { clearInterval(showId); }
	--curImage;
	if (curImage < 0) { curImage = maxImage; }
	showImage();
}
function startShow() {
	if (showId != null) { clearInterval(showId); }
	curImage = maxImage;
	showId = setInterval("nextShow()", 2000);
}
