$.fn.extend({
    tab: function () {
        var tid = "#" + $(this).attr("id");

        if (arguments.length > 0) {
            var height = arguments[0];
            $(tid + " .content .tabItem").height(height);
        }
        $(tid + " ul li").bind("mouseover", function () {
            $(tid + " ul li").removeClass("current");
            $(this).addClass("current");

            var menuIndex = $(this).index();

            var tabItem = $(tid + " .content .tabItem");
            var currentItem = tabItem.get(menuIndex);

            tabItem.css("display", "none");
            $(currentItem).css("display", "block");
        });

    }
});
