// JavaScript Document
// Bilder anzeigen mit "Zoom"-Funktion 
// Wird noch nicht verwendet
var zaehler = 80;
//var aktiv=0;
/* function aufmachen(breite,ID) 
{ 
	if (zaehler < breite) 
	{ 
		document.getElementById(ID).style.display="inline"; 
//		document.getElementById(ID).style.width=zaehler+"px";
//		document.getElementById(ID).style.height=zaehler+"px";
		document.getElementById(ID).style.height=breite+"px";
//		zaehler += 20; 
//		aktiv=window.setTimeout("aufmachen("+breite+",'"+ID+"')",0);
	} 
}

function zumachen(ID) 
{ 
//	window.clearTimeout(aktiv);
	document.getElementById(ID).style.display="none"; 
	zaehler = 80; 
} */


function anzeigen(das)
{ 
	if(document.getElementById(das) == null)
		return;
	if(document.getElementById(das).style.display=="none") 
		document.getElementById(das).style.display="inline";
	else 
		document.getElementById(das).style.display="none";
}

// Bild im eigenen Popup-Fenster öffnen
function openPopup(img, width, height) 
{
	if (img && width && height) {
		width = Math.min(width, 640);
		height = Math.min(height, 480);
		popUp = window.open(img,"popUp","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=" + width + 
								",height=" + height + ",innerWidth=" + width + ",innerHeight=" + height);
		popUp.focus();
	}
}


