var Anchor={init:function(){Anchor.slidey=$(".slidey");$(window).resize(Anchor.bindResize).trigger("resize");Anchor.linky=$(".linky").click(Anchor.toggleSlidey);setTimeout(function(){Anchor.hideSlidey();$("body").addClass("js-enabled")},10);$('a[href="#search"]').click(function(){if(!Anchor.linky.hasClass("active"))return Anchor.toggleSlidey.call(Anchor.linky)})},hideSlidey:function(){Anchor.slidey.css("margin-top",this._slideyHeight);Anchor.linky&&Anchor.linky.removeClass("active");return this},toggleSlidey:function(){var e=Anchor,t=$(this);t.toggleClass("active");e.slidey.css("margin-top",t.hasClass("active")?0:e._slideyHeight);return!1},bindResize:function(){Anchor._slideyHeight=-(Anchor.slidey.height()+1);Anchor.hideSlidey()}};$(Anchor.init);
