// ---------------------------------------------------------------------------------------
// scripte fuer digital publishing
// author michael schulze, www.ju-mi.com, 2008
// ---------------------------------------------------------------------------------------


//---------------------------------------------------------------------------------------
// Ebenenfunktionen
	// Layer zeigen - verbergen
	function showLayer(layerName) {
		if (eval('document.getElementById("'+ layerName + '")')) {eval('document.getElementById("'+layerName+'").style.display="block"');}
	}
	function hideLayer(layerName) {
		if (eval('document.getElementById("'+ layerName + '")')) {eval('document.getElementById("'+layerName+'").style.display="none"');}
	}
	function hideAll(bereich,anzahl) {
		for(count=1; count <= anzahl; count++){
			if (eval('document.getElementById("'+ bereich + count +'")')) eval('document.getElementById("'+ bereich + count +'").style.display="none"');
		}
	}


//---------------------------------------------------------------------------------------
// Lightbox-Funktion
	function showLightbox(bildnr){
		document.getElementById("lightBox").style.height = document.getElementsByTagName('body')[0].scrollHeight + 'px';
		showLayer('lightBox');
		setTimeout("showLayer('zoomBild" + bildnr + "')",500);
	}

	function hideLightbox(){
		hideAll('zoomBild',4);
		hideLayer('lightBox');
	}


//------------------------------------------------------------------------------------------
// Anmeldeformular

	function hide_form_area(id_show,id_hide) {
		var show = document.getElementById(id_show);
		show.style.display = 'block';
		var hide = document.getElementById(id_hide);
		hide.style.display = 'none';
	}

