﻿// JScript 文件
function showSubCategory() {
    $("#AllSort dt").mouseover(function() {
        var newDiv = document.getElementById("EFF_div_" + this.id.substr(7));
        this.className = "curr";
        if (newDiv) {
            newDiv.style.display = "block";
            return;
        } else {
            var newDiv_wrap = document.createElement("div");
            if ($.browser.msie) {
                newDiv_wrap.className = "pop_wrap";
            }
            else {
                newDiv_wrap.setAttribute("class", "pop_wrap");
            }
            newDiv_wrap.setAttribute("id", "EFF_div_" + this.id.substr(7));
            var newDiv = document.createElement("div");
            if ($.browser.msie) {
                newDiv.className = "pop";
            }
            else {
                newDiv.setAttribute("class", "pop");
            }
            if (this.nextSibling && this.nextSibling.innerHTML) {
                newDiv_wrap.appendChild(newDiv);
                newDiv.innerHTML = this.nextSibling.innerHTML;
            }
            this.parentNode.insertBefore(newDiv_wrap, this);
            newDiv_wrap.style.display = "block";
        }
        //test/		
        $(".pop_wrap").mouseover(function() {
            $(this).css({ "display": "block" });
            this.nextSibling.className = "curr";
        }).bind("mouseleave", function() {
            $(this).css({ "display": "none" });
            this.nextSibling.className = "";
        })
        //test end/
    }).bind("mouseleave", function() {
        if (this.nextSibling && this.nextSibling.className) {
            this.className = (this.nextSibling.className == "Dis") ? "curr" : "";
        }
        else {
            this.className = "";
        }
        $(".pop_wrap").css({ "display": "none" });
    });
}

