pageLoaded = 0;				// Prevent access to layers until they're loaded

// Set the pageLoaded variable to denote that the layers are ready to be used 
function doLoadProc() {
	pageLoaded = 1;
}

// swapImg - swaps an image for another that has already been preloaded.
function swapImg(imgName, preloadedImgName) {
	document[imgName].src = eval(preloadedImgName).src;
}

function preload(imgSrc) {
	img = new Image();
	img.src = imgSrc;
	return img;
}


programOff = new Image(); programOff.src="/common/images/nav/program.gif";
programOn = new Image(); programOn.src="/common/images/nav/programOn.gif";
alumniOff = new Image(); alumniOff.src="/common/images/nav/alumni.gif";
alumniOn = new Image(); alumniOn.src="/common/images/nav/alumniOn.gif";
boardOfDirectorsOff = new Image(); boardOfDirectorsOff.src="/common/images/nav/boardOfDirectors.gif";
boardOfDirectorsOn = new Image(); boardOfDirectorsOn.src="/common/images/nav/boardOfDirectorsOn.gif";
aboutOff = new Image(); aboutOff.src="/common/images/nav/about.gif";
aboutOn = new Image(); aboutOn.src="/common/images/nav/aboutOn.gif";
homeOff = new Image(); homeOff.src="/common/images/nav/home.gif";
homeOn = new Image(); homeOn.src="/common/images/nav/homeOn.gif";


function img_act(img) {
	if (document.images) {
	imgOn = eval(img + "On.src");
	document [img].src = imgOn;
	}
}

function img_inact(img) {
	if (document.images) {
	imgOff = eval(img + "Off.src");
	document [img].src = imgOff;
	}
}
