// Russell Thompson
// Project: FHCC website V3.0  
// Page: changes images on accommidations page, sub=presidential
// Version Control
// 		Version 1.0
// 		Date 09/04/2008
// 
// Copyright (c) 2008 Russell Thompson and Freelance I.T. Solutions

// I'm using three different files for this to keep load time down to a minimum.  Each file should only have to load 4 images or less

// DECLAIRATIONS

var maxImages = 3;
var imageArray = new Array();

imageArray[0] = "../images/presidential_01.jpg";
imageArray[1] = "../images/presidential_02.jpg";
imageArray[2] = "../images/presidential_03.jpg";

// PRE-LOAD THE IMAGES

for (var i = 0; i < maxImages; i++)
{
	eval ('pic' + i + ' = new Image();');
	eval ('pic' + i + '.src = imageArray[i];');
}

// MOUSE OVER EVENTS

function imageChange (theNum)
{
	document.mainImage.src = imageArray[theNum];
} // end function to change the images
