<!--
 
// ======================================================================
// 		THE USER SHOULD CHANGE THIS PART TO CUSTOMIZE THE SCRIPT
// ======================================================================
 
// gSlideshowInterval - determines how often the slide show is
// refreshed (time given in seconds).
 
gSlideshowInterval = 3;
 
// gNumberOfImages - the total number of images available for display.
// This is used both to set up the image array and to manage the actual
// slideshow.
 
gNumberOfImages = 6;
 
// gImages - An array that holds the URLs identifying the images to be
// shown in the slide show.
 
gImages = new Array(gNumberOfImages);
 
// Fill in the array with the URLs of the images that you want to use.
 
gImages[0] = "images/rubicon.jpg"
gImages[1] = "images/colbert.jpg"
gImages[2] = "images/foss.jpg"
gImages[3] = "images/dodge.jpg"
gImages[4] = "images/paganelli.jpg"
gImages[5] = "images/britton.jpg"
 
// ======================================================================
// 							DON'T CHANGE THIS PART
// ======================================================================
 
// canManipulateImages - check if the browser we're using can do
// clever stuff with document images.
 
function canManipulateImages() {
	if (document.images)
		return true;
	else
		return false;
}
 
// loadSlide
//
// Load a given image into place by substituting its URL for the URL 
// currently loaded by the <IMG> object called 'slide'. 
 
function loadSlide(imageURL) {
	if (gImageCapableBrowser) {
		document.slide.src = imageURL;
		return false;
	}
	else {
		return true;
	}
}
 
// nextSlide
//
// Sequential rotation desired, not random.
 
function nextSlide() {
		gCurrentImage = (gCurrentImage + 1) % gNumberOfImages;
		loadSlide(gImages[gCurrentImage]);
}
 
// gImageCapableBrowser - is this browser hip to images? Set up
// a global variable so that we don't have to keep calling a function
// (useful if the function becomes costly to compute).
 
gImageCapableBrowser = canManipulateImages();
 
// gCurrentImage - a variable used to keep track of the image
// currently being displayed to the user.
 
gCurrentImage = 0;
 
// Set up the timer. This will call the 'nextSlide()' function repeatedly at 
// the specified interval (and will continue to do so until the page is unloaded).
 
setInterval("nextSlide()",gSlideshowInterval * 1000);
 
// --> 
