path = "images/home/";

// Buttons vorausladen:
if (document.images) {
	imageNames = new Array("lebenslauf", "dichterziel", "dichter_werk", "maler_werk", "texte", "kontakt", "links", "buecher", "drucke", "zeitschriften", "aktuelles", "geschichte", "aufgaben", "dienstleistungen", "stiftungsrat", "kontakt", "links");
	preload = new Array();
	countImages = imageNames.length;
	for (i = 0; i < countImages; i++) {
		preload[i] = new Image();
		preload[i].src = path + "n_" + imageNames[i] + "_0.gif";
		preload[i + countImages] = new Image();
		preload[i + countImages].src = path + "n_" + imageNames[i] + "_1.gif";
	}
}

// Funktion fuer Mouseover-/Mouseout-Effekt:
function show (button, state) {
	if (document.images) {
		var oldsrc = document.images[button].src;
		document.images[button].src = oldsrc.substring(0, oldsrc.length - 5) + state + ".gif";
	}
}
