var suffix= ["a", "b", "c", "d", "e"];
myBaseUrl = 'http://www.kgv-bochum-ehrenfeld.de.k1308.ims-firmen.de';
	
	startUp();
	
	
/*	


function startUp() {
	var areas = document.getElementsByTagName("area");
	var anz = areas.length;
	for ( var i=0; i<anz; i++) {
		var a = areas[i];
		a.onmouseover=over;
		a.onmouseout=out;
		a.onclick=click;
		a.removeAttribute("href");
		a.ix = 0;
		a.anz = a.id.substring(4);
		a.id = a.id.substring(0, 3);
		var coords = a.coords;
		var posL = coords.indexOf(",");
		if ( posL > 0  &&  posL < coords.length) {
			var left = coords.substring(0, posL);
			var posT = coords.indexOf( ",", posL+1);
			var top;
			if ( posT > 0) {
				top = coords.substring( posL+1, posT);
			} else {
				top = coords.substring( posL+1);
			}
			a.setAttribute("t", top);
			a.setAttribute("l", left);
		}
	}
}

function over(e){
	alert (e);
	var obj = (window.Event) ? e.target : window.event.srcElement;
	document.getElementById("MoverBild").src = myBaseUrl+"/images/gaerten/K/" + obj.id + suffix[obj.ix] + ".jpg";
	var mover = document.getElementById("Mover");
	mover.style.top  = obj.getAttribute("t")*1 + document.getElementById("Lageplan").offsetTop;
	mover.style.left = obj.getAttribute("l")*1 + document.getElementById("Lageplan").offsetLeft;
	mover.style.visibility = "visible";
}
function out(e){
	var obj = (window.Event) ? e.target : window.event.srcElement;
	document.getElementById("Mover").style.visibility = "hidden";
}
function click(e){
	var obj = (window.Event) ? e.target : window.event.srcElement;
	var id  = obj.id;
	var ixNeu = (obj.ix + 1) % obj.anz;
	document.getElementById("ShowerLink").href = "garteninfo.php?n=" + obj.anz +"&i=" + id + "&t=" + obj.title;
	document.getElementById("ShowerBild").src = myBaseUrl +"/images/gaerten/M/" + id + suffix[obj.ix] + ".jpg";
	if ( obj.anz != "1") {
		document.getElementById("MoverBild").src = myBaseUrl+"/images/gaerten/K/" + obj.id + suffix[ixNeu] + ".jpg";
		document.getElementById("ShowerText").innerHTML = obj.title + " "  + (obj.ix + 1) + "/" + obj.anz + " (zur Großansicht auf das Bild klicken)";
	} else {
		document.getElementById("ShowerText").innerHTML = obj.title + " (zur Großansicht auf das Bild klicken)";
	}
	var shower = document.getElementById("Shower");
	shower.style.top = 250 + document.getElementById("Lageplan").offsetTop;
	shower.style.left = 450 + document.getElementById("Lageplan").offsetLeft;
	shower.style.visibility = "visible";
	obj.ix = ixNeu;
}
*/
