/* 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 bannerImg = new Array();
  // Enter the names of the images below
  bannerImg[0]="../images/2.png";
  bannerImg[1]="../images/1fr.png";
  bannerImg[2]="../images/3.png";
  bannerImg[3]="../images/4.png";
  bannerImg[4]="../images/5.png";


var newBanner = 0;
var totalBan = bannerImg.length;

function cycleBan() {
  newBanner++;
  if (newBanner == totalBan) {
    newBanner = 0;
  }
  document.banner.src=bannerImg[newBanner];
  // set the time below for length of image display
  // i.e., "6*1000" is 6 seconds
  setTimeout("cycleBan()", 4*1000);
}
window.onload=cycleBan;
