function Layzr(t){this._lastScroll=0,this._ticking=!1,t=t||{},this._optionsContainer=document.querySelector(t.container)||window,this._optionsSelector=t.selector||"[data-layzr]",this._optionsAttr=t.attr||"data-layzr",this._optionsAttrSrcSet=t.attrSrcSet||"data-layzr-srcset",this._optionsAttrRetina=t.retinaAttr||"data-layzr-retina",this._optionsAttrBg=t.bgAttr||"data-layzr-bg",this._optionsAttrHidden=t.hiddenAttr||"data-layzr-hidden",this._optionsThreshold=t.threshold||0,this._optionsBefore=t.before||null,this._optionsAfter=t.after||null,this._optionsCallback=t.callback||null,this._retina=window.devicePixelRatio>1,this._srcAttr=this._retina?this._optionsAttrRetina:this._optionsAttr,this._nodes=document.querySelectorAll(this._optionsSelector),this._handlerBind=this._requestScroll.bind(this),this._create()}function simple_tooltip(t,e){jQuery(t).each(function(t){jQuery("body").append("
"+jQuery(this).find("span.tooltip-c").html()+"
");var i=jQuery("#"+e+t);jQuery(this).removeAttr("title").mouseover(function(){i.css({opacity:1,display:"none"}).fadeIn(400)}).mousemove(function(t){var e,o,a=jQuery(window).scrollTop(),n=jQuery(window).width(),s=15;e=n-2*s>=i.width()+t.pageX?t.pageX+s:n-i.width()-s,o=a+2*s>=t.pageY-i.height()?a+s:t.pageY-i.height()-2.2*s,i.css({left:e,top:o})}).mouseout(function(){i.css({left:"-9999px"})})})}jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,i,o,a){return jQuery.easing[jQuery.easing.def](t,e,i,o,a)},easeInQuad:function(t,e,i,o,a){return o*(e/=a)*e+i},easeOutQuad:function(t,e,i,o,a){return-o*(e/=a)*(e-2)+i},easeInOutQuad:function(t,e,i,o,a){return(e/=a/2)<1?o/2*e*e+i:-o/2*(--e*(e-2)-1)+i},easeInCubic:function(t,e,i,o,a){return o*(e/=a)*e*e+i},easeOutCubic:function(t,e,i,o,a){return o*((e=e/a-1)*e*e+1)+i},easeInOutCubic:function(t,e,i,o,a){return(e/=a/2)<1?o/2*e*e*e+i:o/2*((e-=2)*e*e+2)+i},easeInQuart:function(t,e,i,o,a){return o*(e/=a)*e*e*e+i},easeOutQuart:function(t,e,i,o,a){return-o*((e=e/a-1)*e*e*e-1)+i},easeInOutQuart:function(t,e,i,o,a){return(e/=a/2)<1?o/2*e*e*e*e+i:-o/2*((e-=2)*e*e*e-2)+i},easeInQuint:function(t,e,i,o,a){return o*(e/=a)*e*e*e*e+i},easeOutQuint:function(t,e,i,o,a){return o*((e=e/a-1)*e*e*e*e+1)+i},easeInOutQuint:function(t,e,i,o,a){return(e/=a/2)<1?o/2*e*e*e*e*e+i:o/2*((e-=2)*e*e*e*e+2)+i},easeInSine:function(t,e,i,o,a){return-o*Math.cos(e/a*(Math.PI/2))+o+i},easeOutSine:function(t,e,i,o,a){return o*Math.sin(e/a*(Math.PI/2))+i},easeInOutSine:function(t,e,i,o,a){return-o/2*(Math.cos(Math.PI*e/a)-1)+i},easeInExpo:function(t,e,i,o,a){return 0==e?i:o*Math.pow(2,10*(e/a-1))+i},easeOutExpo:function(t,e,i,o,a){return e==a?i+o:o*(-Math.pow(2,-10*e/a)+1)+i},easeInOutExpo:function(t,e,i,o,a){return 0==e?i:e==a?i+o:(e/=a/2)<1?o/2*Math.pow(2,10*(e-1))+i:o/2*(-Math.pow(2,-10*--e)+2)+i},easeInCirc:function(t,e,i,o,a){return-o*(Math.sqrt(1-(e/=a)*e)-1)+i},easeOutCirc:function(t,e,i,o,a){return o*Math.sqrt(1-(e=e/a-1)*e)+i},easeInOutCirc:function(t,e,i,o,a){return(e/=a/2)<1?-o/2*(Math.sqrt(1-e*e)-1)+i:o/2*(Math.sqrt(1-(e-=2)*e)+1)+i},easeInElastic:function(t,e,i,o,a){var n=1.70158,s=0,r=o;if(0==e)return i;if(1==(e/=a))return i+o;if(s||(s=.3*a),re?-.5*r*Math.pow(2,10*(e-=1))*Math.sin(2*(e*a-n)*Math.PI/s)+i:r*Math.pow(2,-10*(e-=1))*Math.sin(2*(e*a-n)*Math.PI/s)*.5+o+i},easeInBack:function(t,e,i,o,a,n){return void 0==n&&(n=1.70158),o*(e/=a)*e*((n+1)*e-n)+i},easeOutBack:function(t,e,i,o,a,n){return void 0==n&&(n=1.70158),o*((e=e/a-1)*e*((n+1)*e+n)+1)+i},easeInOutBack:function(t,e,i,o,a,n){return void 0==n&&(n=1.70158),(e/=a/2)<1?o/2*e*e*(((n*=1.525)+1)*e-n)+i:o/2*((e-=2)*e*(((n*=1.525)+1)*e+n)+2)+i},easeInBounce:function(t,e,i,o,a){return o-jQuery.easing.easeOutBounce(t,a-e,0,o,a)+i},easeOutBounce:function(t,e,i,o,a){return(e/=a)<1/2.75?7.5625*o*e*e+i:2/2.75>e?o*(7.5625*(e-=1.5/2.75)*e+.75)+i:2.5/2.75>e?o*(7.5625*(e-=2.25/2.75)*e+.9375)+i:o*(7.5625*(e-=2.625/2.75)*e+.984375)+i},easeInOutBounce:function(t,e,i,o,a){return a/2>e?.5*jQuery.easing.easeInBounce(t,2*e,0,o,a)+i:.5*jQuery.easing.easeOutBounce(t,2*e-a,0,o,a)+.5*o+i}}),!function(t){function e(t){var e=t.length,o=i.type(t);return"function"===o||i.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===o||0===e||"number"==typeof e&&e>0&&e-1 in t}if(!t.jQuery){var i=function(t,e){return new i.fn.init(t,e)};i.isWindow=function(t){return null!=t&&t==t.window},i.type=function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?a[s.call(t)]||"object":typeof t},i.isArray=Array.isArray||function(t){return"array"===i.type(t)},i.isPlainObject=function(t){var e;if(!t||"object"!==i.type(t)||t.nodeType||i.isWindow(t))return!1;try{if(t.constructor&&!n.call(t,"constructor")&&!n.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(o){return!1}for(e in t);return void 0===e||n.call(t,e)},i.each=function(t,i,o){var a,n=0,s=t.length,r=e(t);if(o){if(r)for(;s>n&&(a=i.apply(t[n],o),a!==!1);n++);else for(n in t)if(a=i.apply(t[n],o),a===!1)break}else if(r)for(;s>n&&(a=i.call(t[n],n,t[n]),a!==!1);n++);else for(n in t)if(a=i.call(t[n],n,t[n]),a===!1)break;return t},i.data=function(t,e,a){if(void 0===a){var n=t[i.expando],s=n&&o[n];if(void 0===e)return s;if(s&&e in s)return s[e]}else if(void 0!==e){var n=t[i.expando]||(t[i.expando]=++i.uuid);return o[n]=o[n]||{},o[n][e]=a,a}},i.removeData=function(t,e){var a=t[i.expando],n=a&&o[a];n&&i.each(e,function(t,e){delete n[e]})},i.extend=function(){var t,e,o,a,n,s,r=arguments[0]||{},l=1,c=arguments.length,d=!1;for("boolean"==typeof r&&(d=r,r=arguments[l]||{},l++),"object"!=typeof r&&"function"!==i.type(r)&&(r={}),l===c&&(r=this,l--);c>l;l++)if(null!=(n=arguments[l]))for(a in n)t=r[a],o=n[a],r!==o&&(d&&o&&(i.isPlainObject(o)||(e=i.isArray(o)))?(e?(e=!1,s=t&&i.isArray(t)?t:[]):s=t&&i.isPlainObject(t)?t:{},r[a]=i.extend(d,s,o)):void 0!==o&&(r[a]=o));return r},i.queue=function(t,o,a){function n(t,i){var o=i||[];return null!=t&&(e(Object(t))?!function(t,e){for(var i=+e.length,o=0,a=t.length;i>o;)t[a++]=e[o++];if(i!==i)for(;void 0!==e[o];)t[a++]=e[o++];return t.length=a,t}(o,"string"==typeof t?[t]:t):[].push.call(o,t)),o}if(t){o=(o||"fx")+"queue";var s=i.data(t,o);return a?(!s||i.isArray(a)?s=i.data(t,o,n(a)):s.push(a),s):s||[]}},i.dequeue=function(t,e){i.each(t.nodeType?[t]:t,function(t,o){e=e||"fx";var a=i.queue(o,e),n=a.shift();"inprogress"===n&&(n=a.shift()),n&&("fx"===e&&a.unshift("inprogress"),n.call(o,function(){i.dequeue(o,e)}))})},i.fn=i.prototype={init:function(t){if(t.nodeType)return this[0]=t,this;throw new Error("Not a DOM node.")},offset:function(){var e=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:e.top+(t.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:e.left+(t.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function t(){for(var t=this.offsetParent||document;t&&"html"===!t.nodeType.toLowerCase&&"static"===t.style.position;)t=t.offsetParent;return t||document}var e=this[0],t=t.apply(e),o=this.offset(),a=/^(?:body|html)$/i.test(t.nodeName)?{top:0,left:0}:i(t).offset();return o.top-=parseFloat(e.style.marginTop)||0,o.left-=parseFloat(e.style.marginLeft)||0,t.style&&(a.top+=parseFloat(t.style.borderTopWidth)||0,a.left+=parseFloat(t.style.borderLeftWidth)||0),{top:o.top-a.top,left:o.left-a.left}}};var o={};i.expando="velocity"+(new Date).getTime(),i.uuid=0;for(var a={},n=a.hasOwnProperty,s=a.toString,r="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;la;++a){var n=c(i,t,o);if(0===n)return i;var s=l(i,t,o)-e;i-=s/n}return i}function u(){for(var e=0;w>e;++e)S[e]=l(e*b,t,o)}function h(e,i,a){var n,s,r=0;do s=i+(a-i)/2,n=l(s,t,o)-e,n>0?a=s:i=s;while(Math.abs(n)>v&&++r=g?d(e,r):0==l?r:h(e,i,i+b)}function p(){_=!0,(t!=i||o!=a)&&u()}var m=4,g=.001,v=1e-7,y=10,w=11,b=1/(w-1),C="Float32Array"in e;if(4!==arguments.length)return!1;for(var x=0;4>x;++x)if("number"!=typeof arguments[x]||isNaN(arguments[x])||!isFinite(arguments[x]))return!1;t=Math.min(t,1),o=Math.min(o,1),t=Math.max(t,0),o=Math.max(o,0);var S=C?new Float32Array(w):new Array(w),_=!1,k=function(e){return _||p(),t===i&&o===a?e:0===e?0:1===e?1:l(f(e),i,a)};k.getControlPoints=function(){return[{x:t,y:i},{x:o,y:a}]};var T="generateBezier("+[t,i,o,a]+")";return k.toString=function(){return T},k}function c(t,e){var i=t;return m.isString(t)?w.Easings[t]||(i=!1):i=m.isArray(t)&&1===t.length?r.apply(null,t):m.isArray(t)&&2===t.length?b.apply(null,t.concat([e])):m.isArray(t)&&4===t.length?l.apply(null,t):!1,i===!1&&(i=w.Easings[w.defaults.easing]?w.defaults.easing:y),i}function d(t){if(t){var e=(new Date).getTime(),i=w.State.calls.length;i>1e4&&(w.State.calls=a(w.State.calls));for(var n=0;i>n;n++)if(w.State.calls[n]){var r=w.State.calls[n],l=r[0],c=r[2],f=r[3],p=!!f,g=null;f||(f=w.State.calls[n][3]=e-16);for(var v=Math.min((e-f)/c.duration,1),y=0,b=l.length;b>y;y++){var x=l[y],_=x.element;if(s(_)){var k=!1;if(c.display!==o&&null!==c.display&&"none"!==c.display){if("flex"===c.display){var T=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];h.each(T,function(t,e){C.setPropertyValue(_,"display",e)})}C.setPropertyValue(_,"display",c.display)}c.visibility!==o&&"hidden"!==c.visibility&&C.setPropertyValue(_,"visibility",c.visibility);for(var I in x)if("element"!==I){var P,z=x[I],M=m.isString(z.easing)?w.Easings[z.easing]:z.easing;if(1===v)P=z.endValue;else{var L=z.endValue-z.startValue;if(P=z.startValue+L*M(v,c,L),!p&&P===z.currentValue)continue}if(z.currentValue=P,"tween"===I)g=P;else{if(C.Hooks.registered[I]){var A=C.Hooks.getRoot(I),E=s(_).rootPropertyValueCache[A];E&&(z.rootPropertyValue=E)}var B=C.setPropertyValue(_,I,z.currentValue+(0===parseFloat(P)?"":z.unitType),z.rootPropertyValue,z.scrollData);C.Hooks.registered[I]&&(s(_).rootPropertyValueCache[A]=C.Normalizations.registered[A]?C.Normalizations.registered[A]("extract",null,B[1]):B[1]),"transform"===B[0]&&(k=!0)}}c.mobileHA&&s(_).transformCache.translate3d===o&&(s(_).transformCache.translate3d="(0px, 0px, 0px)",k=!0),k&&C.flushTransformCache(_)}}c.display!==o&&"none"!==c.display&&(w.State.calls[n][2].display=!1),c.visibility!==o&&"hidden"!==c.visibility&&(w.State.calls[n][2].visibility=!1),c.progress&&c.progress.call(r[1],r[1],v,Math.max(0,f+c.duration-e),f,g),1===v&&u(n)}}w.State.isTicking&&S(d)}function u(t,e){if(!w.State.calls[t])return!1;for(var i=w.State.calls[t][0],a=w.State.calls[t][1],n=w.State.calls[t][2],r=w.State.calls[t][4],l=!1,c=0,d=i.length;d>c;c++){var u=i[c].element;if(e||n.loop||("none"===n.display&&C.setPropertyValue(u,"display",n.display),"hidden"===n.visibility&&C.setPropertyValue(u,"visibility",n.visibility)),n.loop!==!0&&(h.queue(u)[1]===o||!/\.velocityQueueEntryFlag/i.test(h.queue(u)[1]))&&s(u)){s(u).isAnimating=!1,s(u).rootPropertyValueCache={};var f=!1;h.each(C.Lists.transforms3D,function(t,e){var i=/^scale/.test(e)?1:0,a=s(u).transformCache[e];s(u).transformCache[e]!==o&&new RegExp("^\\("+i+"[^.]").test(a)&&(f=!0,delete s(u).transformCache[e])}),n.mobileHA&&(f=!0,delete s(u).transformCache.translate3d),f&&C.flushTransformCache(u),C.Values.removeClass(u,"velocity-animating")}if(!e&&n.complete&&!n.loop&&c===d-1)try{n.complete.call(a,a)}catch(p){setTimeout(function(){throw p},1)}r&&n.loop!==!0&&r(a),s(u)&&n.loop===!0&&!e&&(h.each(s(u).tweensContainer,function(t,e){/^rotate/.test(t)&&360===parseFloat(e.endValue)&&(e.endValue=0,e.startValue=360),/^backgroundPosition/.test(t)&&100===parseFloat(e.endValue)&&"%"===e.unitType&&(e.endValue=0,e.startValue=100)}),w(u,"reverse",{loop:!0,delay:n.delay})),n.queue!==!1&&h.dequeue(u,n.queue)}w.State.calls[t]=!1;for(var m=0,g=w.State.calls.length;g>m;m++)if(w.State.calls[m]!==!1){l=!0;break}l===!1&&(w.State.isTicking=!1,delete w.State.calls,w.State.calls=[])}var h,f=function(){if(i.documentMode)return i.documentMode;for(var t=7;t>4;t--){var e=i.createElement("div");if(e.innerHTML="",e.getElementsByTagName("span").length)return e=null,t}return o}(),p=function(){var t=0;return e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||function(e){var i,o=(new Date).getTime();return i=Math.max(0,16-(o-t)),t=o+i,setTimeout(function(){e(o+i)},i)}}(),m={isString:function(t){return"string"==typeof t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)},isNode:function(t){return t&&t.nodeType},isNodeList:function(t){return"object"==typeof t&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(t))&&t.length!==o&&(0===t.length||"object"==typeof t[0]&&t[0].nodeType>0)},isWrapped:function(t){return t&&(t.jquery||e.Zepto&&e.Zepto.zepto.isZ(t))},isSVG:function(t){return e.SVGElement&&t instanceof e.SVGElement},isEmptyObject:function(t){for(var e in t)return!1;return!0}},g=!1;if(t.fn&&t.fn.jquery?(h=t,g=!0):h=e.Velocity.Utilities,8>=f&&!g)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=f)return void(jQuery.fn.velocity=jQuery.fn.animate);var v=400,y="swing",w={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:e.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:i.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:h,Redirects:{},Easings:{},Promise:e.Promise,defaults:{queue:"",duration:v,easing:y,begin:o,complete:o,progress:o,display:o,visibility:o,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(t){h.data(t,"velocity",{isSVG:m.isSVG(t),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};e.pageYOffset!==o?(w.State.scrollAnchor=e,w.State.scrollPropertyLeft="pageXOffset",w.State.scrollPropertyTop="pageYOffset"):(w.State.scrollAnchor=i.documentElement||i.body.parentNode||i.body,w.State.scrollPropertyLeft="scrollLeft",w.State.scrollPropertyTop="scrollTop");var b=function(){function t(t){return-t.tension*t.x-t.friction*t.v}function e(e,i,o){var a={x:e.x+o.dx*i,v:e.v+o.dv*i,tension:e.tension,friction:e.friction};return{dx:a.v,dv:t(a)}}function i(i,o){var a={dx:i.v,dv:t(i)},n=e(i,.5*o,a),s=e(i,.5*o,n),r=e(i,o,s),l=1/6*(a.dx+2*(n.dx+s.dx)+r.dx),c=1/6*(a.dv+2*(n.dv+s.dv)+r.dv);return i.x=i.x+l*o,i.v=i.v+c*o,i}return function o(t,e,a){var n,s,r,l={x:-1,v:0,tension:null,friction:null},c=[0],d=0,u=1e-4,h=.016;for(t=parseFloat(t)||500,e=parseFloat(e)||20,a=a||null,l.tension=t,l.friction=e,n=null!==a,n?(d=o(t,e),s=d/a*h):s=h;r=i(r||l,s),c.push(1+r.x),d+=16,Math.abs(r.x)>u&&Math.abs(r.v)>u;);return n?function(t){return c[t*(c.length-1)|0]}:d}}();w.Easings={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},spring:function(t){return 1-Math.cos(4.5*t*Math.PI)*Math.exp(6*-t)}},h.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(t,e){w.Easings[e[0]]=l.apply(null,e[1])});var C=w.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+([0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var t=0;t=f)switch(t){case"name":return"filter";case"extract":var o=i.toString().match(/alpha\(opacity=(.*)\)/i);return i=o?o[1]/100:1;case"inject":return e.style.zoom=1,parseFloat(i)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(i),10)+")"}else switch(t){case"name":return"opacity";case"extract":return i;case"inject":return i}}},register:function(){9>=f||w.State.isGingerbread||(C.Lists.transformsBase=C.Lists.transformsBase.concat(C.Lists.transforms3D));for(var t=0;ta&&(a=1),n=!/(\d)$/i.test(a);break;case"skew":n=!/(deg|\d)$/i.test(a);break;case"rotate":n=!/(deg|\d)$/i.test(a)}return n||(s(i).transformCache[e]="("+a+")"),s(i).transformCache[e]}}}();for(var t=0;t=f||3!==n.split(" ").length||(n+=" 1"),n;case"inject":return 8>=f?4===a.split(" ").length&&(a=a.split(/\s+/).slice(0,3).join(" ")):3===a.split(" ").length&&(a+=" 1"),(8>=f?"rgb":"rgba")+"("+a.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(t){return t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()})},SVGAttribute:function(t){var e="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(f||w.State.isAndroid&&!w.State.isChrome)&&(e+="|transform"),new RegExp("^("+e+")$","i").test(t)},prefixCheck:function(t){if(w.State.prefixMatches[t])return[w.State.prefixMatches[t],!0];for(var e=["","Webkit","Moz","ms","O"],i=0,o=e.length;o>i;i++){var a;if(a=0===i?t:e[i]+t.replace(/^\w/,function(t){return t.toUpperCase()}),m.isString(w.State.prefixElement.style[a]))return w.State.prefixMatches[t]=a,[a,!0]}return[t,!1]}},Values:{hexToRgb:function(t){var e,i=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return t=t.replace(i,function(t,e,i,o){return e+e+i+i+o+o}),e=o.exec(t),e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[0,0,0]},isCSSNullValue:function(t){return 0==t||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(t)},getUnitType:function(t){return/^(rotate|skew)/i.test(t)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(t)?"":"px"},getDisplayType:function(t){var e=t&&t.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(e)?"inline":/^(li)$/i.test(e)?"list-item":/^(tr)$/i.test(e)?"table-row":/^(table)$/i.test(e)?"table":/^(tbody)$/i.test(e)?"table-row-group":"block"},addClass:function(t,e){t.classList?t.classList.add(e):t.className+=(t.className.length?" ":"")+e},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.toString().replace(new RegExp("(^|\\s)"+e.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(t,i,a,n){function r(t,i){function a(){c&&C.setPropertyValue(t,"display","none")}var l=0;if(8>=f)l=h.css(t,i);else{var c=!1;if(/^(width|height)$/.test(i)&&0===C.getPropertyValue(t,"display")&&(c=!0,C.setPropertyValue(t,"display",C.Values.getDisplayType(t))),!n){if("height"===i&&"border-box"!==C.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var d=t.offsetHeight-(parseFloat(C.getPropertyValue(t,"borderTopWidth"))||0)-(parseFloat(C.getPropertyValue(t,"borderBottomWidth"))||0)-(parseFloat(C.getPropertyValue(t,"paddingTop"))||0)-(parseFloat(C.getPropertyValue(t,"paddingBottom"))||0);return a(),d}if("width"===i&&"border-box"!==C.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var u=t.offsetWidth-(parseFloat(C.getPropertyValue(t,"borderLeftWidth"))||0)-(parseFloat(C.getPropertyValue(t,"borderRightWidth"))||0)-(parseFloat(C.getPropertyValue(t,"paddingLeft"))||0)-(parseFloat(C.getPropertyValue(t,"paddingRight"))||0);return a(),u}}var p;p=s(t)===o?e.getComputedStyle(t,null):s(t).computedStyle?s(t).computedStyle:s(t).computedStyle=e.getComputedStyle(t,null),"borderColor"===i&&(i="borderTopColor"),l=9===f&&"filter"===i?p.getPropertyValue(i):p[i],(""===l||null===l)&&(l=t.style[i]),a()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(i)){var m=r(t,"position");("fixed"===m||"absolute"===m&&/top|left/i.test(i))&&(l=h(t).position()[i]+"px")}return l}var l;if(C.Hooks.registered[i]){var c=i,d=C.Hooks.getRoot(c);a===o&&(a=C.getPropertyValue(t,C.Names.prefixCheck(d)[0])),C.Normalizations.registered[d]&&(a=C.Normalizations.registered[d]("extract",t,a)),l=C.Hooks.extractValue(c,a)}else if(C.Normalizations.registered[i]){var u,p;u=C.Normalizations.registered[i]("name",t),"transform"!==u&&(p=r(t,C.Names.prefixCheck(u)[0]),C.Values.isCSSNullValue(p)&&C.Hooks.templates[i]&&(p=C.Hooks.templates[i][1])),l=C.Normalizations.registered[i]("extract",t,p)}if(!/^[\d-]/.test(l))if(s(t)&&s(t).isSVG&&C.Names.SVGAttribute(i))if(/^(height|width)$/i.test(i))try{l=t.getBBox()[i]}catch(m){l=0}else l=t.getAttribute(i);else l=r(t,C.Names.prefixCheck(i)[0]);return C.Values.isCSSNullValue(l)&&(l=0),w.debug>=2&&console.log("Get "+i+": "+l),l},setPropertyValue:function(t,i,o,a,n){var r=i;if("scroll"===i)n.container?n.container["scroll"+n.direction]=o:"Left"===n.direction?e.scrollTo(o,n.alternateValue):e.scrollTo(n.alternateValue,o);else if(C.Normalizations.registered[i]&&"transform"===C.Normalizations.registered[i]("name",t))C.Normalizations.registered[i]("inject",t,o),r="transform",o=s(t).transformCache[i];else{if(C.Hooks.registered[i]){var l=i,c=C.Hooks.getRoot(i);a=a||C.getPropertyValue(t,c),o=C.Hooks.injectValue(l,o,a),i=c}if(C.Normalizations.registered[i]&&(o=C.Normalizations.registered[i]("inject",t,o),i=C.Normalizations.registered[i]("name",t)),r=C.Names.prefixCheck(i)[0],8>=f)try{t.style[r]=o}catch(d){w.debug&&console.log("Browser does not support ["+o+"] for ["+r+"]")}else s(t)&&s(t).isSVG&&C.Names.SVGAttribute(i)?t.setAttribute(i,o):t.style[r]=o;w.debug>=2&&console.log("Set "+i+" ("+r+"): "+o)}return[r,o]},flushTransformCache:function(t){function e(e){return parseFloat(C.getPropertyValue(t,e))}var i="";if((f||w.State.isAndroid&&!w.State.isChrome)&&s(t).isSVG){var o={translate:[e("translateX"),e("translateY")],skewX:[e("skewX")],skewY:[e("skewY")],scale:1!==e("scale")?[e("scale"),e("scale")]:[e("scaleX"),e("scaleY")],rotate:[e("rotateZ"),0,0]};h.each(s(t).transformCache,function(t){/^translate/i.test(t)?t="translate":/^scale/i.test(t)?t="scale":/^rotate/i.test(t)&&(t="rotate"),o[t]&&(i+=t+"("+o[t].join(" ")+") ",delete o[t])})}else{var a,n;h.each(s(t).transformCache,function(e){return a=s(t).transformCache[e],"transformPerspective"===e?(n=a,!0):(9===f&&"rotateZ"===e&&(e="rotate"),void(i+=e+a+" "))}),n&&(i="perspective"+n+" "+i)}C.setPropertyValue(t,"transform",i)}};C.Hooks.register(),C.Normalizations.register(),w.hook=function(t,e,i){var a=o;return t=n(t),h.each(t,function(t,n){if(s(n)===o&&w.init(n),i===o)a===o&&(a=w.CSS.getPropertyValue(n,e));else{var r=w.CSS.setPropertyValue(n,e,i);"transform"===r[0]&&w.CSS.flushTransformCache(n),a=r}}),a};var x=function(){function t(){return r?I.promise||null:l}function a(){function t(){function t(t,e){var i=o,a=o,s=o;return m.isArray(t)?(i=t[0],!m.isArray(t[1])&&/^[\d-]/.test(t[1])||m.isFunction(t[1])||C.RegEx.isHex.test(t[1])?s=t[1]:(m.isString(t[1])&&!C.RegEx.isHex.test(t[1])||m.isArray(t[1]))&&(a=e?t[1]:c(t[1],r.duration),t[2]!==o&&(s=t[2]))):i=t,e||(a=a||r.easing),m.isFunction(i)&&(i=i.call(n,_,S)),m.isFunction(s)&&(s=s.call(n,_,S)),[i||0,a,s]}function u(t,e){var i,o;return o=(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(t){return i=t,""}),i||(i=C.Values.getUnitType(t)),[o,i]}function f(){var t={myParent:n.parentNode||i.body,position:C.getPropertyValue(n,"position"),fontSize:C.getPropertyValue(n,"fontSize")},o=t.position===B.lastPosition&&t.myParent===B.lastParent,a=t.fontSize===B.lastFontSize;B.lastParent=t.myParent,B.lastPosition=t.position,B.lastFontSize=t.fontSize;var r=100,l={};if(a&&o)l.emToPx=B.lastEmToPx,l.percentToPxWidth=B.lastPercentToPxWidth,l.percentToPxHeight=B.lastPercentToPxHeight;else{var c=s(n).isSVG?i.createElementNS("http://www.w3.org/2000/svg","rect"):i.createElement("div");w.init(c),t.myParent.appendChild(c),h.each(["overflow","overflowX","overflowY"],function(t,e){w.CSS.setPropertyValue(c,e,"hidden")}),w.CSS.setPropertyValue(c,"position",t.position),w.CSS.setPropertyValue(c,"fontSize",t.fontSize),w.CSS.setPropertyValue(c,"boxSizing","content-box"),h.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,e){w.CSS.setPropertyValue(c,e,r+"%")}),w.CSS.setPropertyValue(c,"paddingLeft",r+"em"),l.percentToPxWidth=B.lastPercentToPxWidth=(parseFloat(C.getPropertyValue(c,"width",null,!0))||1)/r,l.percentToPxHeight=B.lastPercentToPxHeight=(parseFloat(C.getPropertyValue(c,"height",null,!0))||1)/r,l.emToPx=B.lastEmToPx=(parseFloat(C.getPropertyValue(c,"paddingLeft"))||1)/r,t.myParent.removeChild(c)}return null===B.remToPx&&(B.remToPx=parseFloat(C.getPropertyValue(i.body,"fontSize"))||16),null===B.vwToPx&&(B.vwToPx=parseFloat(e.innerWidth)/100,B.vhToPx=parseFloat(e.innerHeight)/100),l.remToPx=B.remToPx,l.vwToPx=B.vwToPx,l.vhToPx=B.vhToPx,w.debug>=1&&console.log("Unit ratios: "+JSON.stringify(l),n),l}if(r.begin&&0===_)try{r.begin.call(p,p)}catch(v){setTimeout(function(){throw v},1)}if("scroll"===P){var b,x,k,T=/^x$/i.test(r.axis)?"Left":"Top",z=parseFloat(r.offset)||0;r.container?m.isWrapped(r.container)||m.isNode(r.container)?(r.container=r.container[0]||r.container,b=r.container["scroll"+T],k=b+h(n).position()[T.toLowerCase()]+z):r.container=null:(b=w.State.scrollAnchor[w.State["scrollProperty"+T]],x=w.State.scrollAnchor[w.State["scrollProperty"+("Left"===T?"Top":"Left")]],k=h(n).offset()[T.toLowerCase()]+z),l={scroll:{rootPropertyValue:!1,startValue:b,currentValue:b,endValue:k,unitType:"",easing:r.easing,scrollData:{container:r.container,direction:T,alternateValue:x}},element:n},w.debug&&console.log("tweensContainer (scroll): ",l.scroll,n)}else if("reverse"===P){if(!s(n).tweensContainer)return void h.dequeue(n,r.queue);"none"===s(n).opts.display&&(s(n).opts.display="auto"),"hidden"===s(n).opts.visibility&&(s(n).opts.visibility="visible"),s(n).opts.loop=!1,s(n).opts.begin=null,s(n).opts.complete=null,y.easing||delete r.easing,y.duration||delete r.duration,r=h.extend({},s(n).opts,r);var M=h.extend(!0,{},s(n).tweensContainer);for(var L in M)if("element"!==L){var A=M[L].startValue;M[L].startValue=M[L].currentValue=M[L].endValue,M[L].endValue=A,m.isEmptyObject(y)||(M[L].easing=r.easing),w.debug&&console.log("reverse tweensContainer ("+L+"): "+JSON.stringify(M[L]),n)}l=M}else if("start"===P){var M;s(n).tweensContainer&&s(n).isAnimating===!0&&(M=s(n).tweensContainer),h.each(g,function(e,i){if(RegExp("^"+C.Lists.colors.join("$|^")+"$").test(e)){var a=t(i,!0),n=a[0],s=a[1],r=a[2];if(C.RegEx.isHex.test(n)){for(var l=["Red","Green","Blue"],c=C.Values.hexToRgb(n),d=r?C.Values.hexToRgb(r):o,u=0;uR;R++){var j={delay:M.delay,progress:M.progress};R===O-1&&(j.display=M.display,j.visibility=M.visibility,j.complete=M.complete),x(p,"reverse",j)}return t()}};w=h.extend(x,w),w.animate=x;var S=e.requestAnimationFrame||p;return w.State.isMobile||i.hidden===o||i.addEventListener("visibilitychange",function(){i.hidden?(S=function(t){return setTimeout(function(){t(!0)},16)},d()):S=e.requestAnimationFrame||p}),t.Velocity=w,t!==e&&(t.fn.velocity=x,t.fn.velocity.defaults=w.defaults),h.each(["Down","Up"],function(t,e){w.Redirects["slide"+e]=function(t,i,a,n,s,r){var l=h.extend({},i),c=l.begin,d=l.complete,u={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},f={};l.display===o&&(l.display="Down"===e?"inline"===w.CSS.Values.getDisplayType(t)?"inline-block":"block":"none"),l.begin=function(){c&&c.call(s,s);for(var i in u){f[i]=t.style[i];var o=w.CSS.getPropertyValue(t,i);u[i]="Down"===e?[o,0]:[0,o]}f.overflow=t.style.overflow,t.style.overflow="hidden"},l.complete=function(){for(var e in f)t.style[e]=f[e];d&&d.call(s,s),r&&r.resolver(s)},w(t,u,l)}}),h.each(["In","Out"],function(t,e){w.Redirects["fade"+e]=function(t,i,a,n,s,r){var l=h.extend({},i),c={opacity:"In"===e?1:0},d=l.complete;l.complete=a!==n-1?l.begin=null:function(){d&&d.call(s,s),r&&r.resolver(s)},l.display===o&&(l.display="In"===e?"auto":"none"),w(this,c,l)}}),w}(window.jQuery||window.Zepto||window,window,document)}),function(t,e){t.support.borderRadius=!1,t.support.transition=!1,t(function(){t.each(["borderRadius","BorderRadius","MozBorderRadius","WebkitBorderRadius","OBorderRadius","KhtmlBorderRadius"],function(e,i){return void 0!==document.body.style[i]&&(t.support.borderRadius=!0),!t.support.borderRadius});var e=t("
");t.support.transition="string"==typeof e.css("transitionProperty")}),t.extend({ripple:{$textSpan:t('').css({position:"relative","z-index":2}),$rippleWrap:t("",{"class":"rippleWrap"}).css({position:"absolute","z-index":1,left:0,top:0,overflow:"hidden"}).append(t("",{"class":"rippleAnimate"}).css({position:"absolute",left:0,top:0,width:0,height:0,"border-radius":"50%"})),is:function(){return t.support.borderRadius&&t.support.transition},core:function(t,i){this.$target=t,this._v_duration=400,this._h_duration=400,this._timer=null,i!==e&&Object.prototype.hasOwnProperty.call(i,"v_duration")&&this.set_view_duration(i.v_duration),i!==e&&Object.prototype.hasOwnProperty.call(i,"h_duration")&&this.set_hide_duration(i.h_duration),this.init()}}}),t.ripple.core.prototype={set_view_duration:function(t){this._v_duration=t},set_hide_duration:function(t){this._h_duration=t},init:function(){var e=this;"static"===this.$target.css("position")&&this.$target.css("position","relative"),this.$target.css("-webkit-tap-highlight-color","rgba(0, 0, 0, 0)"),this.$target.hasClass("rollover")||this.$target.hasClass("rollover-video")||this.$target.hasClass("post-rollover")||this.$target.hasClass("benefits-grid-ico")||this.$target.wrapInner(t.ripple.$textSpan),this.$target.append(t.ripple.$rippleWrap.clone()),this.$rippleWrap=this.$target.find(".rippleWrap"),this.$rippleAnimate=this.$target.find(".rippleAnimate"),this.$rippleWrap.css("border-radius",this.$target.css("border-radius")),this.$target.find(".rippleAnimate").css("background-color",this.$target.attr("data-color")),"ontouchstart"in window?(this.$target.bind("touchstart.ripple",function(t){e.view(t.originalEvent.touches[0])}),this.$target.bind("touchend.ripple",function(t){e.hidden(t.originalEvent.touches[0])}),this.$target.bind("mouseleave.ripple",function(t){e.hidden(t)})):(this.$target.bind("mousedown.ripple",function(t){e.view(t)}),this.$target.bind("mouseup.ripple mouseleave.ripple",function(t){e.hidden(t)}))},remove:function(){},view:function(t){clearTimeout(this._timer);var e=this.$target.outerWidth(),i=this.$target.outerHeight();this.$rippleWrap.stop(!0,!1).width(e).height(i).css({opacity:1,transition:"none"});var o=2.8,a=Math.max(e,i),n=t.pageX-this.$target.offset().left,s=t.pageY-this.$target.offset().top;this.$rippleAnimate.css({width:a,height:a,transform:"scale3d(0, 0, 1)",left:n-a/2,top:s-a/2,transition:"none"});var r={};r.transform="scale3d("+o+", "+o+", 1)",r.transition=this._v_duration/1e3+"s ease-out",this.$rippleAnimate.show().css(r)},hidden:function(t){var e=this;this.$rippleWrap.stop(!0,!1).css({opacity:0,transition:"opacity "+this._h_duration/1e3+"s ease-out"}),clearTimeout(this._timer),this._timer=setTimeout(function(){e.$rippleWrap.css({opacity:1,transition:"none"}),e.$rippleAnimate.css({transform:"scale3d(0, 0, 1)",transition:"none"})},this._v_duration)}},t.fn.extend({ripple:function(e){return t.ripple.is()?(t(this).each(function(){new t.ripple.core(t(this),e)}),t(this)):t(this)}})}(jQuery),function(t){function e(t){return null!==t&&t===t.window}function i(t){return e(t)?t:9===t.nodeType&&t.defaultView}function o(t){var e,o,a={top:0,left:0},n=t&&t.ownerDocument;return e=n.documentElement,"undefined"!=typeof t.getBoundingClientRect&&(a=t.getBoundingClientRect()),o=i(n),{top:a.top+o.pageYOffset-e.clientTop,left:a.left+o.pageXOffset-e.clientLeft}}function a(t){var e="";for(var i in t)t.hasOwnProperty(i)&&(e+=i+":"+t[i]+";");return e}function n(t){if(d.allowEvent(t)===!1)return null;for(var e=null,i=t.target||t.srcElement;null!==i.parentElement;){if(!(i instanceof SVGElement||-1===i.className.indexOf("waves-effect"))){e=i;break}if(i.classList.contains("waves-effect")){e=i;break}i=i.parentElement}return e}function s(e){var i=n(e);null!==i&&(c.show(e,i),"ontouchstart"in t&&(i.addEventListener("touchend",c.hide,!1),i.addEventListener("touchcancel",c.hide,!1)),i.addEventListener("mouseup",c.hide,!1),i.addEventListener("mouseleave",c.hide,!1))}if(!jQuery("html").hasClass("old-ie")){var r=r||{},l=document.querySelectorAll.bind(document),c={duration:300,show:function(t,e){if(2===t.button)return!1;var i=e||this,n=document.createElement("div");n.className="waves-ripple",i.appendChild(n);var s=o(i),r=t.pageY-s.top,l=t.pageX-s.left,d="scale(1)";"touches"in t&&(r=t.touches[0].pageY-s.top,l=t.touches[0].pageX-s.left),n.setAttribute("data-hold",Date.now()),n.setAttribute("data-scale",d),n.setAttribute("data-x",l),n.setAttribute("data-y",r);var u={top:r+"px",left:l+"px"};n.className=n.className+" waves-notransition",n.setAttribute("style",a(u)),n.className=n.className.replace("waves-notransition",""),u["-webkit-transform"]=d,u["-moz-transform"]=d,u["-ms-transform"]=d,u["-o-transform"]=d,u.transform=d,u.opacity="1",u["-webkit-transition-duration"]=c.duration+"ms",u["-moz-transition-duration"]=c.duration+"ms",u["-o-transition-duration"]=c.duration+"ms",u["transition-duration"]=c.duration+"ms",n.setAttribute("style",a(u))},hide:function(t){d.touchup(t);var e=this,i=(1.4*e.clientWidth,null),o=e.getElementsByClassName("waves-ripple");if(!(o.length>0))return!1;i=o[o.length-1];var n=i.getAttribute("data-x"),s=i.getAttribute("data-y"),r=i.getAttribute("data-scale"),l=Date.now()-Number(i.getAttribute("data-hold")),u=350-l;0>u&&(u=0),setTimeout(function(){var t={top:s+"px",left:n+"px",opacity:"0","-webkit-transition-duration":c.duration+"ms","-moz-transition-duration":c.duration+"ms","-o-transition-duration":c.duration+"ms","transition-duration":c.duration+"ms","-webkit-transform":r,"-moz-transform":r,"-ms-transform":r,"-o-transform":r,transform:r};i.setAttribute("style",a(t)),setTimeout(function(){try{e.removeChild(i)}catch(t){return!1}},c.duration)},u)},wrapInput:function(t){for(var e=0;e0&&(d.touches-=1)},500):"mousedown"===t.type&&d.touches>0&&(e=!1),e},touchup:function(t){d.allowEvent(t)}};r.displayEffect=function(e){e=e||{},"duration"in e&&(c.duration=e.duration),c.wrapInput(l(".waves-effect")),"ontouchstart"in t&&document.body.addEventListener("touchstart",s,!1),document.body.addEventListener("mousedown",s,!1)},r.attach=function(e){"input"===e.tagName.toLowerCase()&&(c.wrapInput([e]),e=e.parentElement),"ontouchstart"in t&&e.addEventListener("touchstart",s,!1),e.addEventListener("mousedown",s,!1)},t.Waves=r}}(window),function(){for(var t=0,e=["ms","moz","webkit","o"],i=0;i=e-n&&i+n>=o&&!t.hasAttribute(this._optionsAttrHidden)},Layzr.prototype._reveal=function(t){var e=t.getAttribute(this._srcAttr)||t.getAttribute(this._optionsAttr),i=this;"function"==typeof this._optionsCallback&&t.addEventListener("load",function(){i._optionsCallback.call(t)}),"function"==typeof this._optionsBefore&&this._optionsBefore.call(t),t.hasAttribute(this._optionsAttrBg)?t.style.backgroundImage="url("+e+")":(e&&t.setAttribute("src",e),t.hasAttribute(this._optionsAttrSrcSet)&&t.setAttribute("srcset",t.getAttribute(this._optionsAttrSrcSet))),"function"==typeof this._optionsAfter&&this._optionsAfter.call(t),t.removeAttribute(this._optionsAttr),t.removeAttribute(this._optionsAttrSrcSet),t.removeAttribute(this._optionsAttrRetina),t.removeAttribute(this._optionsAttrBg),t.removeAttribute(this._optionsAttrHidden)},Layzr.prototype.updateSelector=function(){this._nodes=document.querySelectorAll(this._optionsSelector)},Layzr.prototype.update=function(){for(var t=this._nodes.length,e=0;t>e;e++){var i=this._nodes[e];(i.hasAttribute(this._optionsAttr)||i.hasAttribute(this._optionsAttrSrcSet)||i.hasAttribute(this._optionsAttrRetina))&&this._inViewport(i)&&this._reveal(i)}this._ticking=!1},function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(t){var e,i,o,a,n,s,r="Close",l="BeforeClose",c="AfterClose",d="BeforeAppend",u="MarkupParse",h="Open",f="Change",p="mfp",m="."+p,g="mfp-ready",v="mfp-removing",y="mfp-prevent-close",w=function(){},b=!!window.jQuery,C=t(window),x=function(t,i){e.ev.on(p+t+m,i)},S=function(e,i,o,a){var n=document.createElement("div");return n.className="mfp-"+e,o&&(n.innerHTML=o),a?i&&i.appendChild(n):(n=t(n),i&&n.appendTo(i)),n},_=function(i,o){e.ev.triggerHandler(p+i,o),e.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),e.st.callbacks[i]&&e.st.callbacks[i].apply(e,t.isArray(o)?o:[o]))},k=function(i){return i===s&&e.currTemplate.closeBtn||(e.currTemplate.closeBtn=t(e.st.closeMarkup.replace("%title%",e.st.tClose)),s=i),e.currTemplate.closeBtn},T=function(){t.magnificPopup.instance||(e=new w,e.init(),t.magnificPopup.instance=e)},I=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1};w.prototype={constructor:w,init:function(){var i=navigator.appVersion;e.isLowIE=e.isIE8=document.all&&!document.addEventListener,e.isAndroid=/android/gi.test(i),e.isIOS=/iphone|ipad|ipod/gi.test(i),e.supportsTransition=I(),e.probablyMobile=e.isAndroid||e.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),o=t(document),e.popupsCache={}},open:function(i){var a;if(i.isObj===!1){e.items=i.items.toArray(),e.index=0;var s,r=i.items;for(a=0;a(t||C.height())},_setFocus:function(){(e.st.focus?e.content.find(e.st.focus).eq(0):e.wrap).focus()},_onFocusIn:function(i){return i.target===e.wrap[0]||t.contains(e.wrap[0],i.target)?void 0:(e._setFocus(),!1)},_parseMarkup:function(e,i,o){var a;o.data&&(i=t.extend(o.data,i)),_(u,[e,i,o]),t.each(i,function(i,o){if(void 0===o||o===!1)return!0;if(a=i.split("_"),a.length>1){var n=e.find(m+"-"+a[0]);if(n.length>0){var s=a[1];"replaceWith"===s?n[0]!==o[0]&&n.replaceWith(o):"img"===s?n.is("img")?n.attr("src",o):n.replaceWith(t("").attr("src",o).attr("class",n.attr("class"))):n.attr(a[1],o)}}else e.find(m+"-"+i).html(o)})},_getScrollbarSize:function(){if(void 0===e.scrollbarSize){var t=document.createElement("div");t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),e.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return e.scrollbarSize}},t.magnificPopup={instance:null,proto:w.prototype,modules:[],open:function(e,i){return T(),e=e?t.extend(!0,{},e):{},e.isObj=!0,e.index=i||0,this.instance.open(e)},close:function(){return t.magnificPopup.instance&&t.magnificPopup.instance.close()},registerModule:function(e,i){i.options&&(t.magnificPopup.defaults[e]=i.options),t.extend(this.proto,i.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},t.fn.magnificPopup=function(i){T();var o=t(this);if("string"==typeof i)if("open"===i){var a,n=b?o.data("magnificPopup"):o[0].magnificPopup,s=parseInt(arguments[1],10)||0;n.items?a=n.items[s]:(a=o,n.delegate&&(a=a.find(n.delegate)),a=a.eq(s)),e._openClick({mfpEl:a},o,n)}else e.isOpen&&e[i].apply(e,Array.prototype.slice.call(arguments,1));else i=t.extend(!0,{},i),b?o.data("magnificPopup",i):o[0].magnificPopup=i,e.addGroup(o,i);return o};var P,z,M,L="inline",A=function(){M&&(z.after(M.addClass(P)).detach(),M=null)};t.magnificPopup.registerModule(L,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){e.types.push(L),x(r+"."+L,function(){A()})},getInline:function(i,o){if(A(),i.src){var a=e.st.inline,n=t(i.src);if(n.length){var s=n[0].parentNode;s&&s.tagName&&(z||(P=a.hiddenClass,z=S(P),P="mfp-"+P),M=n.after(z).detach().removeClass(P)),e.updateStatus("ready")}else e.updateStatus("error",a.tNotFound),n=t("
");return i.inlineElement=n,n}return e.updateStatus("ready"),e._parseMarkup(o,{},i),o}}});var E,B="ajax",H=function(){E&&t(document.body).removeClass(E)},O=function(){H(),e.req&&e.req.abort()};t.magnificPopup.registerModule(B,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){e.types.push(B),E=e.st.ajax.cursor,x(r+"."+B,O),x("BeforeChange."+B,O)},getAjax:function(i){E&&t(document.body).addClass(E),e.updateStatus("loading");var o=t.extend({url:i.src,success:function(o,a,n){var s={data:o,xhr:n};_("ParseAjax",s),e.appendContent(t(s.data),B),i.finished=!0,H(),e._setFocus(),setTimeout(function(){e.wrap.addClass(g)},16),e.updateStatus("ready"),_("AjaxContentAdded")},error:function(){H(),i.finished=i.loadError=!0,e.updateStatus("error",e.st.ajax.tError.replace("%url%",i.src))}},e.st.ajax.settings);return e.req=t.ajax(o),""}}});var R,j=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var o=e.st.image.titleSrc;if(o){if(t.isFunction(o))return o.call(e,i);if(i.el)return i.el.attr(o)||""}return""};t.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var i=e.st.image,o=".image";e.types.push("image"),x(h+o,function(){"image"===e.currItem.type&&i.cursor&&t(document.body).addClass(i.cursor)}),x(r+o,function(){i.cursor&&t(document.body).removeClass(i.cursor),C.off("resize"+m)}),x("Resize"+o,e.resizeImage),e.isLowIE&&x("AfterChange",e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t&&t.img&&e.st.image.verticalFit){var i=0;e.isLowIE&&(i=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",e.wH-i)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,R&&clearInterval(R),t.isCheckingImgSize=!1,_("ImageHasSize",t),t.imgHidden&&(e.content&&e.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var i=0,o=t.img[0],a=function(n){R&&clearInterval(R),R=setInterval(function(){return o.naturalWidth>0?void e._onImageHasSize(t):(i>200&&clearInterval(R),i++,void(3===i?a(10):40===i?a(50):100===i&&a(500)))},n)};a(1)},getImage:function(i,o){var a=0,n=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,_("ImageLoadComplete")):(a++,200>a?setTimeout(n,100):s()))},s=function(){i&&(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("error",r.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},r=e.st.image,l=o.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",i.el&&i.el.find("img").length&&(c.alt=i.el.find("img").attr("alt")),i.img=t(c).on("load.mfploader",n).on("error.mfploader",s),c.src=i.src,l.is("img")&&(i.img=i.img.clone()),c=i.img[0],c.naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return e._parseMarkup(o,{title:j(i),img_replaceWith:i.img},i),e.resizeImage(),i.hasSize?(R&&clearInterval(R),i.loadError?(o.addClass("mfp-loading"),e.updateStatus("error",r.tError.replace("%url%",i.src))):(o.removeClass("mfp-loading"),e.updateStatus("ready")),o):(e.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,o.addClass("mfp-loading"),e.findImageSize(i)),o)}}});var D,W=function(){return void 0===D&&(D=void 0!==document.createElement("p").style.MozTransform),D};t.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out", duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,i=e.st.zoom,o=".zoom";if(i.enabled&&e.supportsTransition){var a,n,s=i.duration,c=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),o="all "+i.duration/1e3+"s "+i.easing,a={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},n="transition";return a["-webkit-"+n]=a["-moz-"+n]=a["-o-"+n]=a[n]=o,e.css(a),e},d=function(){e.content.css("visibility","visible")};x("BuildControls"+o,function(){if(e._allowZoom()){if(clearTimeout(a),e.content.css("visibility","hidden"),t=e._getItemToZoom(),!t)return void d();n=c(t),n.css(e._getOffset()),e.wrap.append(n),a=setTimeout(function(){n.css(e._getOffset(!0)),a=setTimeout(function(){d(),setTimeout(function(){n.remove(),t=n=null,_("ZoomAnimationEnded")},16)},s)},16)}}),x(l+o,function(){if(e._allowZoom()){if(clearTimeout(a),e.st.removalDelay=s,!t){if(t=e._getItemToZoom(),!t)return;n=c(t)}n.css(e._getOffset(!0)),e.wrap.append(n),e.content.css("visibility","hidden"),setTimeout(function(){n.css(e._getOffset())},16)}}),x(r+o,function(){e._allowZoom()&&(d(),n&&n.remove(),t=null)})}},_allowZoom:function(){return"image"===e.currItem.type},_getItemToZoom:function(){return e.currItem.hasSize?e.currItem.img:!1},_getOffset:function(i){var o;o=i?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem);var a=o.offset(),n=parseInt(o.css("padding-top"),10),s=parseInt(o.css("padding-bottom"),10);a.top-=t(window).scrollTop()-n;var r={width:o.width(),height:(b?o.innerHeight():o[0].offsetHeight)-s-n};return W()?r["-moz-transform"]=r.transform="translate("+a.left+"px,"+a.top+"px)":(r.left=a.left,r.top=a.top),r}}});var F="iframe",$="//about:blank",X=function(t){if(e.currTemplate[F]){var i=e.currTemplate[F].find("iframe");i.length&&(t||(i[0].src=$),e.isIE8&&i.css("display",t?"block":"none"))}};t.magnificPopup.registerModule(F,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){e.types.push(F),x("BeforeChange",function(t,e,i){e!==i&&(e===F?X():i===F&&X(!0))}),x(r+"."+F,function(){X()})},getIframe:function(i,o){var a=i.src,n=e.st.iframe;t.each(n.patterns,function(){return a.indexOf(this.index)>-1?(this.id&&(a="string"==typeof this.id?a.substr(a.lastIndexOf(this.id)+this.id.length,a.length):this.id.call(this,a)),a=this.src.replace("%id%",a),!1):void 0});var s={};return n.srcAction&&(s[n.srcAction]=a),e._parseMarkup(o,s,i),e.updateStatus("ready"),o}}});var V=function(t){var i=e.items.length;return t>i-1?t-i:0>t?i+t:t},Y=function(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)};t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=e.st.gallery,a=".mfp-gallery";return e.direction=!0,i&&i.enabled?(n+=" mfp-gallery",x(h+a,function(){i.navigateByImgClick&&e.wrap.on("click"+a,".mfp-img",function(){return e.items.length>1?(e.next(),!1):void 0}),o.on("keydown"+a,function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()})}),x("UpdateStatus"+a,function(t,i){i.text&&(i.text=Y(i.text,e.currItem.index,e.items.length))}),x(u+a,function(t,o,a,n){var s=e.items.length;a.counter=s>1?Y(i.tCounter,n.index,s):""}),x("BuildControls"+a,function(){if(e.items.length>1&&i.arrows&&!e.arrowLeft){var o=i.arrowMarkup,a=e.arrowLeft=t(o.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass(y),n=e.arrowRight=t(o.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass(y);a.click(function(){e.prev()}),n.click(function(){e.next()}),e.container.append(a.add(n))}}),x(f+a,function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout(function(){e.preloadNearbyImages(),e._preloadTimeout=null},16)}),void x(r+a,function(){o.off(a),e.wrap.off("click"+a),e.arrowRight=e.arrowLeft=null})):!1},next:function(){e.direction=!0,e.index=V(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=V(e.index-1),e.updateItemHTML()},goTo:function(t){e.direction=t>=e.index,e.index=t,e.updateItemHTML()},preloadNearbyImages:function(){var t,i=e.st.gallery.preload,o=Math.min(i[0],e.items.length),a=Math.min(i[1],e.items.length);for(t=1;t<=(e.direction?a:o);t++)e._preloadItem(e.index+t);for(t=1;t<=(e.direction?o:a);t++)e._preloadItem(e.index-t)},_preloadItem:function(i){if(i=V(i),!e.items[i].preloaded){var o=e.items[i];o.parsed||(o=e.parseEl(i)),_("LazyLoad",o),"image"===o.type&&(o.img=t('').on("load.mfploader",function(){o.hasSize=!0}).on("error.mfploader",function(){o.hasSize=!0,o.loadError=!0,_("LazyLoadError",o)}).attr("src",o.src)),o.preloaded=!0}}}});var G="retina";t.magnificPopup.registerModule(G,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var t=e.st.retina,i=t.ratio;i=isNaN(i)?i():i,i>1&&(x("ImageHasSize."+G,function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/i,width:"100%"})}),x("ElementParse."+G,function(e,o){o.src=t.replaceSrc(o,i)}))}}}}),T()}),jQuery(document).ready(function(t){dtGlobals.magnificPopupBaseConfig={type:"image",tLoading:"Loading image ...",mainClass:"mfp-img-mobile",removalDelay:300,image:{tError:'The image #%curr% could not be loaded.',titleSrc:function(t){return this.st.dt.getItemTitle(t)}},iframe:{markup:'
'},callbacks:{markupParse:function(t,e,i){"iframe"==i.type&&t.find(".mfp-title").html(this.st.dt.getItemTitle(i)),this.ev.attr("data-pretty-share")||t.addClass("no-share-buttons")},change:function(){this.isOpen&&this.wrap.addClass("mfp-open")},beforeClose:function(){t("body, html").css("overflow",""),this.wrap.removeClass("mfp-open"),this.content.addClass("mfp-removing")},close:function(){this.content.removeClass("mfp-removing")},beforeOpen:function(){var t=this;"undefined"==typeof this.st.dt&&(this.st.dt={}),this.st.dt.shareButtonsList=this.ev.attr("data-pretty-share")?this.ev.attr("data-pretty-share").split(","):new Array,this.st.dt.shareButtonsTemplates={twitter:'',facebook:'',google:'',pinterest:'',linkedin:''},this.st.dt.getShareButtons=function(e){for(var i=t.st.dt.shareButtonsList,o=-1,a=i.length,n="",s=0;s=a)return"";for(var s=0;a>s;s++)if("iframe"!=e.type||o!=s){var r=e.title,l=e.src,c=e.location;"google"==i[s]&&(r=r.replace(" ","+")),n+=t.st.dt.shareButtonsTemplates[i[s]].replace("{location_href}",encodeURIComponent(c)).replace("{share_title}",encodeURIComponent(r)).replace("{image_src}",encodeURIComponent(l))}return'
'+n+"
"},this.st.dt.getItemTitle=function(e){var i=e.el.attr("title")||"",o=e.el.attr("href"),a=e.el.attr("data-dt-img-description")||"",n=e.el.attr("data-dt-location")||location.href,s=t.st.dt.getShareButtons({title:a,src:o,type:e.type,location:n});return'
'+i+""+a+"
"+s}}}},t(".dt-gallery-mfp-popup, .dt-trigger-first-mfp").addClass("mfp-ready").on("click",function(){var e=t(this),i=e.parents("article.post").first();if(!e.parents(".ts-wrap").hasClass("ts-interceptClicks")){if(i.length>0){if(i.find(".dt-gallery-container").length>0)var o=i.find(".dt-gallery-container a.dt-mfp-item");else var o=i.find("a.dt-mfp-item");o.length>0&&o.first().trigger("click")}return!1}}),t(".dt-single-image").addClass("mfp-ready").magnificPopup({type:"image"}),t(".dt-single-video").addClass("mfp-ready").magnificPopup({type:"iframe"}),t(".dt-single-mfp-popup").on("click",function(e){var i=t(this);if(i.parents(".ts-wrap").hasClass("ts-interceptClicks")&&(e.preventDefault(),e.stopImmediatePropagation()),i.parents(".photo-scroller").length>0){var o=i.parents(".photo-scroller"),a=o.find(".auto-play-btn");a.hasClass("paused")&&(o.addClass("mfp-opened"),o.find(".auto-play-btn.paused").trigger("click"))}if(i.parents("#main-slideshow").length>0){var o=i.parents("#main-slideshow"),a=o.find(".progress-wrapper");a.hasClass("paused")||(o.addClass("mfp-opened"),o.find(".progress-wrapper").trigger("click"))}if(i.parents(".slider-wrapper").length>0){var n=i.parents(".slider-wrapper"),s=n.find(".auto-play-btn");s.hasClass("paused")&&(n.addClass("mfp-opened"),n.find(".auto-play-btn.paused").trigger("click"))}}),t(".dt-single-mfp-popup").addClass("mfp-ready").magnificPopup(t.extend(!0,dtGlobals.magnificPopupBaseConfig,{callbacks:{close:function(){t(".photo-scroller.mfp-opened").find(".auto-play-btn").trigger("click"),t(".photo-scroller").removeClass("mfp-opened"),t("#main-slideshow.mfp-opened").find(".progress-wrapper").trigger("click"),t("#main-slideshow").removeClass("mfp-opened"),t(".slider-wrapper.mfp-opened").find(".auto-play-btn").trigger("click"),t(".slider-wrapper").removeClass("mfp-opened")}}})),t(".dt-gallery-container").each(function(){if(t(this).parents(".slider-wrapper").length>0)var e=t(this).parents(".slider-wrapper");else var e=t(this);var i=e.find(".auto-play-btn");t(this).addClass("mfp-ready").magnificPopup(t.extend(!0,dtGlobals.magnificPopupBaseConfig,{delegate:"a.dt-mfp-item",tLoading:"Loading image #%curr%...",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},callbacks:{open:function(){var t="true"===e.attr("data-autoslide")?!0:!1;t&&i.hasClass("paused")&&(e.addClass("mfp-opened"),e.find(".auto-play-btn.paused").trigger("click"))},close:function(){e.hasClass("mfp-opened")&&(e.find(".auto-play-btn").trigger("click"),e.removeClass("mfp-opened"))}}}))})}),jQuery(document).ready(function(t){t(".twentytwenty-container").length>0&&(t.fn.twentytwenty=function(e){var e=t.extend({default_offset_pct:.5,orientation:"horizontal",navigation_follow:!1},e);return this.each(function(){var i=e.default_offset_pct,o=t(this),a=e.orientation,n="vertical"===a?"down":"left",s="vertical"===a?"up":"right",r=e.navigation_follow;o.wrap("
");var l=o.find("img:first"),c=o.find("img:last"),d=l.attr("title"),u=c.attr("title");o.append("
");var h=o.find(".twentytwenty-handle");h.append(""),h.append(""),o.addClass("twentytwenty-container"),l.addClass("twentytwenty-before"),c.addClass("twentytwenty-after"),"undefined"!=typeof d&&d&&d.length>0&&o.append("
"+d+"
"),"undefined"!=typeof u&&u&&u.length>0&&o.append("
"+u+"
");var f=function(t){var e=l.width(),i=l.height();return{w:e+"px",h:i+"px",cw:t*e+"px",ch:t*i+"px"}},p=function(t){"vertical"===a?l.css("clip","rect(0,"+t.w+","+t.ch+",0)"):l.css("clip","rect(0,"+t.cw+","+t.h+",0)"),o.css("height",t.h)},m=function(t){var e=f(t);h.css("vertical"===a?"top":"left","vertical"===a?e.ch:e.cw),p(e)};t(window).on("resize.twentytwenty",function(t){m(i)});var g=0,v=0;h.on("movestart",function(t){(t.distX>t.distY&&t.distX<-t.distY||t.distX-t.distY)&&"vertical"!==a?t.preventDefault():(t.distXt.distY&&t.distX>-t.distY)&&"vertical"===a&&t.preventDefault(),o.addClass("active"),o.removeClass("active-click"),g=o.offset().left,offsetY=o.offset().top,v=l.width(),imgHeight=l.height()}),h.on("moveend",function(t){o.removeClass("active")}),h.on("move",function(t){o.hasClass("active")&&(i="vertical"===a?(t.pageY-offsetY)/imgHeight:(t.pageX-g)/v,0>i&&(i=0),i>1&&(i=1),m(i))}),r||o.hasClass("active")||(o.on("mouseup",function(t){o.removeClass("active-click")}),o.on("mousedown",function(t){o.addClass("active-click"),g=o.offset().left,offsetY=o.offset().top,v=l.width(),imgHeight=l.height(),i="vertical"===a?(t.pageY-offsetY)/imgHeight:(t.pageX-g)/v,0>i&&(i=0),i>1&&(i=1),m(i)})),o.find("img").on("mousedown",function(t){t.preventDefault()}),r&&(o.on("mouseenter",function(t){o.addClass("active"),g=o.offset().left,offsetY=o.offset().top,v=l.width(),imgHeight=l.height()}),o.on("mouseleave",function(t){o.removeClass("active")}),o.on("mousemove",function(t){o.hasClass("active")&&(i="vertical"===a?(t.pageY-offsetY)/imgHeight:(t.pageX-g)/v,0>i&&(i=0),i>1&&(i=1),m(i))})),t(window).trigger("resize.twentytwenty")})})}),jQuery(document).ready(function(t){"ontouchstart"in window||!("on"==dtLocal.themeSettings.smoothScroll||"on_parallax"==dtLocal.themeSettings.smoothScroll&&t(".stripe-parallax-bg").length>0)||t("body").css({"scroll-behavior":"smooth"})}),jQuery(document).ready(function(t){var e=t(window),i=e.height();e.resize(function(){i=e.height()}),t.fn.parallax=function(o,a,n){function s(){var n=e.scrollTop();d.each(function(){var e=t(this),s=e.offset().top,l=r(e);n>s+l||s>n+i||d.css("backgroundPosition",o+" "+Math.round((s-n)*a)+"px")})}var r,l,c,d=t(this);d.each(function(){l=d.offset().top}),r=n?function(t){return t.outerHeight(!0)}:function(t){return t.height()},(arguments.length<1||null===o)&&(o="50%"),(arguments.length<2||null===a)&&(a=.1),(arguments.length<3||null===n)&&(n=!0),e.bind("scroll",s).resize(function(){s()}).bind("debouncedresize",function(){clearTimeout(c),c=setTimeout(function(){s()},20)}),s(),setTimeout(function(){!window.bgGlitchFixed&&t.browser.webkit&&(e.scrollTop(e.scrollTop()+1),window.bgGlitchFixed=!0)},20)}}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){Date.now||(Date.now=function(){return(new Date).getTime()}),window.requestAnimationFrame||function(){"use strict";for(var t=["webkit","moz"],e=0;e0&&"none"!==t}(),o=navigator.userAgent.toLowerCase().indexOf("android")>-1,a=!!window.opera,n=[],s=function(){function e(e,s){var r,l=this;l.$item=t(e),l.defaults={speed:.5,imgSrc:null,imgWidth:null,imgHeight:null,enableTransform:!0,zIndex:-100},r=l.$item.data("jarallax")||{},l.options=t.extend({},l.defaults,r,s),l.options.speed=Math.min(1,Math.max(-1,parseFloat(l.options.speed))),l.instanceID=i++,l.image={src:l.options.imgSrc||null,$container:null,$item:null,width:l.options.imgWidth||null,height:l.options.imgHeight||null,useImgTag:o||a},l.initImg()&&(l.init(),n.push(l))}var i=0;return e}();s.prototype.initImg=function(){var t=this;return null===t.image.src&&(t.image.src=t.$item.css("background-image").replace(/^url\(['"]?/g,"").replace(/['"]?\)$/g,"")),t.image.src&&"none"!==t.image.src?!0:!1},s.prototype.init=function(){function i(){n.coverImage(),n.clipContainer(),n.onScroll(!0),n.$item.data("jarallax-original-styles",n.$item.attr("style")),setTimeout(function(){n.$item.css({"background-image":"none","background-attachment":"scroll","background-size":"auto"})},0)}if(t(".header-side-line").length>0)var o=t(".side-header-v-stroke").width();else if(!t("body").hasClass("sticky-header")&&!t("body").hasClass("overlay-navigation")&&t(".side-header").length>0)var o=t(".side-header").width();else var o=0;var a="absolute",n=this;if("stripe"==n.$item[0].classList[0])var s=2e3+o;else var s=t(".content").offset().left+22;var r=(t("#page").width(),s-t(".content").offset().left-22,{position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden","pointer-events":"none",transition:"transform linear -1ms, -webkit-transform linear -1ms"}),l={position:a,left:"50%"};n.image.$container=t("
").css(r).css({visibility:"hidden","z-index":n.options.zIndex}).attr("id","jarallax-container-"+n.instanceID).prependTo(n.$item),n.image.useImgTag&&e?(n.image.$item=t("").attr("src",n.image.src),l=t.extend({"max-width":"none"},r,l)):(n.image.$item=t("
"),l=t.extend({"background-position":"inherit","background-repeat":"inherit","background-image":'url("'+n.image.src+'")'},r,l)),n.image.$item.css(l).prependTo(n.image.$container),n.image.width&&n.image.height?i():n.getImageSize(n.image.src,function(t,e){n.image.width=t,n.image.height=e,i()})},s.prototype.destroy=function(){for(var e=this,i=0,o=n.length;o>i;i++)if(n[i].instanceID===e.instanceID){n.splice(i,1);break}t("head #jarallax-clip-"+e.instanceID).remove(),e.$item.attr("style",e.$item.data("jarallax-original-styles")),e.$item.removeData("jarallax-original-styles"),e.image.$container.remove(),delete e.$item[0].jarallax},s.prototype.round=function(t){return Math.floor(100*t)/100},s.prototype.getImageSize=function(t,e){if(!t||!e)return!1;var i=new Image;i.onload=function(){e(i.width,i.height)},i.src=t},s.prototype.clipContainer=function(){var e=this,i=e.image.$container.outerWidth(!0),o=e.image.$container.outerHeight(!0),a=t("head #jarallax-clip-"+e.instanceID);a.length||(t("head").append(''),a=t("head #jarallax-clip-"+e.instanceID));var n=["#jarallax-container-"+e.instanceID+" {"," clip: rect(0px "+i+"px "+o+"px 0);"," clip: rect(0px, "+i+"px, "+o+"px, 0);","}"].join("\n");a[0].styleSheet?a[0].styleSheet.cssText=n:a.html(n)},s.prototype.coverImage=function(){var i=this;if(i.image.width&&i.image.height){if(t("body").hasClass("transparent"))var o=0+t("#wpadminbar").height();else var o=t(".masthead:not(.side-header):not(.side-header-v-stroke)").height()+t("#wpadminbar").height();if(t(".side-header-v-stroke").length>0){t(".side-header-v-stroke").width()}else;console.log(o+"headerH");var a,n,s=i.image.$container.outerWidth(!0),r=i.image.$container.outerHeight(!0),l=t(window).outerWidth(!0),c=t(window).outerHeight(!0),d=i.image.width,u=i.image.height;if("stripe"==i.$item[0].classList[0])var s=i.image.$container.outerWidth(!0)-4e3;var h={width:1*Math.max(l,s),height:Math.max(c,r)*Math.max(i.options.speed,1)};h.width/h.height>d/u?(a=h.width,n=h.width*u/d):(a=h.height*d/u,n=h.height),i.image.useImgTag&&e?(h.width=i.round(a),h.height=i.round(n),h.marginLeft=i.round(-(a-s)/2),h.marginTop=i.round(-(n-r)/2)):h.backgroundSize=i.round(a)+"px "+i.round(n)+"px",i.image.$item.css(h)}},s.prototype.onScroll=function(o){var a=this;if(a.image.width&&a.image.height){var n=t(window).scrollTop(),s=t(window).scrollLeft(),r=(t(window).width(),t(window).height()),l=a.$item.offset().top,c=a.$item.offset().left,d=a.$item.outerHeight(!0),u={visibility:"visible",backgroundPosition:"inherit"},h=o?!1:n>l+d||l>n+r;if(!h){var f=-(n-l)*a.options.speed,p=-(s-c)*a.options.speed;f=a.round(f),p=a.round(p),console.log(l+"top offset",a.options.speed+" speed",a.image.$item.css("position")),e&&a.options.enableTransform?(u.transform="translateY("+f+"px) translateX("+p+"px)",i&&(u.transform="translate3d(-50%, "+f+"px, 0)")):u.backgroundPosition=p+"px "+f+"px",a.image.$item.css(u)}}},function(){t(window).on("scroll.jarallax",function(){window.requestAnimationFrame(function(){for(var t=0,e=n.length;e>t;t++)n[t].onScroll()})});var e;t(window).on("resize.jarallax orientationchange.jarallax load.jarallax",function(){clearTimeout(e),e=setTimeout(function(){window.requestAnimationFrame(function(){for(var t=0,e=n.length;e>t;t++){var i=n[t];i.coverImage(),i.clipContainer(),i.onScroll()}})},100)})}();var r=t.fn.jarallax;t.fn.jarallax=function(){var t,e=this,i=arguments[0],o=Array.prototype.slice.call(arguments,1),a=e.length,n=0;for(n;a>n;n++)if("object"==typeof i||"undefined"==typeof i?e[n].jarallax||(e[n].jarallax=new s(e[n],i)):t=e[n].jarallax?e[n].jarallax[i].apply(e[n].jarallax,o):void 0,"undefined"!=typeof t)return t;return this},t.fn.jarallax.noConflict=function(){return t.fn.jarallax=r,this},t(document).on("ready.data-jarallax",function(){t("[data-jarallax]").jarallax()})}),function(t){"undefined"!=typeof module&&module.exports?module.exports=t:t(jQuery,window,document)}(function(t){!function(e){var i="function"==typeof define&&define.amd,o="undefined"!=typeof module&&module.exports,a=("https:"==document.location.protocol?"https:":"http:",dtLocal.themeUrl+"/js/atoms/plugins/jquery.mousewheel.min.js");i||(o?require("jquery-mousewheel")(t):t.event.special.mousewheel||t("head").append(decodeURI("%3Cscript src="+a+"%3E%3C/script%3E"))),e()}(function(){var e,i="mCustomScrollbar",o="mCS",a=".mCustomScrollbar",n={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:!0,autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},s=0,r={},l=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],u={init:function(e){var e=t.extend(!0,{},n,e),i=h.call(this);if(e.live){var l=e.liveSelector||this.selector||a,c=t(l);if("off"===e.live)return void p(l);r[l]=setTimeout(function(){c.mCustomScrollbar(e),"once"===e.live&&c.length&&p(l)},500)}else p(l);return e.setWidth=e.set_width?e.set_width:e.setWidth,e.setHeight=e.set_height?e.set_height:e.setHeight,e.axis=e.horizontalScroll?"x":m(e.axis),e.scrollInertia=e.scrollInertia>0&&e.scrollInertia<17?17:e.scrollInertia,"object"!=typeof e.mouseWheel&&1==e.mouseWheel&&(e.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),e.mouseWheel.scrollAmount=e.mouseWheelPixels?e.mouseWheelPixels:e.mouseWheel.scrollAmount,e.mouseWheel.normalizeDelta=e.advanced.normalizeMouseWheelDelta?e.advanced.normalizeMouseWheelDelta:e.mouseWheel.normalizeDelta,e.scrollButtons.scrollType=g(e.scrollButtons.scrollType),f(e),t(i).each(function(){var i=t(this);if(!i.data(o)){i.data(o,{idx:++s,opt:e,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:i.css("direction"),cbOffsets:null,trigger:null});var a=i.data(o),n=a.opt,r=i.data("mcs-axis"),l=i.data("mcs-scrollbar-position"),c=i.data("mcs-theme");r&&(n.axis=r),l&&(n.scrollbarPosition=l),c&&(n.theme=c,f(n)),v.call(this),t("#mCSB_"+a.idx+"_container img:not(."+d[2]+")").addClass(d[2]),u.update.call(null,i)}})},update:function(e,i){var a=e||h.call(this);return t(a).each(function(){var e=t(this);if(e.data(o)){var a=e.data(o),n=a.opt,s=t("#mCSB_"+a.idx+"_container"),r=[t("#mCSB_"+a.idx+"_dragger_vertical"),t("#mCSB_"+a.idx+"_dragger_horizontal")];if(!s.length)return;a.tweenRunning&&q(e),e.hasClass(d[3])&&e.removeClass(d[3]),e.hasClass(d[4])&&e.removeClass(d[4]),C.call(this),w.call(this),"y"===n.axis||n.advanced.autoExpandHorizontalScroll||s.css("width",y(s.children())),a.overflowed=k.call(this),z.call(this),n.autoDraggerLength&&x.call(this),S.call(this),I.call(this);var l=[Math.abs(s[0].offsetTop),Math.abs(s[0].offsetLeft)];"x"!==n.axis&&(a.overflowed[0]?r[0].height()>r[0].parent().height()?T.call(this):(N(e,l[0].toString(),{dir:"y",dur:0,overwrite:"none"}),a.contentReset.y=null):(T.call(this),"y"===n.axis?P.call(this):"yx"===n.axis&&a.overflowed[1]&&N(e,l[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==n.axis&&(a.overflowed[1]?r[1].width()>r[1].parent().width()?T.call(this):(N(e,l[1].toString(),{dir:"x",dur:0,overwrite:"none"}),a.contentReset.x=null):(T.call(this),"x"===n.axis?P.call(this):"yx"===n.axis&&a.overflowed[0]&&N(e,l[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),i&&a&&(2===i&&n.callbacks.onImageLoad&&"function"==typeof n.callbacks.onImageLoad?n.callbacks.onImageLoad.call(this):3===i&&n.callbacks.onSelectorChange&&"function"==typeof n.callbacks.onSelectorChange?n.callbacks.onSelectorChange.call(this):n.callbacks.onUpdate&&"function"==typeof n.callbacks.onUpdate&&n.callbacks.onUpdate.call(this)),Y.call(this)}})},scrollTo:function(e,i){if("undefined"!=typeof e&&null!=e){var a=h.call(this);return t(a).each(function(){var a=t(this);if(a.data(o)){var n=a.data(o),s=n.opt,r={trigger:"external",scrollInertia:s.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=t.extend(!0,{},r,i),c=X.call(this,e),d=l.scrollInertia>0&&l.scrollInertia<17?17:l.scrollInertia;c[0]=V.call(this,c[0],"y"),c[1]=V.call(this,c[1],"x"),l.moveDragger&&(c[0]*=n.scrollRatio.y,c[1]*=n.scrollRatio.x),l.dur=d,setTimeout(function(){null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==s.axis&&n.overflowed[0]&&(l.dir="y",l.overwrite="all",N(a,c[0].toString(),l)),null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==s.axis&&n.overflowed[1]&&(l.dir="x",l.overwrite="none",N(a,c[1].toString(),l))},l.timeout)}})}},stop:function(){var e=h.call(this);return t(e).each(function(){var e=t(this);e.data(o)&&q(e)})},disable:function(e){var i=h.call(this);return t(i).each(function(){var i=t(this);if(i.data(o)){i.data(o);Y.call(this,"remove"),P.call(this),e&&T.call(this),z.call(this,!0),i.addClass(d[3])}})},destroy:function(){var e=h.call(this);return t(e).each(function(){var a=t(this);if(a.data(o)){var n=a.data(o),s=n.opt,r=t("#mCSB_"+n.idx),l=t("#mCSB_"+n.idx+"_container"),c=t(".mCSB_"+n.idx+"_scrollbar");s.live&&p(s.liveSelector||t(e).selector),Y.call(this,"remove"),P.call(this),T.call(this),a.removeData(o),K(this,"mcs"),c.remove(),l.find("img."+d[2]).removeClass(d[2]),r.replaceWith(l.contents()),a.removeClass(i+" _"+o+"_"+n.idx+" "+d[6]+" "+d[7]+" "+d[5]+" "+d[3]).addClass(d[4])}})}},h=function(){return"object"!=typeof t(this)||t(this).length<1?a:this},f=function(e){var i=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],o=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],a=["minimal","minimal-dark"],n=["minimal","minimal-dark"],s=["minimal","minimal-dark"];e.autoDraggerLength=t.inArray(e.theme,i)>-1?!1:e.autoDraggerLength,e.autoExpandScrollbar=t.inArray(e.theme,o)>-1?!1:e.autoExpandScrollbar,e.scrollButtons.enable=t.inArray(e.theme,a)>-1?!1:e.scrollButtons.enable,e.autoHideScrollbar=t.inArray(e.theme,n)>-1?!0:e.autoHideScrollbar,e.scrollbarPosition=t.inArray(e.theme,s)>-1?"outside":e.scrollbarPosition},p=function(t){r[t]&&(clearTimeout(r[t]),K(r,t))},m=function(t){return"yx"===t||"xy"===t||"auto"===t?"yx":"x"===t||"horizontal"===t?"x":"y"},g=function(t){return"stepped"===t||"pixels"===t||"step"===t||"click"===t?"stepped":"stepless"},v=function(){var e=t(this),a=e.data(o),n=a.opt,s=n.autoExpandScrollbar?" "+d[1]+"_expand":"",r=["
","
"],l="yx"===n.axis?"mCSB_vertical_horizontal":"x"===n.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===n.axis?r[0]+r[1]:"x"===n.axis?r[1]:r[0],u="yx"===n.axis?"
":"",h=n.autoHideScrollbar?" "+d[6]:"",f="x"!==n.axis&&"rtl"===a.langDir?" "+d[7]:"";n.setWidth&&e.css("width",n.setWidth),n.setHeight&&e.css("height",n.setHeight),n.setLeft="y"!==n.axis&&"rtl"===a.langDir?"989999px":n.setLeft,e.addClass(i+" _"+o+"_"+a.idx+h+f).wrapInner("
");var p=t("#mCSB_"+a.idx),m=t("#mCSB_"+a.idx+"_container");"y"===n.axis||n.advanced.autoExpandHorizontalScroll||m.css("width",y(m.children())),"outside"===n.scrollbarPosition?("static"===e.css("position")&&e.css("position","relative"),e.css("overflow","visible"),p.addClass("mCSB_outside").after(c)):(p.addClass("mCSB_inside").append(c),m.wrap(u)),b.call(this);var g=[t("#mCSB_"+a.idx+"_dragger_vertical"),t("#mCSB_"+a.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},y=function(e){return Math.max.apply(Math,e.map(function(){return t(this).outerWidth(!0)}).get())},w=function(){var e=t(this),i=e.data(o),a=i.opt,n=t("#mCSB_"+i.idx+"_container"); a.advanced.autoExpandHorizontalScroll&&"y"!==a.axis&&n.css({position:"absolute",width:"auto"}).wrap("
").css({width:Math.ceil(n[0].getBoundingClientRect().right+.4)-Math.floor(n[0].getBoundingClientRect().left),position:"relative"}).unwrap()},b=function(){var e=t(this),i=e.data(o),a=i.opt,n=t(".mCSB_"+i.idx+"_scrollbar:first"),s=et(a.scrollButtons.tabindex)?"tabindex='"+a.scrollButtons.tabindex+"'":"",r=["","","",""],l=["x"===a.axis?r[2]:r[0],"x"===a.axis?r[3]:r[1],r[2],r[3]];a.scrollButtons.enable&&n.prepend(l[0]).append(l[1]).next(".mCSB_scrollTools").prepend(l[2]).append(l[3])},C=function(){var e=t(this),i=e.data(o),a=t("#mCSB_"+i.idx),n=e.css("max-height")||"none",s=-1!==n.indexOf("%"),r=e.css("box-sizing");if("none"!==n){var l=s?e.parent().height()*parseInt(n)/100:parseInt(n);"border-box"===r&&(l-=e.innerHeight()-e.height()+(e.outerHeight()-e.innerHeight())),a.css("max-height",Math.round(l))}},x=function(){var e=t(this),i=e.data(o),a=t("#mCSB_"+i.idx),n=t("#mCSB_"+i.idx+"_container"),s=[t("#mCSB_"+i.idx+"_dragger_vertical"),t("#mCSB_"+i.idx+"_dragger_horizontal")],r=[a.height()/n.outerHeight(!1),a.width()/n.outerWidth(!1)],c=[parseInt(s[0].css("min-height")),Math.round(r[0]*s[0].parent().height()),parseInt(s[1].css("min-width")),Math.round(r[1]*s[1].parent().width())],d=l&&c[1]a.height(),r>a.width()]},T=function(){var e=t(this),i=e.data(o),a=i.opt,n=t("#mCSB_"+i.idx),s=t("#mCSB_"+i.idx+"_container"),r=[t("#mCSB_"+i.idx+"_dragger_vertical"),t("#mCSB_"+i.idx+"_dragger_horizontal")];if(q(e),("x"!==a.axis&&!i.overflowed[0]||"y"===a.axis&&i.overflowed[0])&&(r[0].add(s).css("top",0),N(e,"_resetY")),"y"!==a.axis&&!i.overflowed[1]||"x"===a.axis&&i.overflowed[1]){var l=dx=0;"rtl"===i.langDir&&(l=n.width()-s.outerWidth(!1),dx=Math.abs(l/i.scrollRatio.x)),s.css("left",l),r[1].css("left",dx),N(e,"_resetX")}},I=function(){function e(){s=setTimeout(function(){t.event.special.mousewheel?(clearTimeout(s),B.call(i[0])):e()},100)}var i=t(this),a=i.data(o),n=a.opt;if(!a.bindEvents){if(L.call(this),n.contentTouchScroll&&A.call(this),E.call(this),n.mouseWheel.enable){var s;e()}R.call(this),D.call(this),n.advanced.autoScrollOnFocus&&j.call(this),n.scrollButtons.enable&&W.call(this),n.keyboard.enable&&F.call(this),a.bindEvents=!0}},P=function(){var e=t(this),i=e.data(o),a=i.opt,n=o+"_"+i.idx,s=".mCSB_"+i.idx+"_scrollbar",r=t("#mCSB_"+i.idx+",#mCSB_"+i.idx+"_container,#mCSB_"+i.idx+"_container_wrapper,"+s+" ."+d[12]+",#mCSB_"+i.idx+"_dragger_vertical,#mCSB_"+i.idx+"_dragger_horizontal,"+s+">a"),l=t("#mCSB_"+i.idx+"_container");a.advanced.releaseDraggableSelectors&&r.add(t(a.advanced.releaseDraggableSelectors)),i.bindEvents&&(t(document).unbind("."+n),r.each(function(){t(this).unbind("."+n)}),clearTimeout(e[0]._focusTimeout),K(e[0],"_focusTimeout"),clearTimeout(i.sequential.step),K(i.sequential,"step"),clearTimeout(l[0].onCompleteTimeout),K(l[0],"onCompleteTimeout"),i.bindEvents=!1)},z=function(e){var i=t(this),a=i.data(o),n=a.opt,s=t("#mCSB_"+a.idx+"_container_wrapper"),r=s.length?s:t("#mCSB_"+a.idx+"_container"),l=[t("#mCSB_"+a.idx+"_scrollbar_vertical"),t("#mCSB_"+a.idx+"_scrollbar_horizontal")],c=[l[0].find(".mCSB_dragger"),l[1].find(".mCSB_dragger")];"x"!==n.axis&&(a.overflowed[0]&&!e?(l[0].add(c[0]).add(l[0].children("a")).css("display","block"),r.removeClass(d[8]+" "+d[10])):(n.alwaysShowScrollbar?(2!==n.alwaysShowScrollbar&&c[0].css("display","none"),r.removeClass(d[10])):(l[0].css("display","none"),r.addClass(d[10])),r.addClass(d[8]))),"y"!==n.axis&&(a.overflowed[1]&&!e?(l[1].add(c[1]).add(l[1].children("a")).css("display","block"),r.removeClass(d[9]+" "+d[11])):(n.alwaysShowScrollbar?(2!==n.alwaysShowScrollbar&&c[1].css("display","none"),r.removeClass(d[11])):(l[1].css("display","none"),r.addClass(d[11])),r.addClass(d[9]))),a.overflowed[0]||a.overflowed[1]?i.removeClass(d[5]):i.addClass(d[5])},M=function(t){var e=t.type;switch(e){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return t.target.ownerDocument!==document?[t.originalEvent.screenY,t.originalEvent.screenX,!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],o=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[i.screenY,i.screenX,o>1]:[i.pageY,i.pageX,o>1];default:return[t.pageY,t.pageX,!1]}},L=function(){function e(t){var e=p.find("iframe");if(e.length){var i=t?"auto":"none";e.css("pointer-events",i)}}function i(t,e,i,o){if(p[0].idleTimer=u.scrollInertia<233?250:0,a.attr("id")===f[1])var n="x",s=(a[0].offsetLeft-e+o)*d.scrollRatio.x;else var n="y",s=(a[0].offsetTop-t+i)*d.scrollRatio.y;N(r,s.toString(),{dir:n,drag:!0})}var a,n,s,r=t(this),d=r.data(o),u=d.opt,h=o+"_"+d.idx,f=["mCSB_"+d.idx+"_dragger_vertical","mCSB_"+d.idx+"_dragger_horizontal"],p=t("#mCSB_"+d.idx+"_container"),m=t("#"+f[0]+",#"+f[1]),g=u.advanced.releaseDraggableSelectors?m.add(t(u.advanced.releaseDraggableSelectors)):m;m.bind("mousedown."+h+" touchstart."+h+" pointerdown."+h+" MSPointerDown."+h,function(i){if(i.stopImmediatePropagation(),i.preventDefault(),J(i)){c=!0,l&&(document.onselectstart=function(){return!1}),e(!1),q(r),a=t(this);var o=a.offset(),d=M(i)[0]-o.top,h=M(i)[1]-o.left,f=a.height()+o.top,p=a.width()+o.left;f>d&&d>0&&p>h&&h>0&&(n=d,s=h),_(a,"active",u.autoExpandScrollbar)}}).bind("touchmove."+h,function(t){t.stopImmediatePropagation(),t.preventDefault();var e=a.offset(),o=M(t)[0]-e.top,r=M(t)[1]-e.left;i(n,s,o,r)}),t(document).bind("mousemove."+h+" pointermove."+h+" MSPointerMove."+h,function(t){if(a){var e=a.offset(),o=M(t)[0]-e.top,r=M(t)[1]-e.left;if(n===o)return;i(n,s,o,r)}}).add(g).bind("mouseup."+h+" touchend."+h+" pointerup."+h+" MSPointerUp."+h,function(t){a&&(_(a,"active",u.autoExpandScrollbar),a=null),c=!1,l&&(document.onselectstart=null),e(!0)})},A=function(){function i(t){if(!tt(t)||c||M(t)[2])return void(e=0);e=1,C=0,x=0,S.removeClass("mCS_touch_action");var i=P.offset();d=M(t)[0]-i.top,u=M(t)[1]-i.left,O=[M(t)[0],M(t)[1]]}function a(t){if(tt(t)&&!c&&!M(t)[2]&&(t.stopImmediatePropagation(),!x||C)){m=U();var e=I.offset(),i=M(t)[0]-e.top,o=M(t)[1]-e.left,a="mcsLinearOut";if(L.push(i),A.push(o),O[2]=Math.abs(M(t)[0]-O[0]),O[3]=Math.abs(M(t)[1]-O[1]),_.overflowed[0])var n=z[0].parent().height()-z[0].height(),s=d-i>0&&i-d>-(n*_.scrollRatio.y)&&(2*O[3]0&&o-u>-(r*_.scrollRatio.x)&&(2*O[2]30)){y=1e3/(g-p);var a="mcsEaseOut",n=2.5>y,s=n?[L[L.length-2],A[A.length-2]]:[0,0];v=n?[i-s[0],o-s[1]]:[i-h,o-f];var d=[Math.abs(v[0]),Math.abs(v[1])];y=n?[Math.abs(v[0]/4),Math.abs(v[1]/4)]:[y,y];var u=[Math.abs(P[0].offsetTop)-v[0]*r(d[0]/y[0],y[0]),Math.abs(P[0].offsetLeft)-v[1]*r(d[1]/y[1],y[1])];w="yx"===k.axis?[u[0],u[1]]:"x"===k.axis?[null,u[1]]:[u[0],null],b=[4*d[0]+k.scrollInertia,4*d[1]+k.scrollInertia];var S=parseInt(k.contentTouchScroll)||0;w[0]=d[0]>S?w[0]:0,w[1]=d[1]>S?w[1]:0,_.overflowed[0]&&l(w[0],b[0],a,"y",B,!1),_.overflowed[1]&&l(w[1],b[1],a,"x",B,!1)}}}function r(t,e){var i=[1.5*e,2*e,e/1.5,e/2];return t>90?e>4?i[0]:i[3]:t>60?e>3?i[3]:i[2]:t>30?e>8?i[1]:e>6?i[0]:e>4?e:i[2]:e>8?e:i[3]}function l(t,e,i,o,a,n){t&&N(S,t.toString(),{dur:e,scrollEasing:i,dir:o,overwrite:a,drag:n})}var d,u,h,f,p,m,g,v,y,w,b,C,x,S=t(this),_=S.data(o),k=_.opt,T=o+"_"+_.idx,I=t("#mCSB_"+_.idx),P=t("#mCSB_"+_.idx+"_container"),z=[t("#mCSB_"+_.idx+"_dragger_vertical"),t("#mCSB_"+_.idx+"_dragger_horizontal")],L=[],A=[],E=0,B="yx"===k.axis?"none":"all",O=[],R=P.find("iframe"),j=["touchstart."+T+" pointerdown."+T+" MSPointerDown."+T,"touchmove."+T+" pointermove."+T+" MSPointerMove."+T,"touchend."+T+" pointerup."+T+" MSPointerUp."+T];P.bind(j[0],function(t){i(t)}).bind(j[1],function(t){a(t)}),I.bind(j[0],function(t){n(t)}).bind(j[2],function(t){s(t)}),R.length&&R.each(function(){t(this).load(function(){H(this)&&t(this.contentDocument||this.contentWindow.document).bind(j[0],function(t){i(t),n(t)}).bind(j[1],function(t){a(t)}).bind(j[2],function(t){s(t)})})})},E=function(){function i(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function a(t,e,i){d.type=i&&n?"stepped":"stepless",d.scrollAmount=10,$(s,t,e,"mcsLinearOut",i?60:null)}var n,s=t(this),r=s.data(o),l=r.opt,d=r.sequential,u=o+"_"+r.idx,h=t("#mCSB_"+r.idx+"_container"),f=h.parent();h.bind("mousedown."+u,function(t){e||n||(n=1,c=!0)}).add(document).bind("mousemove."+u,function(t){if(!e&&n&&i()){var o=h.offset(),s=M(t)[0]-o.top+h[0].offsetTop,c=M(t)[1]-o.left+h[0].offsetLeft;s>0&&s0&&cs?a("on",38):s>f.height()&&a("on",40)),"y"!==l.axis&&r.overflowed[1]&&(0>c?a("on",37):c>f.width()&&a("on",39)))}}).bind("mouseup."+u,function(t){e||(n&&(n=0,a("off",null)),c=!1)})},B=function(){function e(e,o){if(q(i),!O(i,e.target)){var s="auto"!==n.mouseWheel.deltaFactor?parseInt(n.mouseWheel.deltaFactor):l&&e.deltaFactor<100?100:e.deltaFactor||100;if("x"===n.axis||"x"===n.mouseWheel.axis)var d="x",u=[Math.round(s*a.scrollRatio.x),parseInt(n.mouseWheel.scrollAmount)],h="auto"!==n.mouseWheel.scrollAmount?u[1]:u[0]>=r.width()?.9*r.width():u[0],f=Math.abs(t("#mCSB_"+a.idx+"_container")[0].offsetLeft),p=c[1][0].offsetLeft,m=c[1].parent().width()-c[1].width(),g=e.deltaX||e.deltaY||o;else var d="y",u=[Math.round(s*a.scrollRatio.y),parseInt(n.mouseWheel.scrollAmount)],h="auto"!==n.mouseWheel.scrollAmount?u[1]:u[0]>=r.height()?.9*r.height():u[0],f=Math.abs(t("#mCSB_"+a.idx+"_container")[0].offsetTop),p=c[0][0].offsetTop,m=c[0].parent().height()-c[0].height(),g=e.deltaY||o;"y"===d&&!a.overflowed[0]||"x"===d&&!a.overflowed[1]||((n.mouseWheel.invert||e.webkitDirectionInvertedFromDevice)&&(g=-g),n.mouseWheel.normalizeDelta&&(g=0>g?-1:1),(g>0&&0!==p||0>g&&p!==m||n.mouseWheel.preventDefault)&&(e.stopImmediatePropagation(),e.preventDefault()),N(i,(f-g*h).toString(),{dir:d}))}}if(t(this).data(o)){var i=t(this),a=i.data(o),n=a.opt,s=o+"_"+a.idx,r=t("#mCSB_"+a.idx),c=[t("#mCSB_"+a.idx+"_dragger_vertical"),t("#mCSB_"+a.idx+"_dragger_horizontal")],d=t("#mCSB_"+a.idx+"_container").find("iframe");d.length&&d.each(function(){t(this).load(function(){H(this)&&t(this.contentDocument||this.contentWindow.document).bind("mousewheel."+s,function(t,i){e(t,i)})})}),r.bind("mousewheel."+s,function(t,i){e(t,i)})}},H=function(t){var e=null;try{var i=t.contentDocument||t.contentWindow.document;e=i.body.innerHTML}catch(o){}return null!==e},O=function(e,i){var a=i.nodeName.toLowerCase(),n=e.data(o).opt.mouseWheel.disableOver,s=["select","textarea"];return t.inArray(a,n)>-1&&!(t.inArray(a,s)>-1&&!t(i).is(":focus"))},R=function(){var e=t(this),i=e.data(o),a=o+"_"+i.idx,n=t("#mCSB_"+i.idx+"_container"),s=n.parent(),r=t(".mCSB_"+i.idx+"_scrollbar ."+d[12]);r.bind("touchstart."+a+" pointerdown."+a+" MSPointerDown."+a,function(t){c=!0}).bind("touchend."+a+" pointerup."+a+" MSPointerUp."+a,function(t){c=!1}).bind("click."+a,function(o){if(t(o.target).hasClass(d[12])||t(o.target).hasClass("mCSB_draggerRail")){q(e);var a=t(this),r=a.find(".mCSB_dragger");if(a.parent(".mCSB_scrollTools_horizontal").length>0){if(!i.overflowed[1])return;var l="x",c=o.pageX>r.offset().left?-1:1,u=Math.abs(n[0].offsetLeft)-c*(.9*s.width())}else{if(!i.overflowed[0])return;var l="y",c=o.pageY>r.offset().top?-1:1,u=Math.abs(n[0].offsetTop)-c*(.9*s.height())}N(e,u.toString(),{dir:l,scrollEasing:"mcsEaseInOut"})}})},j=function(){var e=t(this),i=e.data(o),a=i.opt,n=o+"_"+i.idx,s=t("#mCSB_"+i.idx+"_container"),r=s.parent();s.bind("focusin."+n,function(i){var o=t(document.activeElement),n=s.find(".mCustomScrollBox").length,l=0;o.is(a.advanced.autoScrollOnFocus)&&(q(e),clearTimeout(e[0]._focusTimeout),e[0]._focusTimer=n?(l+17)*n:0,e[0]._focusTimeout=setTimeout(function(){var t=[it(o)[0],it(o)[1]],i=[s[0].offsetTop,s[0].offsetLeft],n=[i[0]+t[0]>=0&&i[0]+t[0]=0&&i[0]+t[1]a");l.bind("mousedown."+s+" touchstart."+s+" pointerdown."+s+" MSPointerDown."+s+" mouseup."+s+" touchend."+s+" pointerup."+s+" MSPointerUp."+s+" mouseout."+s+" pointerout."+s+" MSPointerOut."+s+" click."+s,function(o){function s(t,i){n.scrollAmount=a.snapAmount||a.scrollButtons.scrollAmount,$(e,t,i)}if(o.preventDefault(),J(o)){var r=t(this).attr("class");switch(n.type=a.scrollButtons.scrollType,o.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===n.type)return;c=!0,i.tweenRunning=!1,s("on",r);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===n.type)return;c=!1,n.dir&&s("off",r);break;case"click":if("stepped"!==n.type||i.tweenRunning)return;s("on",r)}}})},F=function(){function e(e){function o(t,e){s.type=n.keyboard.scrollType,s.scrollAmount=n.snapAmount||n.keyboard.scrollAmount,"stepped"===s.type&&a.tweenRunning||$(i,t,e)}switch(e.type){case"blur":a.tweenRunning&&s.dir&&o("off",null);break;case"keydown":case"keyup":var r=e.keyCode?e.keyCode:e.which,l="on";if("x"!==n.axis&&(38===r||40===r)||"y"!==n.axis&&(37===r||39===r)){if((38===r||40===r)&&!a.overflowed[0]||(37===r||39===r)&&!a.overflowed[1])return;"keyup"===e.type&&(l="off"),t(document.activeElement).is(u)||(e.preventDefault(),e.stopImmediatePropagation(),o(l,r))}else if(33===r||34===r){if((a.overflowed[0]||a.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type){q(i);var h=34===r?-1:1;if("x"===n.axis||"yx"===n.axis&&a.overflowed[1]&&!a.overflowed[0])var f="x",p=Math.abs(c[0].offsetLeft)-h*(.9*d.width());else var f="y",p=Math.abs(c[0].offsetTop)-h*(.9*d.height());N(i,p.toString(),{dir:f,scrollEasing:"mcsEaseInOut"})}}else if((35===r||36===r)&&!t(document.activeElement).is(u)&&((a.overflowed[0]||a.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type)){if("x"===n.axis||"yx"===n.axis&&a.overflowed[1]&&!a.overflowed[0])var f="x",p=35===r?Math.abs(d.width()-c.outerWidth(!1)):0;else var f="y",p=35===r?Math.abs(d.height()-c.outerHeight(!1)):0;N(i,p.toString(),{dir:f,scrollEasing:"mcsEaseInOut"})}}}var i=t(this),a=i.data(o),n=a.opt,s=a.sequential,r=o+"_"+a.idx,l=t("#mCSB_"+a.idx),c=t("#mCSB_"+a.idx+"_container"),d=c.parent(),u="input,textarea,select,datalist,keygen,[contenteditable='true']",h=c.find("iframe"),f=["blur."+r+" keydown."+r+" keyup."+r];h.length&&h.each(function(){t(this).load(function(){H(this)&&t(this.contentDocument||this.contentWindow.document).bind(f[0],function(t){e(t)})})}),l.attr("tabindex","0").bind(f[0],function(t){e(t)})},$=function(e,i,a,n,s){function r(t){var i="stepped"!==h.type,o=s?s:t?i?m/1.5:g:1e3/60,a=t?i?7.5:40:2.5,l=[Math.abs(f[0].offsetTop),Math.abs(f[0].offsetLeft)],d=[c.scrollRatio.y>10?10:c.scrollRatio.y,c.scrollRatio.x>10?10:c.scrollRatio.x],u="x"===h.dir[0]?l[1]+h.dir[1]*(d[1]*a):l[0]+h.dir[1]*(d[0]*a),p="x"===h.dir[0]?l[1]+h.dir[1]*parseInt(h.scrollAmount):l[0]+h.dir[1]*parseInt(h.scrollAmount),v="auto"!==h.scrollAmount?p:u,y=n?n:t?i?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",w=t?!0:!1;return t&&17>o&&(v="x"===h.dir[0]?l[1]:l[0]),N(e,v.toString(),{dir:h.dir[0],scrollEasing:y,dur:o,onComplete:w}),t?void(h.dir=!1):(clearTimeout(h.step),void(h.step=setTimeout(function(){r()},o)))}function l(){clearTimeout(h.step),K(h,"step"),q(e)}var c=e.data(o),u=c.opt,h=c.sequential,f=t("#mCSB_"+c.idx+"_container"),p="stepped"===h.type?!0:!1,m=u.scrollInertia<26?26:u.scrollInertia,g=u.scrollInertia<1?17:u.scrollInertia;switch(i){case"on":if(h.dir=[a===d[16]||a===d[15]||39===a||37===a?"x":"y",a===d[13]||a===d[15]||38===a||37===a?-1:1],q(e),et(a)&&"stepped"===h.type)return;r(p);break;case"off":l(),(p||c.tweenRunning&&h.dir)&&r(!0)}},X=function(e){var i=t(this).data(o).opt,a=[];return"function"==typeof e&&(e=e()),e instanceof Array?a=e.length>1?[e[0],e[1]]:"x"===i.axis?[null,e[0]]:[e[0],null]:(a[0]=e.y?e.y:e.x||"x"===i.axis?null:e,a[1]=e.x?e.x:e.y||"y"===i.axis?null:e),"function"==typeof a[0]&&(a[0]=a[0]()),"function"==typeof a[1]&&(a[1]=a[1]()),a},V=function(e,i){if(null!=e&&"undefined"!=typeof e){var a=t(this),n=a.data(o),s=n.opt,r=t("#mCSB_"+n.idx+"_container"),l=r.parent(),c=typeof e;i||(i="x"===s.axis?"x":"y");var d="x"===i?r.outerWidth(!1):r.outerHeight(!1),h="x"===i?r[0].offsetLeft:r[0].offsetTop,f="x"===i?"left":"top";switch(c){case"function":return e();case"object":var p=e.jquery?e:t(e);if(!p.length)return;return"x"===i?it(p)[1]:it(p)[0];case"string":case"number":if(et(e))return Math.abs(e);if(-1!==e.indexOf("%"))return Math.abs(d*parseInt(e)/100);if(-1!==e.indexOf("-="))return Math.abs(h-parseInt(e.split("-=")[1]));if(-1!==e.indexOf("+=")){var m=h+parseInt(e.split("+=")[1]);return m>=0?0:Math.abs(m)}if(-1!==e.indexOf("px")&&et(e.split("px")[0]))return Math.abs(e.split("px")[0]);if("top"===e||"left"===e)return 0;if("bottom"===e)return Math.abs(l.height()-r.outerHeight(!1));if("right"===e)return Math.abs(l.width()-r.outerWidth(!1));if("first"===e||"last"===e){var p=r.find(":"+e);return"x"===i?it(p)[1]:it(p)[0]}return t(e).length?"x"===i?it(t(e))[1]:it(t(e))[0]:(r.css(f,e),void u.update.call(null,a[0]))}}},Y=function(e){function i(){return clearTimeout(f[0].autoUpdate),0===l.parents("html").length?void(l=null):void(f[0].autoUpdate=setTimeout(function(){return h.advanced.updateOnSelectorChange&&(p=s(),p!==b)?(r(3),void(b=p)):(h.advanced.updateOnContentResize&&(m=[f.outerHeight(!1),f.outerWidth(!1),v.height(),v.width(),w()[0],w()[1]],(m[0]!==C[0]||m[1]!==C[1]||m[2]!==C[2]||m[3]!==C[3]||m[4]!==C[4]||m[5]!==C[5])&&(r(m[0]!==C[0]||m[1]!==C[1]),C=m)),h.advanced.updateOnImageLoad&&(g=a(),g!==x&&(f.find("img").each(function(){n(this)}),x=g)),void((h.advanced.updateOnSelectorChange||h.advanced.updateOnContentResize||h.advanced.updateOnImageLoad)&&i()))},h.advanced.autoUpdateTimeout))}function a(){var t=0;return h.advanced.updateOnImageLoad&&(t=f.find("img").length),t}function n(e){function i(t,e){return function(){return e.apply(t,arguments)}}function o(){this.onload=null,t(e).addClass(d[2]),r(2)}if(t(e).hasClass(d[2]))return void r();var a=new Image;a.onload=i(a,o),a.src=e.src}function s(){h.advanced.updateOnSelectorChange===!0&&(h.advanced.updateOnSelectorChange="*");var e=0,i=f.find(h.advanced.updateOnSelectorChange);return h.advanced.updateOnSelectorChange&&i.length>0&&i.each(function(){e+=t(this).height()+t(this).width()}),e}function r(t){clearTimeout(f[0].autoUpdate),u.update.call(null,l[0],t)}var l=t(this),c=l.data(o),h=c.opt,f=t("#mCSB_"+c.idx+"_container");if(e)return clearTimeout(f[0].autoUpdate),void K(f[0],"autoUpdate");var p,m,g,v=f.parent(),y=[t("#mCSB_"+c.idx+"_scrollbar_vertical"),t("#mCSB_"+c.idx+"_scrollbar_horizontal")],w=function(){return[y[0].is(":visible")?y[0].outerHeight(!0):0,y[1].is(":visible")?y[1].outerWidth(!0):0]},b=s(),C=[f.outerHeight(!1),f.outerWidth(!1),v.height(),v.width(),w()[0],w()[1]],x=a();i()},G=function(t,e,i){return Math.round(t/e)*e-i},q=function(e){var i=e.data(o),a=t("#mCSB_"+i.idx+"_container,#mCSB_"+i.idx+"_container_wrapper,#mCSB_"+i.idx+"_dragger_vertical,#mCSB_"+i.idx+"_dragger_horizontal");a.each(function(){Z.call(this)})},N=function(e,i,a){function n(t){return l&&c.callbacks[t]&&"function"==typeof c.callbacks[t]}function s(){return[c.callbacks.alwaysTriggerOffsets||w>=b[0]+x,c.callbacks.alwaysTriggerOffsets||-S>=w]}function r(){var t=[f[0].offsetTop,f[0].offsetLeft],i=[v[0].offsetTop,v[0].offsetLeft],o=[f.outerHeight(!1),f.outerWidth(!1)],n=[h.height(),h.width()];e[0].mcs={content:f,top:t[0],left:t[1],draggerTop:i[0],draggerLeft:i[1],topPct:Math.round(100*Math.abs(t[0])/(Math.abs(o[0])-n[0])),leftPct:Math.round(100*Math.abs(t[1])/(Math.abs(o[1])-n[1])),direction:a.dir}}var l=e.data(o),c=l.opt,d={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:c.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},a=t.extend(d,a),u=[a.dur,a.drag?0:a.dur],h=t("#mCSB_"+l.idx),f=t("#mCSB_"+l.idx+"_container"),p=f.parent(),m=c.callbacks.onTotalScrollOffset?X.call(e,c.callbacks.onTotalScrollOffset):[0,0],g=c.callbacks.onTotalScrollBackOffset?X.call(e,c.callbacks.onTotalScrollBackOffset):[0,0];if(l.trigger=a.trigger,(0!==p.scrollTop()||0!==p.scrollLeft())&&(t(".mCSB_"+l.idx+"_scrollbar").css("visibility","visible"),p.scrollTop(0).scrollLeft(0)),"_resetY"!==i||l.contentReset.y||(n("onOverflowYNone")&&c.callbacks.onOverflowYNone.call(e[0]),l.contentReset.y=1),"_resetX"!==i||l.contentReset.x||(n("onOverflowXNone")&&c.callbacks.onOverflowXNone.call(e[0]),l.contentReset.x=1),"_resetY"!==i&&"_resetX"!==i){switch(!l.contentReset.y&&e[0].mcs||!l.overflowed[0]||(n("onOverflowY")&&c.callbacks.onOverflowY.call(e[0]),l.contentReset.x=null),!l.contentReset.x&&e[0].mcs||!l.overflowed[1]||(n("onOverflowX")&&c.callbacks.onOverflowX.call(e[0]),l.contentReset.x=null),c.snapAmount&&(i=G(i,c.snapAmount,c.snapOffset)),a.dir){case"x":var v=t("#mCSB_"+l.idx+"_dragger_horizontal"),y="left",w=f[0].offsetLeft,b=[h.width()-f.outerWidth(!1),v.parent().width()-v.width()],C=[i,0===i?0:i/l.scrollRatio.x],x=m[1],S=g[1],k=x>0?x/l.scrollRatio.x:0,T=S>0?S/l.scrollRatio.x:0;break;case"y":var v=t("#mCSB_"+l.idx+"_dragger_vertical"),y="top",w=f[0].offsetTop,b=[h.height()-f.outerHeight(!1),v.parent().height()-v.height()],C=[i,0===i?0:i/l.scrollRatio.y],x=m[0],S=g[0],k=x>0?x/l.scrollRatio.y:0,T=S>0?S/l.scrollRatio.y:0}C[1]<0||0===C[0]&&0===C[1]?C=[0,0]:C[1]>=b[1]?C=[b[0],b[1]]:C[0]=-C[0],e[0].mcs||(r(),n("onInit")&&c.callbacks.onInit.call(e[0])),clearTimeout(f[0].onCompleteTimeout),(l.tweenRunning||!(0===w&&C[0]>=0||w===b[0]&&C[0]<=b[0]))&&(Q(v[0],y,Math.round(C[1]),u[1],a.scrollEasing),Q(f[0],y,Math.round(C[0]),u[0],a.scrollEasing,a.overwrite,{onStart:function(){a.callbacks&&a.onStart&&!l.tweenRunning&&(n("onScrollStart")&&(r(),c.callbacks.onScrollStart.call(e[0])),l.tweenRunning=!0,_(v),l.cbOffsets=s())},onUpdate:function(){a.callbacks&&a.onUpdate&&n("whileScrolling")&&(r(),c.callbacks.whileScrolling.call(e[0]))},onComplete:function(){if(a.callbacks&&a.onComplete){"yx"===c.axis&&clearTimeout(f[0].onCompleteTimeout);var t=f[0].idleTimer||0;f[0].onCompleteTimeout=setTimeout(function(){n("onScroll")&&(r(),c.callbacks.onScroll.call(e[0])),n("onTotalScroll")&&C[1]>=b[1]-k&&l.cbOffsets[0]&&(r(),c.callbacks.onTotalScroll.call(e[0])),n("onTotalScrollBack")&&C[1]<=T&&l.cbOffsets[1]&&(r(),c.callbacks.onTotalScrollBack.call(e[0])),l.tweenRunning=!1,f[0].idleTimer=0,_(v,"hide")},t)}}}))}},Q=function(t,e,i,o,a,n,s){function r(){C.stop||(y||p.call(),y=U()-v,l(),y>=C.time&&(C.time=y>C.time?y+h-(y-C.time):y+h-1,C.time0?(C.currVal=u(C.time,w,x,o,a),b[e]=Math.round(C.currVal)+"px"):b[e]=i+"px",m.call()}function c(){h=1e3/60,C.time=y+h,f=window.requestAnimationFrame?window.requestAnimationFrame:function(t){return l(),setTimeout(t,.01)},C.id=f(r)}function d(){null!=C.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(C.id):clearTimeout(C.id),C.id=null)}function u(t,e,i,o,a){switch(a){case"linear":case"mcsLinear":return i*t/o+e;case"mcsLinearOut":return t/=o,t--,i*Math.sqrt(1-t*t)+e;case"easeInOutSmooth":return t/=o/2,1>t?i/2*t*t+e:(t--,-i/2*(t*(t-2)-1)+e);case"easeInOutStrong":return t/=o/2,1>t?i/2*Math.pow(2,10*(t-1))+e:(t--,i/2*(-Math.pow(2,-10*t)+2)+e);case"easeInOut":case"mcsEaseInOut":return t/=o/2,1>t?i/2*t*t*t+e:(t-=2,i/2*(t*t*t+2)+e);case"easeOutSmooth":return t/=o,t--,-i*(t*t*t*t-1)+e;case"easeOutStrong":return i*(-Math.pow(2,-10*t/o)+1)+e;case"easeOut":case"mcsEaseOut":default:var n=(t/=o)*t,s=n*t;return e+i*(.499999999999997*s*n+-2.5*n*n+5.5*s+-6.5*n+4*t)}}t._mTween||(t._mTween={top:{},left:{}});var h,f,s=s||{},p=s.onStart||function(){},m=s.onUpdate||function(){},g=s.onComplete||function(){},v=U(),y=0,w=t.offsetTop,b=t.style,C=t._mTween[e];"left"===e&&(w=t.offsetLeft);var x=i-w;C.stop=0,"none"!==n&&d(),c()},U=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},Z=function(){var t=this;t._mTween||(t._mTween={top:{},left:{}});for(var e=["top","left"],i=0;i=0&&o[0]+it(a)[0]=0&&o[1]+it(a)[1]").addClass(n("Inner")),r=t("");i.after(r.append(s)),r.addClass(o),e.mapClass&&r.addClass(i.attr("class")),e.mapStyle&&r.attr("style",i.attr("style")),i.addClass("hasCustomSelect").on("update",function(){a(i,r);var t=parseInt(i.outerWidth(),10)-(parseInt(r.outerWidth(),10)-parseInt(r.width(),10));r.css({display:"inline-block"});var e=r.outerHeight();i.attr("disabled")?r.addClass(n("Disabled")):r.removeClass(n("Disabled")),s.css({width:t,display:"inline-block"}),i.css({"-webkit-appearance":"menulist-button",width:r.outerWidth(),position:"absolute",opacity:0,height:e,fontSize:r.css("font-size")})}).on("change",function(){r.addClass(n("Changed")),a(i,r)}).on("keyup",function(t){r.hasClass(n("Open"))?(13==t.which||27==t.which)&&a(i,r):(i.blur(),i.focus())}).on("mousedown",function(t){r.removeClass(n("Changed"))}).on("mouseup",function(e){r.hasClass(n("Open"))||(t("."+n("Open")).not(r).length>0&&"undefined"!=typeof InstallTrigger?i.focus():(r.addClass(n("Open")),e.stopPropagation(),t(document).one("mouseup."+n("Open"),function(e){e.target!=i.get(0)&&t.inArray(e.target,i.find("*").get())<0?i.blur():a(i,r)})))}).focus(function(){r.removeClass(n("Changed")).addClass(n("Focus"))}).blur(function(){r.removeClass(n("Focus")+" "+n("Open"))}).hover(function(){r.addClass(n("Hover"))},function(){r.removeClass(n("Hover"))}).trigger("update")})}})}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,n,r){function l(t,e,o){var a,n="$()."+i+'("'+e+'")';return t.each(function(t,l){var c=r.data(l,i);if(!c)return void s(i+" not initialized. Cannot call methods, i.e. "+n);var d=c[e];if(!d||"_"==e.charAt(0))return void s(n+" is not a valid method");var u=d.apply(c,o);a=void 0===a?u:a}),void 0!==a?a:t}function c(t,e){t.each(function(t,o){var a=r.data(o,i);a?(a.option(e),a._init()):(a=new n(o,e),r.data(o,i,a))})}r=r||e||t.jQuery,r&&(n.prototype.option||(n.prototype.option=function(t){r.isPlainObject(t)&&(this.options=r.extend(!0,this.options,t))}),r.fn[i]=function(t){if("string"==typeof t){var e=a.call(arguments,1);return l(this,t,e)}return c(this,t),this},o(r))}function o(t){!t||t&&t.bridget||(t.bridget=i)}var a=Array.prototype.slice,n=t.console,s="undefined"==typeof n?function(){}:function(t){n.error(t)};return o(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}(this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return-1==o.indexOf(e)&&o.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},o=i[t]=i[t]||{};return o[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=i.indexOf(e);return-1!=o&&i.splice(o,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t]; if(i&&i.length){var o=0,a=i[o];e=e||[];for(var n=this._onceEvents&&this._onceEvents[t];a;){var s=n&&n[a];s&&(this.off(t,a),delete n[a]),a.apply(this,e),o+=s?0:1,a=i[o]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;c>e;e++){var i=l[e];t[i]=0}return t}function o(t){var e=getComputedStyle(t);return e||r("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function a(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var a=o(e);n.isBoxSizeOuter=s=200==t(a.width),i.removeChild(e)}}function n(e){if(a(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var n=o(e);if("none"==n.display)return i();var r={};r.width=e.offsetWidth,r.height=e.offsetHeight;for(var d=r.isBorderBox="border-box"==n.boxSizing,u=0;c>u;u++){var h=l[u],f=n[h],p=parseFloat(f);r[h]=isNaN(p)?0:p}var m=r.paddingLeft+r.paddingRight,g=r.paddingTop+r.paddingBottom,v=r.marginLeft+r.marginRight,y=r.marginTop+r.marginBottom,w=r.borderLeftWidth+r.borderRightWidth,b=r.borderTopWidth+r.borderBottomWidth,C=d&&s,x=t(n.width);x!==!1&&(r.width=x+(C?0:m+w));var S=t(n.height);return S!==!1&&(r.height=S+(C?0:g+b)),r.innerWidth=r.width-(m+w),r.innerHeight=r.height-(g+b),r.outerWidth=r.width+v,r.outerHeight=r.height+y,r}}var s,r="undefined"==typeof console?e:function(t){console.error(t)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],c=l.length,d=!1;return n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;is?"round":"floor";n=Math[r](n),this.cols=Math.max(n,1)},i.prototype.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,o=e(i);this.containerWidth=o&&o.innerWidth},i.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",o=Math[i](t.size.outerWidth/this.columnWidth);o=Math.min(o,this.cols);for(var a=this._getColGroup(o),n=Math.min.apply(Math,a),s=a.indexOf(n),r={x:this.columnWidth*s,y:n},l=n+t.size.outerHeight,c=this.cols+1-a.length,d=0;c>d;d++)this.colYs[s+d]=l;return r},i.prototype._getColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,o=0;i>o;o++){var a=this.colYs.slice(o,o+t);e[o]=Math.max.apply(Math,a)}return e},i.prototype._manageStamp=function(t){var i=e(t),o=this._getElementOffset(t),a=this._getOption("originLeft"),n=a?o.left:o.right,s=n+i.outerWidth,r=Math.floor(n/this.columnWidth);r=Math.max(0,r);var l=Math.floor(s/this.columnWidth);l-=s%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var c=this._getOption("originTop"),d=(c?o.top:o.bottom)+i.outerHeight,u=r;l>=u;u++)this.colYs[u]=Math.max(d,this.colYs[u])},i.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/layout-modes/masonry",["../layout-mode","masonry/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),o=i.prototype,a={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var n in e.prototype)a[n]||(o[n]=e.prototype[n]);var s=o.measureColumns;o.measureColumns=function(){this.items=this.isotope.filteredItems,s.call(this)};var r=o._getOption;return o._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:r.apply(this.isotope,arguments)},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var o={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,o},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","./item","./layout-mode","./layout-modes/masonry","./layout-modes/fit-rows","./layout-modes/vertical"],function(i,o,a,n,s,r){return e(t,i,o,a,n,s,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/vertical")):t.Isotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.Isotope.Item,t.Isotope.LayoutMode)}(window,function(t,e,i,o,a,n,s){function r(t,e){return function(i,o){for(var a=0;ar||r>s){var l=void 0!==e[n]?e[n]:e,c=l?1:-1;return(s>r?1:-1)*c}}return 0}}var l=t.jQuery,c=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},d=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});d.Item=n,d.LayoutMode=s;var u=d.prototype;u._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var t in s.modes)this._initLayoutMode(t)},u.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},u._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;ii;i++){var o=t[i];o.updateSortData()}};var h=function(){function t(t){if("string"!=typeof t)return t;var i=c(t).split(" "),o=i[0],a=o.match(/^\[(.+)\]$/),n=a&&a[1],s=e(n,o),r=d.sortDataParsers[i[1]];return t=r?function(t){return t&&r(s(t))}:function(t){return t&&s(t)}}function e(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&i.textContent}}return t}();d.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},u._sort=function(){var t=this.options.sortBy;if(t){var e=[].concat.apply(t,this.sortHistory),i=r(e,this.options.sortAscending);this.filteredItems.sort(i),t!=this.sortHistory[0]&&this.sortHistory.unshift(t)}},u._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},u._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},u._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},u._manageStamp=function(t){this._mode()._manageStamp(t)},u._getContainerSize=function(){return this._mode()._getContainerSize()},u.needsResizeLayout=function(){return this._mode().needsResizeLayout()},u.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},u.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},u._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},u.insert=function(t){var e=this.addItems(t);if(e.length){var i,o,a=e.length;for(i=0;a>i;i++)o=e[i],this.element.appendChild(o.element);var n=this._filter(e).matches;for(i=0;a>i;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;a>i;i++)delete e[i].isLayoutInstant;this.reveal(n)}};var f=u.remove;return u.remove=function(t){t=a.makeArray(t);var e=this.getItems(t); f.call(this,t);for(var i=e&&e.length,o=0;i&&i>o;o++){var n=e[o];a.removeFrom(this.filteredItems,n)}},u.shuffle=function(){for(var t=0;t0||t(".animate-element").length>0){var e=-1;t(".animation-at-the-same-time:in-viewport").each(function(){var e=t(this),i=e.find(".animate-element");i.addClass("animation-triggered"),e.find(".animate-element:not(.start-animation)").addClass("start-animation")}),t(".animate-element:not(.start-animation):in-viewport").each(function(){var i=t(this);!i.parents(".animation-at-the-same-time").length>0&&(i.hasClass("start-animation")||i.hasClass("animation-triggered")||(i.addClass("animation-triggered"),e++,setTimeout(function(){i.addClass("start-animation"),i.hasClass("skills")&&i.animateSkills()},200*e)))})}}function o(){var e=y.width(),i=(e-C.innerWidth())/2,o=t(".side-header-menu-icon").length>0;b.hasClass("header-side-right")&&C.hasClass("boxed")&&(!_.length>0&&M.css({right:i}),o&&(R.css({right:i}),t(".branding").css({left:i}))),b.hasClass("header-side-left")&&C.hasClass("boxed")&&o&&(t(".floating-logo .branding").css({right:i}),R.css({left:i})),S.length>0&&o&&C.hasClass("boxed")&&(R.css({right:i}),t(".floating-logo .branding").css({left:i}))}function a(){qt=window.innerWidth0?Ft.height():0:"block"==Ft.css("display")||ft&&!pt||ft&&mt?Ft.height():0}function n(){t(".full-width-wrap").length>0&&t(".full-width-wrap").each(function(){var e,i,o=t(this),a=window.innerWidth,n=y.width(),s=t(".content").width();if(t(".boxed").length>0)e=(parseInt(t("#main").width())-parseInt(s))/2;else if(t(".side-header-v-stroke").length&&a>dtLocal.themeSettings.mobileHeader.firstSwitchPoint){var r=a<=parseInt(s)?parseInt(s):n-t(".side-header-v-stroke").width();e=Math.ceil((r-parseInt(s))/2)}else if(t(".sticky-header .side-header").length&&a>dtLocal.themeSettings.mobileHeader.firstSwitchPoint){var r=n<=parseInt(s)?parseInt(s):n;e=Math.ceil((n-parseInt(s))/2)}else if((t(".header-side-left").length&&a||t(".header-side-right").length&&a)>dtLocal.themeSettings.mobileHeader.firstSwitchPoint){var r=a<=parseInt(s)?parseInt(s):n-t(".side-header").width();e=Math.ceil((r-parseInt(s))/2)}else{var r=n<=parseInt(s)?parseInt(s):n;e=Math.ceil((n-parseInt(s))/2)}t(".sidebar-left").length>0||t(".sidebar-right").length>0?(i=t(".content").width(),e=0):i=t("#main").innerWidth(),o.css({width:i,"margin-left":-e,opacity:1}),o.find(".full-width-wrap").css({width:"","margin-left":"",opacity:1,"padding-left":e}),o.find(".ts-wrap").each(function(){var e=t(this).data("thePhotoSlider");"undefined"!=typeof e&&e.update()})})}function s(){dtGlobals.isMobile&&t(".skills").animateSkills()}function r(t){if("undefined"!=typeof window.addEventListener)window.addEventListener("load",t,!1);else if("undefined"!=typeof window.attachEvent)window.attachEvent("onload",t);else if(null!=window.onload){var e=window.onload;window.onload=function(i){e(i),window[t]()}}else window.onload=t}function l(){t(".album-share-overlay, .project-share-overlay:not(.allways-visible-icons)").each(function(){var e=t(this);e.find(".share-button").on("click",function(t){t.preventDefault()}),e.on("mouseover tap",function(e){"tap"==e.type&&e.stopPropagation();var i=t(this);i.addClass("dt-hovered"),clearTimeout(ee),clearTimeout(ie),ee=setTimeout(function(){i.hasClass("dt-hovered")&&(i.find(".soc-ico a").css("display","inline-block"),i.find(".soc-ico").stop().css("visibility","visible").animate({opacity:1},200))},100)}),e.on("mouseleave ",function(e){var i=t(this);i.removeClass("dt-hovered"),clearTimeout(ee),clearTimeout(ie),ie=setTimeout(function(){i.hasClass("dt-hovered")||i.find(".soc-ico").stop().animate({opacity:0},150,function(){i.find(".soc-ico a").css("display","none"),t(this).css("visibility","hidden")})},50)})})}function c(){t(".project-slider .preload-me").loaded(null,function(){var e=t(".floating-content");if(t(".floating-content").length>0){var i=e.offset();if(t(".top-bar").length>0&&t(".phantom-sticky").length>0)var o=t(".top-bar").height();else var o=0;var a=t(".project-post").offset();y.on("scroll",function(){window.innerWidth>1050?dtGlobals.winScrollTop+Ft.height()>i.top?dtGlobals.winScrollTop+Ft.height()+ae+400?i.innerWidth()-1:i.innerWidth()}),e>t(this).width()?t(this).addClass("new-style"):t(this).removeClass("new-style")})}function u(){var e=t(".dt-isotope"),i=t(".iso-grid .wf-cell:not(.shown)");if(i.exists()&&h(i),e.exists()){var o=0;e.each(function(){o++;var e=t(this).find(".wf-cell");e.exists()&&h(e,function(){})})}else{var a=t(".iso-item:not(.shown)");if(!a.exists())return;h(a)}}function h(e,i){var o=0;e.each(function(){var e=t(this);t(".mobile-true").length>0||e.parents(".loading-effect-none").length>0?e.hasClass("shown")||e.hasClass("animation-triggered")||(e.addClass("animation-triggered"),setTimeout(function(){e.hasClass("animation-triggered")&&e.removeClass("animation-triggered").addClass("shown")},200)):e.hasClass("shown")||e.hasClass("animation-triggered")||!e.inView()||(e.addClass("animation-triggered"),o++,setTimeout(function(){e.hasClass("animation-triggered")&&e.removeClass("animation-triggered").addClass("shown")},100*o)),"function"==typeof i&&i.call(this)})}function f(){t(".iso-item.shown, .iso-grid .wf-cell.shown").removeClass("start-animation").removeClass("animation-triggered").removeClass("shown")}function p(e){var i=e.find(".filter.with-ajax").first(),o=e.find(".wf-container.with-ajax, .articles-list.with-ajax").first(),a=i.find(".filter-categories a.act"),n=i.find(".filter-by a.act"),s=i.find(".filter-sorting a.act"),r=parseInt(o.attr("data-cur-page")),l=new Array,c=a.length>0?a.attr("data-filter").replace(".category-","").replace("*",""):"";return"0"==c&&(c="none"),o.hasClass("dt-isotope")&&t(".wf-cell",o).each(function(){l.push(t(this).attr("data-post-id"))}),{visibleItems:l,postID:dtLocal.postID,paged:r,term:c,orderBy:n.length>0?n.attr("data-by"):"",order:s.length>0?s.attr("data-sort"):"",ajaxurl:dtLocal.ajaxurl,nonce:dtLocal.ajaxNonce,pageData:dtLocal.pageData,layout:dtLocal.pageData.layout,targetContainer:o,isPhone:dtGlobals.isPhone}}function m(){if(dtGlobals.loadMoreButton&&dtGlobals.loadMoreButton.exists()){var t=dtGlobals.loadMoreButton.offset();t&&y.scrollTop()>(t.top-y.height())/2&&!dtGlobals.loadMoreButton.hasClass("animate-load")&&dtGlobals.loadMoreButton.trigger("click")}}var g,v=t(document),y=t(window),w=t("html"),b=t("body"),C=t("#page");dtGlobals.isMobile&&!dtGlobals.isWindowsPhone?y.bind("orientationchange",function(t){clearTimeout(g),g=setTimeout(function(){y.trigger("debouncedresize")},200)}):y.on("resize",function(){clearTimeout(g),g=setTimeout(function(){y.trigger("debouncedresize")},200)}),t.fn.layzrInitialisation=function(e){return this.each(function(){t(this),new Layzr({container:e,selector:".lazy-load",attr:"data-src",attrSrcSet:"data-srcset",retinaAttr:"data-src-retina",hiddenAttr:"data-src-hidden",threshold:30,before:function(){this.setAttribute("sizes",this.width+"px")},callback:function(){this.classList.add("is-loaded");var e=t(this);setTimeout(function(){e.parent().removeClass("layzr-bg")},350)}})})},t(".layzr-loading-on, .vc_single_image-img").layzrInitialisation(),t('div[data-vc-stretch-content="true"]').length>0&&t('div[data-vc-full-width-init="false"]').length>0&&vc_rowBehaviour(),dtGlobals.touches={},dtGlobals.touches.touching=!1,dtGlobals.touches.touch=!1,dtGlobals.touches.currX=0,dtGlobals.touches.currY=0,dtGlobals.touches.cachedX=0,dtGlobals.touches.cachedY=0,dtGlobals.touches.count=0,dtGlobals.resizeCounter=0,v.on("touchstart",function(e){1==e.originalEvent.touches.length&&(dtGlobals.touches.touch=e.originalEvent.touches[0],dtGlobals.touches.cachedX=dtGlobals.touches.touch.pageX,dtGlobals.touches.cachedY=dtGlobals.touches.touch.pageY,dtGlobals.touches.touching=!0,setTimeout(function(){dtGlobals.touches.currX=dtGlobals.touches.touch.pageX,dtGlobals.touches.currY=dtGlobals.touches.touch.pageY,dtGlobals.touches.cachedX!==dtGlobals.touches.currX||dtGlobals.touches.touching||dtGlobals.touches.cachedY!==dtGlobals.touches.currY||(dtGlobals.touches.count++,t(e.target).trigger("tap"))},200))}),v.on("touchend touchcancel",function(t){dtGlobals.touches.touching=!1}),v.on("touchmove",function(t){dtGlobals.touches.touch=t.originalEvent.touches[0],dtGlobals.touches.touching}),v.on("tap",function(e){t(".dt-hovered").trigger("mouseout")}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t,e){function i(t){function e(t){o?(i(),j(e),a=!0,o=!1):a=!1}var i=t,o=!1,a=!1;this.kick=function(t){o=!0,a||e()},this.end=function(t){var e=i;t&&(a?(i=o?function(){e(),t()}:t,o=!0):t())}}function o(){return!0}function a(){return!1}function n(t){t.preventDefault()}function s(t){D[t.target.tagName.toLowerCase()]||t.preventDefault()}function r(t){return 1===t.which&&!t.ctrlKey&&!t.altKey}function l(t,e){var i,o;if(t.identifiedTouch)return t.identifiedTouch(e);for(i=-1,o=t.length;++ia*a+n*n||C(t,e,i,a,n,o)}function w(){return this._handled=o,!1}function b(t){t._handled()}function C(t,e,i,o,a,n){var s,r;e.target;s=t.targetTouches,r=t.timeStamp-e.timeStamp,e.type="movestart",e.distX=o,e.distY=a,e.deltaX=o,e.deltaY=a,e.pageX=i.pageX,e.pageY=i.pageY,e.velocityX=o/r,e.velocityY=a/r,e.targetTouches=s,e.finger=s?s.length:1,e._handled=w,e._preventTouchmoveDefault=function(){t.preventDefault()},R(e.target,e),n(e.identifier)}function x(t){var e=t.data.timer;t.data.touch=t,t.data.timeStamp=t.timeStamp,e.kick()}function S(t){var e=t.data.event,i=t.data.timer;_(),z(e,i,function(){setTimeout(function(){O(e.target,"click",a)},0)})}function _(t){O(document,W.move,x),O(document,W.end,S)}function k(t){var e=t.data.event,i=t.data.timer,o=c(t,e);o&&(t.preventDefault(),e.targetTouches=t.targetTouches,t.data.touch=o,t.data.timeStamp=t.timeStamp,i.kick())}function T(t){var e=t.data.event,i=t.data.timer,o=l(t.changedTouches,e.identifier);o&&(I(e),z(e,i))}function I(t){O(document,"."+t.identifier,k),O(document,"."+t.identifier,T)}function P(t,e,i,o){var a=i-t.timeStamp;t.type="move",t.distX=e.pageX-t.startX,t.distY=e.pageY-t.startY,t.deltaX=e.pageX-t.pageX,t.deltaY=e.pageY-t.pageY,t.velocityX=.3*t.velocityX+.7*t.deltaX/a,t.velocityY=.3*t.velocityY+.7*t.deltaY/a,t.pageX=e.pageX,t.pageY=e.pageY}function z(t,e,i){e.end(function(){return t.type="moveend",R(t.target,t),i&&i()})}function M(t,e,i){return H(this,"movestart.move",b),!0}function L(t){return O(this,"dragstart drag",n),O(this,"mousedown touchstart",s),O(this,"movestart",b),!0}function A(t){"move"!==t.namespace&&"moveend"!==t.namespace&&(H(this,"dragstart."+t.guid+" drag."+t.guid,n,e,t.selector),H(this,"mousedown."+t.guid,s,e,t.selector))}function E(t){"move"!==t.namespace&&"moveend"!==t.namespace&&(O(this,"dragstart."+t.guid+" drag."+t.guid),O(this,"mousedown."+t.guid))}var B=6,H=t.event.add,O=t.event.remove,R=function(e,i,o){t.event.trigger(i,o,e)},j=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t,e){return window.setTimeout(function(){t()},25)}}(),D={textarea:!0,input:!0,select:!0,button:!0},W={move:"mousemove",cancel:"mouseup dragstart",end:"mouseup"},F={move:"touchmove",cancel:"touchend",end:"touchend"};t.event.special.movestart={setup:M,teardown:L,add:A,remove:E,_default:function(t){function o(e){P(n,s.touch,s.timeStamp),R(t.target,n)}var n,s;t._handled()&&(n={target:t.target,startX:t.startX,startY:t.startY,pageX:t.pageX,pageY:t.pageY,distX:t.distX,distY:t.distY,deltaX:t.deltaX,deltaY:t.deltaY,velocityX:t.velocityX,velocityY:t.velocityY,timeStamp:t.timeStamp,identifier:t.identifier,targetTouches:t.targetTouches,finger:t.finger},s={event:n,timer:new i(o),touch:e,timeStamp:e},t.identifier===e?(H(t.target,"click",a),H(document,W.move,x,s),H(document,W.end,S,s)):(t._preventTouchmoveDefault(),H(document,F.move+"."+t.identifier,k,s),H(document,F.end+"."+t.identifier,T,s)))}},t.event.special.move={setup:function(){H(this,"movestart.move",t.noop)},teardown:function(){O(this,"movestart.move",t.noop)}},t.event.special.moveend={setup:function(){H(this,"movestart.moveend",t.noop)},teardown:function(){O(this,"movestart.moveend",t.noop)}},H(document,"mousedown.move",d),H(document,"touchstart.move",p),"function"==typeof Array.prototype.indexOf&&!function(t,e){for(var i=["changedTouches","targetTouches"],o=i.length;o--;)-1===t.event.props.indexOf(i[o])&&t.event.props.push(i[o])}(t)}),t.belowthefold=function(e,i){var o=y.height()+y.scrollTop();return o<=t(e).offset().top-i.threshold},t.abovethetop=function(e,i){var o=y.scrollTop();return o>=t(e).offset().top+t(e).height()-i.threshold},t.rightofscreen=function(e,i){var o=y.width()+y.scrollLeft();return o<=t(e).offset().left-i.threshold},t.leftofscreen=function(e,i){var o=y.scrollLeft();return o>=t(e).offset().left+t(e).width()-i.threshold},t.inviewport=function(e,i){return!(t.rightofscreen(e,i)||t.leftofscreen(e,i)||t.belowthefold(e,i)||t.abovethetop(e,i))},t.extend(t.expr[":"],{"below-the-fold":function(e,i,o){return t.belowthefold(e,{threshold:0})},"above-the-top":function(e,i,o){return t.abovethetop(e,{threshold:0})},"left-of-screen":function(e,i,o){return t.leftofscreen(e,{threshold:0})},"right-of-screen":function(e,i,o){return t.rightofscreen(e,{threshold:0})},"in-viewport":function(e,i,o){return t.inviewport(e,{threshold:-30})}}),setTimeout(function(){e()},50),dtGlobals.isMobile||y.on("scroll",function(){e()}),t.fn.exists=function(){return t(this).length>0?!0:!1},t.fn.loaded=function(e,i,o){var a=this.length;return a>0?this.each(function(){var o=this,n=t(o);n.on("load.dt",function(o){t(this).off("load.dt"),"function"==typeof e&&e.call(this),--a<=0&&"function"==typeof i&&i.call(this)}),o.complete&&void 0!==o.complete?n.trigger("load.dt"):o.src=o.src}):o?("function"==typeof i&&i.call(this),this):void 0},t.fn.exists=function(){return t(this).length>0?!0:!1},t.fn.loaded=function(e,i,o){var a=this.length;return a>0?this.each(function(){var o=this,n=t(o);n.on("load.dt",function(o){t(this).off("load.dt"),"function"==typeof e&&e.call(this),--a<=0&&"function"==typeof i&&i.call(this)}),o.complete&&void 0!==o.complete?n.trigger("load.dt"):o.src=o.src}):o?("function"==typeof i&&i.call(this),this):void 0},t.rsCSS3Easing={easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"},t.extend(jQuery.easing,{easeInOutSine:function(t,e,i,o,a){return-o/2*(Math.cos(Math.PI*e/a)-1)+i},easeOutSine:function(t,e,i,o,a){return o*Math.sin(e/a*(Math.PI/2))+i},easeOutCubic:function(t,e,i,o,a){return o*((e=e/a-1)*e*e+1)+i}}),t.thePhotoSlider=function(e,i){var o=t(e).data("thePhotoSlider");o?o.update():this._init(e,i)},t.thePhotoSlider.defaults={mode:{type:"slider"},responsive:!0,height:!1,width:!1,sidePaddings:0,storeHTML:!1,autoPlay:!1,threshold:20,resizeImg:!1,imageScaleMode:"none",imageAlignCenter:!1,collapsePoint:700,transformEnable:!0,calcAutoHeight:!1,columBasedResize:!1,resizeHeight:!1},t.thePhotoSlider.prototype={_init:function(e,i){var o=this;if(o.st=t.extend({},t.thePhotoSlider.defaults,i),o.ev=t(o),o.autoPlay={enabled:!1,delay:2e3,loop:!0},o.currSlide=0,o.noSlide=!0,o.lockLeft=!0,o.lockRight=!0,o.sliderLock=!1,o.lockTimeout=!1,o.wrap={},o.wrap.$el=t(e),o.wrap.width=0,o.wrap.height=!1,o.wrap.$el.data("thePhotoSlider",o),o.viewport=o.wrap.$el.find(".ts-viewport"),o.cont={},o.cont.$el=o.viewport.find(".ts-cont"),o.cont.width=0,o.cont.startX=0,o.cont.instantX=0,o.slides={},o.slides.$items=o.cont.$el.children(),o.slides.number=o.slides.$items.length,o.slides.position=[],o.slides.width=[],o.slides.isLoaded=[],o.drag={},o.drag.isMoving=!1,o.drag.startX=0,o.drag.startY=0,o.drag.offsetX=0,o.drag.offsetY=0,o.drag.lockX=!1,o.drag.lockY=!1,o.features={},o._featureDetection(),o.st.storeHTML&&(o.origHTML=o.wrap.$el.html()),o._buildHTML(),o._calcSliderSize(),o._resizeImage(),o.wrap.height||o.wrap.$el.addClass("ts-autoHeight"),o._setSliderWidth(),o._adjustSlides(),o._setSliderHeight(),o.slideTo(0,!0),o.noSlide||o._bindEvents(),setTimeout(function(){o.wrap.$el.addClass("ts-ready"),o.ev.trigger("sliderReady")},20),o.st.responsive)if("onorientationchange"in window){var a=window.orientation;t(window).on("orientationchange",function(t){var e=window.orientation;e!==a&&(a=e,o.update())})}else{var n;t(window).on("resize",function(t){clearTimeout(n),n=setTimeout(function(){o.update()},200)})}o.st.autoPlay.enabled&&o.play()},_featureDetection:function(){var t,e=this,o=document.createElement("div").style,a=["webkit","Moz","ms","O"];for(e.features.vendor="",i=0;ip||l>m)&&(s="fit"),"fill"===s||"fit"===s?(c=p/r,d=m/l,u="fill"==s?c>d?c:d:"fit"==s?d>c?c:d:1,h=Math.ceil(r*u,10),f=Math.ceil(l*u,10)):(h=r,f=l),"none"!==s&&(g.width=h,g.height=f),n&&(g.marginLeft=Math.floor((p-h)/2),g.marginTop=Math.floor((m-f)/2)),a.css(g)}}}))},_setSliderWidth:function(){var t=this;"centered"!==t.st.mode.type?t.viewport.css({width:t.wrap.width}):t.wrap.width>t.st.collapsePoint?t.wrap.$el.removeClass("ts-collapsed"):t.wrap.$el.addClass("ts-collapsed")},_setSliderHeight:function(){var e=this;if("number"==typeof e.wrap.height)e.viewport.css({height:e.wrap.height});else if("scroller"===e.st.mode.type||"centered"===e.st.mode.type||"carousel"===e.st.mode.type){if(e.st.resizeHeight){var i=t(e.viewport).find("article").map(function(){return t(this).height()}).get(),o=Math.max.apply(null,i);e.viewport.css({height:o}),t(e.slides.$items).css({height:o})}"0px"!==e.viewport.css("height")&&0!=e.viewport.css("height")&&e.viewport.css("height")||e.viewport.css({height:Math.max.apply(null,e.slides.height)})}else if(e.slides.isLoaded[e.currSlide]){var a=t(e.slides.$items[e.currSlide]).height();a>0?e.viewport.css({height:a}):e.viewport.css({height:"auto"})}else{var a=t(e.slides.$items[e.currSlide]).height();a>0?e.viewport.css({height:a}):e.viewport.css({height:auto})}},_adjustSlides:function(){var e=this;if("slider"===e.st.mode.type)e.cont.width=0,e.slides.$items.each(function(i){var o=t(e.slides.$items[i]),a={};e.slides.position[i]=-e.cont.width-e.st.sidePaddings/2,e.cont.width=e.cont.width+e.wrap.width+e.st.sidePaddings,a.left=-e.slides.position[i],e.slides.isLoaded[i]||o.find("img").loaded(!1,function(){e.slides.isLoaded[i]=!0,o.addClass("ts-loaded")},!0),o.css(a)});else if("centered"===e.st.mode.type){if(e.cont.width=0,e.slides.contRatio=[],e.slides.ratio=[],e.st.mode.lsMinW||e.st.mode.lsMaxW)var i=e.wrap.width/100*e.st.mode.lsMinW,o=e.wrap.width/100*e.st.mode.lsMaxW;if(e.st.mode.ptMinW||e.st.mode.ptMaxW)var a=e.wrap.width/100*e.st.mode.ptMinW,n=e.wrap.width/100*e.st.mode.ptMaxW;e.slides.$items.each(function(s){var r=t(e.slides.$items[s]),l={},c=r.attr("data-width")?parseFloat(r.attr("data-width")):r.width(),d=r.attr("data-height")?parseFloat(r.attr("data-height")):r.height();e.slides.contRatio[s]||(e.slides.contRatio[s]=c/d,e.slides.contRatio[s]>1?r.addClass("ts-ls"):r.addClass("ts-pt")),e.wrap.width>e.st.collapsePoint?(d=e.wrap.height,c=e.wrap.height*e.slides.contRatio[s],(i||o)&&c>d?i===o||c>o?c=o:i>c&&(c=i):(a||n)&&d>=c&&(a===n||c>n?c=n:a>c&&(c=a)),e.slides.ratio[s]=c/d,l.height=e.wrap.height,l.width=e.slides.width[s]=c,e.slides.position[s]=-e.cont.width,e.cont.width=e.cont.width+e.slides.width[s]+e.st.sidePaddings,l.left=-e.slides.position[s]):(d=l.height=e.wrap.height,c=e.slides.width[s]=l.width=e.wrap.width,e.slides.ratio[s]=c/d,e.slides.position[s]=-e.cont.width,e.cont.width=e.cont.width+e.slides.width[s],l.left=-e.slides.position[s]),e.slides.position[s]=e.slides.position[s]-e.slides.width[s]/2,e.slides.ratio[s]>e.slides.contRatio[s]?(r.removeClass("ts-narrow"),r.addClass("ts-wide")):(r.removeClass("ts-wide"),r.addClass("ts-narrow")),e.slides.isLoaded[s]||r.find("img").loaded(!1,function(){e.slides.isLoaded[s]=!0,r.addClass("ts-loaded")},!0),r.css(l)})}else if("scroller"===e.st.mode.type){if(e.cont.width=0,e.slides.ratio=[],"number"!=typeof e.wrap.height&&(e.slides.height=[]),"undefined"!=typeof e.slides.$items.parents(".slider-wrapper").attr("data-max-width"))var s=e.slides.$items.parents(".slider-wrapper").width()*parseFloat(e.slides.$items.parents(".slider-wrapper").attr("data-max-width"))/100;e.slides.$items.each(function(i){var o=t(e.slides.$items[i]),a={},n=o.attr("data-width")?parseFloat(o.attr("data-width")):o.width(),r=o.attr("data-height")?parseFloat(o.attr("data-height")):o.height();if(n>s)var n=s;n>0&&r>0?e.slides.ratio[i]=n/r:e.slides.ratio[i]=1,"number"==typeof e.wrap.height?(e.slides.width[i]=e.wrap.height*e.slides.ratio[i],a.width=e.slides.width[i],a.height=e.slides.width[i]/e.slides.ratio[i]):n>0&&r>0?(e.slides.width[i]||(a.width=e.slides.width[i]=n),e.slides.height[i]||e.st.resizeHeight||(a.height="100%"),e.slides.height[i]=r):(o.css("height","auto"),e.slides.width[i]=o.width(),e.slides.height[i]=o.height(),a.height="100%"),e.st.columBasedResize&&(e.slides.width[i]=o.width()),e.slides.position[i]=-e.cont.width,e.cont.width=e.cont.width+e.slides.width[i],ic&&r>.31;)r--,1>r&&(r=1),c=e.wrap.width/r;e.perView=r,e.slides.$items.each(function(i){var o=t(e.slides.$items[i]),a={};e.slides.position[i]=-e.cont.width,e.cont.width=e.cont.width+c,a.width=c-e.st.sidePaddings,a.left=-e.slides.position[i]+e.st.sidePaddings/2,o.css(a)})}"centered"!==e.st.mode.type&&e.cont.width<=e.wrap.width?(e.noSlide=!0,e._transitionStart(0,0,"easeInOutSine",!0),e.cont.$el.css("left",(e.wrap.width-e.cont.width)/2),e.lockLeft=!0,e.lockRight=!0,e.ev.trigger("updateNav")):"centered"===e.st.mode.type&&e.slides.number<2?(e.noSlide=!0,e._transitionStart(0,0,"easeInOutSine",!0),e.cont.$el.css("left",-e.cont.width/2),e.lockLeft=!0,e.lockRight=!0,e.ev.trigger("updateNav")):(e.noSlide=!1,e.cont.$el.css("left",""),e.lockRight?(e.lockLeft=!1,e.lockRight=!0,e.ev.trigger("lockRight").trigger("updateNav")):e.currSlide<=0?(e.lockLeft=!0,e.lockRight=!1,e.ev.trigger("lockLeft").trigger("updateNav")):e.currSlide>0&&(e.lockLeft=!1,e.lockRight=!1,e.ev.trigger("updateNav")))},_unifiedEvent:function(t){return void 0!==t.originalEvent.touches&&t.originalEvent.touches[0]&&(t.pageX=t.originalEvent.touches[0].pageX,t.pageY=t.originalEvent.touches[0].pageY),t},_unifiedX:function(){var t=this,e=0,i=t.cont.$el.css("transform");if(i)var o=i.split(", ");return e=t.features.css3d&&"none"!==i&&"matrix(1"===o[0]?parseFloat(o[4]):t.features.css3d&&"none"!==i&&"matrix3d(1"===o[0]?parseFloat(o[12]):parseFloat(t.cont.$el.css("left"))},_bindEvents:function(){var e=this;e.st.transformEnable&&e.wrap.$el.on("mousedown.theSlider touchstart.theSlider",function(i){"touchstart"!=i.type&&i.preventDefault(),e._onStart(e._unifiedEvent(i)),t(document).on("mousemove.theSlider touchmove.theSlider",function(t){e._onMove(e._unifiedEvent(t))}),t(document).on("mouseup.theSlider mouseleave.theSlider touchend.theSlider touchcancel.theSlider",function(i){t(document).off("mousemove.theSlider mouseup.theSlider mouseleave.theSlider touchmove.theSlider touchend.theSlider touchcancel.theSlider"),e._onStop(e._unifiedEvent(i))})})},_unbindEvents:function(){var e=this;e.wrap.$el.off("mousedown.theSlider touchstart.theSlider"),t(document).off("mousemove.theSlider mouseup.theSlider mouseleave.theSlider touchmove.theSlider touchend.theSlider touchcancel.theSlider")},_onStart:function(t){var e=this;e.drag.isMoving||e.sliderLock||(e.drag.isMoving=!0,e.drag.startX=t.pageX,e.drag.startY=t.pageY,e.cont.startX=e._unifiedX(),e.drag.offsetX=0,e.drag.offsetY=0,e.drag.lockX=!1,e.drag.lockY=!1)},_onMove:function(t){var e=this,i=0;e.ev.trigger("psOnMove"),e.drag.isMoving&&(e.drag.offsetX=t.pageX-e.drag.startX,e.drag.offsetY=t.pageY-e.drag.startY,Math.abs(e.drag.offsetX)>=e.st.threshold-1&&Math.abs(e.drag.offsetX)>Math.abs(e.drag.offsetY)&&!e.drag.lockX?(e.drag.lockX=!1,e.drag.lockY=!0,"touchmove"==t.type&&(e.drag.offsetY=0)):Math.abs(e.drag.offsetY)>=e.st.threshold-1&&Math.abs(e.drag.offsetX)-e.cont.width+e.viewport.width()?e.cont.instantX:e.cont.instantX>=0?e.cont.instantX/4:-e.cont.width+e.viewport.width()+(e.cont.width-e.viewport.width()+e.cont.instantX)/4,e._doDrag(i)),e.st.autoPlay.enabled&&e.pause()},_onStop:function(t){var e=this;return e.ev.trigger("psOnStop"),e.drag.isMoving&&(e.cont.instantX=e.cont.startX+e.drag.offsetX,Math.abs(e.drag.offsetX)>e.st.threshold&&(e.wrap.$el.addClass("ts-interceptClicks"),e.wrap.$el.one("click.preventClick",function(t){t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation()}),window.setTimeout(function(){e.wrap.$el.off("click.preventClick"),e.wrap.$el.removeClass("ts-interceptClicks")},301)),e._autoAdjust(),e._setSliderHeight(),e.cont.startX=0,e.cont.instantX=0,e.drag.isMoving=!1,e.drag.startX=0,e.drag.startY=0,e.drag.offsetX=0,e.drag.offsetY=0,e.drag.lockX=!1,e.drag.lockY=!1),e.st.autoPlay.enabled&&e.play(),!1},_doDrag:function(t){var e=this;if(e.st.transformEnable)if(e.features.css3d){var i={};i[e.features.vendor+"transform"]="translate3d("+t+"px,0,0)",i.transform="translate3d("+t+"px,0,0)",i[e.vendor+"transition"]="",i.transition="",e.cont.$el.css(i)}else e.cont.$el.css({left:t})},_calcCurrSlide:function(t){var e=this,i=e.slides.number-1;return e.slides.$items.each(function(o){return t>e.slides.position[o]?(i=o-1,!1):void 0}),0>i&&(i=0),i},_isRightExceed:function(t){var e=this,i=0;return i="centered"===e.st.mode.type?e.slides.position[e.slides.number-1]:-e.cont.width+e.viewport.width(),i>t?!0:!1},_autoAdjust:function(){var t=this,e=0,o=0,a=t.slides.number-1;if(t.cont.instantX>=0)e=t.slides.position[0],t.currSlide=0,t.lockLeft=!0,t.lockRight=!1,t.ev.trigger("lockLeft").trigger("updateNav");else if(t._isRightExceed(t.cont.instantX))e="centered"===t.st.mode.type?t.slides.position[t.slides.number-1]:-t.cont.width+t.viewport.width(),t.currSlide=t._calcCurrSlide(e),t.lockLeft=!1,t.lockRight=!0,t.ev.trigger("lockRight").trigger("updateNav");else if(t.drag.offsetX<-t.st.threshold){if(a=t._calcCurrSlide(t.cont.instantX)+1,t._isRightExceed(t.slides.position[a])){for(e=-t.cont.width+t.viewport.width(),i=a;i>=0;i--)if(!t._isRightExceed(t.slides.position[i])){a=i;break}t.lockLeft=!1,t.lockRight=!0,t.ev.trigger("lockRight").trigger("updateNav")}else e=t.slides.position[a],at.st.threshold?(t.currSlide=t._calcCurrSlide(t.cont.instantX),e=t.slides.position[t.currSlide],t.currSlide>0?(t.lockLeft=!1,t.lockRight=!1,t.ev.trigger("updateNav")):(t.lockLeft=!0,t.lockRight=!1,t.ev.trigger("lockLeft").trigger("updateNav"))):e=t.cont.startX;o=10*Math.sqrt(Math.abs(t.cont.instantX-e))+100,t._transitionStart(e,o,"easeOutSine")},_transitionStart:function(e,i,o,a){var n=this,s={},r=t.rsCSS3Easing[o];return n._transitionEnd(),n.ev.trigger("beforeTransition"),a?(n.st.transformEnable&&(n.features.css3d?(s[n.features.vendor+"transform"]="translate3d("+e+"px,0,0)",s.transform="translate3d("+e+"px,0,0)"):s.left=e),n.cont.$el.css(s),!1):(n.ev.trigger("beforeTransition"),n.sliderLock=!0,clearTimeout(n.lockTimeout),n.lockTimeout=setTimeout(function(){n.sliderLock=!1,n.ev.trigger("afterTransition")},i),void(n.st.transformEnable&&(n.features.css3d?(s[n.features.vendor+"transform"]="translate3d("+e+"px,0,0)",s.transform="translate3d("+e+"px,0,0)",s[n.features.vendor+"transition"]="all "+i+"ms "+r,s.transition="all "+i+"ms "+r,n.cont.$el.css(s),n.cont.$el.one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){})):n.cont.$el.animate({left:e},i,o))))},_transitionEnd:function(){var t=this;if(t.ev.trigger("psTransitionEnd"),t.st.transformEnable)if(t.features.css3d){var e={};e[t.vendor+"transition"]="",e.transition="",t.cont.$el.css(e)}else t.cont.$el.stop()},_transitionCancel:function(){var t=this,e=t.cont.$el.position().left,i={};if(i[t.vendor+"transition"]="",i.transition="",t.cont.$el.off("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend"),t.st.transformEnable)if(t.features.css3d){var o=t.cont.$el.css("transform"),a=o.split(", ");e=a[4],i[t.features.vendor+"transform"]="translate3d("+e+"px,0,0)",i.transform="translate3d("+e+"px,0,0)",t.cont.$el.css(i); }else t.cont.$el.stop(),t.cont.$el.animate({left:e},duration,easing)},pause:function(){var t=this;t.ev.trigger("autoPlayPause"),t._autoPlayRunning=!1,t._autoPlayTimeout&&(clearTimeout(t._autoPlayTimeout),t._autoPlayTimeout=null)},slideTo:function(t,e){var i=this,o=i.slides.position[t],a=0,n=i.currSlide;return i.pause(),i.ev.trigger("psBeforeAnimStart"),i.noSlide?!1:(i._transitionEnd(),o>=i.slides.position[0]?(i.currSlide=0,i.lockLeft=!0,i.lockRight=!1,i.ev.trigger("lockLeft").trigger("updateNav")):i._isRightExceed(o)||t>=i.slides.number-1?("centered"===i.st.mode.type?(o=i.slides.position[t],i.currSlide=t):(o=-i.cont.width+i.viewport.width(),i.currSlide=i._calcCurrSlide(o)),i.lockLeft=!1,i.lockRight=!0,i.ev.trigger("lockRight").trigger("updateNav")):(i.currSlide=t,i.lockLeft=!1,i.lockRight=!1,i.ev.trigger("updateNav")),a=10*Math.sqrt(Math.abs(i.slides.position[n]-o))+100,i._transitionStart(o,a,"easeInOutSine",e),i.st.autoPlay.enabled&&i.play(),void(i.st.calcAutoHeight&&i._setSliderHeight()))},startPlay:function(){var t=this;t.ev.trigger("autoPlayPlay"),t.currSlide+1<=t.slides.number-1&&!t.lockRight?t.slideTo(t.currSlide+1):t.currSlide>=t.slides.number-1&&t.st.autoPlay.loop?t.slideTo(0):t.lockRight&&t.st.autoPlay.loop&&t.slideTo(0)},play:function(){var t=this;t.ev.trigger("autoPlayPlay"),t._autoPlayRunning=!0,t._autoPlayTimeout&&clearTimeout(t._autoPlayTimeout),t._autoPlayTimeout=setTimeout(function(){t.startPlay()},t.st.autoPlay.delay)},slideNext:function(){var t=this;return t.currSlide+1<=t.slides.number-1?void t.slideTo(t.currSlide+1):!1},slidePrev:function(){var t=this;if(t.currSlide-1>=0)t.slideTo(t.currSlide-1);else{if(0!=t.currSlide||0!=t.lockLeft)return!1;t.slideTo(t.currSlide)}},update:function(){var t=this;t._calcSliderSize(),t._resizeImage(),t._setSliderWidth(),t._adjustSlides(),t._setSliderHeight(),t._doDrag(),t.noSlide?(t.slideTo(0,!0),t._unbindEvents()):(t.slideTo(t.currSlide,!0),t._bindEvents())}},t.fn.thePhotoSlider=function(e){return this.each(function(){new t.thePhotoSlider(this,e)})},t.fn.scrollerSlideSize=function(){return this.each(function(){var e=t(this),i=e.find("img").eq(0),o=parseInt(i.attr("width")),a=parseInt(i.attr("height")),n=e.parents(".slider-wrapper"),s=n.width(),r=n.attr("data-max-width"),l=parseInt(n.attr("data-padding-side")),c=parseInt(i.parents(".wf-td").eq(0).css("paddingLeft")),d=parseInt(i.parents(".wf-td").eq(0).css("paddingRight")),u=0;if(c>0&&d>0&&(u=c+d),"undefined"!=typeof r)var h=s*parseFloat(r)/100-u-l;if(o>h)var f=h;else{var f=parseInt(i.attr("width"));i.exists()||(f=280)}e.attr("data-width",f+u).css({width:f+u,opacity:1});var p=i.parent("a, .rollover-video"),m=p.width(),g=a*m/o;i.parent("a, .rollover-video").css({height:g}),t(".fs-entry-content:not(.buttons-on-img)",e).css("opacity","1")})},t(".fullwidth-slider .fs-entry").not(".text-on-img .fullwidth-slider .fs-entry").scrollerSlideSize(),y.on("debouncedresize",function(e){t(".fullwidth-slider .fs-entry").not(".text-on-img .fullwidth-slider .fs-entry").scrollerSlideSize(),t(".fullwidth-slider").find(".ts-wrap").each(function(){var e=t(this).data("thePhotoSlider");"undefined"!=typeof e&&e.update()}),t(".text-on-img .fullwidth-slider .fs-entry, .description-on-hover .fs-entry, .dt-photos-shortcode .fs-entry").each(function(){var e=t(this);t(".rollover-project",e).css({width:e.attr("data-width"),height:e.attr("data-height")})})}),t.fn.shortcodesScroller=function(){var e=t(this),i={};i.$items=e.children(".fs-entry"),i.count=i.$items.length,e.addClass("ts-cont"),e.wrap('
');var o=e.parents(".ts-wrap"),a=e.parents(".slider-wrapper"),n=(y.width(),a.attr("data-padding-side")?parseInt(a.attr("data-padding-side")):0),s="true"===a.attr("data-autoslide")?!0:!1,r=a.attr("data-delay")&&parseInt(a.attr("data-delay"))>999?parseInt(a.attr("data-delay")):5e3,l="true"===a.attr("data-loop")?!0:!1,c=dtGlobals.isMobile&&!a.hasClass("enable-mobile-arrows")?!1:!0,d=(a.hasClass("resize-by-browser-width")?!1:!0,"undefined"!=typeof a.attr("data-max-width")?!0:!1),u=o.thePhotoSlider({mode:{type:"scroller"},columBasedResize:d,resizeHeight:d,sidePaddings:n,autoPlay:{enabled:s,delay:r,loop:l},transformEnable:c}).data("thePhotoSlider");t(".prev",a).click(function(){u.noSlide||u.slidePrev()}),t(".next",a).click(function(){u.noSlide||u.slideNext()}),u.ev.on("updateNav sliderReady",function(){u.lockRight?t(".next",a).addClass("disabled"):t(".next",a).removeClass("disabled"),u.lockLeft?t(".prev",a).addClass("disabled"):t(".prev",a).removeClass("disabled"),u.lockRight&&u.lockLeft&&a.addClass("hide-arrows")}),o.hover(function(){s&&(u._autoPlayPaused=!1,u.pause(),u._pausedByHover=!0)},function(){s&&(u._pausedByHover=!1,u._pausedByClick||u.play())})},t(".slider-wrapper .blog-media").css({height:""}),t(".fullwidth-slider ul.clearfix").each(function(){t(this).shortcodesScroller()});var x=t(".slider-wrapper");x.css("visibility","visible"),x.each(function(){var e=t(this),i=e.find(".ts-wrap").data("thePhotoSlider");e.append('
'),e.on("mouseenter",function(t){e.addClass("show-arrows")}),e.on("mouseleave",function(t){e.removeClass("show-arrows")}),i.st.autoPlay.enabled&&t(".auto-play-btn",e).addClass("paused"),t(".auto-play-btn",e).on("click",function(e){e.preventDefault();var o=t(this);o.hasClass("paused")?(o.removeClass("paused"),i._pausedByClick=!0,i.noSlide||i.pause(),i.st.autoPlay.enabled=!1):(o.addClass("paused"),i._pausedByClick=!1,i.noSlide||i.play(),i.st.autoPlay.enabled=!0)})}),t.fn.postTypeScroller=function(){var e=t(this),i={};i.$items=e.children("li"),i.count=i.$items.length,e.addClass("ts-cont"),e.wrap('
'),e.hasClass("shortcode-photo-slider")&&e.parents(".ts-wrap").addClass("shortcode-slider-wrap");var o=e.parents(".ts-wrap"),a=e,n=(y.width(),a.attr("data-padding-side")?parseInt(a.attr("data-padding-side")):0,"true"!=a.attr("data-paused")&&"undefined"!=typeof a.attr("data-autoslide")?!0:!1),s=("true"===a.attr("data-paused")?!1:!0,a.attr("data-autoslide")&&parseInt(a.attr("data-autoslide"))>999?parseInt(a.attr("data-autoslide")):5e3),r="undefined"!=typeof a.attr("data-autoslide")?!0:!1,l=a.attr("data-width")?parseInt(a.attr("data-width")):800,c=a.attr("data-height")?parseInt(a.attr("data-height")):400,d=a.attr("data-img-mode")?a.attr("data-img-mode"):"fill",u=o.thePhotoSlider({mode:{type:"slider"},height:c,width:l,resizeImg:!0,imageScaleMode:d,imageAlignCenter:!0,autoPlay:{enabled:n,delay:s,loop:r}}).data("thePhotoSlider");t('
').insertAfter(e),"undefined"!=typeof a.attr("data-autoslide")&&t('
').insertAfter(e),"true"===a.attr("data-paused")&&t(".psPlay",o).addClass("paused"),t(".psPlay",o).on("click",function(e){e.preventDefault();var i=t(this);i.hasClass("paused")?(i.removeClass("paused"),u.noSlide||u.play(),u.st.autoPlay.enabled=!0):(i.addClass("paused"),u.noSlide||u.pause(),u.st.autoPlay.enabled=!1)}),t(".leftArrow",o).click(function(){u.noSlide||u.slidePrev()}),t(".rightArrow",o).click(function(){u.noSlide||u.slideNext()}),u.ev.on("updateNav sliderReady",function(){u.lockRight?t(".rightArrow",o).addClass("disabled"):t(".rightArrow",o).removeClass("disabled"),u.lockLeft?t(".leftArrow",o).addClass("disabled"):t(".leftArrow",o).removeClass("disabled"),u.lockRight&&u.lockLeft&&a.addClass("hide-arrows")})},t("ul.photoSlider:not(.slider-masonry)").each(function(){t(this).postTypeScroller()}),t("ul.photoSlider").css("visibility","visible"),t.fn.postTypeContentScroller=function(){var e=t(this),i={};i.$items=e.children("li"),i.count=i.$items.length,e.addClass("ts-cont"),e.wrap('
');var o=e.parents(".ts-wrap"),a=e,n=(y.width(),a.attr("data-padding-side")?parseInt(a.attr("data-padding-side")):0,"true"!=a.attr("data-paused")&&"undefined"!=typeof a.attr("data-autoslide")?!0:!1),s=("true"===a.attr("data-paused")?!1:!0,a.attr("data-autoslide")&&parseInt(a.attr("data-autoslide"))>999?parseInt(a.attr("data-autoslide")):5e3),r="undefined"!=typeof a.attr("data-autoslide")?!0:!1,l=(a.attr("data-width")?parseInt(a.attr("data-width")):800,a.attr("data-height")?parseInt(a.attr("data-height")):400,a.attr("data-img-mode")?a.attr("data-img-mode"):"none",o.thePhotoSlider({mode:{type:"slider"},height:"auto",resizeImg:!0,imageScaleMode:"none",imageAlignCenter:!0,calcAutoHeight:!0,autoPlay:{enabled:n,delay:s,loop:r}}).data("thePhotoSlider"));t('
').insertAfter(e),t(".leftArrow",o).click(function(){l.noSlide||l.slidePrev()}),t(".rightArrow",o).click(function(){l.noSlide||l.slideNext()}),l.ev.on("updateNav sliderReady",function(){l.lockRight?t(".rightArrow",o).addClass("disabled"):t(".rightArrow",o).removeClass("disabled"),l.lockLeft?t(".leftArrow",o).addClass("disabled"):t(".leftArrow",o).removeClass("disabled"),l.lockRight&&l.lockLeft&&a.addClass("hide-arrows")});var c='
';a.addClass("psWithBullets");for(var d='
',u=0;u"),d.appendTo(o),l.ev.on("sliderReady beforeTransition",function(){l._controlNav.find(".psBullet").removeClass("act"),l._controlNav.find(".psBullet").eq(l.currSlide).addClass("act")}),l._controlNav.find(".psBullet").each(function(e){t(this).on("click",function(i){var o=t(this);o.parents(".ts-wrap").hasClass("ts-interceptClicks")||l.slideTo(e)})})},t(".slider-content").each(function(){t(this).postTypeContentScroller()}),t(".slider-content").css("visibility","visible");var S=t(".overlay-navigation"),_=t(".sticky-header"),k=t("#main-slideshow, .photo-scroller"),T=t(".header-side-left").length>0,I=t(".header-side-right").length>0,P=t("#main, #main-slideshow, .photo-scroller, .page-title, .fancy-header, .footer"),z=t(".floating-logo.side-header-menu-icon .branding, .side-header-h-stroke, #phantom"),M=t(".side-header"),L=t(".move-header-animation").length>0,A=t(".page-template-template-microsite").length>0;if(t(".side-header-v-stroke").length>0)var E=M.width()-t(".side-header-v-stroke").width(),B=200;else var E=M.width(),B=0;if($overlapContent=t(".overlap #content"),!t.browser.webkit||dtGlobals.isMobile||($overlapContent.find(">:first-child").css({position:"relative","z-index":"4"}),$overlapContent.find(">:first-child").height()<36&&$overlapContent.find("> :nth-child(2)").css({position:"relative","z-index":"4"})),t.closeSideHeader=function(){C.removeClass("show-header"),C.addClass("closed-header"),b.removeClass("show-sticky-header"),t(".sticky-header-overlay").removeClass("active"),L&&(T?M.velocity({translateX:"-100%"},400):M.velocity({translateX:"100%"},400),P.velocity({translateX:""},400,function(){P.css({transform:"none"})}),z.velocity({translateX:""},400))},t.closeMobileHeader=function(){C.removeClass("show-mobile-header"),C.addClass("closed-mobile-header"),b.removeClass("show-sticky-mobile-header show-overlay-mobile-header").addClass("closed-overlay-mobile-header"),t(".mobile-sticky-header-overlay, .dt-mobile-menu-icon, .menu-toggle").removeClass("active")},_.length>0||S.length>0){if(t('
').appendTo(".menu-toggle"),_.length>0&&(b.append('
'),!t(".side-header-h-stroke").length>0&&!t(".header-under-side-line").length>0&&t(".mixed-header").length>0)){var H=t(".mixed-header").find(".menu-toggle").position().top;t(".mixed-header").find(".menu-toggle").clone(!0).prependTo(".side-header").css({top:H})}L&&(T?M.velocity({translateX:"-100%"},0):I&&M.velocity({translateX:"100%"},0)),S.length>0&&(t(M).append('
'),t('
').appendTo(".hide-overlay"));var O=t(".menu-toggle .lines-button"),R=t(".menu-toggle"),j=t(".sticky-header-overlay");O.on("click",function(){if(!t(".header-under-side-line").length>0)var e=t(".side-header .menu-toggle");else var e=t(".menu-toggle");e.hasClass("active")?(e.removeClass("active"),C.removeClass("show-header").addClass("closed-header"),e.parents("body").removeClass("show-sticky-header"),j.removeClass("active"),t(".hide-overlay").removeClass("active"),L&&(T?M.velocity({translateX:"-100%"},{duration:400,delay:B}):M.velocity({translateX:"100%"},{duration:400,delay:B}),C.hasClass("boxed")||(P.velocity({translateX:""},400,function(){P.css({transform:"none"})}),z.velocity({translateX:""},400)))):(R.removeClass("active"),e.addClass("active"),C.addClass("show-header").removeClass("closed-header"),e.parents("body").addClass("show-sticky-header"),j.addClass("active"),t(".hide-overlay").addClass("active"),L&&(T?(M.velocity({translateX:""},400),C.hasClass("boxed")||(P.velocity({translateX:E},{duration:400,delay:B}),z.velocity({translateX:E},{duration:400,delay:B}))):(M.velocity({translateX:""},400),C.hasClass("boxed")||(P.velocity({translateX:-E},{duration:400,delay:B}),z.velocity({translateX:-E},{duration:400,delay:B})))))}),j.on("click",function(){t(this).hasClass("active")&&(R.removeClass("active"),C.removeClass("show-header").addClass("closed-header"),b.removeClass("show-sticky-header"),j.removeClass("active"),L&&(T?M.velocity({translateX:"-100%"},{duration:400,delay:B}):M.velocity({translateX:"100%"},{duration:400,delay:B}),P.velocity({translateX:""},400,function(){P.css({transform:"none"})}),z.velocity({translateX:""},400)))}),t(".hide-overlay").on("click",function(){t(this).hasClass("active")&&(R.removeClass("active"),C.removeClass("show-header"),C.addClass("closed-header"),b.removeClass("show-sticky-header"),j.removeClass("active"),L&&(T?M.velocity({translateX:"-100%"},{duration:400,delay:B}):M.velocity({translateX:"100%"},{duration:400,delay:B}),P.velocity({translateX:""},400,function(){P.css({transform:"none"})}),z.velocity({translateX:""},400)))})}o(),y.on("resize",function(){o()});var D=0;window.clickMenuToggle=function(e,i){if(t(".show-mobile-header").length>0)var o=t(".dt-mobile-header");else var o=M;A||(w.hasClass("menu-open")?(w.removeClass("menu-open"),dtGlobals.isiOS?(y.off("touchstart.dt"),y.off("touchmove.dt")):(b.css("margin-top",0),y.scrollTop(D))):(D=dtGlobals.winScrollTop,w.addClass("menu-open"),dtGlobals.isiOS?y.on("touchstart.dt",function(t){y.off("touchmove.dt"),o[0].offsetHeight>=o[0].scrollHeight?y.on("touchmove.dt",function(t){t.preventDefault()}):o[0].scrollTop<=0?o[0].scrollTop+=1:o[0].scrollTop+o[0].offsetHeight>=o[0].scrollHeight&&(o[0].scrollTop-=1)}):b.css("margin-top",-D)))},b.on("click",".menu-toggle .lines-button, .sticky-header-overlay, .hide-overlay, .dt-mobile-menu-icon, .dt-close-mobile-menu-icon span, .mobile-sticky-header-overlay, .floating-btn",function(e){clickMenuToggle(t(this),e)}),t(".side-header .header-bar").wrap("
"),M.length>0&&!dtGlobals.isMobile&&t(".header-scrollbar-wrap").mCustomScrollbar({scrollInertia:150}),M.length>0&&!t(".mCSB_container").length>0&&t(".side-header .header-scrollbar-wrap .header-bar").wrap("
"),dtGlobals.desktopProcessed=!1,dtGlobals.mobileProcessed=!1;var W=t(".floating-navigation-below-slider").exists(),F=b.hasClass("transparent");t.headerBelowSlider=function(){if(W){var e=t(".masthead:not(.side-header):not(#phantom)");window.innerWidth>dtLocal.themeSettings.mobileHeader.secondSwitchPoint&&!dtGlobals.desktopProcessed?(dtGlobals.desktopProcessed=!0,dtGlobals.mobileProcessed=!1,F?(e.insertAfter("#main-slideshow, .photo-scroller").velocity({translateY:"-100%"},0,function(){}),e.css({visibility:"visible",opacity:1,top:"auto"})):e.insertAfter("#main-slideshow, .photo-scroller").css({visibility:"visible",opacity:1})):window.innerWidth<=dtLocal.themeSettings.mobileHeader.secondSwitchPoint&&!dtGlobals.mobileProcessed&&(dtGlobals.desktopProcessed=!1,dtGlobals.mobileProcessed=!0,e.insertBefore("#main-slideshow, .photo-scroller").css({visibility:"visible",opacity:1,transform:"","-webkit-transform":""}),!t(".mobile-header-space").length>0&&(t("
").insertBefore(e),t(".mobile-header-space").css({height:e.height()})))}},t.headerBelowSlider();var $=t(".sticky-mobile-header").exists();y.scroll(function(){if(W&&$){if(b.hasClass("transparent"))var e=dtGlobals.winScrollTop>k.height()-t(".masthead:not(.side-header)").height();else var e=dtGlobals.winScrollTop>k.height();e?b.addClass("fixed-mobile-header"):b.removeClass("fixed-mobile-header")}});var X=['','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','',''],X=t(''+X+""); t(document.body).prepend(t(X)),t(".soc-ico a").not(".entry-share .soc-ico a").html(''),t(".entry-share .soc-ico a").append('');var V=t(".soc-ico a svg use");t(".px-500").find(V).attr("xlink:href","#social-500px"),t(".tripedvisor").find(V).attr("xlink:href","#tripedvisor"),t(".vk").find(V).attr("xlink:href","#vk"),t(".foursquare").find(V).attr("xlink:href","#foursquare"),t(".website").find(V).attr("xlink:href","#website"),t(".mail").find(V).attr("xlink:href","#mail"),t(".behance").find(V).attr("xlink:href","#behance"),t(".stumbleupon").find(V).attr("xlink:href","#stumbleupon"),t(".instagram").find(V).attr("xlink:href","#instagram"),t(".github").find(V).attr("xlink:href","#github"),t(".skype").find(V).attr("xlink:href","#skype"),t(".devian").find(V).attr("xlink:href","#devian"),t(".pinterest").find(V).attr("xlink:href","#pinterest"),t(".tumbler").find(V).attr("xlink:href","#tumbler"),t(".vimeo").find(V).attr("xlink:href","#vimeo"),t(".linkedin").find(V).attr("xlink:href","#linkedin"),t(".lastfm").find(V).attr("xlink:href","#lastfm"),t(".forrst").find(V).attr("xlink:href","#forrst"),t(".flickr").find(V).attr("xlink:href","#flickr"),t(".delicious").find(V).attr("xlink:href","#delicious"),t(".rss").find(V).attr("xlink:href","#rss"),t(".you-tube").find(V).attr("xlink:href","#you-tube"),t(".dribbble").find(V).attr("xlink:href","#dribbble"),t(".google").find(V).attr("xlink:href","#google"),t(".twitter").find(V).attr("xlink:href","#twitter"),t(".facebook").find(V).attr("xlink:href","#facebook"),t(".xing").find(V).attr("xlink:href","#xing"),t(".odnoklassniki").find(V).attr("xlink:href","#odnoklassniki"),t(".weibo").find(V).attr("xlink:href","#weibo"),t(".research-gate").find(V).attr("xlink:href","#research-gate"),t(".yelp").find(V).attr("xlink:href","#yelp"),t(".blogger").find(V).attr("xlink:href","#blogger"),t(".soundcloud").find(V).attr("xlink:href","#soundcloud"),t(".soc-ico a").css("visibility","visible");var Y=t(".mixed-header"),G=t(".masthead:not(.side-header) .header-bar .mini-widgets > * ").clone(!0),q=t(".side-header .header-bar .mini-widgets ").clone(!0),N=(t(".masthead .near-logo-first-switch").clone(!0).addClass("show-on-first-switch"),t(".masthead .near-logo-second-switch").clone(!0).addClass("show-on-second-switch")),Q=t(".masthead").find(".in-menu-first-switch, .in-menu-second-switch").clone(!0);t(".masthead").find(".near-logo-first-switch, .near-logo-second-switch ").clone(!0).addClass("show-on-second-switch");if(Y.length>0)var U=Y.find(".branding > a, .branding > img").clone(!0),Z=Y;else var U=t(".masthead:not(.mixed-header)").find(".branding > a, .branding > img").clone(!0),Z=t(".masthead");t("
").appendTo(".masthead"),t(".mobile-header-bar .mobile-navigation").append(""),t(".mobile-header-bar .mobile-mini-widgets").append(G),t(".mobile-header-bar .mobile-branding").append(U);var K=t(".dt-mobile-header");if(K.siblings().hasClass("dt-parent-menu-clickable")&&K.addClass("dt-parent-menu-clickable"),t(Q).appendTo(".mobile-mini-widgets-in-menu"),t(N).appendTo(".mobile-mini-widgets"),K.append(q),t(".mobile-main-nav ").find("li").each(function(){var e=t(this),i=e.find(" > .dt-mega-menu-wrap > .sub-nav");if(e.hasClass("new-column")){var o=e.prev().find(" > .sub-nav");t(" > .sub-nav > *",e).appendTo(o)}i.unwrap()}).removeClass("dt-mega-menu dt-mega-parent hide-mega-title").find(" > .sub-nav").removeClass("hover-style-click-bg hover-style-bg"),K.length>0){dtGlobals.mobileMenuPoint=50;var J=t(".dt-mobile-header"),tt=t(".dt-mobile-menu-icon");if(!t(".floating-btn").length>0&&t(".floating-mobile-menu-icon").length>0){var et=tt.first().clone(!0);et.insertBefore(tt).addClass("floating-btn")}var it=t(".floating-btn");y.scroll(function(){dtGlobals.mobileMenuPoint=Z.offset().top+Z.height()+50,dtGlobals.winScrollTop>dtGlobals.mobileMenuPoint?it.parents(".masthead").addClass("show-floating-icon"):it.parents(".masthead").removeClass("show-floating-icon"),dtGlobals.winScrollTop>t(".masthead:not(.side-header)").height()?J.addClass("stick-to-top"):J.removeClass("stick-to-top")});var tt=t(".dt-mobile-menu-icon");!t(".mobile-sticky-header-overlay").length>0&&b.append('
');var ot=t(".mobile-sticky-header-overlay");tt.on("click",function(e){e.preventDefault();var i=t(this);i.hasClass("active")?(i.removeClass("active"),C.removeClass("show-mobile-header").addClass("closed-mobile-header"),b.removeClass("show-mobile-overlay-header").addClass("closed-overlay-mobile-header"),i.parents("body").removeClass("show-sticky-mobile-header"),ot.removeClass("active")):(tt.removeClass("active"),i.addClass("active"),C.addClass("show-mobile-header").removeClass("closed-mobile-header"),b.removeClass("closed-overlay-mobile-header").addClass("show-overlay-mobile-header"),ot.removeClass("active"),i.parents("body").addClass("show-sticky-mobile-header"),ot.addClass("active"))}),ot.on("click",function(){t(this).hasClass("active")&&(tt.removeClass("active"),C.removeClass("show-mobile-header").addClass("closed-mobile-header"),b.removeClass("show-sticky-mobile-header").removeClass("show-overlay-mobile-header").addClass("closed-overlay-mobile-header"),ot.removeClass("active"))}),t(".dt-close-mobile-menu-icon span").on("click",function(){C.removeClass("show-mobile-header"),C.addClass("closed-mobile-header"),b.removeClass("show-sticky-mobile-header"),b.removeClass("show-overlay-mobile-header").addClass("closed-overlay-mobile-header"),ot.removeClass("active"),tt.removeClass("active")}),t(".dt-mobile-header").wrapInner("
"),dtGlobals.isMobile||t(".mobile-header-scrollbar-wrap").mCustomScrollbar({scrollInertia:150})}t.mobileHeader=function(){if(t(".sticky-mobile-header ").length>0){if(t(".mixed-header").length>0)var e=t(".mixed-header").height();else var e=t(".masthead").height();var i=t(".masthead").first();!t(".mobile-header-space").length>0&&!t(".floating-navigation-below-slider").length>0&&t("
").insertBefore(i),t(".mobile-header-space").css({height:e})}},t.mobileHeader(),t(".l-to-r-line > li:not(.menu-item-language) > a > span").not(".l-to-r-line > li > a > span.mega-icon").append(""),t(".btn-material .dt-btn, .btn-material a.button, .no-touchevents .masthead:not(.sub-downwards) .animate-click-decoration > .menu-item > a:not(.not-clickable-item), .no-touchevents .masthead:not(.sub-downwards) .main-nav .hover-style-click-bg > li > a:not(.not-clickable-item)").each(function(){var e,i=t(this);i.addClass("ripple"),i.ripple();var o=t(".rippleWrap",i);i.on("click",function(t){!o.parent('a[href^="#"]').length>0&&t.preventDefault()}).on("mousedown",function(a){if(3==a.which);else if(a.shiftKey||a.ctrlKey||a.metaKey)window.open(i.attr("href"),"_blank");else{a.preventDefault();var n=i.attr("target")?i.attr("target"):"_self";clearTimeout(e),e=setTimeout(function(){return!o.parent('a[href^="#"]').length>0?(window.open(i.attr("href"),n),!1):(t(this).parent("a").trigger("click"),!1)},200)}})}),t(".not-clickable-item").on("click",function(t){t.preventDefault(),t.stopPropagation()}),(t(".active-line-decoration").length>0||t(".hover-line-decoration").length>0)&&t(".main-nav > .menu-item > a").append("");var at=t(".main-nav, .mini-nav"),nt=t(".masthead:not(.sub-downwards) .main-nav, .mini-nav"),st=t(".main-nav"),M=t(".side-header");t(".menu-item-language").each(function(){var e=t(this);e.children(".submenu-languages").length>0&&e.addClass("has-children")}),t(".act",at).parents("li").addClass("act");st.clone(),t(".mini-nav").clone();t(".mini-nav select").change(function(){window.location.href=t(this).val()}),dtGlobals.isHovering=!1,t(".main-nav li",M).each(function(){var e=t(this);if(e.hasClass("new-column")){var i=e.prev().find(" > .sub-nav");t(" > .sub-nav > *",e).appendTo(i)}}),t(".sub-downwards .main-nav > li").each(function(){var e=t(this),i=e.find(" > .dt-mega-menu-wrap > .sub-nav");i.unwrap()});var rt=t(".select-type-menu");if(t(".masthead").find(".sub-nav").length>0)var lt=t(".masthead").find(".sub-nav").attr("class");else var lt="sub-nav";rt.find("> ul").addClass(lt).css("visibility","visible"),t(" li.has-children ",nt).each(function(){var e=t(this);if(e.parent().hasClass("main-nav")&&!e.parents().hasClass("side-header"))var i=e.find("> a");else if(e.parent().hasClass("main-nav")&&e.parents().hasClass("side-header"))var i=e;else if(e.parent().hasClass("sub-nav")||e.parents().hasClass("mini-nav"))var i=e;(dtGlobals.isMobile||dtGlobals.isWindowsPhone)&&e.find("> a").on("click",function(e){t(this).hasClass("dt-clicked")?e.stopPropagation():(e.preventDefault(),at.find(".dt-clicked").removeClass("dt-clicked"),t(this).addClass("dt-clicked"))});var o,a;i.on("mouseenter tap",function(e){var i=t(this);if("tap"==e.type&&e.stopPropagation(),i.parent("li").length>0)var n=i.parent(),s=i.siblings("div, ul");else var n=i,r=i.find("> a"),s=r.siblings("div, ul");var l=i.offset().left,r=i.offset().left,c=i.parents(".masthead");if(n.addClass("dt-hovered"),n.hasClass("dt-mega-menu")&&n.addClass("show-mega-menu"),dtGlobals.isHovering=!0,C.width()-(s.offset().left-C.offset().left)-s.width()<0&&s.addClass("right-overflow"),y.height()-(s.offset().top-dtGlobals.winScrollTop)-s.innerHeight()<0&&s.addClass("bottom-overflow"),!M.length>0&&s.not(".right-overflow").css({left:r-l}),n.hasClass("mega-auto-width")){var d=(n.width(),c.offset().left),u=n.offset().left;if($_this_parents_ofs=n.offset().left-d,!M.length){var h=C.width();if(t(".boxed").length>0)var u=n.position().left;else var u=n.offset().left;s.width()>h-n.position().left&&s.css({left:-(s.innerWidth()-(h-u))}),s.width()>h&&(t(".boxed").length>0?s.css({width:c.width(),left:-n.position().left}):s.css({width:c.width(),left:-(u-d)}))}}if(n.hasClass("mega-full-width")){var u=n.offset().left;if(i.parents(".header-bar").length>0)var f=i.parents(".header-bar").innerWidth(),d=i.parents(".header-bar").offset().left;else var f=i.parents(".ph-wrap").innerWidth(),d=i.parents(".ph-wrap").offset().left;!M.length>0&&s.css({width:f,left:-(u-d)})}clearTimeout(o),clearTimeout(a),o=setTimeout(function(){n.hasClass("dt-hovered")&&s.stop().css("visibility","visible").animate({opacity:1},150)},100)}),e.on("mouseleave",function(e){var i=t(this),n=i.find("> a"),s=n.siblings("div, ul");i.removeClass("dt-hovered"),dtGlobals.isHovering=!1,clearTimeout(o),clearTimeout(a),a=setTimeout(function(){i.hasClass("dt-hovered")||(s.stop().animate({opacity:0},150,function(){t(this).css("visibility","hidden")}),i.removeClass("show-mega-menu"),setTimeout(function(){i.hasClass("dt-hovered")||(s.removeClass("right-overflow"),s.removeClass("bottom-overflow"),i.hasClass("mega-auto-width")&&s.css({width:"",left:""}))},400))},150),i.find("> a").removeClass("dt-clicked")})});var ct,dt;rt.on("mouseenter tap",function(e){"tap"==e.type&&e.stopPropagation();var i=t(this);i.addClass("dt-hovered"),C.width()-(i.children(".sub-nav").offset().left-C.offset().left)-i.find(" > .sub-nav").width()<0&&i.children(".sub-nav").addClass("right-overflow"),y.height()-(i.children(".sub-nav").offset().top-dtGlobals.winScrollTop)-i.children(".sub-nav").height()<0&&i.children(".sub-nav").addClass("bottom-overflow"),dtGlobals.isHovering=!0,clearTimeout(ct),clearTimeout(dt),ct=setTimeout(function(){i.hasClass("dt-hovered")&&i.children(".sub-nav").stop().css("visibility","visible").animate({opacity:1},150)},100)}),rt.on("mouseleave",function(e){var i=t(this);i.removeClass("dt-hovered"),dtGlobals.isHovering=!1,clearTimeout(ct),clearTimeout(dt),dt=setTimeout(function(){i.hasClass("dt-hovered")||(i.parents().hasClass("dt-mega-menu")||i.children(".sub-nav").stop().animate({opacity:0},150,function(){t(this).css("visibility","hidden")}),setTimeout(function(){i.hasClass("dt-hovered")||(i.children(".sub-nav").removeClass("right-overflow"),i.children(".sub-nav").removeClass("bottom-overflow"))},400))},150)});var ut;if(t(".dt-parent-menu-clickable").length>0){var ht=t(".main-nav li.has-children > a, .mobile-main-nav li.has-children > a");t("").insertAfter(ht),t(".sub-downwards .main-nav li.has-children, .mobile-main-nav li.has-children").each(function(){var e=t(this),i=e.find(" > .sub-nav, .sub-menu");e.find(".sub-nav li, .sub-menu li").hasClass("act")&&e.addClass("active"),e.find(".sub-nav li.act, .sub-menu li.act").hasClass("act")&&(e.addClass("open-sub"),i.stop(!0,!0).slideDown(100)),e.find(" > .next-level-button").on("click",function(e){var o=t(this).parent();o.hasClass("active")?(i.stop(!0,!0).slideUp(500),o.removeClass("active"),o.removeClass("open-sub")):(o.siblings().find(" .sub-nav, .dt-mega-menu-wrap, .sub-menu").stop(!0,!0).slideUp(400),i.stop(!0,!0).slideDown(500),o.siblings().removeClass("active"),o.addClass("active"),o.siblings().removeClass("open-sub"),o.addClass("open-sub"))})})}else t(".sub-downwards .main-nav li > a, .mobile-main-nav li.has-children > a").each(function(){var e=t(this);e.parent("li").find(".sub-nav li, .sub-menu li").hasClass("act")&&e.addClass("act"),e.parent("li").find(".sub-nav li.act, .sub-menu li.act").hasClass("act")&&(e.parent("li").addClass("open-sub"),e.siblings(".sub-nav, .sub-menu").stop(!0,!0).slideDown(100)),e.on("click",function(i){$menuItem=e.parent(),$menuItem.hasClass("has-children menu-item-language")&&i.preventDefault(),e.hasClass("act")?(e.siblings(".sub-nav, .sub-menu").stop(!0,!0).slideUp(500),e.removeClass("act"),e.parent("li").removeClass("open-sub")):(e.parent().siblings().find(".sub-nav, .dt-mega-menu-wrap, .sub-menu").stop(!0,!0).slideUp(400),e.siblings(".sub-nav, .sub-menu").stop(!0,!0).slideDown(500),e.parent().siblings().find("> a").removeClass("act"),e.addClass("act"),e.parent("li").siblings().removeClass("open-sub"),e.parent("li").addClass("open-sub")),t(".header-bar").mCustomScrollbar("update")})});t(".custom-nav > li > a").click(function(e){$menuItem=t(this).parent(),$menuItem.hasClass("has-children")&&e.preventDefault(),"active"!=t(this).attr("class")?(t(".custom-nav > li > ul").stop(!0,!0).slideUp(400),t(this).next().stop(!0,!0).slideDown(500),t(".custom-nav > li > a").removeClass("active"),t(this).addClass("active")):(t(this).next().stop(!0,!0).slideUp(500),t(this).removeClass("active")),$menuItem.siblings().removeClass("act"),$menuItem.addClass("act")}),t(".custom-nav > li > ul").each(function(){clearTimeout(ut),$this=t(this),$thisChildren=$this.find("li"),$thisChildren.hasClass("act")&&($this.prev().addClass("active"),$this.parent().siblings().removeClass("act"),$this.parent().addClass("act"),t(this).slideDown(500))}),dtGlobals.isMobile&&!dtGlobals.isiPad&&(dtLocal.themeSettings.floatingHeader.showMenu=!1);var F=b.hasClass("transparent"),ft=t(".phantom-sticky").exists(),pt=t(".side-header").exists(),mt=t(".side-header-h-stroke").exists(),gt=t(".floating-navigation-below-slider").exists();if(dtLocal.themeSettings.floatingHeader.showMenu&&(ft&&!pt||ft&&mt)){var vt=t(".top-bar"),yt=0,wt=t(".masthead").height(),bt=t(".masthead:not(.side-header) .branding a").attr("href"),_=t(".masthead:not(.side-header)"),Ct=_.find(".header-bar"),xt=_.find(".branding"),St=t(".side-header-h-stroke"),_t=St.exists(),kt=t(".header-space"),Tt=t("#main-slideshow, .photo-scroller"),It=t(".classic-header").length>0;gt||It||t("
").prependTo(Ct);var Pt=t(".animate-sticky");_t&&(wt=St.height(),_=St),kt.exists()||(t("
").insertBefore(_),kt=t(".header-space")),_t&&kt.addClass("top-line-space"),kt.css({height:wt}),Pt.css({height:Ct.height()}),b.addClass("sticky-off fixed-masthead"),!t(".sticky-logo").length>0&&dtLocal.themeSettings.floatingHeader.logo.html&&dtLocal.themeSettings.floatingHeader.logo.showLogo&&(void 0==bt?t(dtLocal.themeSettings.floatingHeader.logo.html).addClass("sticky-logo").prependTo(xt):t('").prependTo(xt));var xt=t(".phantom-custom-logo-on .sticky-logo"),zt=(t(".phantom-custom-logo-on").find(".branding > a:not(.sticky-logo), .branding > img:not(.sticky-logo)",_),!1),Mt=t(".admin-bar").exists();if(Mt)var Lt=32;else var Lt=0;!vt.exists()||vt.is(":hidden")||gt||(yt=vt.innerHeight());var At=_.height();y.on("scroll",function(){var t,e,i=dtGlobals.winScrollTop;gt&&!F?(t=Tt.height(),e=i>t):gt&&F?(t=Tt.height()-Lt-At,e=i>t):e=i>dtLocal.themeSettings.floatingHeader.showAfter,!e||zt||dtGlobals.mobileProcessed?e||!zt||dtGlobals.mobileProcessed?dtGlobals.mobileProcessed&&(_.css({bottom:"auto",top:"auto",transform:"","-webkit-transform":""}),kt.css({display:"none"}),b.removeClass("sticky-on").addClass("sticky-off")):(zt=!1,gt?F?w.hasClass("menu-open")||(_.css({bottom:"auto",top:"auto",transform:"translateY(-100%)","-webkit-transform":"translateY(-100%)"}),kt.css({display:"none"})):(_.stop(!0,!0).velocity({translateY:-yt},0),w.hasClass("menu-open")||Pt.stop().velocity({height:wt},0),kt.css({height:wt})):(_.velocity({translateY:0},0),w.hasClass("menu-open")||Pt.stop().velocity({height:wt},0),F?kt.css({display:"none"}):kt.css({height:wt})),w.hasClass("menu-open")||(b.removeClass("sticky-on").addClass("sticky-off"),Pt.stop().velocity({height:Ct.height()},0))):(zt=!0,gt?F?(_.velocity({translateY:""},0,function(){_.css({top:Lt,transform:"","-webkit-transform":""})}),Pt.stop().velocity({height:dtLocal.themeSettings.floatingHeader.height},300),kt.css({display:"none"})):(_.stop(!0,!0).velocity({translateY:-yt},300),Pt.stop().velocity({height:dtLocal.themeSettings.floatingHeader.height},300),kt.css({height:wt})):(_.stop(!0,!0).velocity({translateY:-yt},300),Pt.stop().velocity({height:dtLocal.themeSettings.floatingHeader.height},300),F?kt.css({display:"none"}):kt.css({height:wt})),b.removeClass("sticky-off").addClass("sticky-on"))})}if(dtLocal.themeSettings.floatingHeader.showMenu&&(dtLocal.themeSettings.floatingHeader.showMenu&&(!pt||ft)||dtLocal.themeSettings.floatingHeader.showMenu&&mt&&!ft)){var Et=t(".phantom-fade").exists(),Bt=t(".phantom-slide").exists(),Ht=t(".split-header").exists(),Tt=t("#main-slideshow, .photo-scroller"),Ot=t(".masthead:not(.side-header)");if(Et||Bt){var Rt=t(".masthead:not(#phantom) .main-nav").clone(!0),bt=t(".masthead:not(.side-header) .branding a").attr("href"),jt=!1;if(mt||Ht){var Dt=t(".side-header-h-stroke, .split-header"),Wt=Dt.attr("class"),Ft=(Rt.parent(),t('
').appendTo("body")),$t=Ft.find(".ph-wrap"),Xt=Ft.find(".widget-box"),Vt=Rt.find(".mini-widgets"),Yt=Dt.find(".branding");t(".phantom-custom-logo-on").length>0&&dtLocal.themeSettings.floatingHeader.logo.html&&dtLocal.themeSettings.floatingHeader.logo.showLogo&&(void 0==bt?t(dtLocal.themeSettings.floatingHeader.logo.html).prependTo(Yt):t('").prependTo(Yt));var Rt=t(".side-header-h-stroke .header-bar, .split-header .header-bar").clone(!0);Rt.appendTo($t)}else{var Wt=t(".masthead").attr("class"),Ft=(Rt.parent(),t('
').appendTo("body")),$t=Ft.find(".menu-box"),Xt=Ft.find(".widget-box");if(t(".classic-header").length>0)var Vt=t(".header-bar .navigation .mini-widgets").clone(!0);else if(Ht);else var Vt=t(".header-bar .mini-widgets").clone(!0);Rt.appendTo($t),Vt.appendTo(Xt),dtLocal.themeSettings.floatingHeader.logo.html&&dtLocal.themeSettings.floatingHeader.logo.showLogo&&(Ft.find(".ph-wrap").addClass("with-logo"),void 0==bt?Ft.find(".logo-box").html(dtLocal.themeSettings.floatingHeader.logo.html):Ft.find(".logo-box").html(''+dtLocal.themeSettings.floatingHeader.logo.html+" "))}C.hasClass("boxed")&&Ft.addClass("boxed").velocity({translateX:"-50%"},0).find(".ph-wrap").addClass("boxed"),b.removeClass("phantom-on").addClass("phantom-off");var zt=!1;Bt&&Ft.velocity({translateY:-Ft.height()},0),y.on("scroll",function(){var t=dtGlobals.winScrollTop,e=Tt.height(),i=Ot.height();if(gt&&F)var o=t>e&&jt===!1,a=e>=t&&jt===!0;else if(gt)var o=t>e+i&&jt===!1,a=e+i>=t&&jt===!0;else var o=t>dtLocal.themeSettings.floatingHeader.showAfter&&jt===!1,a=t<=dtLocal.themeSettings.floatingHeader.showAfter&&jt===!0;o?w.hasClass("menu-open")||dtGlobals.isHovering||zt||(zt=!0,Et?Ft.stop().css({visibility:"visible"}).velocity({opacity:1},350):Bt&&Ft.stop(!0,!0).css({visibility:"visible"}).velocity({translateY:0,opacity:1},{duration:400}),b.removeClass("phantom-off").addClass("phantom-on"),jt=!0):a&&zt&&(w.hasClass("menu-open")||(zt=!1,b.removeClass("phantom-on").addClass("phantom-off"),Et?Ft.stop().velocity({opacity:0},120,function(){Ft.css({visibility:""})}):Bt&&Ft.velocity({opacity:0},0,function(){Ft.css({visibility:""}).velocity({translateY:-Ft.height()},0)}),jt=!1))})}}t(".filter-categories > a").on("click",function(e){var i=t(this);if("undefined"==typeof arguments.callee.dtPreventD){var o=i.parents(".filter").first();o.hasClass("without-isotope")?arguments.callee.dtPreventD=o.hasClass("with-ajax")?!0:!1:arguments.callee.dtPreventD=!0}e.preventDefault(),i.trigger("mouseleave"),i.hasClass("act")&&!i.hasClass("show-all")?(e.stopImmediatePropagation(),i.removeClass("act"),i.siblings("a.show-all").trigger("click")):(i.siblings().removeClass("act"),i.addClass("act"),arguments.callee.dtPreventD||(window.location.href=i.attr("href")))}),t(".filter-extras .filter-switch").each(function(){var e=t(this);e.prev(".act").length>0?e.addClass("left-act"):e.next(".act").length>0?e.addClass("right-act"):(e.removeClass("right-act"),e.removeClass("left-act"))}),t(".filter-extras a").on("click",function(e){var i=t(this);if("undefined"==typeof arguments.callee.dtPreventD){var o=i.parents(".filter").first();o.hasClass("without-isotope")?arguments.callee.dtPreventD=o.hasClass("with-ajax")?!0:!1:arguments.callee.dtPreventD=!0}arguments.callee.dtPreventD&&e.preventDefault(),i.siblings().removeClass("act"),i.addClass("act"),t(".filter-extras .filter-switch").each(function(){var e=t(this);e.prev(i).hasClass("act")?(e.addClass("left-act"),e.removeClass("right-act")):e.next(i).hasClass("act")?(e.addClass("right-act"),e.removeClass("left-act")):(e.removeClass("right-act"),e.removeClass("left-act"))})}),t(".filter-extras .filter-switch").each(function(){var e=t(this),i=e.parents(".filter").first();e.on("click",function(){i.hasClass("without-isotope")?e.hasClass("right-act")?e.prev("a")[0].click():e.hasClass("left-act")&&e.next("a")[0].click():e.hasClass("right-act")?e.prev("a").trigger("click"):e.hasClass("left-act")&&e.next("a").trigger("click")})});var Gt=t("html");if(t(".phantom-sticky").length>0)var Ft=t(".masthead:not(.side-header):not(.side-header-v-stroke)");else{var Ft=t("#phantom");"block"==Ft.css("display")}var ft=t(".phantom-sticky").exists(),pt=t(".side-header").exists(),mt=t(".side-header-h-stroke").exists(),qt=0;if("none"!==t(".mobile-header-bar").css("display")){var Nt=t(".mobile-header-bar");if(t(".phantom-sticky").length>0)if(t(".sticky-header .masthead.side-header").length>0||t(".overlay-navigation .masthead.side-header").length>0)var Ft=t(".mobile-header-bar").parent(".masthead:not(.side-header)");else var Ft=t(".mobile-header-bar").parent()}else var Nt=t(".masthead:not(.side-header):not(.side-header-v-stroke) .header-bar");a(),jQuery(window).load(function(){var e=window.location.hash;if(e.match("^#!"))var i=e.substring(3);"undefined"!=typeof i&&i.length>0?("up"==i?(t.closeMobileHeader(),Gt.stop().velocity("scroll",{offset:0,duration:600,mobileHA:!1,complete:function(e){t.closeSideHeader()}})):setTimeout(function(){Gt.stop().velocity("scroll",{offset:t("#"+i).offset().top-qt,duration:600,mobileHA:!1,complete:function(e){window.innerWidth0&&Gt.stop().velocity("scroll",{offset:t("#"+i).offset().top-Ft.height(),duration:650,mobileHA:!1}):(ft&&!pt||ft&&mt)&&Gt.stop().velocity("scroll",{offset:t("#"+i).offset().top-t(Nt,Ft).height(),duration:650,mobileHA:!1})}})},300),t(".menu-item a").parent("li").removeClass("act"),t('.menu-item a[href="'+e+'"]').parent("li").addClass("act")):"undefined"==i&&t('.menu-item > a[href="#!/up"]').length>0&&t('.menu-item > a[href="#!/up"]').parent("li").addClass("act")}),jQuery(window).on("resize",function(){a()});var Qt=(t(".stripe"),t('.menu-item > a[href^="#!"]'));window.clickAnchorLink=function(e,i){var o=e.attr("href"),n=o.substring(3),s=600,r=s;if(a(),"undefined"!=typeof n&&n&&n.length>0){if(location.hash=o,t("#"+n).length>0){var l=t("#"+n).offset().top+1,c=e.offset(),d=t("#"+n).offset(),u=Math.abs(d.top-c.top),r=150*Math.log(1.022^u);$newScrollPosition=l-qt}return"up"==n?b.hasClass("overlay-navigation")?(t.closeMobileHeader(),t.closeSideHeader(),Gt.stop().velocity("scroll",{offset:l-qt,duration:r,mobileHA:!1})):(t.closeMobileHeader(),Gt.stop().velocity("scroll",{offset:0,duration:r,mobileHA:!1,complete:function(e){t.closeSideHeader()}})):b.hasClass("overlay-navigation")?(t.closeMobileHeader(),t.closeSideHeader(),Gt.stop().velocity("scroll",{offset:l-qt,duration:r,mobileHA:!1,complete:function(e){window.innerWidth0&&($newScrollPosition=l-Ft.height(),Gt.stop().velocity("scroll",{offset:$newScrollPosition,duration:650,mobileHA:!1})):(ft&&!pt||ft&&mt)&&($newScrollPosition=l-t(Nt,Ft).height(),Gt.stop().velocity("scroll",{offset:$newScrollPosition,duration:650,mobileHA:!1}))}})):(t.closeMobileHeader(),Gt.stop().velocity("scroll",{offset:l-qt,duration:r,mobileHA:!1,complete:function(e){t.closeSideHeader(),window.innerWidth0&&($newScrollPosition=l-Ft.height(),Gt.stop().velocity("scroll",{offset:$newScrollPosition,duration:650,mobileHA:!1})):(ft&&!pt||ft&&mt)&&($newScrollPosition=l-t(Nt,Ft).height(),Gt.stop().velocity("scroll",{offset:$newScrollPosition,duration:650,mobileHA:!1}))}})),t(".menu-item a").parent("li").removeClass("act"),e.parent("li").addClass("act"),i.preventDefault(),!1}},b.on("click",'.anchor-link[href^="#!"], .anchor-link a[href^="#!"], .logo-box a[href^="#!"], .branding a[href^="#!"], #branding-bottom a[href^="#!"]',function(e){clickAnchorLink(t(this),e)}),Qt.on("click",function(e){clickAnchorLink(t(this),e)}),(t('.one-page-row div[data-anchor^="#"]').length>0||t(".vc_row[id]").length>0)&&t(".one-page-row").length>0&&y.scroll(function(e){var i=null;if(!b.hasClass("is-scroll")){var i;t('.one-page-row .vc_row[id], .one-page-row div[data-anchor^="#"]').each(function(){var e=t(this),o=e.attr("id");dtGlobals.winScrollTop>=t(".one-page-row div[id='"+o+"']").offset().top-Ft.height()-1&&(i="#!/"+o)}),t(".one-page-row div[data-anchor^='#']").length>0?dtGlobals.winScrollTop a[href="#!/up"]').length>0&&t('.menu-item > a[href="#!/up"]').parent("li").addClass("act"):t(".vc_row[id]").length>0&&dtGlobals.winScrollTop a[href="#!/up"]').length>0&&t('.menu-item > a[href="#!/up"]').parent("li").addClass("act"),t('.menu-item a[href^="#!"]').parent("li").removeClass("act"),t('.menu-item a[href="'+i+'"]').parent("li").addClass("act"),t('.menu-item a[href="#"]').length&&null==i&&t('.menu-item a[href="#"]').parent("li").addClass("act")}}),t.fn.addRollover=function(){return this.each(function(){var e=t(this);e.hasClass("this-ready")||(e.append(""),e.find(".rollover-thumbnails").length&&e.addClass("rollover-thumbnails-on"),e.parent().find(".links-container").length&&e.addClass("rollover-buttons-on"),e.addClass("this-ready"))})},t(".rollover, .rollover-video, .post-rollover, .rollover-project .show-content, .vc-item .vc-inner > a").addRollover(),t(".filter-grayscale .slider-masonry").on("mouseenter tap",function(e){"tap"==e.type&&e.stopPropagation(),t(this).addClass("dt-hovered")}),t(".filter-grayscale .slider-masonry").on("mouseleave",function(e){t(this).removeClass("dt-hovered")}),t.fn.scaleInHover=function(){return this.each(function(){var e=t(this);if(!e.hasClass("scale-ready")){var i=e.find("img.preload-me"),o=parseInt(i.attr("width")),a=parseInt(i.attr("height")),n=o/a;2>n&&n>=1.5?e.addClass("ratio_3-2"):1.5>n&&n>=1?e.addClass("ratio_4-3"):1>n&&n>=.75?e.addClass("ratio_3-4"):.75>n&&n>=.6?e.addClass("ratio_2-3"):e.removeClass("ratio_2-3").removeClass("ratio_3-2").removeClass("ratio-2").removeClass("ratio_4-3").removeClass("ratio_3-4"),n>=2&&e.addClass("ratio-2"),1==n&&e.removeClass("ratio_2-3").removeClass("ratio-2").removeClass("ratio_3-2").removeClass("ratio_4-3").removeClass("ratio_3-4"),e.addClass("scale-ready")}})},t(".hover-scale .rollover-project").scaleInHover(),t.fn.touchNewHover=function(){return this.each(function(){var e=t(this);e.hasClass("this-ready")||((t(".rollover-content",this).length>0||t(".woocom-rollover-content",this).length>0)&&(b.on("touchend",function(e){t(".mobile-true .rollover-content, .mobile-true .rollover-project, .mobile-true .woocom-rollover-content, .mobile-true .woocom-project").removeClass("is-clicked")}),e.on("touchstart",function(t){origY=t.originalEvent.touches[0].pageY,origX=t.originalEvent.touches[0].pageX}),e.on("touchend",function(i){var o=i.originalEvent.changedTouches[0].pageX,a=i.originalEvent.changedTouches[0].pageY;if(origY==a||origX==o){if(!e.hasClass("is-clicked"))return t(".links-container > a",e).on("touchend",function(t){t.stopPropagation(),e.addClass("is-clicked")}),i.preventDefault(),t(".mobile-true .rollover-content, .mobile-true .rollover-project, .mobile-true .woocom-rollover-content, .mobile-true .woocom-project").removeClass("is-clicked"),e.addClass("is-clicked"),e.find(".rollover-content").addClass("is-clicked"),e.find(".woocom-rollover-content").addClass("is-clicked"),!1;if(e.find(".dt-gallery-container").length>0&&e.find(".rollover-content").on("click.dtAlbums",function(i){e.find(".rollover-content").off("click.dtAlbums"),t(this).find("a.dt-gallery-mfp-popup, .dt-trigger-first-mfp, .dt-mfp-item").first().trigger("click")}),t(this).find(".rollover-click-target.go-to").length>0)window.location.href=t(this).find(".rollover-click-target.go-to").attr("href");else if(t(this).hasClass("woocom-project")){if(t(i.target).is(".add_to_cart_button"))return!0;window.location.href=t(this).find(" > a").attr("href")}}})),e.addClass("this-ready"))})},t(".mobile-true .rollover-project, .mobile-true .woocom-project").touchNewHover(),t(".hover-style-one article:not(.description-off) .rollover-project > a, .hover-style-two article:not(.description-off) .rollover-project > a, .mobile-true .cart-btn-on-img .buttons-on-img > a, .hover-style-three article:not(.description-off) .rollover-project > a").on("click",function(t){t.preventDefault()}),t(".mobile-false .albums .rollover-content a:not(.portfolio-categories a), .mobile-false .media .rollover-content, .mobile-false .dt-gallery-container .rollover-content").on("click",function(e){return t(e.target).is("a")?!0:void t(this).siblings("a.dt-single-mfp-popup, a.dt-gallery-mfp-popup, a.dt-mfp-item").first().click()}),t.fn.touchWooHoverImage=function(){return this.each(function(){var e=t(this);if(!e.hasClass("woo-ready")){b.on("touchend",function(e){t(".mobile-true .cart-btn-on-img .buttons-on-img").removeClass("is-clicked")});var i=t(this);i.on("touchstart",function(t){origY=t.originalEvent.touches[0].pageY,origX=t.originalEvent.touches[0].pageX}),i.on("touchend",function(e){var o=e.originalEvent.changedTouches[0].pageX,a=e.originalEvent.changedTouches[0].pageY; if(origY==a||origX==o){if(!i.hasClass("is-clicked"))return e.preventDefault(),t(".mobile-true .cart-btn-on-img .buttons-on-img").removeClass("is-clicked"),i.addClass("is-clicked"),!1;t(e.target).parent().hasClass("woo-buttons")?t(e.target).trigger("click"):window.location.href=i.find("a").first().attr("href")}}),e.addClass("woo-ready")}})},t(".mobile-true .cart-btn-on-img .buttons-on-img").touchWooHoverImage();var Ut=t("#commentform");Ut.on("click","a.clear-form",function(e){return e.preventDefault(),Ut.find('input[type="text"], textarea').val(""),t(".contact-form-material").length>0&&Ut.find('input[type="text"], textarea').parent().removeClass("is-focused"),!1}),Ut.on("click"," a.dt-btn.dt-btn-m",function(t){return t.preventDefault(),Ut.find("#submit").trigger("click"),!1}),t.browser.msie&&(t('input[type="text"][placeholder], textarea[placeholder]').each(function(){var e=t(this);""!=e.attr("placeholder")&&(e.addClass("IePlaceHolder"),""==t.trim(e.val())&&"password"!=e.attr("type")&&e.val(e.attr("placeholder")))}),t(".IePlaceHolder").focus(function(){var e=t(this);e.val()==e.attr("placeholder")&&e.val("")}),t(".IePlaceHolder").blur(function(){var e=t(this);""==t.trim(e.val())&&e.val(e.attr("placeholder"))})),t(".contact-form-material").length>0&&t(".form-fields input, textarea, .comment-form-author input, .comment-form-email input").each(function(e){var i=t(this),o=i.parent("span, p"),a=i.parents(".dt-form");a.find(".clear-form").on("click",function(){o.removeClass("is-focused").removeClass("active")}),i.focus(function(){o.addClass("is-focused").addClass("active"),i.attr("placeholder","")}),i.change(function(){0!==i.val().length&&(o.addClass("is-focused").removeClass("active"),i.attr("placeholder",""))}),i.blur(function(){o.removeClass("active"),""===i.val()&&o.removeClass("is-focused").removeClass("active")})}),t(".full-width-wrap").length>0&&(dtGlobals.isiOS?y.bind("orientationchange",function(){n()}).trigger("orientationchange"):(y.on("resize",function(){n()}),n())),window.vc_rowBehaviour=function(){function t(){var t=a('[data-vc-full-width="true"]');a.each(t,function(t,e){var i=a(this);i.addClass("vc_hidden");var o=i.next(".vc_row-full-width");o.length||(o=i.parent().next(".vc_row-full-width"));var n,s,r=parseInt(i.css("margin-left"),10),l=parseInt(i.css("margin-right"),10),c=0-o.offset().left-r,d=(a(window).width(),window.innerWidth),u=y.width(),h=a(".content").width();if(a(".boxed").length>0)n=(parseInt(a("#main").width())-parseInt(h))/2;else if(a(".side-header-v-stroke").length&&d>dtLocal.themeSettings.mobileHeader.firstSwitchPoint){var f=d<=parseInt(h)?parseInt(h):u-a(".side-header-v-stroke").width();n=Math.ceil((f-parseInt(h))/2)}else if(a(".sticky-header .side-header").length&&d>dtLocal.themeSettings.mobileHeader.firstSwitchPoint){var f=u<=parseInt(h)?parseInt(h):u;n=Math.ceil((u-parseInt(h))/2)}else if((a(".header-side-left").length&&d||a(".header-side-right").length&&d)>dtLocal.themeSettings.mobileHeader.firstSwitchPoint){var f=d<=parseInt(h)?parseInt(h):u-a(".side-header").width();n=Math.ceil((f-parseInt(h))/2)}else{var f=u<=parseInt(h)?parseInt(h):u;n=Math.ceil((u-parseInt(h))/2)}a(".sidebar-left").length>0||a(".sidebar-right").length>0?(s=a(".content").width(),n=0):s=a("#main").innerWidth();var c=0-n-r;if(i.css({position:"relative",left:c,"box-sizing":"border-box",width:s}),!i.data("vcStretchContent")){var p=-1*c;0>p&&(p=0);var m=s-p-o.width()+r+l;0>m&&(m=0),i.css({"padding-left":p+"px","padding-right":m+"px"})}i.attr("data-vc-full-width-init","true"),i.removeClass("vc_hidden"),i.find(".ts-wrap").each(function(){var t=a(this).data("thePhotoSlider");"undefined"!=typeof t&&t.update()})})}function e(){var t,e=!1;return window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),a(".vc_parallax-inner").remove(),a("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),a("[data-vc-parallax]").each(function(){var t,i,o,n,s,r,l;e=!0,"on"===a(this).data("vcParallaxOFade")&&a(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),i=100*a(this).data("vcParallax"),s=a("
").addClass("vc_parallax-inner").appendTo(a(this)),s.height(i+"%"),r=a(this).data("vcParallaxImage"),l=vcExtractYoutubeId(r),l?insertYoutubeVideoAsBackground(s,l):"undefined"!=typeof r&&s.css("background-image","url("+r+")"),t=i-100,o=-t,n=0,s.attr("data-bottom-top","top: "+o+"%;").attr("data-top-bottom","top: "+n+"%;")}),e&&window.skrollr?(t={forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}},window.vcParallaxSkroll=skrollr.init(t),window.vcParallaxSkroll):!1}function i(){a(".vc_row-o-full-height:first").each(function(){var t,e,i,o;t=a(window),e=t.height(),i=a(this).offset().top,e>i&&(o=100-i/(e/100),a(this).css("min-height",o+"vh"))})}function o(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");(e>0||navigator.userAgent.match(/Trident.*rv\:11\./))&&a(".vc_row-o-full-height").each(function(){"flex"===a(this).css("display")&&a(this).wrap('
')})}var a=window.jQuery;a(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",t).on("resize.vcRowBehaviour",i),t(),i(),o(),vc_initVideoBackgrounds(),e()},y.trigger("dt.removeLoading"),t("img").on("dragstart",function(t){t.preventDefault()});var Tt=t("#main-slideshow");!Tt.find("> div").length>0&&Tt.addClass("empty-slider"),t(".rev_slider_wrapper").length>0&&(Tt.find("> .rev_slider_wrapper")&&Tt.addClass("fix rv-slider"),(t(".rev_slider_wrapper").hasClass("fullscreen-container")||t(".rev_slider_wrapper").hasClass("fullwidthbanner-container"))&&Tt.removeClass("fix"));var Zt,Kt;if(t(".shopping-cart.show-sub-cart").find(".buttons").first().clone(!0).addClass("top-position").insertBefore(".shopping-cart-inner .cart_list"),t(".shopping-cart.show-sub-cart").each(function(){var e=t(this),i=e.children(".shopping-cart-wrap");(dtGlobals.isMobile||dtGlobals.isWindowsPhone)&&e.find("> a").on("click",function(e){t(this).hasClass("dt-clicked")?e.stopPropagation():(e.preventDefault(),t(".shopping-cart").find(".dt-clicked").removeClass("dt-clicked"),t(this).addClass("dt-clicked"))}),e.on("mouseenter tap",function(o){"tap"==o.type&&o.stopPropagation(),e.addClass("dt-hovered"),C.width()-(i.offset().left-C.offset().left)-i.width()<0&&i.addClass("right-overflow"),y.height()-(i.offset().top-dtGlobals.winScrollTop)-i.innerHeight()<0&&i.addClass("bottom-overflow"),e.parents(".dt-mobile-header").length>0&&i.css({top:e.position().top-13-i.height()}),i.height()>y.height()-i.position().top&&i.addClass("show-top-buttons"),t(".searchform .submit",Jt).removeClass("act"),t(".mini-search").removeClass("act"),t(".mini-search .field",Jt).stop().animate({opacity:0},150,function(){t(this).css("visibility","hidden")}),clearTimeout(Zt),clearTimeout(Kt),Zt=setTimeout(function(){e.hasClass("dt-hovered")&&i.stop().css("visibility","visible").animate({opacity:1},150)},100)}),e.on("mouseleave",function(e){var i=t(this),o=i.children(".shopping-cart-wrap");i.removeClass("dt-hovered"),clearTimeout(Zt),clearTimeout(Kt),Kt=setTimeout(function(){i.hasClass("dt-hovered")||(o.stop().animate({opacity:0},150,function(){t(this).css("visibility","hidden")}),setTimeout(function(){i.hasClass("dt-hovered")||(o.removeClass("right-overflow"),o.removeClass("bottom-overflow"),o.removeClass("show-top-buttons"))},400))},150)})}),t(".mini-search").length>0){var Jt=t(".masthead, .dt-mobile-header");b.on("click",function(e){var i=t(e.target);i.is(".mini-search .field",Jt)||(t(".searchform .submit",Jt).removeClass("act"),t(".mini-search",Jt).removeClass("act"),t(".mini-search .field",Jt).stop().animate({opacity:0},150,function(){t(this).css("visibility","hidden")}),setTimeout(function(){t(".mini-search .field",Jt).removeClass("right-overflow"),t(".mini-search .field",Jt).removeClass("bottom-overflow")},400))}),t(".searchform .submit",Jt).on("click",function(e){e.preventDefault(),e.stopPropagation();var i=t(this);i.hasClass("act")?(i.removeClass("act"),i.parents(".mini-search").removeClass("act"),i.siblings(".searchform-s").stop().animate({opacity:0},150,function(){t(this).css("visibility","hidden")}),setTimeout(function(){i.siblings(".searchform-s").removeClass("right-overflow"),i.siblings(".searchform-s").removeClass("bottom-overflow")},400)):(i.addClass("act"),i.parents(".mini-search").addClass("act"),i.parents(".dt-mobile-header").length>0&&i.siblings(".searchform-s").css({top:i.parents(".mini-search").position().top-i.siblings(".searchform-s").height()-18}),C.width()-(i.siblings(".searchform-s").offset().left-C.offset().left)-i.siblings(".searchform-s").width()<0&&i.siblings(".searchform-s").addClass("right-overflow"),y.height()-(i.siblings(".searchform-s").offset().top-dtGlobals.winScrollTop)-i.siblings(".searchform-s").innerHeight()<0&&i.siblings(".searchform-s").addClass("bottom-overflow"),i.siblings(".searchform-s").stop().css("visibility","visible").animate({opacity:1},150).focus())})}if(t(".twentytwenty-container .preload-me").loaded(null,function(){t(".twentytwenty-container").each(function(){var e=t(this),i=e.attr("data-orientation").length>0?e.attr("data-orientation"):"horizontal",o="undefined"!=typeof e.attr("data-offset")&&e.attr("data-offset").length>0?e.attr("data-offset"):.5,a=e.attr("data-navigation")?!0:!1;e.twentytwenty({default_offset_pct:o,orientation:i,navigation_follow:a})})},!0),t(".wpb_tabs .iso-container").length>0){var te;t(".wpb_tour_tabs_wrapper").each(function(){var e=t(this),i=e.parents(".wpb_tabs").find(".iso-container");e.tabs({activate:function(t,e){i.isotope("layout")}}),e.find("li").each(function(){t(this).on("click",function(){clearTimeout(te),y.trigger("debouncedresize"),t(this).parents(".wpb_tabs").find(".iso-container").isotope("layout")})})})}t(".tab-style-four .wpb_tabs_nav a").each(function(){var e=t(this);e.addClass("ripple"),e.ripple()}),t.fn.calcPics=function(){var e=t(".instagram-photos");return e.length<1?!1:this.each(function(){var e=e?e:parseInt(t(this).attr("data-image-max-width"));parseInt(t(this).find("> a").css("margin-left"));t(this).find(" > a").css({"max-width":e,opacity:1});var i=t(this),o=i.width(),a=100/Math.ceil(o/e);i.find("a").css({width:a+"%"})})},t(".instagram-photos").calcPics(),t(".st-accordion").each(function(){var e=t(this);e.find("ul > li > a").on("click",function(i){i.preventDefault();var o=t(this),a=o.next();t(".st-content",e).not(a).slideUp("fast"),a.slideToggle("fast")})}),simple_tooltip(".shortcode-tooltip","shortcode-tooltip-content"),t(".widget .searchform .submit").on("click",function(e){return e.preventDefault(),t(this).siblings("input.searchsubmit").click(),!1}),t.fn.animateSkills=function(){t(".skill-value",this).each(function(){var e=t(this),i=e.data("width");e.css({width:i+"%"})})},t.fn.animateSkills=function(){t(".skill-value",this).each(function(){var e=t(this),i=e.data("width");e.css({width:i+"%"})})},s();var ee,ie;t(".project-share-overlay.allways-visible-icons .share-button").on("click",function(t){t.preventDefault()}),r(function(){l()});var oe,ae,ne=t(".floating-content"),se=t(".project-post");c();var re=t(".transparent #fancy-header").exists(),le=t(".transparent .page-title").exists();t.fancyFeaderCalc=function(){t(".branding .preload-me").loaded(null,function(){re&&t(".transparent #fancy-header > .wf-wrap").css({"padding-top":t(".masthead:not(.side-header)").height()}),le&&(t(".transparent .page-title > .wf-wrap").css({"padding-top":t(".masthead:not(.side-header)").height()}),t(".transparent .page-title").css("visibility","visible"))},!0)};var ce=t('.paginator[role="navigation"]'),de=ce.find("a.dots");de.on("click",function(){ce.find("div:hidden").show().find("a").unwrap(),de.remove()}),t(".soc-ico a.pinit-marklet").click(function(e){e.preventDefault(),t("#pinmarklet").remove();var i=document.createElement("script");i.setAttribute("type","text/javascript"),i.setAttribute("charset","UTF-8"),i.setAttribute("id","pinmarklet"),i.setAttribute("async","async"),i.setAttribute("defer","defer"),i.setAttribute("src","//assets.pinterest.com/js/pinmarklet.js?r="+99999999*Math.random()),document.body.appendChild(i)}),y.on("debouncedresize",function(){window.innerWidth>dtLocal.themeSettings.mobileHeader.firstSwitchPoint?t(".masthead:not(.side-header):not(.mixed-header)").length>0?dtGlobals.showTopBtn=t(".masthead:not(.side-header):not(.mixed-header)").height()+150:t(".masthead.side-header-h-stroke").length>0?dtGlobals.showTopBtn=t(".side-header-h-stroke").height()+150:dtGlobals.showTopBtn=500:t(".masthead:not(.mixed-header)").length>0?dtGlobals.showTopBtn=t(".masthead:not(.mixed-header)").height()+150:t(".masthead.mixed-header").length>0?dtGlobals.showTopBtn=t(".mixed-header").height()+150:dtGlobals.showTopBtn=500}),y.scroll(function(){dtGlobals.winScrollTop>dtGlobals.showTopBtn?t(".scroll-top").removeClass("off").addClass("on"):t(".scroll-top").removeClass("on").addClass("off")}),t(".scroll-top").click(function(e){return e.preventDefault(),t("html, body").animate({scrollTop:0},"slow"),!1}),t("