text: !function(){"use strict";if("querySelector"in document&&"addEventListener"in window){var e=function(e,t,n){for(var o=0;o<e.length;o++)t.call(n,o,e[o])};FastClick.attach(document.body),smoothScroll.init();var t=responsiveNav(".nav-collapse",{closeOnNavClick:!0}),n=document.createElement("div");n.className="mask",document.body.appendChild(n),null!==navigator.userAgent.match(/Android/i)&&(document.documentElement.className+=" android");var o,i=document.querySelector(".nav-collapse ul").querySelectorAll("a"),a=function(){o=[],e(i,function(e,t){var n=i[e].getAttribute("href").replace("#","");o.push(document.getElementById(n).offsetTop+200)})};a(),window.addEventListener("resize",function(){a()},!1);var c=function(t){e(i,function(e,t){i[e].parentNode.className=i[e].parentNode.className.replace(/[\s]{0,}active/,"")}),i[t].parentNode.className+=i[t].parentNode.className?" active":"active"},r=!1;window.addEventListener("scroll",function(){var t=window.pageYOffset,n=document.body,i=document.documentElement,a=window.innerHeight,l=Math.max(n.scrollHeight,n.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight);r||e(o,function(e,n){n>t&&(n<t+300||t+a>=l)&&c(e)})},!1),n.addEventListener("click",function(e){e.preventDefault(),t.close()},!1);var l=function(){setTimeout(function(){r=!1},500)};document.querySelector(".logo").addEventListener("click",function(e){e.preventDefault(),r=!0,c(0),t.close(),history.pushState&&history.pushState("",document.title,window.location.pathname),l()},!1),e(i,function(e,t){i[e].addEventListener("click",function(t){t.preventDefault(),r=!0,c(e);var n=this.getAttribute("href").replace("#",""),o=document.getElementById(n);"home"!==n?(o.removeAttribute("id"),location.hash="#"+n,o.setAttribute("id",n)):history.pushState&&history.pushState("",document.title,window.location.pathname),l()},!1)})}}();