// Define the directory where all the related images are located
var imageDir="./Images/";

if(document.images) {
	awardsoff		= new Image();
	awardsoff.src	= imageDir + "ButtonAwardsOff.png";
	awardson		= new Image();
	awardson.src	= imageDir + "ButtonAwardsOn.png";
	galleryoff		= new Image();
	galleryoff.src	= imageDir + "ButtonGalleryOff.png";
	galleryon		= new Image();
	galleryon.src	= imageDir + "ButtonGalleryOn.png";
	infooff			= new Image();
	infooff.src		= imageDir + "ButtonInfoOff.png";
	infoon			= new Image();
	infoon.src		= imageDir + "ButtonInfoOn.png";
	mapoff			= new Image();
	mapoff.src		= imageDir + "ButtonMapOff.png";
	mapon			= new Image();
	mapon.src		= imageDir + "ButtonMapOn.png";
	menuoff			= new Image();
	menuoff.src		= imageDir + "ButtonMenuOff.png";
	menuon			= new Image();
	menuon.src		= imageDir + "ButtonMenuOn.png";
	offersoff		= new Image();
	offersoff.src	= imageDir + "ButtonOffersOff.png";
	offerson		= new Image();
	offerson.src	= imageDir + "ButtonOffersOn.png";
}

// Swap the image to the 'on' version on mouseover
function roll_on(srcName) {
	if(document.images) {
		document[srcName].src = imageDir + "Button" + srcName + "On.png";
	}
}

// Swap the image to the 'off' version on mouseout
function roll_off(srcName) {
	if(document.images) {
		document[srcName].src = imageDir + "Button" + srcName + "Off.png";
	}
}
