(function(){window.home=function(){console.log('%c Homepage Library Loaded 🐔','background: #f6f6f6; color: #000; padding: 4px 6px 4px 0;');homepageUtils.init();}})();if(!Element.prototype.closest){if(!Element.prototype.matches){Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;} Element.prototype.closest=function(s){var el=this;var ancestor=this;if(!document.documentElement.contains(el))return null;do{if(ancestor.matches(s))return ancestor;ancestor=ancestor.parentElement;}while(ancestor!==null);return null;};} var homepageUtils={init:function(){this.jsDetect();console.log('%c Is JavaScript Supported? 💡','background: #f6f6f6; color: #000; padding: 4px 6px 4px 0;',this.jsDetect());if(window.matchMedia("(min-width: 768px)").matches){this.slimHeaderHome('.slim-header','.page-header','is-visible');console.log('%c Slim Header ✅','background: #f6f6f6; color: #000; padding: 4px 6px 4px 0;');}},jsDetect:function(){var html=document.getElementsByTagName('html')[0];try{html.classList.remove('no-js');return true;}catch(e){return false}},slimHeader:function(selector,activeClass){var doc=document.documentElement;var w=window;var curScroll;var prevScroll=w.scrollY||doc.scrollTop;var header=document.getElementById(selector);var threshold=200;var ticking=false;var checkScroll=function(curScroll){if(curScroll>prevScroll||curScroll0){slim.classList.remove(activeClass);}else{slim.classList.add(activeClass);}});});observer.observe(header);}}}; ;window.kwait=window.kwait||[];kwait.push(['call',"home_js"]);