	
 
 ns4 = (document.layers)? true:false
 ie4 = (document.all)? true:false
 var Show=0
 var loaded=0 
 
 
 function showhidemenu(id) {
 if (Show == 1) {document.getElementById(id).style.visibility = "hidden";Show = 0;return;}
 if (Show == 0) {document.getElementById(id).style.visibility = "visible";Show = 1;}
 }
 
 function show(id,idparent) { 
 	  id_image = idparent+'Arrow';
 	  idparent = idparent+'Arrow';
 	  document.getElementById(id_image).src = '/grafik/down_arrow.gif';  
      document.getElementById(id).style.left = findPosX(document.getElementById(idparent)) - 60 + "px";  //alert(findPosX(document.getElementById(idparent))) + "px";
      document.getElementById(id).style.top = findPosY(document.getElementById(idparent)) - 8 + "px"; //alert(findPosY(document.getElementById(idparent)));      
      document.getElementById(id).style.display = 'block';
      document.getElementById(id).style.visibility = "visible"; 
 }
 
 function hide(id,idparent) {
 	  id_image = idparent+'Arrow';
 	  document.getElementById(id_image).src = '/grafik/right_arrow.gif';
      document.getElementById(id).style.visibility = "hidden";
 } 

 function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}

function findPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}