var agt    = navigator.userAgent.toLowerCase();
var isMSIE = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));

function showPrintPopUp(url)
{
	var nwl   = (screen.width - 776) / 2;
	var nwh   = (screen.height - 690) / 2;
	var width = isMSIE ? 671 : 654;
	
	popUp = window.open(url, 'printPreview', 'toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+width+',height=666,left='+nwl+',top='+nwh+''); 
}

function showGalleryPopUp(url)
{
	var nwl = (screen.width-202)/2;
	var nwh = (screen.height-151)/2;
	
	popUp = window.open(url, 'gallery', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=550,height=373,left='+nwl+',top='+nwh+''); 
}

function einblenden(div) 
{
	with (document.getElementById(div).style)
	{
		if (display == "none")
		{
			display = "inline"; 
		} 
		else
		{ 
			display = "none"; 
		} 
	} 
}

function schliess_a()
{
	einblenden('layer2', '', '')
	einblenden('layer3', '', '')
}

function schliess_b()
{
	einblenden('layer1', '', '')
	einblenden('layer2', '', '')
}

