function NewButton(theName, theWidth, theHeight, isSubfolder)
{
	buttons[theName] = new Array();
	buttons[theName]["out"] = new Image(theWidth, theHeight);
	buttons[theName]["over"] = new Image(theWidth, theHeight);
	buttons[theName]["text"] = new Image(120, 36);
	buttons[theName]["out"].src = (isSubfolder?"../":"") + "images/" + theName + "_out.gif";
	buttons[theName]["over"].src = (isSubfolder?"../":"") + "images/" + theName + "_over.gif";
	buttons[theName]["text"].src = (isSubfolder?"../":"") + "images/" + theName + "_text.gif";
}	// NewButton

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

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

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

	NewButton("Home",100,20,isSubfolder);
	NewButton("Links",100,20,isSubfolder);
	NewButton("SAV",100,20,isSubfolder);
	NewButton("Kontakt",100,20,isSubfolder);
	NewButton("Sponsoren",100,20,isSubfolder);
	NewButton("Warum",120,52,isSubfolder);
	NewButton("Werbung",120,36,isSubfolder);

	Leer=new Image(120,36);
	Leer.src= (isSubfolder?"../":"") + "images/Leer.gif";
}	// Init
