
var oCatM = null;

function showCatM (o)
{
   if (oCatM != null)
      oCatM.style.display = "none";

   oCatM = showM (o);
}

function hideCatM (o)
{
   hideM (o);
   oCatM = null;
}

function showM (o) {
    for(var i = 0; i  < o.childNodes.length; i++)
    {
        var n = o.childNodes.item(i);
        if(n.nodeName == "UL" || n.nodeName == "ul")			
        {					
            n.style.display = "block";
	    return n;
        }
	if (n.childNodes.length > 0) 
	{
	   showM (n);
	}
    }	
}

function hideM (o)
{	
    for(var i = 0; i  < o.childNodes.length; i++)			
    {
        var n = o.childNodes.item(i);
        if(n.nodeName == "UL" || n.nodeName == "ul")
        {	
            n.style.display = "none";
            return n;
        }
	if (n.childNodes.length > 0) 
	{
	   hideM (n);
	}			
    }	
}
