
    var id=-1,tm=-1;
    function cs(i) {
        cc(i);

        if  (id!=-1) document.getElementById('sub'+id).style.display='none';
        if (document.getElementById('sub'+i)) {
            document.getElementById('sub'+i).style.display='block';
            document.getElementById('subli'+i).className='lmenu-a';
        id=i;
        }

    }
    
    function leave(i) {

        if (document.getElementById('sub'+i))
         document.getElementById('subli'+i).className='lmenu';
         tm=setTimeout("document.getElementById('sub"+i+"').style.display='none';",100);

    }

    function cc(j) {
     document.getElementById('subli'+j).className='lmenu-a';
        if (tm!=-1) clearTimeout(tm);
    }





    function res() {
    i=window.location.href;
    if (i.indexOf("html")==-1) {

    var d1 = document.getElementById("dd1");
    var d2 = document.getElementById("dd2");
    var d3 = document.getElementById("dd3");
    var h1=Math.max(d1.offsetHeight,d2.offsetHeight);
    var h2=Math.max(d2.offsetHeight,d3.offsetHeight);
    var h3=Math.max(h1, h2);

//    d1.offsetheight = h3; 
//    d2.offsetheight = h3; 
//    d3.offsetheight = h3; 

    d1.style.height = h3 + "px"; 
    d2.style.height = h3 + "px"; 
    d3.style.height = h3 + "px"; 
    }
}


function opwin(loca, tar) {
    if (tar.search(/target/i)>=0) {
           (window.open(loca))
    }
    else {
    location.href=loca; 
    }
}


