/* 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]="http://www.accessbdd.com/images/background/home_01.jpg";
	bannerImg[1]="http://www.accessbdd.com/images/background/home_02.jpg"; 
	bannerImg[2]="http://www.accessbdd.com/images/background/home_03.jpg";
	bannerImg[3]="http://www.accessbdd.com/images/background/home_04.jpg";
	bannerImg[4]="http://www.accessbdd.com/images/background/home_05.jpg";

var newBanner = 0;
var totalBan = bannerImg.length;

function cycleBan() {
	newBanner++;
	if (newBanner == totalBan) {
		newBanner = 0;
	}
	document.getElementById("rotatingBg").background=bannerImg[newBanner];
	// set the time below for length of image display
	// i.e., "4*1000" is 4 seconds
	setTimeout("cycleBan()", 5*1000);
}
window.onload=cycleBan;