// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

var Pic = new Array();
Pic[0] = Array(4, "Photos Provided by Ms. Otto's Photography Students", "images/slideshow.php?id=36", "");
Pic[1] = Array(4, "Photos Provided by Ms. Otto's Photography Students", "images/slideshow.php?id=42", "");
Pic[2] = Array(4, "Photos Provided by Ms. Otto's Photography Students", "images/slideshow.php?id=41", "");
Pic[3] = Array(4, "Photos Provided by Ms. Otto's Photography Students", "images/slideshow.php?id=39", "");
Pic[4] = Array(4, "Photos Provided by Ms. Otto's Photography Students", "images/slideshow.php?id=37", "");
Pic[5] = Array(4, "Photos Provided by Ms. Otto's Photography Students", "images/slideshow.php?id=40", "");
Pic[6] = Array(4, "Photos Provided by Ms. Otto's Photography Students", "images/slideshow.php?id=38", "");
Pic[7] = Array(4, "Photos Provided by Ms. Otto's Photography Students", "images/slideshow.php?id=48", "");
Pic[8] = Array(4, "Photos Provided by Ms. Otto's Photography Students", "images/slideshow.php?id=49", "");
Pic[9] = Array(4, "Photos Provided by Ms. Otto's Photography Students", "images/slideshow.php?id=50", "");
Pic[10] = Array(4, "Photos Provided by Ms. Otto's Photography Students", "images/slideshow.php?id=51", "");

var preLoad = new Array();
for(var i = 0; Pic.length > i; i++) {
	preLoad[i] = new Image();
	preLoad[i].src = Pic[i][2];
}

var link = document.getElementById("link");
var caption = document.getElementById("caption");
var image = document.getElementById("image");

var j = 0;
function runSlideShow() {
	if(0 == Pic.length) { return; }
	
	if(document.all) {
		image.style.filter="blendTrans(duration=2)";
		image.filters.blendTrans.Apply();
	}
	link.href = Pic[j][3];
	caption.innerHTML = Pic[j][1];
	image.src = preLoad[j].src;
	if(document.all) {
		image.filters.blendTrans.Play();
	}
	
	setTimeout('runSlideShow()', Pic[j][0] * 1000);
	j = (j + 1) % Pic.length;
}
window.onload = runSlideShow;
