// JavaScript Document

//Slide show

//set image paths
src = ["images/2009-1.jpg", "images/2009-2.jpg", "images/2009-3.jpg", "images/2009-4.jpg", "images/2009-5.jpg", "images/2009-6.jpg", "images/2009-7.jpg", "images/2009-8.jpg"]


//set duration for each image
duration = 4;

//Please do not edit below
ads=[]; ct=0;
function switchAd() {
var n=(ct+1)%src.length;
if (ads[n] && (ads[n].complete || ads[n].complete==null)) {
document["photo"].src = ads[ct=n].src;
}
ads[n=(ct+1)%src.length] = new Image;
ads[n].src = src[n];
setTimeout("switchAd()",duration*1000);
}
onload = function(){
if (document.images)
switchAd();
}
