sfHover = function() {
    var sfEls = document.getElementById("nav").getElementsByTagName("LI");
    for (var i=0; i<sfEls.length; i++) {
        sfEls[i].onmouseover=function() {
            this.className+=" sfhover";
        }
        sfEls[i].onmouseout=function() {
            this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
        }
    }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


toggleLogin = function() {
    var li = document.getElementById("loginLi");
    var el = document.getElementById("loginArea");
    var searchLi = document.getElementById("searchLi");
    var searchEl = document.getElementById("searchArea");
    el.blur();
    if (el.style.display == '') {
        el.style.display = 'none';
    }
    if (el.style.display == 'none') {
        searchEl.style.display = 'none';
        searchLi.className = "";
        el.style.display = 'block';
        li.className = "liOpen";
    } else {
        el.style.display = 'none';
        li.className = "";
    }
}


toggleSearch = function() {
    var li = document.getElementById("searchLi");
    var el = document.getElementById("searchArea");
    var loginLi = document.getElementById("loginLi");
    var loginEl = document.getElementById("loginArea");
    el.blur();
    if (el.style.display == '') {
        el.style.display = 'none';
    }
    if (el.style.display == 'none') {
        loginEl.style.display = 'none';
        loginLi.className = "";
        el.style.display = 'block';
        li.className = "liOpen";
    } else {
        el.style.display = 'none';
        li.className = "";
    }
}
/*
but_wws.onRelease = function(){
    getURL("/index.php?id=80", "_self");
};

but_pos.onRelease = function(){
    getURL("/index.php?id=83", "_self");
};

but_sta.onRelease = function(){
    getURL("/index.php?id=77", "_self");
};

but_ser.onRelease = function(){
    getURL("/index.php?id=61", "_self");
};

but_har.onRelease = function(){
    getURL("/index.php?id=63", "_self");
};

but_sof.onRelease = function(){
    getURL("/index.php?id=64", "_self");
};*/
