"); $('#myTab a').unbind("click"); $('#myTab li').on('mouseover mousemove', function (e) { var s = $(this).find('a'); clearTimeout(showCatNavBuffer); if (!$(s.attr("href")).is(":visible")){ if(!$(".custom-nav-tabs").hasClass("runningAnimate")){ showCatNav(s); } } }) $('#myTab li').on('mouseout', function (e) { $('#myTab li').first().find("a").trigger("click"); var s = $('#myTab .active a'); if (!$(s.attr("href")).is(":visible")){ showCatNavBuffer = setTimeout(function(){ showCatNav(s); },100); } }) $("#ml-navbar-collapse .tab-pane").on('mouseover',function(){ clearTimeout(showCatNavBuffer); }) $("#ml-navbar-collapse .tab-pane").on('mouseout',function(){ var s = $('#myTab .active a'); if (!$(s.attr("href")).is(":visible")){ showCatNavBuffer = setTimeout(function(){ showCatNav(s); },100); } }) }); jQuery(document).ready(function(){ jQuery(".ml-header-xs").click(function(){ if($(".ml-icon-bars").css("display")=="block"){ $(".ml-icon-bars-close").css("display", "block"); $(".ml-icon-bars").css("display", "none"); } else if($(".ml-icon-bars").css("display")=="none"){ $(".ml-icon-bars-close").css("display", "none"); $(".ml-icon-bars").css("display", "block"); } jQuery("body").toggleClass("ml-responsive-nav-xs"); }); $("#navsearchbox").keyup(function(){ var searchVal = $("#navsearchbox").val(); if(searchVal.length > 0){ if($(".ml-header-logo-xs").is(':visible')){ $("#searchCloseIcon").show(); }else{ $("#searchClose").show(); }	}else{ $("#searchClose").hide(); $("#searchCloseIcon").hide(); } }); }); var sliBtn = '.search-btn', sliCont = '.search-slide', sliTxt = '.search-slide input[type=text]', sliDis = '.search-close', sliSpeed = 300; $(sliBtn).click(function(){ $(sliCont).animate( {'width':'85%'}, sliSpeed ); $(sliTxt).focus(); }); $(sliDis).click(function(){ $(sliCont).animate( {'width':0}, sliSpeed ); }); function closeSearch() { $("#navsearchbox").val(''); $("#searchClose").hide(); $("#searchCloseIcon").hide(); }