!function($){$.responsiveMenuTuck=function(i,e){var n={disableMobile:!1,disableSize:450},t=this,s=!1;t.settings={};var o=$(i),l=i;t.init=function(){return t.settings=$.extend({},n,e),a(),t.settings.disableMobile&&window.outerWidth<t.settings.disableSize?(s=!0,!1):void d()};var d=function(){var i=[],e=o.find("li:visible");if(menuItemTopPos=$(e.get(0)).offset().top,e.each(function(){$(this).addClass("tuck-set").removeClass("last-child"),$(this).offset().top===menuItemTopPos||$(this).hasClass("more-links")||(i.unshift($(this)),$(this).hide())}),0!==i.length||o.find(".more-links ul li").length){o.find(".more-links").addClass("last-child").show(),o.find(".more-links").offset().top!==menuItemTopPos&&(i.unshift(e.not(":hidden").not(".more-links").last()),e.not(":hidden").not(".more-links").last().hide());for(var n=i.length;n--;)i[n].css("display","block"),o.find(".more-links ul").prepend(i[n])}else o.find(".more-links").hide(),o.find("li:not(.more-links):visible:last").addClass("last-child");o.find(".more-links > a").on("click",function(i){var e=$(this).parent().offset().left+$(this).next().outerWidth(),n=$(".main-left").offset().left+$(".main-left").outerWidth();e>n?$(this).next().css("margin-left","-"+(e-n+10)+"px"):$(this).next().css("margin-left",0)})},f=function(){o.find(".more-links").hide(),o.find(".tuck-set").each(function(){$(this).removeClass("tuck-set").css("display","inline-block"),o.append($(this))}),o.find(".more-links .dropdown-menu li").not(".tuck-always").remove(),o.find(".more-links").appendTo(o)},a=function(){function i(){new Date-n<l?setTimeout(i,l):(o=!1,e())}var e=function(){return t.settings.disableMobile&&window.outerWidth<t.settings.disableSize?(s||f(),s=!0,!1):(s=!1,f(),d(),void 0)},n,o=!1,l=200;window.onfocus=function(){e()},$(window).resize(function(){n=new Date,o===!1&&(o=!0,setTimeout(i,l))})};t.destroy=function(){f()},t.resetMenu=function(){f(),d()},t.init()},$.fn.responsiveMenuTuck=function(i){return this.each(function(){if(void 0==$(this).data("responsiveMenuTuck")){var e=new $.responsiveMenuTuck(this,i);$(this).data("responsiveMenuTuck",e)}})}}(jQuery);