// JavaScript Document

<!-- Original:  D. Keith Higgs (dkh2@po.cwru.edu) -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var timeDelay = 3; // change delay time in seconds
var Pix = new Array
("images/photo1.jpg" 
,"images/photo2.jpg" 
,"images/photo3.jpg" 
,"images/photo4.jpg" 
,"images/photo5.jpg" 
,"images/photo6.jpg" 
,"images/photo7.jpg" 
,"images/photo8.jpg" 
,"images/photo9.jpg" 
,"images/photo10.jpg" 
,"images/photo11.jpg"
,"images/photo12.jpg"
,"images/photo13.jpg"
,"images/photo14.jpg"
,"images/photo15.jpg"
,"images/photo16.jpg"
,"images/photo17.jpg"
,"images/photo18.jpg"
,"images/photo19.jpg"
);
var howMany = Pix.length;
timeDelay *= 800;
var PicCurrentNum = 0;
var PicCurrent = new Image();
PicCurrent.src = Pix[PicCurrentNum];
function startPix() {
setInterval("slideshow()", timeDelay);
}
function slideshow() {
PicCurrentNum++;
if (PicCurrentNum == howMany) {
PicCurrentNum = 0;
}
PicCurrent.src = Pix[PicCurrentNum];
document["ChangingPix"].src = PicCurrent.src;
}
//  End -->
