/*** SET BUTTON'S FOLDER HERE ***/
var buttonFolder = "images/";

/*** SET BUTTONS' FILENAMES HERE ***/
upSources = new Array("home_up.png","details_up.png","location_up.png","pictures_up.png","booking_up.png","about_up.png","commentsup.png");

overSources = new Array("home_over.png","details_over.png","location_over.png","pictures_over.png","booking_over.png","about_over.png","commentsover.png");


//*** NO MORE SETTINGS BEYOND THIS POINT ***//
totalButtons = upSources.length;


// PRELOAD MAIN MENU BUTTON IMAGES
for ( x=0; x<totalButtons; x++ ) {
	buttonUp = new Image();
	buttonUp.src = buttonFolder + upSources[x];
	buttonOver = new Image();
	buttonOver.src = buttonFolder + overSources[x];
}


//*** MAIN BUTTONS FUNCTIONS ***//
// SET MOUSEOVER BUTTON
function setOverImg(But, ID) {
	document.getElementById('button' + But + ID).src = buttonFolder + overSources[But-1];
}

// SET MOUSEOUT BUTTON
function setOutImg(But, ID) {
	document.getElementById('button' + But + ID).src = buttonFolder + upSources[But-1];
}


