/*** SET BUTTON'S FOLDER HERE ***/
var buttonFolder = "menu/";

/*** SET BUTTONS' FILENAMES HERE ***/
upSources = new Array("0-home-1.png","1-news-1.png","2-flug-1.png","3-bilder-1.png","4-special-1.png","5-ausb-1.png","6-brief-1.png","7-muster-1.png","8-kontakt-1.png");

overSources = new Array("0-home-2.png","1-news-2.png","2-flug-2.png","3-bilder-2.png","4-special-2.png","5-ausb-2.png","6-brief-2.png","7-muster-2.png","8-kontakt-2.png");


//*** NO MORE SETTINGS BEYOND THIS POINT ***//
totalButtons = upSources.length;

//*** MAIN BUTTONS FUNCTIONS ***//
// PRELOAD MAIN MENU BUTTON IMAGES
function preload() {
	for ( x=0; x<totalButtons; x++ ) {
		buttonUp = new Image();
		buttonUp.src = buttonFolder + upSources[x];
		buttonOver = new Image();
		buttonOver.src = buttonFolder + overSources[x];
	}
}

// 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];
}


//preload();
