<!-- Paste this code into an external JavaScript file named: banner.js.js  -->

/* 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
var imagePath = 'images/';
var imageBannerPath = 'images/banner/'

	bannerImg[0] = "images/slideshow/scottthedj.jpg"; // this is because the banner skips the first image right away. 
	bannerImg[1] =  imagePath + "goodforgary.jpg";
	bannerImg[2] =  imagePath + "shag.jpg";
	bannerImg[3] = "images/slideshow/snaggletoof.jpg";
	bannerImg[4] = "images/audiocircus.jpg";
	bannerImg[5] =  imagePath + "tracyblakeproject.jpg";
	bannerImg[6] =  imagePath + "brassmonkey.jpg";
	bannerImg[7] = "images/slideshow/lamjam.jpg";
	bannerImg[8] = "images/slideshow/eagleriver.jpg";
	bannerImg[9] =  imagePath + "chrisbrooksband.jpg";
	bannerImg[10] =  imagePath + "slapshot.jpg"
	bannerImg[11] =  imagePath + "theexpressband.jpg"
	bannerImg[12] = "images/slideshow/mrwinkyband.jpg";
	bannerImg[13] = "images/slideshow/deepfreeze.jpg";	
	bannerImg[14]= "images/slideshow/scottkoffmanband.jpg";
	bannerImg[15] = "images/slideshow/highandmighty.jpg";	


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., "4*1000" is 4 seconds
  setTimeout("cycleBan()", 4*1000);
}
window.onload=cycleBan;

