$(document).ready(function() {
    $(".children").css("display", "none");

    $(".children").children().each(function() {
        if ($(this).hasClass("current")) {
            $(this).parent().css("display", "block");
        }
    });

    $("#menuList li").hover(
        function() {

            if ($(this).parent().hasClass("children")) {
                return;
            }

            if ($(this).find(".children").is(":hidden")) {

                $(".children").stop(true, true).slideUp("slow");
                $(this).find(".children").stop(true, true).slideDown("slow");
            }
        });
});
