// JavaScript Document

/* 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 signImg = new Array();
  // Enter the names of the images below
  signImg[0]="TheSign1.png";
  signImg[1]="TheSign2.png";
  signImg[2]="TheSign3.png";
  signImg[3]="TheSign4.png";

var newSign = 0;
var totalSign = signImg.length;

function cycleSign() {
  newSign++;
  if (newSign == totalSign) {
    newSign = 0;
  }
  document.sign.src=signImg[newSign];
  // set the time below for length of image display
  // i.e., "4*1000" is 4 seconds
  setTimeout("cycleSign()", 8*1000);
}
window.onload=cycleSign;

