// JavaScript Document
// Declare Variables

var pause = 3500
var n = 0

var imgs = new Array ( "../Images/Slave1.jpg",
        "../Images/50Sports.jpg",
        "../Images/Bessie03.jpg",
				"../Images/gathfight.jpg",
				"../Images/GoliathAndScourge1.jpg",
				"../Images/HemlockAndGemorra1.jpg",
				"../Images/ManAndLion.jpg",
				"../Images/WomanAndLioness.jpg"
				);


//preload2 all the images
var preload = new Array();

for (var i = 1; i < imgs.length; i++ )
{
   preload[i] = new Image();
   preload[i].src = imgs[i];
}

// a function to display each image for the set interval

function rotate()
{
   document.images.pic.src = imgs[n];   
   ( n == (imgs.length - 1 )) ? n = 0 : n++;
   setTimeout( "rotate()", pause );
}

//specify the onload event-handler
window.onload = rotate;

