// IMAGE FLIPPER
// Images must be named 1.jpg, 2.jpg, etc. in sequence.
// Images must be located in same directory as the page (can be modified for other directories)
// Set the default image in <IMG src="...">
// Set two options below (delay and number of images to load):

delay = 4000     // set the delay in milliseconds (2000=2 seconds)
imageTotal = 6   // set the total number of images to load
imageNum = 1     // first image to animate

// Preload animation images
theImages = new Array()
for(i = 1; i <= imageTotal; i++) {
   theImages[i] = new Image()
   theImages[i].src = "../photos/" + i + ".jpg"
//alert(theImages[i].src)
}

function animate() {
   document.photo.src = theImages[imageNum].src
// self.status=document.photo.src
   imageNum++
   if(imageNum > imageTotal) {
      imageNum = 1
   }
}