//----------------------------------------------------------------------------//
    var Browser = '' ;
//----------------------------------------------------------------------------//
    if ( !document.all && document.getElementById )
    {
        Browser = 'Mozilla / Mozilla Firefox' ;
    }
    if ( document.layers )
    {
        Browser = 'Netscape Navigator' ;
    }
    if ( navigator.userAgent.indexOf ( 'Opera' ) != -1 && document.getElementById )
    {
        Browser = 'Opera' ;
    }
    if ( document.all )
    {
        Browser = 'Internet Explorer' ;
    }
//----------------------------------------------------------------------------//
    function GetElement ( ID )
    {
        var Element = '' ;
        if ( Browser == 'Internet Explorer' )
        {
            Element = document.all[ID] ;
        }
        if ( Browser == 'Netscape Navigator' )
        {
            Element = document.layer[ID] ;
        }
        if ( Browser == 'Mozilla / Mozilla Firefox' || Browser == 'Opera' )
        {
            Element = document.getElementById(ID) ;
        }
        return Element ;
    }
//----------------------------------------------------------------------------//
    function Show ( ID )
    {
        var Element = GetElement ( ID ) ;
        if ( Element != null )
        {
            Element.style.display = "block" ;
        }
    }
//----------------------------------------------------------------------------//
    function Hide ( ID )
    {
        var Element = GetElement ( ID ) ;
        if ( Element != null )
        {
            Element.style.display = "none" ;
        }
    }
//----------------------------------------------------------------------------//
    function UpdateType ( )
    {
        if ( 'Internal' == document.AddEditItemForm.Type.value )
        {
            document.AddEditItemForm.InternalLink.disabled = false ;
            document.AddEditItemForm.ExternalLink.disabled = true ;
        }
        else if ( 'External' == document.AddEditItemForm.Type.value )
        {
            document.AddEditItemForm.ExternalLink.disabled = false ;
            document.AddEditItemForm.InternalLink.disabled = true ;
        }
    }
//----------------------------------------------------------------------------//
    function Reposition ( ID )
    {
        var LIElement = GetElement ( 'LI-' + ID ) ;
        var ULElement = GetElement ( 'UL-' + ID ) ;
        if ( LIElement != null && ULElement != null )
        {
            var Left = 0 ;
            var Top  = 0 ;
            <!--Left = parseInt ( GetXCoOrdinate ( LIElement ) ) + 169 + "px" ;-->
            Left = parseInt ( GetXCoOrdinate ( LIElement ) ) + 0 + "px" ;
            Top = parseInt ( GetYCoOrdinate ( LIElement ) ) + 30 + "px" ;
            <!--Top = parseInt ( GetYCoOrdinate ( LIElement ) ) + 4 + "px" ;-->
            ULElement.style.position = "absolute" ;
            ULElement.style.left     = Left ;
            ULElement.style.top      = Top ;
        }
    }
//----------------------------------------------------------------------------//
    function GetXCoOrdinate ( Element )
    {
        var Left = 0;
        if ( Element.offsetParent )
        {
            while ( Element.offsetParent )
            {
                Left += Element.offsetLeft ;
                Element = Element.offsetParent ;
            }
        }
        else if ( Element.x )
        {
            Left += Element.x ;
        }
        return Left ;
    }
//----------------------------------------------------------------------------//
    function GetYCoOrdinate ( Element )
    {
        var Top = 0;
        if ( Element.offsetParent)
        {
            while ( Element.offsetParent )
            {
                Top += Element.offsetTop ;
                Element = Element.offsetParent ;
            }
        }
        else if ( Element.y )
        {
            Top += Element.y ;
        }
        return Top;
    }
//----------------------------------------------------------------------------//
