<!--
if (document.images){
img1on = new Image();
img1on.src="images/home_on.gif";
img2on = new Image();
img2on.src="images/about_on.gif";
img3on = new Image();
img3on.src="images/programs_on.gif";
img4on = new Image();
img4on.src="images/kidsinaction_on.gif";
img5on = new Image();
img5on.src="images/testimonials_on.gif";
img6on = new Image();
img6on.src="images/parkdistrictlinks_on.gif";
img7on = new Image();
img7on.src="images/contact_on.gif";

img1off = new Image();
img1off.src="images/home.gif";
img2off = new Image();
img2off.src="images/about.gif";
img3off = new Image();
img3off.src="images/programs.gif";
img4off = new Image();
img4off.src="images/kidsinaction.gif";
img5off = new Image();
img5off.src="images/testimonials.gif";
img6off = new Image();
img6off.src="images/parkdistrictlinks.gif";
img7off = new Image();
img7off.src="images/contact.gif";
}

function imgOn (imgName){
  if(document.images){
        document[imgName].src=eval(imgName + "on.src");
        }
}
function imgOff (imgName){
  if(document.images){
        document[imgName].src=eval(imgName +"off.src");
        }
}
//-->



<!-- Begin
var interval = 6; // delay between rotating images (in seconds)
var random_display = 1; // 0 = no, 1 = yes
interval *= 1000;

var image_index = 0;
image_list = new Array();
image_list[image_index++] = new imageItem("images/_alt_06.jpg");
image_list[image_index++] = new imageItem("images/_alt_18.jpg");
image_list[image_index++] = new imageItem("images/_alt_19.jpg");
image_list[image_index++] = new imageItem("images/_alt_20.jpg");
image_list[image_index++] = new imageItem("images/_alt_21.jpg");
image_list[image_index++] = new imageItem("images/_alt_22.jpg");
image_list[image_index++] = new imageItem("images/_alt_23.jpg");
image_list[image_index++] = new imageItem("images/_alt_24.jpg");
image_list[image_index++] = new imageItem("images/_alt_main.jpg");

var number_of_image = image_list.length;
function imageItem(image_location) {
this.image_item = new Image();
this.image_item.src = image_location;
}
function get_ImageItemLocation(imageObj) {
return(imageObj.image_item.src)
}
function generate(x, y) {
var range = y - x + 1;
return Math.floor(Math.random() * range) + x;
}
function getNextImage() {
if (random_display) {
image_index = generate(0, number_of_image-1);
}
else {
image_index = (image_index+1) % number_of_image;
}
var new_image = get_ImageItemLocation(image_list[image_index]);
return(new_image);
}
function rotateImage(place) {
var new_image = getNextImage();
document[place].src = new_image;
var recur_call = "rotateImage('"+place+"')";
setTimeout(recur_call, interval);
}
//  End -->





