function no() {
/*if (ns4)
	alert('NS4!!');	
else if (ie)
	alert('isMinIE4!!');	
else
	alert('ELSE!!');*/
	}

function oeffne(was) {
		window.open (was,"News","width=750,height=580,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no")
	}		


var agt=navigator.userAgent.toLowerCase();
var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);
var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
			&& (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
			&& (agt.indexOf('webtv')==-1));
var ns4 = (is_nav && (is_major == 4));
var ie = (agt.indexOf("msie") != -1);

function hideLayer(nohide) {
	if (ns4)
	{
		document.layers['sender'].visibility = "hide";
	}
	 else if (ie)
	{
		document.all['daten'].style.visibility = "hidden";
		document.all['bilder'].style.visibility = "hidden";
		document.all['abrechnung'].style.visibility = "hidden";
		document.all['sonstiges'].style.visibility = "hidden";
	}
	else
	{
		document.getElementById('sender').style.visibility = "hidden";
	}

}

function showLayer(layer) {
	if (ns4)
		document.layers[layer].visibility = "show";
	else if (ie)
		document.all[layer].style.visibility = "visible";
	else
		document.getElementById(layer).style.visibility = "visible";
}

function changeBg(obj,color){
	if (ns4)
		obj.bgColor=color;
	else
		obj.style.backgroundColor=color;

}




function printLayer(name, left, top)
{
	//Layer-Anfang
	if (ns4)
	{
		document.write('<layer name="'+name+'" left="'+left+'" top="'+top+'" visibility="hide" onMouseOver="showLayer(\''+name+'\');" onMouseOut="hideLayer();">');
	}
	else
	{
		document.write('<div id="'+name+'" style="position : absolute;left : '+left+'px;top : '+top+'px; z-index:99; visibility:hidden; cursor:crosshair;" onMouseOver="showLayer(\''+name+'\');"  onMouseOut="hideLayer();">');	
	}
	document.write('<table width="122" border="0" cellspacing="0" cellpadding="0">');

	//Menüpunkte
	document.write('<tr>');
	document.write('<td bgcolor="#660000"><img src="images/invisible.gif" width="3" height="1" border ="0"></td>');
	document.write('<td bgcolor="#000000"><img src="images/invisible.gif" width="116" height="1" border ="0"></td>');
	document.write('<td bgcolor="#660000"><img src="images/invisible.gif" width="3" height="1" border ="0"></td>');
	document.write('</tr>');

	for (i = 0;i < (printLayer.arguments.length-3)/2;i++)
	{
		document.write('<tr>');
		document.write('<td bgcolor="#660000"><img src="images/invisible.gif" width="3" height="1" border ="0"></td>');
		document.write('<td width="116"  bgcolor="#A00000" onMouseOver="changeBg(this,\'#660000\');" onMouseOut="changeBg(this,\'#A00000\');"  onClick="location.href=\''+printLayer.arguments[i*2+4]+'\';">');
		if (ns4)
		{
			document.write('<ilayer width="100%" height="100%">');
			document.write('<layer width="100%" height="100%" onMouseover="changeBg(this,\'#660000\');" onMouseout="changeBg(this,\'#A00000\');">');
		}
		document.write('<img src="images/invisible.gif" width="1" height="5"><br>');
		if (ns4)
			document.write('<a href="'+printLayer.arguments[i*2+4]+'">');			
		document.write('<div class="menue"><center>'+printLayer.arguments[i*2+3]+'</center></div>');
		if (ns4)
			document.write('</a>');			
		document.write('<img src="images/invisible.gif" width="1" height="5">');
		if (ns4)
		{
			document.write('</layer>');
			document.write('</ilayer>');
		}
		document.write('</td>');
		document.write('<td bgcolor="#660000"><img src="images/invisible.gif" width="3" height="1" border ="0"></td>');
		document.write('</tr>');

		document.write('<tr>');
		document.write('<td bgcolor="#660000"><img src="images/invisible.gif" width="3" height="1" border ="0"></td>');
		document.write('<td bgcolor="#660000"><img src="images/invisible.gif" width="116" height="1" border ="0"></td>');
		document.write('<td bgcolor="#660000"><img src="images/invisible.gif" width="3" height="1" border ="0"></td>');
		document.write('</tr>');
	}

	document.write('<tr>');
	document.write('<td bgcolor="#660000"><img src="images/invisible.gif" width="3" height="1" border ="0"></td>');
	document.write('<td bgcolor="#660000"><img src="images/invisible.gif" width="116" height="2" border ="0"></td>');
	document.write('<td bgcolor="#660000"><img src="images/invisible.gif" width="3" height="1" border ="0"></td>');
	document.write('</tr>');
	document.write('</table>');
	//Layer-Ende
	if (ns4)
	{
		document.write('</layer>');
	}
	else
	{
		document.write('</div>');	
	}
}


