var selectsHidden = false;

function hideShowSelects()
{
    if((typeof document.all != "undefined") && typeof document.body.style.maxHeight == "undefined")
    {
            var boxes = document.getElementsByTagName("select");
            for(var s = 0; s < boxes.length; s++) 
                boxes[s].style.visibility = (selectsHidden) ? "" : "hidden";
            
            selectsHidden = !selectsHidden;
    }
}


function sfHover() {
    //added this function for dropdown menus
    var sfEls = document.getElementById("navMain").getElementsByTagName("LI");

    for (var i=0; i<sfEls.length; i++) {
        sfEls[i].onmouseover=function() {
            this.className = this.className.replace(" sfhover","") + " sfhover";
             if(this.parentNode.id == "navMain")
                hideShowSelects();
        }
    
        sfEls[i].onmouseout=function() {
            this.className = this.className.replace(" sfhover","");
             if(this.parentNode.id == "navMain")
                hideShowSelects();
        }
    }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


//added this function for ie7 bug that menu moves with browser resize
function resized()
{
    document.getElementById("menu").style.display = "none";
    document.getElementById("menu").style.display = "inline";
}



