﻿function showDropMenu(Obj) {
    Obj.className = "hover";
}

function hideDropMenu(Obj) {
    Obj.className = "active";
}

//加入收藏夹
function bookmarksite(title, url) {
    if (document.all)
        window.external.AddFavorite(url, title);
    else if (window.sidebar)
        window.sidebar.addPanel(title, url, "");
}

function OnEnter(field) {
    if (field.value == field.defaultValue) {
        field.value = "";
    }
}

function OnExit(field) {
    if (field.value == "") {
        field.value = field.defaultValue;
    }
}



//下拉列表
function Fmouseover(i) {
    var thename = "sub_floor_" + i;
    var themenunav = "floor_" + i;
    if (document.getElementById(thename) != "" && document.getElementById(themenunav) != "") {
        document.getElementById(themenunav).className = "";
        if (document.getElementById(thename).style.display == "block") {
            //if(i==2){document.getElementById(themenunav).className = "BgPosfour theTag";}
            //else 
            if (i == 9 || i == 11) { document.getElementById(themenunav).className = "BgPosition theTag"; }
            else { document.getElementById(themenunav).className = "theTag"; }

        }
        else {
            //if(i==2){document.getElementById(themenunav).className = "BgPosfour";}
            //else 
            if (i == 9 || i == 11) { document.getElementById(themenunav).className = "BgPosition"; }
            else { document.getElementById(themenunav).className = ""; }

        }
    }
}

function Fmouseout(i) {
    var thename;
    thename = "sub_floor_" + i;
    var themenunav
    themenunav = "floor_" + i;
    //if(i==2){document.getElementById(themenunav).className = "BgPosfour";}
    //else 
    if (i == 9 || i == 11) { document.getElementById(themenunav).className = "BgPosition"; }
    else { document.getElementById(themenunav).className = ""; }

}

