!function(i){woodmartThemeModule.onePageMenu=function(){function n(e){var t=i("html, body"),n=i("#"+e+', .wd-menu-anchor[data-id="'+e+'"]');t.stop(!0),n.length<1||(n=n.offset().top,t.animate({scrollTop:n-woodmart_settings.one_page_menu_offset},800),setTimeout(function(){o(e)},800))}function o(t){i(".onepage-link").each(function(){var e=i(this);e.find("> a").attr("href").split("#")[1]===t&&(e.siblings().removeClass("current-menu-item"),e.parents(".whb-row").find(".onepage-link").removeClass("current-menu-item"),e.addClass("current-menu-item"))})}var e;woodmartThemeModule.$body.on("click",".onepage-link > a",function(e){var t=i(this).attr("href").split("#")[1];i("#"+t).length<1&&i('.wd-menu-anchor[data-id="'+t+'"]').length<1||(e.stopPropagation(),e.preventDefault(),n(t),i(".wd-close-side").trigger("click"),i(".wd-fs-close").trigger("click"))}),woodmartThemeModule.$window.scroll(function(){var e=woodmartThemeModule.$window.scrollTop(),t=i(".onepage-link:first");e<50&&t.length&&o(t.find("> a").attr("href").split("#")[1])}),0<i(".onepage-link").length&&(i(".wpb-content-wrapper > :is(.vc_row, .vc_section)").waypoint(function(){var e=i(i(this)[0].element).attr("id");o(e)},{offset:150}),i(".wd-menu-anchor").waypoint(function(){o(i(i(this)[0].element).data("id"))},{offset:function(){return i(i(this)[0].element).data("offset")}}),e=window.location.hash.split("#")[1],1<window.location.hash.length)&&setTimeout(function(){n(e)},500)},i(document).ready(function(){woodmartThemeModule.onePageMenu()})}(jQuery);