// Cross-browser cleanup by Paul Anderson, CNET Builder.com. All rights reserved.


//replace the number 5 in the next line with the total number of slides in the show:
var numSlides = 52;
var currentSlide = numSlides;

// remove the next 6 lines if you don't want captions, or customize the captions
var captionTxt = new Array(numSlides);
captionTxt[1] = "This is my first picture."
captionTxt[2] = "This is my second picture."
captionTxt[3] = "This is my third picture."
captionTxt[4] = "This is my fourth picture."
captionTxt[5] = "This is my fifth picture."

function setUp() {
if (!document.all) {
document.all = document;
for (i=1;i<=numSlides;i++) document.all[("image"+i)].style=document.all[("image"+i)];
}
switchSlide(1);
}

function switchSlide(sDir) {
newSlide = currentSlide + sDir;
if (!newSlide) newSlide=numSlides;
if (newSlide > numSlides) newSlide=1;
document.all[("image"+newSlide)].style.visibility="visible";
document.all[("image"+currentSlide)].style.visibility="hidden";

// remove the next line if you don't want captions:
//document.all["captions"].document.forCaptions.captionsText.value=captionTxt[newSlide];

currentSlide = newSlide;
}


