/***********************************************************************
* Photo Slideshow (With Captions and Special Effects) 
* Created by Grahf (Jonathan Hatten) for www.POBOB.com
***********************************************************************/

var photo=new Array() // Photos
photo[1]="photos/history/small/PapaJohn.jpg";
//photo[2]="photos/history/small/Cutter.jpg";
photo[2]="photos/history/small/Teach&BobbyJ.jpg";

var caption = new Array(); // Captions
caption[1]="Papa John & his Wife";
//caption[2]="Cutter";
caption[2]="Teach & Bobby J";

var count=1; // Array Counter
var delay=6000; // 6 seconds
var ie=window.createPopup;
// var wb="The slide show below only works in IE";
var slideimage=new Array()
for (i=0;i<photo.length;i++){
slideimage[i]=new Image()
slideimage[i].src=photo[i]
}

function changeslide(){
//function changeslide(count, slideimage){
if (ie){ 
slideshow.filters[0].apply();
document.images.slideshow.src=slideimage[count].src;
}else{
document.images.slideshow.src=slideimage[count].src;
}
if (ie){ 
slideshow.filters[0].play();
document.getElementById("memorial").innerHTML=caption[count];
count++;
}else{ 
// document.getElementById("memorial").innerHTML=wb;
document.getElementById("memorial").innerHTML=caption[count];
count++;
}
if (count==slideimage.length){
count=1;
}
setTimeout("changeslide()",delay);
//setTimeout("changeslide(count, slideimage)",delay);
}
window.onload=new Function("setTimeout('changeslide()',delay)")
//window.onload=new Function("setTimeout('changeslide(count, slideimage)',delay)")