﻿/* 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] = "/App_Themes/Balcon/images/homePic2.jpg";
bannerImg[1] = "/App_Themes/Balcon/images/homePic3.jpg";
bannerImg[2] = "/App_Themes/Balcon/images/homePic4.jpg";
bannerImg[3] = "/App_Themes/Balcon/images/homePic5.jpg";

var newBanner = 0;
var totalBan = bannerImg.length;

function cycleBan() {    
    if (newBanner == totalBan) {
        newBanner = 0;
    }
    document.banner.src = bannerImg[newBanner];
    // set the time below for length of image display
    // i.e., "4*1000" is 4 seconds
    setTimeout("cycleBan()", 10 * 1000);
    newBanner++;
}
window.onload = cycleBan;
