BannerArray = new Array (3); // This must match the total number of images in array.
BannerArray[0] = "images/banner1.jpg";
BannerArray[1] = "images/banner2.jpg";
BannerArray[2] = "images/banner3.jpg";
BannerArray[3] = "images/banner4.jpg";

current_banner=0; // This number represents which banner to use when page loads.
banner=BannerArray.length;
function CycleBanner() {
if (current_banner==banner) {
current_banner=0;
}
document.MyBanner.src=BannerArray[current_banner];
current_banner ++;
// Change the number below to alter the amount of seconds each banner appears for.
setTimeout("CycleBanner()", 5*1000);
}
