function initDropDownMenu( theID )
{

	var menuul = document.getElementById(theID);
	
//	var childs = new Array();
	var childs = menuul.childNodes;
 
	 var uls = new Array();
	uls = menuul.getElementsByTagName("ul");
//	 uls.push (menuul);
	var lis = menuul.getElementsByTagName("li");
	for ( y = 0; y < lis.length; y++ )
	{
		if (lis[y].tagName.indexOf("LI") > -1)
			lis[y].onmouseover=function () { return doDropDown(this); }
			lis[y].onmouseout=function (e) { return hideDropDown(e,this); }
	}

 	for(i = 0; i < uls.length; i++)
 	{
 		uls[i].style.display="none";
 		uls[i].style.position="absolute";
 	}
}

function hideDropDown( e, pElm )
{
	childs = pElm.getElementsByTagName("ul");
	for ( var x = 0; x < childs.length; x++ )
	{
		childs[x].style.display="none";
	}
}


function doDropDown( pElm )
{

//	var childs = pElm.childNodes;
	var childs = pElm.getElementsByTagName("ul");
//alert(pElm.offsetTop);
/*	for ( var x = 0; x < childs.length; x++ )
	{
		if ( childs[x].nodeType == 1)	// HTML-Element
		{*/
/*			childs[0].style.top=(pElm.offsetTop+10)+"px";
			childs[0].style.left=(pElm.offsetLeft+20)+"px";*/
		if (childs[0])		
			childs[0].style.display="block"; // table-row
/*		}
	}*/
	
}


