var scrolltotop={setting:{startline:100,scrollto:0,scrollduration:1e3,fadeduration:[500,100]},controlHTML:"",controlattrs:{offsetx:5,offsety:5},anchorkeyword:"#top",state:{isvisible:!1,shouldvisible:!1},scrollup:function(){this.cssfixedsupport||this.$control.css({opacity:0});var n=isNaN(this.setting.scrollto)?this.setting.scrollto:parseInt(this.setting.scrollto);n=typeof n=="string"&&jQuery("#"+n).length==1?jQuery("#"+n).offset().top:0;this.$body.animate({scrollTop:n},this.setting.scrollduration)},keepfixed:function(){var n=jQuery(window),t=n.scrollLeft()+n.width()-this.$control.width()-this.controlattrs.offsetx,i=n.scrollTop()+n.height()-this.$control.height()-this.controlattrs.offsety;this.$control.css({left:t+"px",top:i+"px"})},togglecontrol:function(){var n=jQuery(window).scrollTop();this.cssfixedsupport||this.keepfixed();this.state.shouldvisible=n>=this.setting.startline?!0:!1;this.state.shouldvisible&&!this.state.isvisible?(this.$control.stop().animate({opacity:1},this.setting.fadeduration[0]),this.state.isvisible=!0):this.state.shouldvisible==!1&&this.state.isvisible&&(this.$control.stop().animate({opacity:0},this.setting.fadeduration[1]),this.state.isvisible=!1)},init:function(){jQuery(document).ready(function(n){var t=scrolltotop,i=document.all;t.cssfixedsupport=!i||i&&document.compatMode=="CSS1Compat"&&window.XMLHttpRequest;t.$body=window.opera?document.compatMode=="CSS1Compat"?n("html"):n("body"):n("html,body");t.$control=n('
'+t.controlHTML+"<\/div>").css({position:t.cssfixedsupport?"fixed":"absolute",bottom:t.controlattrs.offsety,right:t.controlattrs.offsetx,opacity:0,cursor:"pointer"}).attr({title:"Scroll Back to Top"}).click(function(){return t.scrollup(),!1}).appendTo("body");document.all&&!window.XMLHttpRequest&&t.$control.text()!=""&&t.$control.css({width:t.$control.width()});t.togglecontrol();n('a[href="'+t.anchorkeyword+'"]').click(function(){return t.scrollup(),!1});n(window).bind("scroll resize",function(){t.togglecontrol()})})}},OwlCarousel,ParallaxSlider;scrolltotop.init(),function(){function et(){var t=!1;t&&ht("keydown",tt);n.keyboardSupport&&!t&&s("keydown",tt)}function g(){var u,s,f;if(document.body){var t=document.body,i=document.documentElement,r=window.innerHeight,h=t.scrollHeight;e=document.compatMode.indexOf("CSS")>=0?i:t;o=t;et();d=!0;top!=self?k=!0:h>r&&(t.offsetHeight<=r||i.offsetHeight<=r)&&(u=!1,s=function(){u||i.scrollHeight==document.height||(u=!0,setTimeout(function(){i.style.height=document.height+"px";u=!1},500))},i.style.height="auto",setTimeout(s,10),e.offsetHeight<=r&&(f=document.createElement("div"),f.style.clear="both",t.appendChild(f)));n.fixedBackground||ft||(t.style.backgroundAttachment="scroll",i.style.backgroundAttachment="scroll")}}function nt(t,r,u,f){var l,o,e,a,s;(f||(f=1e3),ct(r,u),n.accelerationMax!=1&&(l=+new Date,o=l-c,o1&&(e=Math.min(e,n.accelerationMax),r*=e,u*=e)),c=+new Date),i.push({x:r,y:u,lastX:r<0?.99:-.99,lastY:u<0?.99:-.99,start:+new Date}),h)||(a=t===document.body,s=function(){for(var y,p,d=+new Date,c=0,l=0,o=0;o=n.animationTime,v=k?1:b/n.animationTime;n.pulseAlgorithm&&(v=vt(v));y=e.x*v-e.lastX>>0;p=e.y*v-e.lastY>>0;c+=y;l+=p;e.lastX+=y;e.lastY+=p;k&&(i.splice(o,1),o--)}a?window.scrollBy(c,l):(c&&(t.scrollLeft+=c),l&&(t.scrollTop+=l));r||u||(i=[]);i.length?w(s,t,f/n.frameRate+1):h=!1},w(s,t,0),h=!0)}function ot(t){var u,f,r,i;if((d||g(),u=t.target,f=it(u),!f||t.defaultPrevented||y(o,"embed")||y(u,"embed")&&/\.pdf/i.test(u.src))||(r=t.wheelDeltaX||0,i=t.wheelDeltaY||0,r||i||(i=t.wheelDelta||0),!n.touchpadSupport&&at(i)))return!0;Math.abs(r)>1.2&&(r*=n.stepSize/120);Math.abs(i)>1.2&&(i*=n.stepSize/120);nt(f,-r,-i);t.preventDefault()}function tt(i){var e=i.target,l=i.ctrlKey||i.altKey||i.metaKey||i.shiftKey&&i.keyCode!==t.spacebar,h;if(/input|textarea|select|embed/i.test(e.nodeName)||e.isContentEditable||i.defaultPrevented||l||y(e,"button")&&i.keyCode===t.spacebar)return!0;var c,s=0,r=0,u=it(o),f=u.clientHeight;u==document.body&&(f=window.innerHeight);switch(i.keyCode){case t.up:r=-n.arrowScroll;break;case t.down:r=n.arrowScroll;break;case t.spacebar:c=i.shiftKey?1:-1;r=-c*f*.9;break;case t.pageup:r=-f*.9;break;case t.pagedown:r=f*.9;break;case t.home:r=-u.scrollTop;break;case t.end:h=u.scrollHeight-u.scrollTop-f;r=h>0?h+10:0;break;case t.left:s=-n.arrowScroll;break;case t.right:s=n.arrowScroll;break;default:return!0}nt(u,s,r);i.preventDefault()}function st(n){o=n.target}function v(n,t){for(var i=n.length;i--;)l[a(n[i])]=t;return t}function it(n){var t=[],r=e.scrollHeight,i;do{if(i=l[a(n)],i)return v(t,i);if(t.push(n),r===n.scrollHeight){if(!k||e.clientHeight+100?1:-1;t=t>0?1:-1;(f.x!==n||f.y!==t)&&(f.x=n,f.y=t,i=[],c=0)}function at(n){if(n){n=Math.abs(n);r.push(n);r.shift();clearTimeout(lt);var t=p(r[0],120)&&p(r[1],120)&&p(r[2],120);return!t}}function p(n,t){return Math.floor(n/t)==n/t}function rt(t){var i,r,u;return t=t*n.pulseScale,t<1?i=t-(1-Math.exp(-t)):(r=Math.exp(-1),t-=1,u=1-Math.exp(-t),i=r+u*(1-r)),i*n.pulseNormalize}function vt(t){return t>=1?1:t<=0?0:(n.pulseNormalize==1&&(n.pulseNormalize/=rt(1)),rt(t))}var b={frameRate:150,animationTime:400,stepSize:120,pulseAlgorithm:!0,pulseScale:8,pulseNormalize:1,accelerationDelta:20,accelerationMax:1,keyboardSupport:!0,arrowScroll:50,touchpadSupport:!0,fixedBackground:!0,excluded:""},n=b,ft=!1,k=!1,f={x:0,y:0},d=!1,e=document.documentElement,o,r=[120,120,120],t={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},n=b,i=[],h=!1,c=+new Date,l={},a,lt,w,ut,u;setInterval(function(){l={}},1e4);a=function(){var n=0;return function(t){return t.uniqueID||(t.uniqueID=n++)}}();w=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(n,t,i){window.setTimeout(n,i||1e3/60)}}();ut=/chrome/i.test(window.navigator.userAgent);u=null;"onwheel"in document.createElement("div")?u="wheel":"onmousewheel"in document.createElement("div")&&(u="mousewheel");u&&ut&&(s(u,ot),s("mousedown",st),s("load",g))}();window.Modernizr=function(n,t,i){function a(n){w.cssText=n}function u(n,t){return typeof n===t}function v(n,t){for(var r in n)if(w[n[r]]!==i)return t=="pfx"?n[r]:!0;return!1}function nt(n,t,r){var e,f;for(e in n)if(f=t[n[e]],f!==i)return r===!1?n[e]:u(f,"function")?f.bind(r||t):f;return!1}function s(n,t,i){var r=n.charAt(0).toUpperCase()+n.substr(1),f=(n+" "+k.join(r+" ")+r).split(" ");return u(t,"string")||u(t,"undefined")?v(f,t):(f=(n+" "+d.join(r+" ")+r).split(" "),nt(f,t,i))}var r={},y=t.documentElement,p=t.createElement("modernizr"),w=p.style,tt,ut={}.toString,b="Webkit Moz O ms",k=b.split(" "),d=b.toLowerCase().split(" "),f={},h=[],c=h.slice,e,l={}.hasOwnProperty,g,o;g=!u(l,"undefined")&&!u(l.call,"undefined")?function(n,t){return l.call(n,t)}:function(n,t){return t in n&&u(n.constructor.prototype[t],"undefined")};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=c.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(c.call(arguments))),Object(u)===u?u:e):t.apply(n,i.concat(c.call(arguments)))},r});f.cssanimations=function(){return s("animationName")};f.csstransitions=function(){return s("transition")};for(o in f)g(f,o)&&(e=o.toLowerCase(),r[e]=f[o](),h.push((r[e]?"":"no-")+e));return a(""),p=tt=null,function(n,t){function o(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x