// Info-Fenster - by DerWeb
function showbox(bildnr,text,bild,abstandoben,absolut) {
	if (!absolut || absolut != 1) {
		var scrollPos; 
		// nicht der IE:
		if (typeof window.pageYOffset != 'undefined') {
   			scrollPos = window.pageYOffset;
		// IE im BackCompat Modus:
		} else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') {
			scrollPos = document.documentElement.scrollTop;
		// IE im CSS1Compat Modus:
		} else if (typeof document.body != 'undefined') {
			scrollPos = document.body.scrollTop;
		}
		bildY = scrollPos + abstandoben;
		//alert(scrollPos);
	} else {
		bildY = abstandoben;
		//alert("else");
	}
	document.getElementById("bilduntertitel").innerHTML = text;
	document.getElementById("showimage").style.display = "block";
	document.getElementById("showimage").style.top = bildY + "px";
	document.getElementById("bildgross").src = bild;
	bildakt = bildnr;
	motivbuttons();
}
function hidebox() {
	document.getElementById("bildgross").src = "/grafiken/px.gif";
	document.getElementById("showimage").style.display = "none";
}

/* Bilder vor - zurueck */
function motivplus() {
	if (document.getElementById("bildgross")) {
		if (bildakt < imagegesamt) {
			bildakt++;
			//alert(imagegesamt + ", " + bildakt);
			nextimage = images[bildakt];
			nextlink  = links[bildakt];
			document.getElementById("bildgross").src = nextimage;
			document.getElementById("bilduntertitel").innerHTML = nextlink;
			motivbuttons();
		}
	}
}
function motivminus() {
	if (document.getElementById("bildgross")) {
		if (bildakt > 1) {
			bildakt--;
			previmage = images[bildakt];
			prevlink  = links[bildakt];
			document.getElementById("bilduntertitel").innerHTML = prevlink;
			document.getElementById("bildgross").src = previmage;
			motivbuttons();
		}
	}
}
function motivbuttons() {
	if (bildakt == imagegesamt) {
		document.getElementById("vor").style.visibility = "hidden";
		document.getElementById("zur").style.visibility = "visible";
	} else if (bildakt == 1) {
		document.getElementById("zur").style.visibility = "hidden";
		document.getElementById("vor").style.visibility = "visible";
	} else {
		document.getElementById("zur").style.visibility = "visible";
		document.getElementById("vor").style.visibility = "visible";
	}
}