/* 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://manbartlett.com/images/production/HOME/rotating/140hBerlin.jpg";
  bannerImg[1]="http://manbartlett.com/images/production/HOME/rotating/24hKith_bust.jpg";
  bannerImg[2]="http://manbartlett.com/images/production/HOME/rotating/parabolic.jpg";
  bannerImg[3]="http://manbartlett.com/images/production/HOME/rotating/casestudydrinker.jpg";
  bannerImg[4]="http://manbartlett.com/images/production/HOME/rotating/24hPort.jpg";
  bannerImg[5]="http://manbartlett.com/images/production/HOME/rotating/firstbirth.jpg"; 
  bannerImg[6]="http://manbartlett.com/images/production/HOME/rotating/belle.jpg";
  bannerImg[7]="http://manbartlett.com/images/production/HOME/rotating/24hclassaction.jpg";
  bannerImg[8]="http://manbartlett.com/images/production/HOME/rotating/pointpiece09_18_10.jpg";
  bannerImg[9]="http://manbartlett.com/images/production/HOME/rotating/october_print.jpg";
  bannerImg[10]="http://manbartlett.com/images/production/HOME/rotating/7transmissions.jpg";
  bannerImg[11]="http://manbartlett.com/images/production/HOME/rotating/thehandthatmoves.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;

