
<!-- 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.bloodnj.org/images/new_bottle2.jpg";
  bannerImg[1]="http://www.bloodnj.org/images/new_bottle3.jpg";
  bannerImg[2]="http://www.bloodnj.org/images/new_bottle4.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., "2*1000" is 2 seconds
  setTimeout("cycleBan()", 2*1000);
}
window.onload=cycleBan;



