    function sshow() {
        var current = $(this);
        if (current.attr('id') == "beauty-link") return false;
        var ulWrapper = current.find("ul.wrapper");
        $(".ddbg").css({ "height": ulWrapper.height() + 20, "display": "block" });

        if (current.attr("class") != "category selected") {
            current.find("a").first().addClass("unfolded");
        }
        current.find("ul.wrapper").show();
    }
    function shide() {

        $(".ddbg").height(0).css("display", "none");
        if ($(this).attr("class") != "category selected") {
            $(this).find("a").first().removeClass("unfolded");
        }
        $(this).find("ul.wrapper").hide();
    }

$(document).ready(function () {
    $(".menu_topjs li.category").hoverIntent({over: sshow, out: shide, interval: 30, timeout: 30, sensitivity: 4 });

    if ($.browser.msie && $.browser.version < 7) {
        $(".header .info li").hover(function () {
            $(this).find("ul").css("visibility", "visible");
        }, function () {
            $(this).find("ul").css("visibility", "hidden");
        });
        $(".header .phone li").hover(function () {
            $(this).css("background-color", "#eae4ea");
        }, function () {
            $(this).css("background-color", "#ffffff");
        });
    }
});		


