<!--


function getOffsetLeft( obj ) {
    var coordLeft = 0;
    while( obj.offsetParent != null ) {
        coordLeft += obj.offsetLeft * 1;
        if ( obj.style.position == "absolute" || obj.tagName == "BODY" )
            break;
        obj = obj.offsetParent;
    }
    return coordLeft;
}


function getOffsetTop( obj ) {
    var coordTop = 0;
    while( obj.offsetParent != null ) {
        coordTop += obj.offsetTop * 1;
        if ( obj.style.position == "absolute" || obj.tagName == "BODY" )
            break;
        obj = obj.offsetParent;
    }
    return coordTop;
}

var topMenu = -1;


function topMenuOn ( id ) {
    if ( obj = document.getElementById('topMenu' + id) )  {
        lnk = document.getElementById('linkMenu' + id);
        n_top  = getOffsetTop(lnk) + lnk.offsetHeight;
        n_left = getOffsetLeft(lnk);
        obj.style.left = n_left;
        obj.style.top  = n_top;
        obj.style.display = 'block';
        lnk.blur();
        topMenu = id;
    }
    return false;
}


function topMenuOut ( id ) {
    if ( obj = document.getElementById('topMenu' + id) ) {
        obj.style.display = 'none';
    }
}


function topMenuOff () {
    if ( topMenu >= 0 ) topMenuOut(topMenu);
}


//-->
