<!-- Paste this code into an external JavaScript file named: photo.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 photoImg = new Array();
  // Enter the names of the images below
  photoImg[0]="/new_root/images/ads/Advocacy_sm.jpg";
  photoImg[1]="/new_root/images/ads/Education_sm.jpg";
  photoImg[2]="/new_root/images/ads/Heritage_sm.jpg";
  photoImg[3]="/new_root/images/ads/Support_sm.jpg";
  photoImg[4]="/new_root/images/ads/Opportunities_sm.jpg"

var newphoto = 0;
var totalpho = photoImg.length;

function cyclePho() {
  newphoto++;
  if (newphoto == totalpho) {
    newphoto = 0;
  }
  document.photo.src=photoImg[newphoto];
  // set the time below for length of image display
  // i.e., "4*1000" is 4 seconds
  setTimeout("cyclePho()", 6*1000);
}
window.onload=cyclePho;

