/* 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 sponsorImg = new Array();
  // Enter the names of the images below
  sponsorImg[0]="images/sponsors/1.gif";
  sponsorImg[1]="images/sponsors/1a.gif";
  sponsorImg[2]="images/sponsors/1a1.gif";
  sponsorImg[3]="images/sponsors/1butler.gif";
  sponsorImg[4]="images/sponsors/1compsuspension.gif";
  sponsorImg[5]="images/sponsors/1cory.gif";
  sponsorImg[6]="images/sponsors/1crow.gif";
  sponsorImg[7]="images/sponsors/1dj.gif";
  sponsorImg[8]="images/sponsors/1extreme.gif";
  sponsorImg[9]="images/sponsors/1hilborn.gif";
  sponsorImg[10]="images/sponsors/1hinchman.gif";
  sponsorImg[11]="images/sponsors/1integra.gif";
  sponsorImg[12]="images/sponsors/1kaeding.gif";
  sponsorImg[13]="images/sponsors/1keizer.gif";
  sponsorImg[14]="images/sponsors/1portcity.gif";
  sponsorImg[15]="images/sponsors/1rodend.gif";
  sponsorImg[19]="images/sponsors/1sbi.gif";
  sponsorImg[16]="images/sponsors/1saferacer.gif";
  sponsorImg[17]="images/sponsors/1saldana.gif";
  sponsorImg[18]="images/sponsors/1sander.gif";
  
  
var newBanner = 0;
var totalBan = sponsorImg.length;

function cycleBan() {
  newBanner++;
  if (newBanner == totalBan) {
    newBanner = 0;
  }
  document.sponsor.src=sponsorImg[newBanner];
  // set the time below for length of image display
  // i.e., "4*1000" is 4 seconds
  setTimeout("cycleBan()", 4*1000);
}
window.onload=cycleBan;




