var ie = /MSIE/.test(navigator.userAgent);

function hover(obj) 
{
    if (ie) 
    {
        UL = obj.getElementsByTagName('ul');
        if (UL.length > 0) 
        {
            sousMenu = UL[0].style;
            sousMenu.display = 'block';
        }
    }
}

function out(obj) 
{
    if (ie) 
    {
        UL = obj.getElementsByTagName('ul');
        if(UL.length > 0) 
        {
            sousMenu = UL[0].style;
            sousMenu.display = 'none';
        }
    }
}

function hover2(obj) 
{
    if (ie) 
    {
        UL2 = obj.getElementsByTagName('ul');
        if (UL2.length > 0) 
        {
            sousMenu2 = UL2[0].style;
            sousMenu2.display = 'block';
        }
    }
}

function out2(obj) 
{
    if (ie) 
    {
        UL2 = obj.getElementsByTagName('ul');
        if(UL2.length > 0) 
        {
            sousMenu2 = UL2[0].style;
            sousMenu2.display = 'none';
        }
    }
}

function setHover()
{
    //alert("ie : "+ie);
    if (ie)
    {
        //alert("menu1 : "+document.getElementById('menu1'));
        LI = document.getElementById('menu1').getElementsByTagName('li');
        for(i = 0 ; i < LI.length ; i++)
        {
            //alert("this : "+this);
            LI[i].onmouseover = function () { hover(this) };
            LI[i].onmouseout = function () { out(this) };
        }
        LI2 = document.getElementById('menu2').getElementsByTagName('li');
        for(i = 0 ; i < LI2.length ; i++)
        {
            LI2[i].onmouseover = function () { hover2(this) };
            LI2[i].onmouseout = function () { out2(this) };
        }
    }
}

//window.onload = setHover();
