<!-- 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
  bannerImg[0]="http://www.cctexas.com/CCFD/image1.jpg";
  bannerImg[1]="http://www.cctexas.com/CCFD/image1.jpg";
  bannerImg[2]="http://www.cctexas.com/CCFD/image2.jpg";
  bannerImg[3]="http://www.cctexas.com/CCFD/image3.jpg";
  bannerImg[4]="http://www.cctexas.com/CCFD/image4.jpg";
  bannerImg[5]="http://www.cctexas.com/CCFD/image5.jpg";
  bannerImg[6]="http://www.cctexas.com/CCFD/image6.jpg";
  bannerImg[7]="http://www.cctexas.com/CCFD/image7.jpg";
  bannerImg[8]="http://www.cctexas.com/CCFD/image8.jpg";
  bannerImg[9]="http://www.cctexas.com/CCFD/image9.jpg";
  bannerImg[10]="http://www.cctexas.com/CCFD/image10.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()", 3*1000);
}
window.onload=cycleBan;