var msOn=0;
var divOn=0;
var theUL;
var theDiv;
var ulHid;
function mover(obj)
{          
   var coord=getXY(obj);     
    var h=document.getElementById("div-menu");
//theDiv=h.childNodes[1];
theDiv=h;
theDiv.onmouseover = function()   {
msOn=1;    
theDiv.style.display=""; 
//alert(theUL.childNodes[2].nodeName); 
theUL.childNodes[2].style.visibility="visible";
   };
 theDiv.onmouseout = function()   {
msOn=0; 
theDiv.style.display="none"; 
theUL.childNodes[2].style.visibility="hidden";

   }  
    h.style.display="";
    h.style.left=coord.x+170+"px";
    h.style.top=coord.y-30+"px";
    h.style.height="200px"
} 
function mout(obj)
{
    var h=document.getElementById("div-menu");
theDiv.style.display="none";  
     //msOn=0;
    divOn=0
   
}

function startMod2()
{
var menu=document.getElementById('cms-nav-top-menu').childNodes
for(var cnt=0;cnt<menu.length;cnt++)
{
    if(menu[cnt].nodeName=="LI")
    {
        
        var fmenu=menu[cnt].childNodes;
        
        for(var fcnt=0;fcnt<fmenu.length;fcnt++)
        {
            if(fmenu[fcnt].nodeName=="UL")
                {
                    //alert(fcnt+ " " + cnt);
                    var smenu=fmenu[fcnt].childNodes;
                    for (var scnt=0;scnt<smenu.length;scnt++)
                    {
                        if(smenu[scnt].nodeName=="LI")
                            {
                                //smenu[scnt].parentNode.setAttribute("class","trigger");
                                var tmenu=smenu[scnt].childNodes;
                               
                                 //tmenu[0].innerHTML
                                  for(var tcnt=0;tcnt<tmenu.length;tmenu++)
                                    {
                                        if(tmenu[tcnt].innerHTML=="Bankruptcy Attorney")
                                             {   
//getXY(document.getElementById('cms-nav-top-menu'))
tmenu[tcnt].setAttribute("onmouseover","mover(this)");
tmenu[tcnt].setAttribute("onmouseout","mout(this)");  
tmenu[tcnt].setAttribute("id","exp2");
tmenu[tcnt].innerHTML+='&nbsp;&nbsp;&nbsp;&gt;&gt';
var mainUL=tmenu[tcnt].parentNode.parentNode.parentNode;

//mainUL.style.visibility="visible";
//alert(mainUL.nodeName)
theUL=mainUL; 
theUL.setAttribute('onmouseover','hm()');
 theUL.setAttribute('onmouseout','om()');  
break;

}

                                    }
                            }
                    }
                }
        }
    }
}
}
function hm()
{
    
        theUL.childNodes[2].style.visibility="visible";
msOn=1;
 
}
function om()
{
 

        theUL.childNodes[2].style.visibility="hidden"; 

}


