function NewButton(theName, theWidth, theHeight, isSubfolder)
{
	buttons[theName] = new Array();
	buttons[theName]["out"] = new Image(theWidth, theHeight);
	buttons[theName]["over"] = new Image(theWidth, theHeight);
	if (isSubfolder == 0)
		thePath="";
	else if (isSubfolder == 1)
		thePath="../";
	else if (isSubfolder == 3)
		thePath="../../../";
	else
		thePath="../../";
	
	buttons[theName]["out"].src = thePath+"images/" + theName + ".jpg";
	buttons[theName]["over"].src = thePath+"images/" + theName + "b.jpg";
}	// NewButton

function HandleOver(theName)
{	
	document.images[theName].src = buttons[theName]["over"].src;
}	// HandleOver

function HandleOut(theName)
{	
	document.images[theName].src = buttons[theName]["out"].src;
}	// HandleOut

function InitButtons(isSubfolder)
{
	buttons = new Array();

	NewButton("home",70,20,isSubfolder);
	NewButton("orchesterl",105,20,isSubfolder);
	NewButton("konzerte",100,20,isSubfolder);
	NewButton("sponsoring",115,20,isSubfolder);
	NewButton("shop",70,20,isSubfolder);
	NewButton("kontakte",100,20,isSubfolder);
	NewButton("intern",60,20,isSubfolder);
}	// InitButtons
