(function(n){function u(){var t=n("#additional-menu-content").detach(),r=n("#anchormenu"),i=!1;t.length!==0&&(valtech.composerEditMode?r.append(t):(t.find("div").each(function(t,i){var r=n(i);r.text().trim()===""&&r.hasClass()&&r.remove()}),t.length>0&&r.append(t)),t.find("> *").each(function(t,r){var u=n(r);return u.hasClass("category-filter-wrap")?(i=!0,!1):u.hasClass("facet-wrapper")?(i=!0,!1):u.is("hr")?void 0:(i=!0,!1)}),i&&t.show())}function f(){if(!n("body").hasClass("composer-edit")){var t=n("#anchormenu .product-finder-facet"),i=n("#anchormenu .title, #anchormenu > ul");t.length>0&&i.hide()}}function t(t,i,r){var e=n("#header").offset().top+i+4*r+6;if(t.css("top",Math.max(10,e-n(this).scrollTop())),n(document).scrollTop()>0){var u=n("#footer").position().top,f=n(document).scrollTop()+t.outerHeight(),o=f-u+10;f>=u?t.css("margin-top",0-o):t.css("margin-top",0)}}function i(){var i=n(".left-menu #anchormenu"),f=n("#header"),r=10,u=f.height(),o=f.offset().top+u+4*r+6,s=parseInt(n(this).scrollTop());(i.outerHeight()+o<n(window).height()||i.hasClass("mixed-menu"))&&(i.addClass("fixed-menu"),e(),t(i,u,r),n(window).scroll(function(){t(i,u,r)}))}function e(){function i(){t.css("left",e.offset().left+f+"px")}function u(){var n=s.scrollLeft;n?t.css("left",n*-1+10+"px"):i()}var t=n(".left-menu #anchormenu"),e=n(".page-content"),f=10,o=n("#header").height(),s=document.getElementsByTagName("html")[0];(t.css("position","fixed"),t.css("top",o+4*f+6+"px"),valtech.composerEditMode)||(n("html").hasClass("oldie")?(u(),n(window).resize(r(u,100)),n(window).scroll(r(u,100))):(i(),n(window).resize(n.throttle(250,i))))}function r(n,t){var r,u,i,f,e=0,o=function(){e=new Date,i=null,f=n.apply(r,u)};return function(){var s=new Date,h=t-(s-e);return r=this,u=arguments,h<=0?(clearTimeout(i),i=null,e=s,f=n.apply(r,u)):i||(i=setTimeout(o,h)),f}}function o(){return n(window).width()>valtech.settings.breakpointTablet?"wide":"narrow"}function s(){var t=n(".left-menu #anchormenu"),i=t.find(".title a");t.hasClass("mixed-menu")||i.click(function(n){o()==="narrow"&&(t.toggleClass("active"),n.preventDefault())})}if(u(),f(),s(),n(".product-finder-facet, .category-filter").length)n("body").on("list.facetsLoaded",i);else setTimeout(i,100)})(jQuery),function(n){function t(){var t=n("#anchormenu > ul > li, #anchormenu .anchormenu-links > ul > li.lifeDayItem"),i=0,r=t.find("> a").outerHeight()-t.find("> a").height();n("html.ie7").length>0&&(r=0),t.each(function(){var t=n(this).find("> a span").height()+r;t>i&&(i=t)}),t.find("> a").css("height",i),t.length==1&&t.addClass("single-tab")}function i(){var t=n(".mixed-menu"),i=t.find(".title a");if(i.length!==0)i.on("click",function(i){t.toggleClass("active"),n(this).attr("hideFocus","true"),i.preventDefault()})}i(),t()}(jQuery)