(function($){ /* $('.select').on('mouseleave', function () { $(this).children('.aList').slideUp(300); });*/ $(function(){ $('.tab_container').each(function() { if(!$(this).has('.show').length) { $(this).find('.tab_content:first').addClass('show'); } }); $("ul.tabs li a").click(function () { $("ul.tabs li a").removeClass("active"); $(this).addClass("active"); $(".tab_content").removeClass('show'); var activeTab = $(this).attr("rel"); $("#" +activeTab).addClass('show'); }); // header 메뉴에 마우스 hover $(".menu").bind("focusin mouseover",function () { $('.menu').addClass("on") $('.outer').stop().animate({"height":"280px"},150); $('.depth2').show(); }).bind("focusout mouseleave" ,function () { $('.menu').removeClass("on") $('.outer').stop().animate({"height":"0px"},150); $('.depth2').hide(); }); }); })(jQuery);