/* 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]="picts/worry2.jpg";
  bannerImg[1]="picts/LawOffice7Faded.jpg";
  bannerImg[2]="picts/LegalServicesFloridian.jpg";
  bannerImg[3]="picts/injury4.jpg";
  bannerImg[4]="picts/injury.jpg";
  bannerImg[5]="picts/LawOffice7Faded.jpg";
  bannerImg[6]="picts/LegalServicesFloridian.jpg";
  bannerImg[7]="picts/arrested2.jpg";
  bannerImg[8]="picts/LawOffice7Faded.jpg";
  bannerImg[9]="picts/LegalServicesFloridian.jpg";
  bannerImg[10]="picts/bankruptcy.jpg";
  bannerImg[11]="picts/LawOffice7Faded.jpg";  
  bannerImg[12]="picts/LegalServicesFloridian.jpg";
  bannerImg[13]="picts/familylaw.jpg";
  bannerImg[14]="picts/divorce.jpg";
  bannerImg[15]="picts/childsupport.jpg";
  bannerImg[16]="picts/LawOffice7Faded.jpg"; 
  bannerImg[17]="picts/LegalServicesFloridian.jpg";
  bannerImg[18]="picts/BusinessCivil.jpg";
  bannerImg[19]="picts/LawOffice7Faded.jpg"; 
  bannerImg[20]="picts/LegalServicesFloridian.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()",10*1000);
}
