function ToggleMenu(whichLayer)
{
    if (document.getElementById)
    {
        // this is the way the standards work
        var ownparent = document.getElementById(whichLayer).style;
        
        // Set the parent div to expand to allow its children || REVERSE
        
        ownparent.borderBottom = (ownparent.width == "100%")? "1px solid #000":"0";
        ownparent.width = (ownparent.width == "100%")? "25%":"100%";
        ownparent.height = (ownparent.height == "90%")? "25px":"90%";
        
        
        ownparent.marginBottom = (ownparent.marginBottom == "10px")? 0:"10px";
        
        // Disable all other parents || REVERSE
        var othjar = document.getElementsByClassName('np');
        for(i=0;i<othjar.length;i++)
        {
            var mpar = "nav_parent_"+i;
            if(mpar != whichLayer)
            {
                var othparent = document.getElementById(mpar).style;
                othparent.display = (othparent.display == "none")? "inline":"none";
            }
        }
        
        // Show the parents' children || REVERSE 
        var pi = whichLayer.match(/(?!nav_parent_)[0-9]/);
        var sub = "sub_parent_"+pi;
        
        var subparent = document.getElementById(sub).style;
        subparent.display = (subparent.display == "block")? "none":"block";
        
     
        return new Effect.Highlight(whichLayer, {startcolor: '#D5C154', endcolor: '#D3CC8D'});   
    }
    return false;
}

function QuickMenu()
{
    var maxDisplacement=0;
    window.scrollTo(0,10000000);

    if( typeof self.pageYOffset!='undefined' )
        maxDisplacement=self.pageYOffset;
    else
    if( document.compatMode && document.compatMode != 'BackCompat' )
        maxDisplacement=document.documentElement.scrollTop;
    else
   if( document.body && typeof(document.body.scrollTop)!='undefined' )
        maxDisplacement=document.body.scrollTop;
        window.scrollTo(0,maxDisplacement);
        return false;
}
