/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Lee Underwood :: http://javascript.internet.com/ */

var spotlightImg = new Array();
  // Enter the names of the images below
  spotlightImg[0]="./img/spotlight1.jpg";
  spotlightImg[1]="./img/spotlight2.jpg";
  spotlightImg[2]="./img/spotlight3.jpg";

var newSpotlight = 0;
var totalSpot = spotlightImg.length;

function cycleSpot() {
  newSpotlight++;
  if (newSpotlight == totalSpot) {
    newSpotlight = 0;
  }
  document.spotlight.src=spotlightImg[newSpotlight];
  // set the time below for length of image display
  // i.e., "4*1000" is 4 seconds
  setTimeout("cycleSpot()", 6*1000);
}
window.onload=cycleSpot;



