var bannerImg = new Array();
  // Enter the names of the images below
  bannerImg[0]="img/products/fasteners/1.jpg";
  bannerImg[1]="img/products/fasteners/2.jpg";
  bannerImg[2]="img/products/fasteners/3.jpg";
  bannerImg[3]="img/products/fasteners/4.jpg";
  bannerImg[4]="img/products/fasteners/5.jpg";
  bannerImg[5]="img/products/fasteners/6.jpg";
  bannerImg[6]="img/products/fasteners/7.jpg";  


var trackImg = new Array();
  // Enter the names of the images below
  trackImg[0]="img/products/track/1.jpg";
  trackImg[1]="img/products/track/2.jpg";
  trackImg[2]="img/products/track/3.jpg";
  
var plateImg = new Array();
  // Enter the names of the images below
  plateImg[0]="img/products/plates/1.jpg";
  plateImg[1]="img/products/plates/2.jpg"; 
  plateImg[2]="img/products/fasteners/8.jpg";

var shoulderImg = new Array();
  // Enter the names of the images below
  shoulderImg[0]="img/products/weldon/1.jpg";
  shoulderImg[1]="img/products/weldon/2.jpg";
  
var stressingImg = new Array();
  // Enter the names of the images below
  stressingImg[0]="img/products/stressing/1.jpg";
  stressingImg[1]="img/products/stressing/2.jpg";  
  stressingImg[2]="img/products/stressing/3.jpg";  
      
var padsImg = new Array();
  // Enter the names of the images below
  padsImg[0]="img/products/other/2.jpg";  
  padsImg[1]="img/products/other/3.jpg";
        
var otherImg = new Array();
  // Enter the names of the images below
  otherImg[0]="img/products/other/1.jpg";
  otherImg[1]="img/products/other/5.jpg";
  
var zlrImg = new Array();
  // Enter the names of the images below
  zlrImg[0]="img/products/other/7.jpg";
  zlrImg[1]="img/products/zlr2_thumb.jpg";  

var newBanner = 0;
var newTrack = 0;
var newPlate = 0;
var newShoulder = 0;
var newStressing = 0;
var newPads = 0;
var newOther = 0;
var newZlr = 0;

var totalBan = bannerImg.length;
var totalTrack = trackImg.length;
var totalPlate = plateImg.length;
var totalShoulder = shoulderImg.length;
var totalStressing = stressingImg.length;
var totalPads = padsImg.length;
var totalOther = otherImg.length;
var totalZlr = zlrImg.length;

function cycleBan() {
	if (document.images) {
	
  newBanner++;
  if (newBanner == totalBan) {
    newBanner = 0;
  }
  document.banner.src=bannerImg[newBanner];
  
  newTrack++;
  if (newTrack == totalTrack) {
    newTrack = 0;
  }
  document.track.src=trackImg[newTrack];

  newPlate++;
  if (newPlate == totalPlate) {
    newPlate = 0;
  }
  document.plate.src=plateImg[newPlate];
  
  newShoulder++;
  if (newShoulder == totalShoulder) {
    newShoulder = 0;
  }
  document.shoulder.src=shoulderImg[newShoulder];
  
  newStressing++;
  if (newStressing == totalStressing) {
    newStressing = 0;
  }
  document.stressing.src=stressingImg[newStressing];
  
  newPads++;
  if (newPads == totalPads) {
    newPads = 0;
  }
  document.pads.src=padsImg[newPads];
  
  newOther++;
  if (newOther == totalOther) {
    newOther = 0;
  }
  document.other.src=otherImg[newOther];
  
  newZlr++;
  if (newZlr == totalZlr) {
    newZlr = 0;
  }
  document.zlr.src=zlrImg[newZlr];
  
  
  // set the time below for length of image display
  // i.e., "4*1000" is 4 seconds
  setTimeout("cycleBan()", 4*1000);
  }
}

window.onload=cycleBan;
