/*! Smoothy | v1.2.4 | @kaloja */ !function(e){"use strict";function t(){return window.scrollY||window.pageYOffset}function n(e,t){return e.getBoundingClientRect().top+t}function o(e){var t=location.hash?i(location.href):location.href;return"a"===e.tagName.toLowerCase()&&e.hash.length>0&&i(e.href)===t}function i(e){return e.slice(0,e.lastIndexOf("#"))}function a(e,t,n,o,i){switch(i.easing){case"linear":return n*e/o+t;case"easeInOutQuad":return e/=o/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t);case"easeInOutCubic":return e/=o/2,e<1?n/2*e*e*e+t:(e-=2,n/2*(e*e*e+2)+t)}}var r={};r.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.callback,n=e.easing||"linear",o=e.offset||0,i=e.speed||1e3,a=e.time||500,c=e.type||"speed",s={callback:t,easing:n,offset:o,speed:i,time:a,type:c};r.scroll(s)},r.scroll=function(e){function i(i){o(i.target)&&(i.preventDefault(),i.stopPropagation(),v=i.target.attributes.href.value.toString(),f=v.substr(v.lastIndexOf("#")+1),(l=document.getElementById(f))&&(p=t(),h=n(l,p),s=h-p-e.offset,"speed"===e.type?u=1e3*Math.abs(s/e.speed):"time"===e.type&&(u=e.time)),window.requestAnimationFrame(function(e){g=e,r(e)}))}function r(t){g||(g=t),d=t-g,w=a(d,p,s,u,e),window.scrollTo(0,w),d