").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(''+dtLocal.themeSettings.floatingHeader.logo.html+" ").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(''+dtLocal.themeSettings.floatingHeader.logo.html+" ").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(" ").prependTo("#bottom-bar .mini-nav .menu-select"),t(" ",{selected:"selected",value:"",text:"———"}).appendTo(".mini-nav .menu-select select"),t("#bottom-bar .mini-nav").each(function(){var e=t(this),i=e.find("select");t("a",e).each(function(){var e=t(this);t(" ",{value:e.attr("href"),text:e.text(),"data-level":e.attr("data-level")}).appendTo(i)})}),t(".mini-nav select").change(function(){window.location=t(this).find("option:selected").val()}),t(".mini-nav select option").each(function(){var e=t(this),i=window.location.href;e.attr("value")==i&&e.attr("selected","selected")}),t(".woocommerce.widget_layered_nav select, .woocommerce-ordering-div select, #bottom-bar .mini-nav select, .widget_product_categories select").each(function(){t(this).customSelect()}),t(".menu-select select, .mini-nav .customSelect1, .vc_pie_chart .vc_pie_wrapper").css("visibility","visible"),t(".mini-nav option").each(function(){var e=t(this),i=e.text(),o="";switch(parseInt(e.attr("data-level"))){case 1:o="";break;case 2:o="— ";break;case 3:o="—— ";break;case 4:o="——— ";break;case 5:o="———— "}e.text(o+i)});var ue=navigator.userAgent,he=ue.match(/iPhone/i)?"touchstart":"click";t(".project-navigation a, .mobile-sticky-header-overlay").bind(he,function(t){}),t(".menu-material-style > li > a, .menu-material-style .sub-nav > ul > li > a, .menu-material-underline-style > li > a, .menu-material-underline-style .sub-nav > ul > li > a").each(function(){var e=t(this);e.addClass("ripple"),e.ripple()}),t.fn.clickEffectPics=function(){return this.each(function(){$this=t(this),t(".click-effect-on-img").length>0&&$this.addClass("material-click-effect")})},t(".rollover, .post-rollover, .rollover-video").clickEffectPics(),t(function(){t.fn.clickMaterialEffect=function(){return this.each(function(){var e,i,o,a,n=t(this),s=null,r=null;0===n.find(".ink").length&&n.prepend(" "),n.addClass("ripplelink"),e=n.find(".ink"),e.removeClass("animate"),e.height()||e.width()||(i=Math.max(t(this).outerWidth(),n.outerHeight()),e.css({height:i,width:i})),n.bind("mousedown",function(t){clearTimeout(s),o=t.pageX-n.offset().left-e.width()/2,a=t.pageY-n.offset().top-e.height()/2,e.css({top:a+"px",left:o+"px"}).addClass("animate")}),n.bind("mouseup mouseleave",function(t){clearTimeout(r),clearTimeout(s),n._timer=setTimeout(function(){e.removeClass("animate")},400)})})},t(".rollover.material-click-effect, .post-rollover.material-click-effect, .rollover-video.material-click-effect").clickMaterialEffect()}),t(".small-portfolio-icons").length>0&&(t(".links-container a").each(function(){var e=t(this);e.addClass("waves-effect")}),Waves.displayEffect()),t(".filter-style-material").length>0&&(t(".filter-categories a, .paginator .page-links a").each(function(){var e=t(this);e.addClass("ripple"),e.ripple()}),t(".filter-switch").append(" "),t(".paginator .page-nav a").each(function(){var e=t(this);e.addClass("waves-effect")}),Waves.displayEffect(),Modernizr.touch?t(".filter-switch").on("touchstart",function(e){t(".filter-switch").removeClass("pressed"),t(this).addClass("pressed")}):t(".filter-switch").on("mousedown",function(e){t(".filter-switch").removeClass("pressed"),t(this).addClass("pressed"),setTimeout(function(){t(this).removeClass("pressed")},600)}),t(".filter-switch .filter-switch-toggle").on("animationend webkitAnimationEnd oanimationend MSAnimationEnd",function(e){t(this).parent().removeClass("pressed")}),Modernizr.touch?t(".filter-extras a").on("touchstart",function(e){t(".filter-extras").removeClass("pressed"),t(this).parent(".filter-extras").addClass("pressed")}):t(".filter-extras a").each(function(){t(this).on("mousedown",function(e){t(".filter-extras").removeClass("pressed"),t(this).addClass("pressed"),setTimeout(function(){t(this).removeClass("pressed")},600)})}),t(".filter-extras a").on("animationend webkitAnimationEnd oanimationend MSAnimationEnd",function(e){t(this).removeClass("pressed")}));var fe=function(){var t={};return function(e,i,o){o||(o="Don't call this twice without a uniqueId"),t[o]&&clearTimeout(t[o]),t[o]=setTimeout(e,i)}}();if(!dtGlobals.isMobile){t(".stripe-parallax-bg, .fancy-parallax-bg, .page-title-parallax-bg").each(function(){var e=t(this),i=e.data("prlx-speed");e.parallax("50%",i),e.addClass("parallax-bg-done"),e.css("opacity","1")});var pe=-1;t("#fancy-header .fancy-title:not(.start-animation), #fancy-header .fancy-subtitle:not(.start-animation), #fancy-header .breadcrumbs:not(.start-animation)").each(function(){var e=t(this);e.hasClass("start-animation")||e.hasClass("start-animation-done")||(e.addClass("start-animation-done"),pe++,setTimeout(function(){e.addClass("start-animation")},300*pe))}),t("video.stripe-video-bg:in-viewport").each(function(){var e=t(this).parent(".stripe"),i=e.find("video");i.length>0&&i.get(0).play()}),y.on("scroll",function(){t("video.stripe-video-bg").length>0&&t("video.stripe-video-bg").each(function(){var e=t(this);e.is(":in-viewport")?e.get(0).play():e.get(0).pause()})})}t(".footer-overlap .footer").css({opacity:1}),(t(".page-inner").length>0&&t(".side-header").length>0||t(".page-inner").length>0&&t(".dt-mobile-header").length>0)&&t(".side-header, .mixed-header, .dt-mobile-header, .dt-close-mobile-menu-icon").insertBefore(".page-inner"),!t(".footer .widget").length>0&&t(".footer").addClass("empty-footer"),t.fn.calculateColumns=function(e,i,o,a,n,s,r,l){return this.each(function(){var c=t(this),d=c.width()-1,u=o!==!1?o:20,h=c.attr("data-cont-id"),f="";for("undefined"==typeof e&&(e=200),"undefined"==typeof i&&(i=6);Math.floor(d/i)=i)););if(t("#col-style-id-"+h).exists())var p=document.getElementById("col-style-id-"+h);else{var p=document.createElement("style");p.id="col-style-id-"+h,p.appendChild(document.createTextNode("")),document.head.appendChild(p)}var m,g,v,y,w,b,C=t("#col-style-id-"+h);10>u?(y=0,b=0):(b=u-5,y=u-10),w=0==u?0:-u,c.hasClass("resize-by-browser-width")?Modernizr.mq("only screen and (max-width:767px)")?(m=Math.floor(d/r)+"px",g=2*Math.floor(d/r)+"px",v=r):Modernizr.mq("(min-width:768px) and (max-width:991px)")?(m=Math.floor(d/s)+"px",g=2*Math.floor(d/s)+"px",v=s):Modernizr.mq("(min-width:992px) and (max-width:1199px)")?(m=Math.floor(d/n)+"px",g=2*Math.floor(d/n)+"px",v=n):(m=Math.floor(d/a)+"px",g=2*Math.floor(d/a)+"px",v=a):"px"==l?(m=Math.floor(d/i)+"px",g=2*Math.floor(d/i)+"px",v=i):(m=Math.floor(1e5/i)/1e3+"%",g=2*Math.floor(1e5/i)/1e3+"%"),f=t(".cont-id-"+h).not(".bg-under-post").hasClass("description-under-image")?v>1?" .cont-id-"+h+" { margin: -"+b+"px -"+u+"px -"+y+"px ; } .full-width-wrap .cont-id-"+h+" { margin: "+-b+"px "+u+"px "+-y+"px ; } .cont-id-"+h+" > .wf-cell { width: "+m+"; padding: "+b+"px "+u+"px "+y+"px; } .cont-id-"+h+" > .wf-cell.double-width { width: "+g+"; } ":" .cont-id-"+h+" { margin: -"+b+"px -"+y+"px -"+u+"px ; } .full-width-wrap .cont-id-"+h+" { margin: "+-b+"px "+u+"px "+-y+"px ; } .cont-id-"+h+" > .wf-cell { width: "+m+"; padding: "+b+"px "+y+"px "+u+"px; } ":v>1?" .cont-id-"+h+" { margin: -"+u+"px; } .full-width-wrap .cont-id-"+h+" { margin: "+w+"px "+u+"px; } .cont-id-"+h+" > .wf-cell { width: "+m+"; padding: "+u+"px; } .cont-id-"+h+" > .wf-cell.double-width { width: "+g+"; } ":" .cont-id-"+h+" { margin: -"+u+"px; } .full-width-wrap .cont-id-"+h+" { margin: "+w+"px "+u+"px; } .cont-id-"+h+" > .wf-cell { width: "+m+"; padding: "+u+"px; } ",C.html(f);var x=p.sheet.cssRules.length;p.sheet.insertRule(".webkit-hack { }",x),p.sheet.deleteRule(x),c.trigger("columnsReady")})},t.fn.initSlider=function(){return this.each(function(){var e=t(this);e.data("width"),e.data("height");e.hasClass("royalReady")||(e.postTypeScroller(),e.addClass("royalReady"))})};var me=Isotope.prototype._positionItem;Isotope.prototype._positionItem=function(t,e,i,o){me(t,e,i,!0)},t.fn.IsoLayzrInitialisation=function(e){return this.each(function(){t(this),new Layzr({container:e,selector:".iso-lazy-load",attr:"data-src",attrSrcSet:"data-srcset",retinaAttr:"data-src-retina",threshold:30,before:function(){this.setAttribute("sizes",this.width+"px")},callback:function(){this.classList.add("iso-layzr-loaded");var e=t(this);e.one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(t){setTimeout(function(){e.parent().removeClass("layzr-bg")},200)})}})})};var ge=t(".iso-container"),ve=t(".iso-grid:not(.jg-container, .iso-container), .blog.layout-grid .wf-container.description-under-image:not(.jg-container, .iso-container), .grid-masonry:not(.iso-container), .shortcode-blog-posts.iso-grid"),ye=ge.add(ve),we=dtGlobals.isoPreloader=t('').appendTo("body").hide();if(ye.addClass("dt-isotope"),ye.exists()&&ye.each(function(e){var i=t(this),o=parseInt(i.attr("data-width")),a=parseInt(i.attr("data-columns")),n=parseInt(i.attr("data-desktop-columns-num")),s=parseInt(i.attr("data-h-tablet-columns-num")),r=parseInt(i.attr("data-v-tablet-columns-num")),l=parseInt(i.attr("data-phone-columns-num")),c=parseInt(i.attr("data-padding"));i.addClass("cont-id-"+e).attr("data-cont-id",e),i.calculateColumns(o,a,c,n,s,r,l,"px"),c>10&&i.addClass("mobile-paddings"),y.on("debouncedresize",function(){i.calculateColumns(o,a,c,n,s,r,l,"px"),c>10&&i.addClass("mobile-paddings")})}),dtGlobals.isPhone||(t.fn.heightHack=function(){return this.each(function(){var e=t(this);if(!(e.hasClass("height-ready")||e.parents(".post-rollover").exists()||e.parents(".slider-masonry").exists())){var i=parseInt(e.attr("width")),o=parseInt(e.attr("height")),a=i/o;e.parents(".testimonial-vcard, .dt-format-gallery, .shortcode-blog-posts.iso-grid ").exists()&&e.wrap("
"),e.parent().css({"padding-bottom":100/a+"%",height:0,display:"block"}),e.attr("data-ratio",a).addClass("height-ready")}})},t.fn.IsoInitialisation=function(e,i,o){return this.each(function(){var o=t(this);o.hasClass("iso-item-ready")||(o.isotope({itemSelector:e,layoutMode:i,stagger:30,resize:!1,transitionDuration:0,hiddenStyle:{opacity:0},visibleStyle:{opacity:1},masonry:{columnWidth:1},getSortData:{date:function(e){return t(e).attr("data-date")},name:function(e){return t(e).attr("data-name")}}}),o.addClass("iso-item-ready"))})},t(".iso-container, .portfolio-grid").each(function(){var e=t(this);t(".filter:not(.iso-filter, .without-isotope, .with-ajax) .filter-categories a").on("click.presscorFilterCategories",function(i){var o=t(this).attr("data-filter");return e.isotope({filter:o}),!1}),t(".filter:not(.iso-filter, .without-isotope, .with-ajax) .filter-extras .filter-by a").on("click",function(i){var o=t(this).attr("data-by"),a=t(this).parents(".filter-extras").find(".filter-sorting > a.act").first().attr("data-sort");return e.isotope({sortBy:o,sortAscending:"asc"==a}),!1}),t(".filter:not(.iso-filter, .without-isotope, .with-ajax) .filter-extras .filter-sorting a").on("click",function(i){var o=t(this).attr("data-sort"),a=t(this).parents(".filter-extras").find(".filter-by > a.act").first().attr("data-by");return e.isotope({sortBy:a,sortAscending:"asc"==o}),!1})}),(ge.exists()||ve.exists())&&(we.fadeIn(50),ye.each(function(){var e=t(this);t(".preload-me",e).heightHack(),t(".slider-masonry",e).initSlider(),e.one("columnsReady",function(){e.hasClass("iso-container")?e.IsoInitialisation(".iso-item","masonry",400):e.IsoInitialisation(".wf-cell","fitRows",400),e.isotope("on","layoutComplete",function(i){for(var o=0;o=dtLocal.themeSettings.mobileHeader.firstSwitchPoint&&(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"),t(".mobile-sticky-header-overlay").removeClass("active"),t(".dt-mobile-menu-icon").removeClass("active"),w.removeClass("menu-open")),window.innerWidth<=dtLocal.themeSettings.mobileHeader.firstSwitchPoint?t(".masthead:not(.mixed-header):not(#phantom)").addClass("masthead-mobile"):t(".masthead:not(.mixed-header):not(#phantom)").removeClass("masthead-mobile"),t(".mini-nav select").trigger("render"),t.fancyFeaderCalc(),t(".mini-widgets, .mobile-mini-widgets").find(" > *").removeClass("first last"),t(".mini-widgets, .mobile-mini-widgets").find(" > *:visible:first").addClass("first"),t(".mini-widgets, .mobile-mini-widgets").find(" > *:visible:last").addClass("last"),t(".stripe-video-bg > video").each(function(){if(t(".header-side-line").length>0&&!t(".boxed").length>0)var e=t(".side-header-v-stroke").width();else if(!t("body").hasClass("sticky-header")&&!t("body").hasClass("overlay-navigation")&&t(".side-header").length>0)var e=t(".side-header").width();else var e=0;var i=2e3+e,o=i-t(".content").position().left-22,a=t(this),n=(a.height(),t("#page").width());a.css({left:o,width:n})}),t(".stripe, .dt-default").each(function(){var e=t(this),i=e.attr("data-min-height");t.isNumeric(i)?e.css({minHeight:i+"px"}):i?i.search("%")>0?e.css({minHeight:y.height()*(parseInt(i)/100)+"px"}):e.css({minHeight:i}):e.css({minHeight:0})}),oe=se.height(),ae=ne.height(),t(".mobile-false .footer-overlap .page-inner").css({"min-height":window.innerHeight-t(".footer").innerHeight(),"margin-bottom":t(".footer").innerHeight()})}).trigger("debouncedresize"),t.fn.inView=function(){var e=t(window);obj=t(this);var i=e.scrollTop(),o=e.scrollTop()+e.height(),a=obj.offset().top+20;return o>=a&&a>=i?!0:!1};var Se={xhr:!1,settings:!1,lunch:function(e){var i=this;e&&(this.settings=e),this.xhr&&this.xhr.abort();var o="presscore_template_ajax";this.xhr=t.post(e.ajaxurl,{action:o,postID:e.postID,paged:e.paged,targetPage:e.targetPage,term:e.term,orderby:e.orderBy,order:e.order,nonce:e.nonce,visibleItems:e.visibleItems,contentType:e.contentType,pageData:e.pageData,sender:e.sender},function(o){if(o.success){var a=jQuery(o.html),n=e.targetContainer;parseInt(n.attr("data-width")),parseInt(n.attr("data-max-width")),parseInt(n.attr("data-padding"));if(isIsotope="grid"==e.layout||"masonry"==e.layout,itemsToDeleteLength=0,trashItems=new Array,sortBy=o.orderby.replace("title","name"),sortAscending="asc"==o.order.toString(),dtGlobals.isPhone&&(isIsotope=!1),o.newNonce&&(dtLocal.ajaxNonce=o.newNonce),"undefined"!=typeof o.itemsToDelete&&(itemsToDeleteLength=o.itemsToDelete.length),isIsotope&&itemsToDeleteLength>0){for(var s=0;s0?(n.append(a),dtGlobals.ajaxContainerItems=n.find("div.wf-cell, .project-even, .project-odd").not(".animation-triggered"),isIsotope?(t(".preload-me",n).heightHack(),t(".slider-masonry",n).initSlider(),t(".slider-masonry",n).css("visibility","visible"),n.isotope("addItems",a),"media"!=e.contentType?n.isotope({sortBy:sortBy,sortAscending:sortAscending}):n.isotope({sortBy:"original-order"}),n.isotope("layout"),i.init(),n.layzrInitialisation(),n.IsoLayzrInitialisation()):(dtGlobals.isPhone&&("masonry"==e.layout||"grid"==e.layout),t(".slider-masonry",n).initSlider(),t("ul.photoSlider:not(.slider-masonry)").each(function(){t(this).postTypeScroller()}),t("ul.photoSlider").css("visibility","visible"),"jgrid"==e.layout&&n.collagePlus(dtGlobals.jGrid),i.init(),n.layzrInitialisation(),n.IsoLayzrInitialisation(".mobile-true")),"undefined"!=typeof e.afterSuccessInit&&e.afterSuccessInit(o),y.trigger("dt.ajax.content.appended")):isIsotope&&n.isotope({sortBy:sortBy,sortAscending:sortAscending})}"undefined"!=typeof e.afterResponce&&e.afterResponce(o),u()})},init:function(){switch(this.settings.contentType){case"portfolio":this.initPortfolio();break;case"albums":this.initAlbums();break;case"media":this.initMedia();break;case"blog":this.basicInit();break;case"testimonials":this.basicInit()}},initPortfolio:function(){this.basicInit()},initAlbums:function(){this.basicInit()},initMedia:function(){this.basicInit(),t(".mobile-false .albums .rollover-content, .mobile-false .media .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()})},basicInit:function(){var e=this.settings.targetContainer;t(".dt-gallery-mfp-popup",e).not(".mfp-ready").on("click",function(){var e=t(this),i=e.parents("article.post");if(i.length>0){var o=i.find(".dt-gallery-container a.dt-mfp-item");o.length>0&&o.first().trigger("click")}return!1}).addClass("mfp-ready"),t(".dt-trigger-first-mfp",e).not(".mfp-ready").on("click",function(){var e=t(this),i=e.parents("article.post");if(i.length>0){var o=i.find("a.dt-mfp-item");o.length>0&&o.first().trigger("click")}return!1}).addClass("mfp-ready"),t(".dt-single-image",e).not(".mfp-ready").magnificPopup({type:"image"}).addClass("mfp-ready"),t(".dt-single-video",e).not(".mfp-ready").magnificPopup({type:"iframe"}).addClass("mfp-ready"),t(".dt-single-mfp-popup",e).not(".mfp-ready").magnificPopup({type:"image"}).addClass("mfp-ready"),t(".dt-gallery-container",e).not(".mfp-ready").each(function(){t(this).addClass("mfp-ready").magnificPopup(t.extend({},dtGlobals.magnificPopupBaseConfig,{delegate:"a.dt-mfp-item",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]}}))}),t(".rollover, .rollover-video, .post-rollover, .rollover-project .show-content",e).addRollover(),t.isFunction(t.fn.hoverdir)&&(t(".mobile-false .hover-grid .rollover-project").each(function(){t(this).hoverdir()}),t(".mobile-false .hover-grid-reverse .rollover-project ").each(function(){
t(this).hoverdir({inverse:!0})})),t(".mobile-true .rollover-project a.link.show-content, .hover-style-one article:not(.description-off) .rollover-project > a, .hover-style-two article:not(.description-off) .rollover-project > a, .hover-style-three article:not(.description-off) .rollover-project > a").on("click",function(t){t.preventDefault()}),t(".rollover, .post-rollover, .rollover-video").clickEffectPics(),t(".rollover.material-click-effect, .post-rollover.material-click-effect, .rollover-video.material-click-effect").clickMaterialEffect(),t(".small-portfolio-icons").length>0&&(t(".links-container a").each(function(){var e=t(this);e.addClass("waves-effect")}),Waves.displayEffect()),t(".mobile-true .rollover-project").touchNewHover(),t.isFunction(t.fn.triggerHoverClick)&&t(".mobile-false .rollover-project:not(.rollover-active) .rollover-content, .buttons-on-img:not(.rollover-active) .rollover-content").triggerHoverClick(),t.isFunction(t.fn.triggerHoverClick)&&t(".mobile-false .rollover-project.forward-post").triggerHoverClick(),t.isFunction(t.fn.triggerHoverClick)&&t(".mobile-false .rollover-project.rollover-active, .mobile-false .buttons-on-img.rollover-active").followCurentLink(),t.isFunction(t.fn.triggerAlbumsClick)&&t(".albums .rollover-project, .albums .buttons-on-img, .archive .type-dt_gallery .buttons-on-img").triggerAlbumsClick(),t.isFunction(t.fn.touchforwardToPost)&&t(".mobile-true .rollover-project.forward-post").touchforwardToPost(),t.isFunction(t.fn.touchHoverImage)&&t(".mobile-true .buttons-on-img").touchHoverImage(),t(".hover-scale .rollover-project").scaleInHover(),t.isFunction(t.fn.hoverLinks)&&t(".links-container a").hoverLinks(),t(".style-material-design").length>0&&(t(".links-container a, .paginator .page-nav a").each(function(){var e=t(this);e.addClass("waves-effect")}),Waves.displayEffect())}};if(t("#content").on("click",".paginator.with-ajax a",function(e){if(e.preventDefault(),!t(e.target).hasClass("dots")&&!t(e.target).hasClass("disabled")){var i=t(this),o=i.closest(".paginator"),a=o.parent(),n=a.find(".wf-container.with-ajax, .articles-list.with-ajax").first(),s=t(".button-load-more"),r=s.find(".button-caption").text(),l=o.hasClass("paginator-more-button")?"more":"paginator",c="more"==l,d=p(a),u=c?d.paged+1:i.attr("data-page-num"),h=dtGlobals.isoPreloader;if(s.addClass("animate-load").find(".button-caption").text(dtLocal.moreButtonText.loading),h&&!t(".paginator-more-button").length&&dtGlobals.isoPreloader.fadeIn(50),c)t("html, body").scrollTop(y.scrollTop()+1);else{var f=a.find(".filter.with-ajax").first(),m=44;f.exists()||(f=n,m=50),t("html, body").animate({scrollTop:f.offset().top-t("#phantom").height()-m},400)}Se.lunch(t.extend({},d,{contentType:d.pageData.template,targetPage:u,sender:l,visibleItems:c?new Array:d.visibleItems,afterResponce:function(e){o.length>0?(e.paginationHtml?(o.html(t(e.paginationHtml).html()).show(),t(".filter-style-material").length>0&&(t(".paginator .page-links a").each(function(){var e=t(this);e.addClass("ripple")}),t(".page-links a.ripple").ripple(),t(".paginator .page-nav a").each(function(){var e=t(this);e.addClass("waves-effect")}),Waves.displayEffect())):o.html("").hide(),setTimeout(function(){t(".button-load-more").removeClass("animate-load").find(".button-caption").text(r)},200)):e.paginationHtml&&n.parent().append(t(e.paginationHtml)),o.find(".dots").on("click",function(){o.find("div:hidden").show().find("a").unwrap(),t(this).remove()}),n.attr("data-cur-page",e.currentPage),dtGlobals.isoPreloader.stop().fadeOut(300),dtGlobals.loadMoreButton=t(".button-load-more")}}))}}),t(".filter.with-ajax .filter-categories a, .filter.with-ajax .filter-extras a").on("click",function(e){e.preventDefault(),f();var i=t(this),o=i.closest(".filter"),a=o.parent(),n=a.find(".wf-container.with-ajax").first(),s=a.find(".paginator").first(),r=p(a),l=dtGlobals.isoPreloader;l&&dtGlobals.isoPreloader.fadeIn(50),Se.lunch(t.extend({},r,{contentType:r.pageData.template,targetPage:1,paged:1,sender:"filter",afterResponce:function(e){s.length>0?e.paginationHtml?s.html(t(e.paginationHtml).html()).show():s.html("").hide():e.paginationHtml&&n.parent().append(t(e.paginationHtml)),s.find(".dots").on("click",function(){s.find("div:hidden").show().find("a").unwrap(),t(this).remove()}),n.attr("data-cur-page",e.currentPage),dtGlobals.isoPreloader.stop().fadeOut(300),dtGlobals.loadMoreButton=t(".button-load-more")}}))}),"undefined"!=typeof dtLocal.themeSettings.lazyLoading&&dtLocal.themeSettings.lazyLoading){dtGlobals.loadMoreButton=t(".button-load-more");y.on("scroll",function(){m()}),m()}var fe=function(){var t={};return function(e,i,o){o||(o="Don't call this twice without a uniqueId"),t[o]&&clearTimeout(t[o]),t[o]=setTimeout(e,i)}}();y.resize(function(){t(".iso-item, .iso-grid .wf-cell").addClass("animate-position"),fe(function(){t(".iso-item, .iso-grid .wf-cell").removeClass("animate-position")},2500,"")});var _e=t(".dt-isotope"),ke=t(".iso-item:not(.shown):not(.is-visible)"),Te=t(".iso-grid .wf-cell:not(.shown):not(.is-visible)");(_e.exists()||ke.exists()||Te.exists())&&(setTimeout(function(){u()},100),y.on("scroll",function(){u()}));var Ie={timeouts:{},init:function(e){this.config={postsContainer:null,categoryContainer:null,paginatorContainer:null,curPage:1,curCategory:"*",postsPerPage:-1,items:[]},t.extend(this.config,e),this._setPostsPerPage(),this._setCategory(),this._setCurPage(),this._setItems(),this.setup()},setup:function(){t("a",this.config.paginatorContainer).on("click.dtPostsPaginationFilter",{self:this},this.paginationFilter),t("a",this.config.categoryContainer).on("click.dtPostsCategoryFilter",{self:this},this.categoryFilter),this._getActiveElement(this.config.paginatorContainer).trigger("click.dtPostsPaginationFilter",{onSetup:!0})},paginationFilter:function(e,i){e.preventDefault();var o=t(this),a=e.data.self;a._setAsActive(o),a._setCurPage(),i?a._filterPosts():a._scrollToTopOfContainer(a._filterPosts)},categoryFilter:function(e){e.preventDefault();var i=t(this),o=e.data.self;o._setAsActive(i),o._setCategory(),o._setAsActive(o.config.paginatorContainer.find("a").first()),o._setCurPage(),o._showPagination(),o._filterPosts()},_showPagination:function(){if(this.config.curCategory&&"*"!=this.config.curCategory){var e=this.config.postsContainer.find(this.config.curCategory).length,i=Math.ceil(e/this.config.postsPerPage);1==i?this.config.paginatorContainer.find("a").hide():this.config.paginatorContainer.find("a").each(function(e){var o=t(this);e+1>i?o.hide():o.show()})}else this.config.paginatorContainer.find("a").show()},_filterPosts:function(){var e=this;e.config.items.css("display","none");var i=0;e.config.items.filter(e.config.curCategory).each(function(){e._showOnCurPage(++i)&&t(this).css("display","block")})},_setPostsPerPage:function(){this.config.postsPerPage=parseInt(this.config.postsContainer.attr("data-posts-per-page"))},_setCategory:function(){this.config.curCategory=this._getActiveElement(this.config.categoryContainer).attr("data-filter")||this.config.curCategory},_setCurPage:function(t){this.config.curPage=t?t:this._getActiveElement(this.config.paginatorContainer).attr("data-page-num")},_setItems:function(){this.config.items=t(".wf-cell",this.config.postsContainer)},_showOnCurPage:function(t){return this.config.postsPerPage<=0||this.config.postsPerPage*(this.config.curPage-1) form').each(function(){
var $form=$(this);
wpcf7.initForm($form);
if(wpcf7.cached){
wpcf7.refill($form);
}});
});
wpcf7.getId=function(form){
return parseInt($('input[name="_wpcf7"]', form).val(), 10);
};
wpcf7.initForm=function(form){
var $form=$(form);
$form.submit(function(event){
if(typeof window.FormData!=='function'){
return;
}
wpcf7.submit($form);
event.preventDefault();
});
$('.wpcf7-submit', $form).after(' ');
wpcf7.toggleSubmit($form);
$form.on('click', '.wpcf7-acceptance', function(){
wpcf7.toggleSubmit($form);
});
$('.wpcf7-exclusive-checkbox', $form).on('click', 'input:checkbox', function(){
var name=$(this).attr('name');
$form.find('input:checkbox[name="' + name + '"]').not(this).prop('checked', false);
});
$('.wpcf7-list-item.has-free-text', $form).each(function(){
var $freetext=$(':input.wpcf7-free-text', this);
var $wrap=$(this).closest('.wpcf7-form-control');
if($(':checkbox, :radio', this).is(':checked')){
$freetext.prop('disabled', false);
}else{
$freetext.prop('disabled', true);
}
$wrap.on('change', ':checkbox, :radio', function(){
var $cb=$('.has-free-text', $wrap).find(':checkbox, :radio');
if($cb.is(':checked')){
$freetext.prop('disabled', false).focus();
}else{
$freetext.prop('disabled', true);
}});
});
if(! wpcf7.supportHtml5.placeholder){
$('[placeholder]', $form).each(function(){
$(this).val($(this).attr('placeholder'));
$(this).addClass('placeheld');
$(this).focus(function(){
if($(this).hasClass('placeheld')){
$(this).val('').removeClass('placeheld');
}});
$(this).blur(function(){
if(''===$(this).val()){
$(this).val($(this).attr('placeholder'));
$(this).addClass('placeheld');
}});
});
}
if(wpcf7.jqueryUi&&! wpcf7.supportHtml5.date){
$form.find('input.wpcf7-date[type="date"]').each(function(){
$(this).datepicker({
dateFormat: 'yy-mm-dd',
minDate: new Date($(this).attr('min')),
maxDate: new Date($(this).attr('max'))
});
});
}
if(wpcf7.jqueryUi&&! wpcf7.supportHtml5.number){
$form.find('input.wpcf7-number[type="number"]').each(function(){
$(this).spinner({
min: $(this).attr('min'),
max: $(this).attr('max'),
step: $(this).attr('step')
});
});
}
$('.wpcf7-character-count', $form).each(function(){
var $count=$(this);
var name=$count.attr('data-target-name');
var down=$count.hasClass('down');
var starting=parseInt($count.attr('data-starting-value'), 10);
var maximum=parseInt($count.attr('data-maximum-value'), 10);
var minimum=parseInt($count.attr('data-minimum-value'), 10);
var updateCount=function(target){
var $target=$(target);
var length=$target.val().length;
var count=down ? starting - length:length;
$count.attr('data-current-value', count);
$count.text(count);
if(maximum&&maximum < length){
$count.addClass('too-long');
}else{
$count.removeClass('too-long');
}
if(minimum&&length < minimum){
$count.addClass('too-short');
}else{
$count.removeClass('too-short');
}};
$(':input[name="' + name + '"]', $form).each(function(){
updateCount(this);
$(this).keyup(function(){
updateCount(this);
});
});
});
$form.on('change', '.wpcf7-validates-as-url', function(){
var val=$.trim($(this).val());
if(val
&& ! val.match(/^[a-z][a-z0-9.+-]*:/i)
&& -1!==val.indexOf('.')){
val=val.replace(/^\/+/, '');
val='http://' + val;
}
$(this).val(val);
});
};
wpcf7.submit=function(form){
if(typeof window.FormData!=='function'){
return;
}
var $form=$(form);
$('.ajax-loader', $form).addClass('is-active');
$('[placeholder].placeheld', $form).each(function(i, n){
$(n).val('');
});
wpcf7.clearResponse($form);
var formData=new FormData($form.get(0));
var detail={
id: $form.closest('div.wpcf7').attr('id'),
status: 'init',
inputs: [],
formData: formData
};
$.each($form.serializeArray(), function(i, field){
if('_wpcf7'==field.name){
detail.contactFormId=field.value;
}else if('_wpcf7_version'==field.name){
detail.pluginVersion=field.value;
}else if('_wpcf7_locale'==field.name){
detail.contactFormLocale=field.value;
}else if('_wpcf7_unit_tag'==field.name){
detail.unitTag=field.value;
}else if('_wpcf7_container_post'==field.name){
detail.containerPostId=field.value;
}else if(field.name.match(/^_wpcf7_\w+_free_text_/)){
var owner=field.name.replace(/^_wpcf7_\w+_free_text_/, '');
detail.inputs.push({
name: owner + '-free-text',
value: field.value
});
}else if(field.name.match(/^_/)){
}else{
detail.inputs.push(field);
}});
wpcf7.triggerEvent($form.closest('div.wpcf7'), 'beforesubmit', detail);
var ajaxSuccess=function(data, status, xhr, $form){
detail.id=$(data.into).attr('id');
detail.status=data.status;
detail.apiResponse=data;
var $message=$('.wpcf7-response-output', $form);
switch(data.status){
case 'validation_failed':
$.each(data.invalidFields, function(i, n){
$(n.into, $form).each(function(){
wpcf7.notValidTip(this, n.message);
$('.wpcf7-form-control', this).addClass('wpcf7-not-valid');
$('[aria-invalid]', this).attr('aria-invalid', 'true');
});
});
$message.addClass('wpcf7-validation-errors');
$form.addClass('invalid');
wpcf7.triggerEvent(data.into, 'invalid', detail);
break;
case 'acceptance_missing':
$message.addClass('wpcf7-acceptance-missing');
$form.addClass('unaccepted');
wpcf7.triggerEvent(data.into, 'unaccepted', detail);
break;
case 'spam':
$message.addClass('wpcf7-spam-blocked');
$form.addClass('spam');
$('[name="g-recaptcha-response"]', $form).each(function(){
if(''===$(this).val()){
var $recaptcha=$(this).closest('.wpcf7-form-control-wrap');
wpcf7.notValidTip($recaptcha, wpcf7.recaptcha.messages.empty);
}});
wpcf7.triggerEvent(data.into, 'spam', detail);
break;
case 'aborted':
$message.addClass('wpcf7-aborted');
$form.addClass('aborted');
wpcf7.triggerEvent(data.into, 'aborted', detail);
break;
case 'mail_sent':
$message.addClass('wpcf7-mail-sent-ok');
$form.addClass('sent');
wpcf7.triggerEvent(data.into, 'mailsent', detail);
break;
case 'mail_failed':
$message.addClass('wpcf7-mail-sent-ng');
$form.addClass('failed');
wpcf7.triggerEvent(data.into, 'mailfailed', detail);
break;
default:
var customStatusClass='custom-'
+ data.status.replace(/[^0-9a-z]+/i, '-');
$message.addClass('wpcf7-' + customStatusClass);
$form.addClass(customStatusClass);
}
wpcf7.refill($form, data);
wpcf7.triggerEvent(data.into, 'submit', detail);
if('mail_sent'==data.status){
$form.each(function(){
this.reset();
});
wpcf7.toggleSubmit($form);
}
$form.find('[placeholder].placeheld').each(function(i, n){
$(n).val($(n).attr('placeholder'));
});
$message.html('').append(data.message).slideDown('fast');
$message.attr('role', 'alert');
$('.screen-reader-response', $form.closest('.wpcf7')).each(function(){
var $response=$(this);
$response.html('').attr('role', '').append(data.message);
if(data.invalidFields){
var $invalids=$('');
$.each(data.invalidFields, function(i, n){
if(n.idref){
var $li=$(' ').append($(' ').attr('href', '#' + n.idref).append(n.message));
}else{
var $li=$(' ').append(n.message);
}
$invalids.append($li);
});
$response.append($invalids);
}
$response.attr('role', 'alert').focus();
});
};
$.ajax({
type: 'POST',
url: wpcf7.apiSettings.getRoute('/contact-forms/' + wpcf7.getId($form) + '/feedback'),
data: formData,
dataType: 'json',
processData: false,
contentType: false
}).done(function(data, status, xhr){
ajaxSuccess(data, status, xhr, $form);
$('.ajax-loader', $form).removeClass('is-active');
}).fail(function(xhr, status, error){
var $e=$('
').text(error.message);
$form.after($e);
});
};
wpcf7.triggerEvent=function(target, name, detail){
var $target=$(target);
var event=new CustomEvent('wpcf7' + name, {
bubbles: true,
detail: detail
});
$target.get(0).dispatchEvent(event);
$target.trigger('wpcf7:' + name, detail);
$target.trigger(name + '.wpcf7', detail);
};
wpcf7.toggleSubmit=function(form, state){
var $form=$(form);
var $submit=$('input:submit', $form);
if(typeof state!=='undefined'){
$submit.prop('disabled', ! state);
return;
}
if($form.hasClass('wpcf7-acceptance-as-validation')){
return;
}
$submit.prop('disabled', false);
$('.wpcf7-acceptance', $form).each(function(){
var $span=$(this);
var $input=$('input:checkbox', $span);
if(! $span.hasClass('optional')){
if($span.hasClass('invert')&&$input.is(':checked')
|| ! $span.hasClass('invert')&&! $input.is(':checked')){
$submit.prop('disabled', true);
return false;
}}
});
};
wpcf7.notValidTip=function(target, message){
var $target=$(target);
$('.wpcf7-not-valid-tip', $target).remove();
$(' ')
.text(message).appendTo($target);
if($target.is('.use-floating-validation-tip *')){
var fadeOut=function(target){
$(target).not(':hidden').animate({
opacity: 0
}, 'fast', function(){
$(this).css({ 'z-index': -100 });
});
};
$target.on('mouseover', '.wpcf7-not-valid-tip', function(){
fadeOut(this);
});
$target.on('focus', ':input', function(){
fadeOut($('.wpcf7-not-valid-tip', $target));
});
}};
wpcf7.refill=function(form, data){
var $form=$(form);
var refillCaptcha=function($form, items){
$.each(items, function(i, n){
$form.find(':input[name="' + i + '"]').val('');
$form.find('img.wpcf7-captcha-' + i).attr('src', n);
var match=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);
$form.find('input:hidden[name="_wpcf7_captcha_challenge_' + i + '"]').attr('value', match[ 1 ]);
});
};
var refillQuiz=function($form, items){
$.each(items, function(i, n){
$form.find(':input[name="' + i + '"]').val('');
$form.find(':input[name="' + i + '"]').siblings('span.wpcf7-quiz-label').text(n[ 0 ]);
$form.find('input:hidden[name="_wpcf7_quiz_answer_' + i + '"]').attr('value', n[ 1 ]);
});
};
if(typeof data==='undefined'){
$.ajax({
type: 'GET',
url: wpcf7.apiSettings.getRoute('/contact-forms/' + wpcf7.getId($form) + '/refill'),
beforeSend: function(xhr){
var nonce=$form.find(':input[name="_wpnonce"]').val();
if(nonce){
xhr.setRequestHeader('X-WP-Nonce', nonce);
}},
dataType: 'json'
}).done(function(data, status, xhr){
if(data.captcha){
refillCaptcha($form, data.captcha);
}
if(data.quiz){
refillQuiz($form, data.quiz);
}});
}else{
if(data.captcha){
refillCaptcha($form, data.captcha);
}
if(data.quiz){
refillQuiz($form, data.quiz);
}}
};
wpcf7.clearResponse=function(form){
var $form=$(form);
$form.removeClass('invalid spam sent failed');
$form.siblings('.screen-reader-response').html('').attr('role', '');
$('.wpcf7-not-valid-tip', $form).remove();
$('[aria-invalid]', $form).attr('aria-invalid', 'false');
$('.wpcf7-form-control', $form).removeClass('wpcf7-not-valid');
$('.wpcf7-response-output', $form)
.hide().empty().removeAttr('role')
.removeClass('wpcf7-mail-sent-ok wpcf7-mail-sent-ng wpcf7-validation-errors wpcf7-spam-blocked');
};
wpcf7.apiSettings.getRoute=function(path){
var url=wpcf7.apiSettings.root;
url=url.replace(wpcf7.apiSettings.namespace,
wpcf7.apiSettings.namespace + path);
return url;
};})(jQuery);
(function (){
if(typeof window.CustomEvent==="function") return false;
function CustomEvent(event, params){
params=params||{ bubbles: false, cancelable: false, detail: undefined };
var evt=document.createEvent('CustomEvent');
evt.initCustomEvent(event,
params.bubbles, params.cancelable, params.detail);
return evt;
}
CustomEvent.prototype=window.Event.prototype;
window.CustomEvent=CustomEvent;
})();
jQuery(document).ready(function(){
wpcf7_redirect_mailsent_handler();
});
function wpcf7_redirect_mailsent_handler(){
document.addEventListener('wpcf7mailsent', function(event){
form=wpcf7_redirect_forms [ event.detail.contactFormId ];
if(form.after_sent_script){
form.after_sent_script=htmlspecialchars_decode(form.after_sent_script);
eval(form.after_sent_script);
}
if(form.use_external_url&&form.external_url){
if(form.http_build_query){
http_query=jQuery.param(event.detail.inputs, true);
form.external_url=form.external_url + '?' + http_query;
}
if(! form.open_in_new_tab){
location.href=form.external_url;
}else{
window.open(form.external_url);
}}
else if(form.thankyou_page_url){
if(form.http_build_query){
http_query=jQuery.param(event.detail.inputs, true);
form.thankyou_page_url=form.thankyou_page_url + '?' + http_query;
}
if(! form.open_in_new_tab){
location.href=form.thankyou_page_url;
}else{
window.open(form.thankyou_page_url);
}}
}, false);
}
function htmlspecialchars_decode(string){
var map={
'&': '&',
'&': "&",
'<': '<',
'>': '>',
'"': '"',
''': "'",
'’': "’",
'‘': "‘",
'–': "–",
'—': "—",
'…': "…",
'”': '”'
};
return string.replace(/\&[\w\d\#]{2,5}\;/g, function(m){ return map[m]; });
};
jQuery(document).ready(function($){
$.fn.exists=function(){
if($(this).length > 0){
return true;
}else{
return false;
}}
$.fn.loaded=function(callback, jointCallback, ensureCallback){
var len=this.length;
if(len > 0){
return this.each(function(){
var el=this,
$el=$(el),
blank="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";
$el.on("load.dt", function(event){
$(this).off("load.dt");
if(typeof callback=="function"){
callback.call(this);
}
if(--len <=0&&(typeof jointCallback=="function")){
jointCallback.call(this);
}});
if(!el.complete||el.complete===undefined){
el.src=el.src;
}else{
$el.trigger("load.dt")
}});
}else if(ensureCallback){
if(typeof jointCallback=="function"){
jointCallback.call(this);
}
return this;
}};
var $body=$("body"),
$window=$(window),
$mainSlider=$('#main-slideshow'),
$3DSlider=$('.three-d-slider'),
adminH=$('#wpadminbar').height(),
header=$('.masthead:not(.side-header):not(.side-header-v-stroke)').height();
if($body.hasClass("transparent")){
var headerH=0;
}else if($body.hasClass("overlap")){
var headerH=($('.masthead:not(.side-header):not(.side-header-v-stroke)').height() + (parseInt($mainSlider.css("marginTop")) + parseInt($mainSlider.css("marginBottom"))));
}else{
var headerH=$('.masthead:not(.side-header):not(.side-header-v-stroke)').height();
}
'use strict';
$.HoverDir=function(options, element){
this.$el=$(element);
this._init(options);
};
$.HoverDir.defaults={
speed:300,
easing:'ease',
hoverDelay:0,
inverse:false
};
$.HoverDir.prototype={
_init:function(options){
this.options=$.extend(true, {}, $.HoverDir.defaults, options);
this.transitionProp='all ' + this.options.speed + 'ms ' + this.options.easing;
this.support=Modernizr.csstransitions;
this._loadEvents();
},
_loadEvents:function(){
var self=this;
this.$el.on('mouseenter.hoverdir, mouseleave.hoverdir', function(event){
var $el=$(this),
$hoverElem=$el.find('.rollover-content'),
direction=self._getDir($el, { x:event.pageX, y:event.pageY }),
styleCSS=self._getStyle(direction);
if(event.type==='mouseenter'){
$hoverElem.hide().css(styleCSS.from);
clearTimeout(self.tmhover);
self.tmhover=setTimeout(function(){
$hoverElem.show(0, function(){
var $el=$(this);
if(self.support){
$el.css('transition', self.transitionProp);
}
self._applyAnimation($el, styleCSS.to, self.options.speed);
});
}, self.options.hoverDelay);
}else{
if(self.support){
$hoverElem.css('transition', self.transitionProp);
}
clearTimeout(self.tmhover);
self._applyAnimation($hoverElem, styleCSS.from, self.options.speed);
}});
},
_getDir:function($el, coordinates){
var w=$el.width(),
h=$el.height(),
x=(coordinates.x - $el.offset().left -(w/2)) *(w > h ?(h/w):1),
y=(coordinates.y - $el.offset().top -(h/2)) *(h > w ?(w/h):1),
direction=Math.round(((( Math.atan2(y, x) * (180 / Math.PI)) + 180) / 90) + 3) % 4;
return direction;
},
_getStyle:function(direction){
var fromStyle, toStyle,
slideFromTop={ left:'0px', top:'-100%' },
slideFromBottom={ left:'0px', top:'100%' },
slideFromLeft={ left:'-100%', top:'0px' },
slideFromRight={ left:'100%', top:'0px' },
slideTop={ top:'0px' },
slideLeft={ left:'0px' };
switch(direction){
case 0:
fromStyle = !this.options.inverse ? slideFromTop:slideFromBottom;
toStyle=slideTop;
break;
case 1:
fromStyle = !this.options.inverse ? slideFromRight:slideFromLeft;
toStyle=slideLeft;
break;
case 2:
fromStyle = !this.options.inverse ? slideFromBottom:slideFromTop;
toStyle=slideTop;
break;
case 3:
fromStyle = !this.options.inverse ? slideFromLeft:slideFromRight;
toStyle=slideLeft;
break;
};
return { from:fromStyle, to:toStyle };},
_applyAnimation:function(el, styleCSS, speed){
$.fn.applyStyle=this.support ? $.fn.css:$.fn.animate;
el.stop().applyStyle(styleCSS, $.extend(true, [], { duration:speed + 'ms' }));
},
};
var logError=function(message){
if(window.console){
window.console.error(message);
}};
$.fn.hoverdir=function(options){
var instance=$.data(this, 'hoverdir');
if(typeof options==='string'){
var args=Array.prototype.slice.call(arguments, 1);
this.each(function(){
if(!instance){
logError("cannot call methods on hoverdir prior to initialization; " +
"attempted to call method '" + options + "'");
return;
}
if(!$.isFunction(instance[options])||options.charAt(0)==="_"){
logError("no such method '" + options + "' for hoverdir instance");
return;
}
instance[ options ].apply(instance, args);
});
}else{
this.each(function(){
if(instance){
instance._init();
}else{
instance=$.data(this, 'hoverdir', new $.HoverDir(options, this));
}});
}
return instance;
};
$('.mobile-false .hover-grid .rollover-project').each(function(){ $(this).hoverdir(); });
$('.mobile-false .hover-grid-reverse .rollover-project ').each(function(){ $(this).hoverdir({
inverse:true
});});
$.fn.hoverLinks=function(){
if($(".semitransparent-portfolio-icons").length > 0||$(".accent-portfolio-icons").length > 0){
return this.each(function(){
var $img=$(this);
if($img.hasClass("height-ready")){
return;
}
$(" ").appendTo($(this));
$img.on({
mouseenter: function (){
if(0===$(this).children("span").length){
var a=$(" ").appendTo($(this));
setTimeout(function (){
a.addClass("icon-hover")
}, 20)
} else $(this).children("span").addClass("icon-hover")
},
mouseleave: function (){
$(this).children("span").removeClass("icon-hover")
}});
$img.addClass("height-ready");
});
}};
$(".links-container a").hoverLinks();
$.fn.forwardToPost=function(){
return this.each(function(){
var $this=$(this);
if($this.hasClass("this-ready")){
return;
};
$this.on("click", function(){
if($this.parents(".ts-wrap").hasClass("ts-interceptClicks")) return;
window.location.href=$this.find("a").first().attr("href");
return false;
});
$this.addClass("this-ready");
});
};
$(".mobile-false .rollover-project.forward-post").forwardToPost();
$.fn.touchforwardToPost=function(){
return this.each(function(){
var $this=$(this);
if($this.hasClass("touch-hover-ready")){
return;
}
$body.on("touchend", function(e){
$(".mobile-true .rollover-content").removeClass("is-clicked");
$(".mobile-true .rollover-project").removeClass("is-clicked");
});
var $this=$(this).find(".rollover-content");
$this.on("touchstart", function(e){
origY=e.originalEvent.touches[0].pageY;
origX=e.originalEvent.touches[0].pageX;
});
$this.on("touchend", function(e){
var touchEX=e.originalEvent.changedTouches[0].pageX,
touchEY=e.originalEvent.changedTouches[0].pageY;
if(origY==touchEY||origX==touchEX){
if($this.hasClass("is-clicked")){
window.location.href=$this.prev("a").first().attr("href");
}else{
e.preventDefault();
$(".mobile-ture .rollover-content").removeClass("is-clicked");
$(".mobile-true .rollover-project").removeClass("is-clicked");
$this.addClass("is-clicked");
$this.parent(".rollover-project").addClass("is-clicked");
return false;
};};
});
$this.addClass("touch-hover-ready");
});
};
$(".mobile-true .rollover-project.forward-post").touchforwardToPost();
$.fn.followCurentLink=function(){
return this.each(function(){
var $this=$(this);
if($this.hasClass("this-ready")){
return;
}
var $thisSingleLink=$this.find(".links-container > a"),
$thisCategory=$this.find(".portfolio-categories a");
$this.on("click", function(){
if($this.parents(".ts-wrap").hasClass("ts-interceptClicks")) return;
$thisSingleLink.each(function(){
$thisTarget=$(this).attr("target") ? $(this).attr("target"):"_self";
});
if($thisSingleLink.hasClass("project-details")||$thisSingleLink.hasClass("link")||$thisSingleLink.hasClass("project-link")){
window.open($thisSingleLink.attr("href"), $thisTarget);
return false;
}else{
$thisSingleLink.trigger("click");
return false;
}});
$this.find($thisCategory).click(function(e){
e.stopPropagation();
window.location.href=$thisCategory.attr('href');
});
$this.addClass("this-ready");
});
};
$(".mobile-false .rollover-project.rollover-active, .mobile-false .buttons-on-img.rollover-active").followCurentLink();
$.fn.touchHoverImage=function(){
return this.each(function(){
var $img=$(this);
if($img.hasClass("hover-ready")){
return;
}
$body.on("touchend", function(e){
$(".mobile-true .rollover-content").removeClass("is-clicked");
});
var $this=$(this).find(".rollover-content"),
thisPar=$this.parents(".wf-cell");
$this.on("touchstart", function(e){
origY=e.originalEvent.touches[0].pageY;
origX=e.originalEvent.touches[0].pageX;
});
$this.on("touchend", function(e){
var touchEX=e.originalEvent.changedTouches[0].pageX,
touchEY=e.originalEvent.changedTouches[0].pageY;
if(origY==touchEY||origX==touchEX){
if($this.hasClass("is-clicked")){
}else{
$('.links-container > a', $this).on('touchend', function(e){
e.stopPropagation();
$this.addClass("is-clicked");
});
e.preventDefault();
$(".mobile-true .buttons-on-img .rollover-content").removeClass("is-clicked");
$this.addClass("is-clicked");
return false;
};};
});
$img.addClass("hover-ready");
});
};
$(".mobile-true .buttons-on-img").touchHoverImage();
$.fn.touchScrollerImage=function(){
return this.each(function(){
var $img=$(this);
if($img.hasClass("hover-ready")){
return;
}
$body.on("touchend", function(e){
$(".mobile-true .project-list-media").removeClass("is-clicked");
});
var $this=$(this),
$thisSingleLink=$this.find("a.rollover-click-target").first(),
$thisButtonLink=$this.find(".links-container");
$this.on("touchstart", function(e){
origY=e.originalEvent.touches[0].pageY;
origX=e.originalEvent.touches[0].pageX;
});
$this.on("touchend", function(e){
var touchEX=e.originalEvent.changedTouches[0].pageX,
touchEY=e.originalEvent.changedTouches[0].pageY;
if($this.parents(".ts-wrap").hasClass("ts-interceptClicks")) return;
if(origY==touchEY||origX==touchEX){
if($this.hasClass("is-clicked")){
}else{
if($thisSingleLink.length > 0){
$thisSingleLink.on("click", function(event){
event.stopPropagation();
if($(this).hasClass('go-to')){
window.location.href=$(this).attr('href');
}});
$thisSingleLink.trigger("click");
};
if($thisButtonLink.length > 0){
$thisButtonLink.find(" > a ").each(function(){
$(this).on("touchend", function(event){
event.stopPropagation();
$(this).trigger("click");
});
});
}
e.preventDefault();
$(".mobile-true .fs-entry").removeClass("is-clicked");
$this.addClass("is-clicked");
return false;
};};
});
$img.addClass("hover-ready");
});
};
$(".mobile-true .project-list-media").touchScrollerImage();
$.fn.touchHoverLinks=function(){
return this.each(function(){
var $img=$(this);
if($img.hasClass("hover-ready")){
return;
}
var $this=$(this);
$this.on("touchend", function(e){
if($this.parents(".ts-wrap").hasClass("ts-interceptClicks")) return;
if($this.hasClass("is-clicked")){
return;
}else{
if($this.hasClass("project-zoom")){
$this.trigger("click");
}else{
window.location.href=$this.attr("href");
return false;
};
$(".mobile-true .links-container > a").removeClass("is-clicked");
$this.addClass("is-clicked");
return false;
};});
$img.addClass("hover-ready");
});
};
$(".mobile-true .fs-entry .links-container > a").touchHoverLinks();
$.fn.triggerAlbumsClick=function(){
return this.each(function(){
var $this=$(this);
if($this.hasClass("this-ready")){
return;
}
var $thisSingleLink=$this.find("a.rollover-click-target, .dt-mfp-item").first(),
$thisCategory=$this.find(".portfolio-categories a");
if($thisSingleLink.length > 0){
$thisSingleLink.on("click", function(event){
event.preventDefault();
event.stopPropagation();
if($thisSingleLink.parents(".ts-wrap").hasClass("ts-interceptClicks")) return;
if($(this).hasClass('go-to')){
window.location.href=$(this).attr('href');
}});
var alreadyTriggered=false;
$this.on("click", function(){
if($this.parents(".ts-wrap").hasClass("ts-interceptClicks")) return;
if(!alreadyTriggered){
alreadyTriggered=true;
$thisSingleLink.trigger("click");
alreadyTriggered=false;
}
return false;
})
$this.find($thisCategory).click(function(e){
e.stopPropagation();
window.location.href=$thisCategory.attr('href');
});
}
$this.addClass("this-ready");
});
};
$(".dt-albums-template .rollover-project, .dt-albums-shortcode .rollover-project, .dt-albums-template .buttons-on-img, .dt-albums-shortcode .buttons-on-img, .archive .type-dt_gallery .buttons-on-img").triggerAlbumsClick();
$.fn.triggerHoverClick=function(){
return this.each(function(){
var $this=$(this);
if($this.hasClass("click-ready")){
return;
}
var $thisSingleLink=$this.prev("a:not(.dt-single-mfp-popup):not(.dt-mfp-item)").first(),
$thisCategory=$this.find(".portfolio-categories a"),
$thisLink=$this.find(".project-link"),
$thisTarget=$thisLink.attr("target") ? $thisLink.attr("target"):"_self",
$targetClick;
if($thisSingleLink.length > 0){
var alreadyTriggered=false;
$this.on("click", function(e){
if($this.parents(".ts-wrap").hasClass("ts-interceptClicks")) return;
if($(".semitransparent-portfolio-icons").length > 0||$(".accent-portfolio-icons").length > 0){
$targetClick=$(e.target).parent();
}else{
$targetClick=$(e.target);
}
if($targetClick.hasClass("project-zoom")){
$(this).find("a.dt-gallery-mfp-popup, .dt-trigger-first-mfp, .dt-single-mfp-popup, .dt-mfp-item").first().trigger('click');
}else{
if(!alreadyTriggered){
alreadyTriggered=true;
$thisSingleLink.trigger("click");
window.location.href=$thisSingleLink.attr('href');
alreadyTriggered=false;
}}
return false;
})
$this.find($thisLink).click(function(e){
e.stopPropagation();
e.preventDefault();
window.open($thisLink.attr("href"), $thisTarget);
});
$this.find($thisCategory).click(function(e){
e.stopPropagation();
window.location.href=$thisCategory.attr('href');
});
}
$this.addClass("click-ready");
});
};
$(".mobile-false .rollover-project:not(.rollover-active) .rollover-content, .buttons-on-img:not(.rollover-active) .rollover-content").triggerHoverClick();
$.fn.smartGrid=function(){
return this.each(function(){
var $this=$(this),
colNum=parseInt($this.attr("data-columns")),
colMinWidth=parseInt($this.attr("data-width")),
contWidth=$this.width();
for(; Math.floor(contWidth/colNum) < colMinWidth;){
colNum--;
if(colNum <=1) break;
}
$("> .wf-cell", $this).css({
width: (100/colNum).toFixed(6) + "%",
display: "inline-block"
});
});
};
var $benLogColl=$(".benefits-grid, .logos-grid");
$benLogColl.smartGrid();
$window.on("debouncedresize", function (){
$benLogColl.smartGrid();
});
var $photoScroller=$(".photo-scroller");
if($photoScroller.length > 0){
$.fn.photoSlider=function(){
var $el=$(this),
slides={},
thumbs="";
$elParent=$el.parents(".photo-scroller");
slides.$items=$el.children("figure");
slides.count=slides.$items.length;
slides.$items.each(function(i){
var $this=$(this),
$slide=$this.children().first().remove(),
src=$slide.attr("href"),
$thumbImg=$slide.children("img"),
thumbSrc=$thumbImg.attr("src"),
thumbDataSrc=$thumbImg.attr("data-src"),
thumbDataSrcset=$thumbImg.attr("data-srcset"),
thumbClass=$thumbImg.attr("class");
if($thumbImg.hasClass("lazy-load")){
var $layzrBg="layzr-bg";
}else{
var $layzrBg="";
}
$this.find("figcaption").addClass("caption-" + (i+1) + "");
var $thisCaptionClone=$(this).find("figcaption").clone(true);
$(".slide-caption").append($thisCaptionClone);
if(parseInt($elParent.attr("data-thumb-width")) > 0){
var thisWidth=parseInt($elParent.attr("data-thumb-width")),
thisHeight=parseInt($elParent.attr("data-thumb-height"));
$elParent.removeClass("proportional-thumbs");
}else{
var thisWidth=parseInt($thumbImg.attr("width")),
thisHeight=parseInt($thumbImg.attr("height"));
$elParent.addClass("proportional-thumbs");
};
thumbs=thumbs + '';
$this.prepend(' ');
});
$elParent.append('
')
$el.addClass("ts-cont");
$el.wrap('');
var $slider=$el.parents(".ts-wrap"),
windowW=$window.width(),
$sliderPar=$elParent,
$sliderAutoslide=($sliderPar.attr("data-autoslide")=="true") ? true:false,
$sliderAutoslideDelay=($sliderPar.attr("data-delay")&&parseInt($sliderPar.attr("data-delay")) > 999) ? parseInt($sliderPar.attr("data-delay")):5000,
$sliderLoop=($sliderPar.attr("data-loop")==="true") ? true:false,
$thumbHeight=$sliderPar.attr("data-thumb-height") ? parseInt($sliderPar.attr("data-thumb-height"))+10:80+10,
$slideOpacity=$sliderPar.attr("data-transparency") ? $sliderPar.attr("data-transparency"):0.5,
$adminBarH=$("#wpadminbar").length > 0? $("#wpadminbar").height():0;
var dataLsMin=$sliderPar.attr("data-ls-min") ? parseInt($sliderPar.attr("data-ls-min")):0,
dataLsMax=$sliderPar.attr("data-ls-max") ? parseInt($sliderPar.attr("data-ls-max")):100,
dataLsFillDt=$sliderPar.attr("data-ls-fill-dt") ? $sliderPar.attr("data-ls-fill-dt"):"fill",
dataLsFillMob=$sliderPar.attr("data-ls-fill-mob") ? $sliderPar.attr("data-ls-fill-mob"):"fit",
dataPtMin=$sliderPar.attr("data-pt-min") ? parseInt($sliderPar.attr("data-pt-min")):0,
dataPtMax=$sliderPar.attr("data-pt-max") ? parseInt($sliderPar.attr("data-pt-max")):100,
dataPtFillDt=$sliderPar.attr("data-pt-fill-dt") ? $sliderPar.attr("data-pt-fill-dt"):"fill",
dataPtFillMob=$sliderPar.attr("data-pt-fill-mob") ? $sliderPar.attr("data-pt-fill-mob"):"fit",
dataSidePaddings=$sliderPar.attr("data-padding-side") ? parseInt($sliderPar.attr("data-padding-side")):0;
if(dataLsMax <=0) dataLsMax=100;
if(dataPtMax <=0) dataPtMax=100;
if(dataLsMax < dataLsMax) dataLsMax=dataLsMax;
if(dataPtMax < dataPtMax) dataPtMax=dataPtMax;
$slider.addClass("ts-ls-"+dataLsFillDt).addClass("ts-ls-mob-"+dataLsFillMob);
$slider.addClass("ts-pt-"+dataPtFillDt).addClass("ts-pt-mob-"+dataPtFillMob);
$slider.find(".ts-slide-img").css({
"opacity": $slideOpacity
});
$slider.find(".video-icon").css({
"opacity": $slideOpacity
});
var $slideTopPadding=($sliderPar.attr("data-padding-top")&&windowW > 760) ? $sliderPar.attr("data-padding-top"):0,
$slideBottomPadding=($sliderPar.attr("data-padding-bottom")&&windowW > 760) ? $sliderPar.attr("data-padding-bottom"):0;
var $sliderVP=$slider.find(".ts-viewport");
$sliderVP.css({
"margin-top": $slideTopPadding+"px",
"margin-bottom": $slideBottomPadding+"px"
});
$window.on("debouncedresize", function(){
if($sliderPar.attr("data-padding-top")&&$window.width() > 760){
$slideTopPadding=$sliderPar.attr("data-padding-top");
}else{
$slideTopPadding=0;
};
if($sliderPar.attr("data-padding-bottom")&&$window.width() > 760){
$slideBottomPadding=$sliderPar.attr("data-padding-bottom");
}else{
$slideBottomPadding=0;
};
if($window.width() > 760){
$sliderVP.css({
"margin-top": $slideTopPadding+"px",
"margin-bottom": $slideBottomPadding+"px"
});
}else{
$sliderVP.css({
"margin-top": 0+"px",
"margin-bottom": 0+"px"
});
};});
var $sliderData=$slider.thePhotoSlider({
mode: {
type: "centered",
lsMinW: dataLsMin,
lsMaxW: dataLsMax,
ptMinW: dataPtMin,
ptMaxW: dataPtMax,
},
height: function(){
var $windowH=$window.height(),
$adminBarH=$("#wpadminbar").height();
if($(".mixed-header").length > 0){
var $headerH=$(".mixed-header").height();
}else{
var $headerH=$(".masthead").height();
}
if($body.hasClass("transparent")||$slider.parents(".photo-scroller").hasClass("full-screen")){
if(window.innerWidth < dtLocal.themeSettings.mobileHeader.secondSwitchPoint){
return ($windowH - $slideTopPadding - $slideBottomPadding - $headerH - $adminBarH);
}else{
return ($windowH - $slideTopPadding - $slideBottomPadding - $adminBarH);
};}else if($(".mixed-header").length > 0||$slider.parents(".photo-scroller").hasClass("full-screen")){
if(window.innerWidth < dtLocal.themeSettings.mobileHeader.firstSwitchPoint){
return ($windowH - $slideTopPadding - $slideBottomPadding - $headerH - $adminBarH);
}else{
if($(".side-header-h-stroke").length > 0){
return ($windowH - $slideTopPadding - $slideBottomPadding - $headerH - $adminBarH);
}else{
return ($windowH - $slideTopPadding - $slideBottomPadding - $adminBarH);
}};}else if($(".side-header").length > 0||$slider.parents(".photo-scroller").hasClass("full-screen")){
if(window.innerWidth < dtLocal.themeSettings.mobileHeader.firstSwitchPoint){
return ($windowH - $slideTopPadding - $slideBottomPadding - $headerH - $adminBarH);
}else{
return ($windowH - $slideTopPadding - $slideBottomPadding - $adminBarH);
};}else{
if(window.innerWidth < dtLocal.themeSettings.mobileHeader.firstSwitchPoint){
return ($windowH - $slideTopPadding - $slideBottomPadding - $headerH - $adminBarH);
}else{
return ($windowH - $slideTopPadding - $slideBottomPadding - $headerH - $adminBarH);
};};
},
sidePaddings: dataSidePaddings,
autoPlay: {
enabled: $sliderAutoslide,
delay: $sliderAutoslideDelay,
loop: $sliderLoop
}}).data("thePhotoSlider");
var $thumbsScroller=$('');
$slider.after($thumbsScroller);
var $thumbsScrollerData=$thumbsScroller.thePhotoSlider({
mode: {
type: "scroller"
},
height: $thumbHeight
}).data("thePhotoSlider");
$(".prev", $this_par).click(function(){
if(!$sliderData.noSlide) $sliderData.slidePrev();
});
$(".next", $this_par).click(function(){
if(!$sliderData.noSlide) $sliderData.slideNext();
});
$sliderData.ev.on("updateNav sliderReady", function(){
if($sliderData.lockRight){
$(".next", $elParent).addClass("disabled");
}else{
$(".next", $elParent).removeClass("disabled");
};
if($sliderData.lockLeft){
$(".prev", $elParent).addClass("disabled");
}else{
$(".prev", $elParent).removeClass("disabled");
};});
window.addEventListener("keydown", checkKeyPressed, false);
function checkKeyPressed(e){
if(e.keyCode=="37"){
if(!$sliderData.noSlide) $sliderData.slidePrev();
}else if(e.keyCode=="39"){
if(!$sliderData.noSlide) $sliderData.slideNext();
}}
$sliderData.ev.on("sliderReady beforeTransition", function(){
$sliderData.slides.$items.removeClass("act");
$sliderData.slides.$items.eq($sliderData.currSlide).addClass("act");
$thumbsScrollerData.slides.$items.removeClass("act");
$thumbsScrollerData.slides.$items.eq($sliderData.currSlide).addClass("act");
if($sliderData.slides.$items.eq($sliderData.currSlide).hasClass("ts-video")){
$sliderData.slides.$items.parents(".ts-wrap ").addClass("hide-slider-overlay");
}else if($sliderData.slides.$items.eq($sliderData.currSlide).find(".ps-link").length > 0){
$sliderData.slides.$items.parents(".ts-wrap ").addClass("hide-slider-overlay");
}else{
$sliderData.slides.$items.parents(".ts-wrap ").removeClass("hide-slider-overlay");
};
var actCaption=$sliderData.slides.$items.eq($sliderData.currSlide).find("figcaption").attr("class");
$('.slide-caption > figcaption').removeClass("actCaption");
$('.slide-caption > .'+actCaption).addClass("actCaption");
});
$sliderData.ev.on("afterTransition", function(){
var viewportLeft=-($thumbsScrollerData._unifiedX()),
viewportRight=viewportLeft + $thumbsScrollerData.wrap.width,
targetLeft=-$thumbsScrollerData.slides.position[$sliderData.currSlide],
targetRight=targetLeft + $thumbsScrollerData.slides.width[$sliderData.currSlide];
targetLeft=targetLeft - 50;
targetRight=targetRight + 50;
if(targetLeft < viewportLeft){
for (i=$thumbsScrollerData.currSlide; i >=0; i--){
targetLeft=targetLeft + 50;
targetRight=targetRight - 50;
var tempViewportLeft=-$thumbsScrollerData.slides.position[i],
tempViewportRight=tempViewportLeft + $thumbsScrollerData.wrap.width;
if(targetRight > tempViewportRight){
$thumbsScrollerData.slideTo(i+1);
break;
}
else if(i===0){
$thumbsScrollerData.slideTo(0);
}}
}
else if(targetRight > viewportRight){
$thumbsScrollerData.slideTo($sliderData.currSlide);
};});
$thumbsScroller.addClass("scroller-thumbnails");
$thumbsScrollerData.slides.$items.each(function(i){
$(this).on("click", function(event){
var $this=$(this);
if($this.parents(".ts-wrap").hasClass("ts-interceptClicks")) return;
$sliderData.slideTo(i);
});
});
$(".scroller-thumbnails").layzrInitialisation();
$sliderData.slides.$items.each(function(i){
$(this).on("click", function(event){
var $this=$(this);
if($this.parents(".ts-wrap").hasClass("ts-interceptClicks")) return;
$sliderData.slideTo(i);
});
});
var $this_par=$slider.parents(".photo-scroller");
if($sliderData.st.autoPlay.enabled){
$(".auto-play-btn", $this_par).addClass("paused");
}
$(".auto-play-btn", $this_par).on("click", function(e){
e.preventDefault();
var $this=$(this);
if($this.hasClass("paused")){
$this.removeClass("paused");
if(!$sliderData.noSlide) $sliderData.pause();
$sliderData.st.autoPlay.enabled=false;
}else{
$this.addClass("paused");
if(!$sliderData.noSlide) $sliderData.play();
$sliderData.st.autoPlay.enabled=true;
}});
};
$(".photoSlider").photoSlider();
$(".photoSlider").parents(".photo-scroller").css("visibility", "visible");
function launchFullscreen(element){
if(element.requestFullscreen){
element.requestFullscreen();
}else if(element.mozRequestFullScreen){
element.mozRequestFullScreen();
}else if(element.webkitRequestFullscreen){
element.webkitRequestFullscreen();
}else if(element.msRequestFullscreen){
element.msRequestFullscreen();
}}
function exitFullscreen(){
if(document.exitFullscreen){
document.exitFullscreen();
}else if(document.mozCancelFullScreen){
document.mozCancelFullScreen();
}else if(document.webkitExitFullscreen){
document.webkitExitFullscreen();
}};
if(!dtGlobals.isWindowsPhone){
$(".full-screen-btn").each(function(){
var $this=$(this),
$thisParent=$this.parents(".photo-scroller");
document.addEventListener("fullscreenchange", function (){
if(!document.fullscreen){
$this.removeClass("act");
$thisParent.removeClass("full-screen");
$("body, html").css("overflow", "");
}}, false);
document.addEventListener("mozfullscreenchange", function (){
if(!document.mozFullScreen){
$this.removeClass("act");
$thisParent.removeClass("full-screen");
$("body, html").css("overflow", "");
}}, false);
document.addEventListener("webkitfullscreenchange", function (){
if(!document.webkitIsFullScreen){
$this.removeClass("act");
$thisParent.removeClass("full-screen");
$("body, html").css("overflow", "");
var scroller=$frame.data("thePhotoSlider");
if(typeof scroller!="undefined"){
scroller.update();
};}}, false);
})
$(".full-screen-btn").on("click", function(e){
e.preventDefault();
var $this=$(this),
$thisParent=$this.parents(".photo-scroller"),
$frame=$thisParent.find(".ts-wrap"),
$thumbs=$thisParent.find(".scroller-thumbnails").data("thePhotoSlider"),
$scroller=$frame.data("thePhotoSlider");
$this.parents(".photo-scroller").find("figure").animate({"opacity": 0},150);
if($this.hasClass("act")){
$this.removeClass("act");
exitFullscreen();
$thisParent.removeClass("full-screen");
setTimeout(function(){
$this.parents(".photo-scroller").find("figure").delay(600).animate({"opacity": 1},300)
}, 300);
}else{
$this.addClass("act");
$thisParent.addClass("full-screen");
launchFullscreen(document.documentElement);
$("body, html").css("overflow", "hidden");
setTimeout(function(){
$this.parents(".photo-scroller").find("figure").delay(600).animate({"opacity": 1},300)
}, 300)
}
var scroller=$frame.data("thePhotoSlider");
if(typeof scroller!="undefined"){
scroller.update();
};});
}
$photoScroller.each(function(){
var $this=$(this);
$(".btn-cntr, .slide-caption", $this).css({
"bottom": parseInt($this.attr("data-thumb-height")) + 15
});
if($this.hasClass("hide-thumbs")){
$this.find(".hide-thumb-btn").addClass("act");
$(".scroller-thumbnails", $this).css({
"bottom": -(parseInt($this.attr("data-thumb-height")) +20)
});
$(".btn-cntr, .slide-caption", $this).css({
"bottom": 5 + "px"
});
}});
$(".hide-thumb-btn").on("click", function(e){
e.preventDefault();
var $this=$(this),
$thisParent=$this.parents(".photo-scroller");
if($this.hasClass("act")){
$this.removeClass("act");
$thisParent.removeClass("hide-thumbs");
$(".scroller-thumbnails", $thisParent).css({
"bottom": 0
});
$(".btn-cntr, .slide-caption", $thisParent).css({
"bottom": parseInt($thisParent.attr("data-thumb-height")) + 15
});
}else{
$this.addClass("act");
$thisParent.addClass("hide-thumbs");
$(".scroller-thumbnails", $thisParent).css({
"bottom": -(parseInt($thisParent.attr("data-thumb-height")) +20)
});
$(".btn-cntr, .slide-caption", $thisParent).css({
"bottom": 5 + "px"
});
}});
};
if($(".rsHomePorthole").exists()){
var portholeSlider={};
portholeSlider.container=$("#main-slideshow");
portholeSlider.hendheld=$window.width() < 740&&dtGlobals.isMobile ? true:false;
$("#main-slideshow-content").appendTo(portholeSlider.container);
$.fn.portholeScroller=function(){
var $el=$(this),
slides={},
thumbs="";
slides.$items=$el.children("li"),
slides.count=slides.$items.length;
slides.$items.each(function(i){
var $this=$(this),
$slide=$this,
$thumbImg=$slide.children("img"),
thumbSrc=$thumbImg.attr("data-rstmb"),
thumbDataSrc=$thumbImg.attr("data-src"),
thumbDataSrcset=$thumbImg.attr("data-srcset"),
thumbClass=$thumbImg.attr("class");
if($thumbImg.hasClass("lazy-load")){
var $layzrBg="layzr-bg";
}else{
var $layzrBg="";
}
thumbs=thumbs + ' ';
});
$el.addClass("ts-cont");
$el.wrap('');
var $slider=$el.parents(".ts-wrap"),
$this_par=$el.parents("#main-slideshow"),
windowW=$window.width(),
paddings=$this_par.attr("data-padding-side") ? parseInt($this_par.attr("data-padding-side")):0,
$sliderAutoslideEnable=('true'!=$this_par.attr("data-paused")&&typeof $this_par.attr("data-autoslide")!="undefined"&&!($window.width() < 740&&dtGlobals.isMobile)) ? true:false,
$sliderAutoslideDelay=$this_par.attr("data-autoslide")&&parseInt($this_par.attr("data-autoslide")) > 999 ? parseInt($this_par.attr("data-autoslide")):5000,
$sliderLoop=(typeof $this_par.attr("data-autoslide")!="undefined") ? true:false,
$sliderWidth=$this_par.attr("data-width") ? parseInt($this_par.attr("data-width")):800,
$sliderHight=$this_par.attr("data-height") ? parseInt($this_par.attr("data-height")):400,
imgMode=$this_par.attr("data-scale") ? $this_par.attr("data-scale"):"none";
var $sliderData=$slider.thePhotoSlider({
mode: {
type: "slider"
},
height: $sliderHight,
width: $sliderWidth,
resizeImg: true,
imageScaleMode: imgMode,
imageAlignCenter:true,
autoPlay: {
enabled: $sliderAutoslideEnable,
delay: $sliderAutoslideDelay,
loop: $sliderLoop
}}).data("thePhotoSlider");
var $thumbsScroller=$('');
$slider.append($thumbsScroller);
var $psThumb=$(".ps-thumb-img ");
$psThumb.each(function(i){
$(this).on("click", function(event){
var $this=$(this);
$sliderData.slideTo(i);
});
});
$(".psThumbsContainer").after('');
$progressWrap=$(".psThumbsContainer").next();
$progressHtml='';
if($sliderData.st.autoPlay.enabled){
if($progressWrap.find(".progress-mask").length < 1){
$progressWrap.prepend($progressHtml);
}}
$sliderData.ev.on("autoPlayPlay", function(){
if($progressWrap.find(".progress-mask").length < 1){
$progressWrap.prepend($progressHtml);
}
$progressWrap.removeClass("paused");
});
$sliderData.ev.on("autoPlayPause", function(){
$progressWrap.find(".progress-mask").remove();
if(!$sliderAutoslideEnable){
$progressWrap.addClass("paused");
}});
$sliderData.ev.on("sliderReady beforeTransition", function(){
var newPos=-$sliderData.currSlide * 40;
if(newPos==0){
newPos=20;
}
$psThumb.removeClass("psNavSelected psNavPrev psNavNext psNavVis");
$psThumb.eq($sliderData.currSlide).addClass("psNavSelected");
$psThumb.eq($sliderData.currSlide).prev().addClass("psNavPrev");
$psThumb.eq($sliderData.currSlide).next().addClass("psNavNext");
$psThumb.eq($sliderData.currSlide).prev().prev().addClass("psNavVis");
$psThumb.eq($sliderData.currSlide).next().next().addClass("psNavVis");
$(".psThumbsContainer").css({ transform:'translateY(' + newPos + 'px)' });
})
$sliderData.ev.on("sliderReady beforeTransition", function(){
$progressWrap.addClass("blurred");
});
$sliderData.ev.on("sliderReady afterTransition", function(){
$progressWrap.removeClass("blurred");
});
var dtResizeTimeout;
$window.on("resize", function(){
clearTimeout(dtResizeTimeout);
dtResizeTimeout=setTimeout(function(){
$progressWrap.removeClass("blurred");
}, 200);
});
$('
').insertAfter($el);
$(".leftArrow", $slider).click(function(){
if(!$sliderData.noSlide) $sliderData.slidePrev();
});
$(".rightArrow", $slider).click(function(){
if(!$sliderData.noSlide) $sliderData.slideNext();
});
$sliderData.ev.on("updateNav sliderReady", function(){
if($sliderData.lockRight){
$(".rightArrow", $slider).addClass("disabled");
}else{
$(".rightArrow", $slider).removeClass("disabled");
};
if($sliderData.lockLeft){
$(".leftArrow", $slider).addClass("disabled");
}else{
$(".leftArrow", $slider).removeClass("disabled");
};
if($sliderData.lockRight&&$sliderData.lockLeft){
$this_par.addClass("hide-arrows");
};});
if('true'===$this_par.attr("data-paused")){
$progressWrap.addClass("paused");
};
$progressWrap.on("click", function(e){
e.preventDefault();
var $this=$(this);
if($this.hasClass("paused")){
$this.removeClass("paused");
if($progressWrap.find(".progress-mask").length < 1){
$progressWrap.prepend($progressHtml);
}
if(!$sliderData.noSlide) $sliderData.play();
$sliderData.st.autoPlay.enabled=true;
}else{
$this.addClass("paused");
if(!$sliderData.noSlide) $sliderData.pause();
$sliderData.st.autoPlay.enabled=false;
$progressWrap.find(".progress-mask").remove();
}});
};
$(".rsHomePorthole").each(function(){
$(this).portholeScroller();
});
};});
(function($){
$.fn.collagePlus=function(options){
var defaults={
'targetHeight':400,
'albumWidth':this.width(),
'padding':parseFloat(this.css('padding-left')),
'images':this.children(),
'fadeSpeed':"fast",
'display':"inline-block",
'effect':'default',
'direction':'vertical',
'allowPartialLastRow':false
};
var settings=$.extend({}, defaults, options);
return this.each(function(){
var row=0,
elements=[],
rownum=1;
settings.images.each(function(index){
var $this=$(this),
$img=($this.is("img")) ? $this:$(this).find("img").not(".blur-effect").first();
if($img.attr("width")!='undefined'&&$img.attr("height")!='undefined'){
var w=(typeof $img.data("width")!='undefined') ? $img.data("width"):$img.attr("width"),
h=(typeof $img.data("height")!='undefined') ? $img.data("height"):$img.attr("height");
}else{
var w=(typeof $img.data("width")!='undefined') ? $img.data("width"):$img.width(),
h=(typeof $img.data("height")!='undefined') ? $img.data("height"):$img.height();
}
var imgParams=getImgProperty($img);
$img.data("width", w);
$img.data("height", h);
var nw=Math.ceil(w/h*settings.targetHeight),
nh=Math.ceil(settings.targetHeight);
elements.push([this, nw, nh, imgParams['w'], imgParams['h']]);
row +=nw + imgParams['w'] + settings.padding;
if(row > settings.albumWidth&&elements.length!=0){
resizeRow(elements, row, settings, rownum);
delete row;
delete elements;
row=0;
elements=[];
rownum +=1;
}
if(settings.images.length-1==index&&elements.length!=0){
resizeRow(elements, row, settings, rownum);
delete row;
delete elements;
row=0;
elements=[];
rownum +=1;
}}
);
$(this).trigger("jgDone");
});
function resizeRow(obj, row, settings, rownum){
var imageExtras=(settings.padding * obj.length) + (obj.length * obj[0][3]),
albumWidthAdjusted=settings.albumWidth - imageExtras,
overPercent=albumWidthAdjusted / (row - imageExtras),
trackWidth=imageExtras,
lastRow=(row < settings.albumWidth ? true:false);
for (var i=0; i < obj.length; i++){
var $obj=$(obj[i][0]),
fw=Math.floor(obj[i][1] * overPercent),
fh=Math.floor(obj[i][2] * overPercent),
isNotLast = !!((i < obj.length - 1));
if(settings.allowPartialLastRow===true&&lastRow===true){
fw=obj[i][1];
fh=obj[i][2];
}
trackWidth +=fw;
var $img=($obj.is("img")) ? $obj:$obj.find("img").not(".blur-effect").first();
$img.width(fw);
if(!$obj.is("img")){
$obj.width(fw + obj[i][3]);
}
$img.height(fh);
if(!$obj.is("img")){
$obj.height(fh + obj[i][4]);
}
if(settings.allowPartialLastRow===false&&lastRow===true){
applyModifications($obj, isNotLast, "none");
}else{
applyModifications($obj, isNotLast, settings.display);
};
/*
$img
.load(function(target){
return function(){
if(settings.effect=='default'){
target.animate({opacity: '1'},{duration: settings.fadeSpeed});
}else{
if(settings.direction=='vertical'){
var sequence=(rownum <=10 ? rownum:10);
}else{
var sequence=(i <=9 ? i+1:10);
}
target.addClass(settings.effect);
target.addClass("effect-duration-" + sequence);
}}
}($obj))
*/
/*
.each(function(){
if(this.complete) $(this).trigger('load');
});
*/
}}
function applyModifications($obj, isNotLast, settingsDisplay){
var css={
'display':settingsDisplay,
'vertical-align':"bottom",
'overflow':"hidden"
};
return $obj.css(css);
}
function getImgProperty(img){
$img=$(img);
var params=new Array();
params["w"]=(parseFloat($img.css("border-left-width")) + parseFloat($img.css("border-right-width")));
params["h"]=(parseFloat($img.css("border-top-width")) + parseFloat($img.css("border-bottom-width")));
return params;
}};
var jgCounter=0;
$(".jg-container").each(function(){
jgCounter++;
var $jgContainer=$(this),
$jgItemsPadding=$jgContainer.attr("data-padding"),
$jgItems=$jgContainer.find(".wf-cell");
$jgContainer.attr("id", "jg-container-" + jgCounter + "");
$("").insertAfter($jgContainer);
$jgContainer.on("jgDone", function(){
var layzrJGrid=new Layzr({
selector: '.jgrid-lazy-load',
attr: 'data-src',
attrSrcSet: 'data-srcset',
retinaAttr: 'data-src-retina',
threshold: 0,
before: function(){
this.setAttribute("sizes", this.width+"px");
},
callback: function(){
this.classList.add("jgrid-layzr-loaded");
var $this=$(this);
$this.one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(e){
setTimeout(function(){
$this.parent().removeClass("layzr-bg");
}, 200)
});
}});
});
});
$.fn.collage=function(args){
return this.each(function(){
var $this=$(this);
var $jgContainer=$(this),
$jgItemsPadding=$jgContainer.attr("data-padding"),
$jgItems=$jgContainer.find(".wf-cell");
var jgPadding=parseFloat($jgItems.first().css('padding-left')) + parseFloat($jgItems.first().css('padding-right')),
jgTargetHeight=parseInt($jgContainer.attr("data-target-height")),
jdPartRow=true;
if($jgContainer.attr("data-part-row")=="false"){
jdPartRow=false;
};
if($jgContainer.parent(".full-width-wrap").length){
var jgAlbumWidth=$jgContainer.parents(".full-width-wrap").width() - parseInt($jgItemsPadding)*2;
}else{
var jgAlbumWidth=$jgContainer.parent().width() + parseInt($jgItemsPadding)*2;
}
var $jgCont={
'albumWidth':jgAlbumWidth,
'targetHeight':jgTargetHeight,
'padding':jgPadding,
'allowPartialLastRow':jdPartRow,
'fadeSpeed':2000,
'effect':'effect-1',
'direction':'vertical'
};
$.extend($jgCont, args);
dtGlobals.jGrid=$jgCont;
$jgContainer.collagePlus($jgCont);
$jgContainer.css({
'width': jgAlbumWidth
});
});
};
$(window).on("debouncedresize", function(){
$(".jg-container").not('.jgrid-shortcode').collage();
$(".jgrid-shortcode").each(function(){
var $this=$(this);
var $visibleItems=$this.data('visibleItems');
if($visibleItems){
$this.collage({ 'images': $visibleItems });
}else{
$this.collage();
}});
}).trigger("debouncedresize");
})(jQuery);
!function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document);
(function(h){"function"===typeof define&&define.amd?define(["jquery"],function(E){return h(E,window,document)}):"object"===typeof exports?module.exports=function(E,G){E||(E=window);G||(G="undefined"!==typeof window?require("jquery"):require("jquery")(E));return h(G,E,E.document)}:h(jQuery,window,document)})(function(h,E,G,k){function X(a){var b,c,d={};h.each(a,function(e){if((b=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(b[1]+" "))c=e.replace(b[0],b[2].toLowerCase()),
d[c]=e,"o"===b[1]&&X(a[e])});a._hungarianMap=d}function I(a,b,c){a._hungarianMap||X(a);var d;h.each(b,function(e){d=a._hungarianMap[e];if(d!==k&&(c||b[d]===k))"o"===d.charAt(0)?(b[d]||(b[d]={}),h.extend(!0,b[d],b[e]),I(a[d],b[d],c)):b[d]=b[e]})}function Ca(a){var b=m.defaults.oLanguage,c=a.sZeroRecords;!a.sEmptyTable&&(c&&"No data available in table"===b.sEmptyTable)&&F(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&(c&&"Loading..."===b.sLoadingRecords)&&F(a,a,"sZeroRecords","sLoadingRecords");
a.sInfoThousands&&(a.sThousands=a.sInfoThousands);(a=a.sDecimal)&&cb(a)}function db(a){A(a,"ordering","bSort");A(a,"orderMulti","bSortMulti");A(a,"orderClasses","bSortClasses");A(a,"orderCellsTop","bSortCellsTop");A(a,"order","aaSorting");A(a,"orderFixed","aaSortingFixed");A(a,"paging","bPaginate");A(a,"pagingType","sPaginationType");A(a,"pageLength","iDisplayLength");A(a,"searching","bFilter");"boolean"===typeof a.sScrollX&&(a.sScrollX=a.sScrollX?"100%":"");"boolean"===typeof a.scrollX&&(a.scrollX=
a.scrollX?"100%":"");if(a=a.aoSearchCols)for(var b=0,c=a.length;b").css({position:"fixed",top:0,left:-1*h(E).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(h("
").css({position:"absolute",
top:1,left:1,width:100,overflow:"scroll"}).append(h("
").css({width:"100%",height:10}))).appendTo("body"),d=c.children(),e=d.children();b.barWidth=d[0].offsetWidth-d[0].clientWidth;b.bScrollOversize=100===e[0].offsetWidth&&100!==d[0].clientWidth;b.bScrollbarLeft=1!==Math.round(e.offset().left);b.bBounding=c[0].getBoundingClientRect().width?!0:!1;c.remove()}h.extend(a.oBrowser,m.__browser);a.oScroll.iBarWidth=m.__browser.barWidth}function gb(a,b,c,d,e,f){var g,j=!1;c!==k&&(g=c,j=!0);for(;d!==e;)a.hasOwnProperty(d)&&(g=j?b(g,a[d],d,a):a[d],j=!0,d+=f);return g}function Da(a,b){var c=m.defaults.column,d=a.aoColumns.length,c=h.extend({},m.models.oColumn,c,{nTh:b?b:G.createElement("th"),sTitle:c.sTitle?c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[d],mData:c.mData?c.mData:d,idx:d});a.aoColumns.push(c);c=a.aoPreSearchCols;c[d]=h.extend({},m.models.oSearch,c[d]);ja(a,d,h(b).data())}function ja(a,b,c){var b=a.aoColumns[b],d=a.oClasses,e=h(b.nTh);if(!b.sWidthOrig){b.sWidthOrig=
e.attr("width")||null;var f=(e.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);f&&(b.sWidthOrig=f[1])}c!==k&&null!==c&&(eb(c),I(m.defaults.column,c),c.mDataProp!==k&&!c.mData&&(c.mData=c.mDataProp),c.sType&&(b._sManualType=c.sType),c.className&&!c.sClass&&(c.sClass=c.className),c.sClass&&e.addClass(c.sClass),h.extend(b,c),F(b,c,"sWidth","sWidthOrig"),c.iDataSort!==k&&(b.aDataSort=[c.iDataSort]),F(b,c,"aDataSort"));var g=b.mData,j=Q(g),i=b.mRender?Q(b.mRender):null,c=function(a){return"string"===typeof a&&-1!==a.indexOf("@")};b._bAttrSrc=h.isPlainObject(g)&&(c(g.sort)||c(g.type)||c(g.filter));b._setter=null;b.fnGetData=function(a,b,c){var d=j(a,b,k,c);return i&&b?i(d,b,a,c):d};b.fnSetData=function(a,b,c){return R(g)(a,b,c)};"number"!==typeof g&&(a._rowReadObject=!0);a.oFeatures.bSort||(b.bSortable=!1,e.addClass(d.sSortableNone));a=-1!==h.inArray("asc",b.asSorting);c=-1!==h.inArray("desc",b.asSorting);!b.bSortable||!a&&!c?(b.sSortingClass=d.sSortableNone,b.sSortingClassJUI=""):a&&!c?(b.sSortingClass=
d.sSortableAsc,b.sSortingClassJUI=d.sSortJUIAscAllowed):!a&&c?(b.sSortingClass=d.sSortableDesc,b.sSortingClassJUI=d.sSortJUIDescAllowed):(b.sSortingClass=d.sSortable,b.sSortingClassJUI=d.sSortJUI)}function Y(a){if(!1!==a.oFeatures.bAutoWidth){var b=a.aoColumns;Ea(a);for(var c=0,d=b.length;cq[f])d(l.length+q[f],n);else if("string"===typeof q[f]){j=0;for(i=l.length;j<
i;j++)("_all"==q[f]||h(l[j].nTh).hasClass(q[f]))&&d(j,n)}}if(c){e=0;for(a=c.length;eb&&a[e]--; -1!=d&&c===k&&a.splice(d,1)}function ca(a,b,c,d){var e=a.aoData[b],f,g=function(c,d){for(;c.childNodes.length;)c.removeChild(c.firstChild);
c.innerHTML=B(a,b,d,"display")};if("dom"===c||(!c||"auto"===c)&&"dom"===e.src)e._aData=Ha(a,e,d,d===k?k:e._aData).data;else{var j=e.anCells;if(j)if(d!==k)g(j[d],d);else{c=0;for(f=j.length;c ").appendTo(g));b=0;for(c=l.length;btr").attr("role","row");h(g).find(">tr>th, >tr>td").addClass(n.sHeaderTH);h(j).find(">tr>th, >tr>td").addClass(n.sFooterTH);
if(null!==j){a=a.aoFooter[0];b=0;for(c=a.length;b=a.fnRecordsDisplay()?0:g,a.iInitDisplayStart=
-1);var g=a._iDisplayStart,n=a.fnDisplayEnd();if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++,C(a,!1);else if(j){if(!a.bDestroying&&!kb(a))return}else a.iDraw++;if(0!==i.length){f=j?a.aoData.length:n;for(j=j?0:g;j ",{"class":e?d[0]:""}).append(h(" ",{valign:"top",colSpan:aa(a),"class":a.oClasses.sRowEmpty}).html(c))[0];r(a,"aoHeaderCallback","header",[h(a.nTHead).children("tr")[0],Ja(a),g,n,i]);r(a,"aoFooterCallback","footer",[h(a.nTFoot).children("tr")[0],Ja(a),g,n,i]);d=h(a.nTBody);d.children().detach();d.append(h(b));r(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=!1}}function S(a,b){var c=a.oFeatures,d=c.bFilter;
c.bSort&&lb(a);d?fa(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice();!0!==b&&(a._iDisplayStart=0);a._drawHold=b;N(a);a._drawHold=!1}function mb(a){var b=a.oClasses,c=h(a.nTable),c=h("
").insertBefore(c),d=a.oFeatures,e=h("
",{id:a.sTableId+"_wrapper","class":b.sWrapper+(a.nTFoot?"":" "+b.sNoFooter)});a.nHolding=c[0];a.nTableWrapper=e[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var f=a.sDom.split(""),g,j,i,n,l,q,k=0;k ")[0];
n=f[k+1];if("'"==n||'"'==n){l="";for(q=2;f[k+q]!=n;)l+=f[k+q],q++;"H"==l?l=b.sJUIHeader:"F"==l&&(l=b.sJUIFooter);-1!=l.indexOf(".")?(n=l.split("."),i.id=n[0].substr(1,n[0].length-1),i.className=n[1]):"#"==l.charAt(0)?i.id=l.substr(1,l.length-1):i.className=l;k+=q}e.append(i);e=h(i)}else if(">"==j)e=e.parent();else if("l"==j&&d.bPaginate&&d.bLengthChange)g=nb(a);else if("f"==j&&d.bFilter)g=ob(a);else if("r"==j&&d.bProcessing)g=pb(a);else if("t"==j)g=qb(a);else if("i"==j&&d.bInfo)g=rb(a);else if("p"==j&&d.bPaginate)g=sb(a);else if(0!==m.ext.feature.length){i=m.ext.feature;q=0;for(n=i.length;q ',j=d.sSearch,j=j.match(/_INPUT_/)?j.replace("_INPUT_",g):j+g,b=h("
",{id:!f.f?c+"_filter":null,"class":b.sFilter}).append(h(" ").append(j)),f=function(){var b=!this.value?
"":this.value;b!=e.sSearch&&(fa(a,{sSearch:b,bRegex:e.bRegex,bSmart:e.bSmart,bCaseInsensitive:e.bCaseInsensitive}),a._iDisplayStart=0,N(a))},g=null!==a.searchDelay?a.searchDelay:"ssp"===y(a)?400:0,i=h("input",b).val(e.sSearch).attr("placeholder",d.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",g?Na(f,g):f).on("keypress.DT",function(a){if(13==a.keyCode)return!1}).attr("aria-controls",c);h(a.nTable).on("search.dt.DT",function(b,c){if(a===c)try{i[0]!==G.activeElement&&i.val(e.sSearch)}catch(d){}});
return b[0]}function fa(a,b,c){var d=a.oPreviousSearch,e=a.aoPreSearchCols,f=function(a){d.sSearch=a.sSearch;d.bRegex=a.bRegex;d.bSmart=a.bSmart;d.bCaseInsensitive=a.bCaseInsensitive};Fa(a);if("ssp"!=y(a)){vb(a,b.sSearch,c,b.bEscapeRegex!==k?!b.bEscapeRegex:b.bRegex,b.bSmart,b.bCaseInsensitive);f(b);for(b=0;b=b.length)a.aiDisplay=
g.slice();else{if(j||c||f.length>b.length||0!==b.indexOf(f)||a.bSorted)a.aiDisplay=g.slice();b=a.aiDisplay;for(c=0;c",{"class":a.oClasses.sInfo,id:!c?b+"_info":null});c||(a.aoDrawCallback.push({fn:Bb,sName:"information"}),d.attr("role","status").attr("aria-live","polite"),h(a.nTable).attr("aria-describedby",b+"_info"));return d[0]}function Bb(a){var b=a.aanFeatures.i;if(0!==b.length){var c=a.oLanguage,d=a._iDisplayStart+
1,e=a.fnDisplayEnd(),f=a.fnRecordsTotal(),g=a.fnRecordsDisplay(),j=g?c.sInfo:c.sInfoEmpty;g!==f&&(j+=" "+c.sInfoFiltered);j+=c.sInfoPostFix;j=Cb(a,j);c=c.fnInfoCallback;null!==c&&(j=c.call(a.oInstance,a,d,e,f,g,j));h(b).html(j)}}function Cb(a,b){var c=a.fnFormatNumber,d=a._iDisplayStart+1,e=a._iDisplayLength,f=a.fnRecordsDisplay(),g=-1===e;return b.replace(/_START_/g,c.call(a,d)).replace(/_END_/g,c.call(a,a.fnDisplayEnd())).replace(/_MAX_/g,c.call(a,a.fnRecordsTotal())).replace(/_TOTAL_/g,c.call(a,
f)).replace(/_PAGE_/g,c.call(a,g?1:Math.ceil(d/e))).replace(/_PAGES_/g,c.call(a,g?1:Math.ceil(f/e)))}function ga(a){var b,c,d=a.iInitDisplayStart,e=a.aoColumns,f;c=a.oFeatures;var g=a.bDeferLoading;if(a.bInitialised){mb(a);jb(a);ea(a,a.aoHeader);ea(a,a.aoFooter);C(a,!0);c.bAutoWidth&&Ea(a);b=0;for(c=e.length;b",{name:c+"_length","aria-controls":c,"class":b.sLengthSelect}),g=0,j=f.length;g ").addClass(b.sLength);a.aanFeatures.l||(i[0].id=c+"_length");i.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",e[0].outerHTML));h("select",i).val(a._iDisplayLength).on("change.DT",function(){Qa(a,h(this).val());N(a)});h(a.nTable).on("length.dt.DT",function(b,c,d){a===c&&h("select",i).val(d)});return i[0]}function sb(a){var b=a.sPaginationType,c=m.ext.pager[b],d="function"===typeof c,e=function(a){N(a)},
b=h("
").addClass(a.oClasses.sPaging+b)[0],f=a.aanFeatures;d||c.fnInit(a,b,e);f.p||(b.id=a.sTableId+"_paginate",a.aoDrawCallback.push({fn:function(a){if(d){var b=a._iDisplayStart,i=a._iDisplayLength,h=a.fnRecordsDisplay(),l=-1===i,b=l?0:Math.ceil(b/i),i=l?1:Math.ceil(h/i),h=c(b,i),k,l=0;for(k=f.p.length;lf&&(d=0)):"first"==b?d=0:"previous"==b?(d=0<=e?d-e:0,0>d&&(d=0)):"next"==b?d+e ",{id:!a.aanFeatures.r?a.sTableId+"_processing":null,"class":a.oClasses.sProcessing}).html(a.oLanguage.sProcessing).insertBefore(a.nTable)[0]}function C(a,b){a.oFeatures.bProcessing&&h(a.aanFeatures.r).css("display",
b?"block":"none");r(a,null,"processing",[a,b])}function qb(a){var b=h(a.nTable);b.attr("role","grid");var c=a.oScroll;if(""===c.sX&&""===c.sY)return a.nTable;var d=c.sX,e=c.sY,f=a.oClasses,g=b.children("caption"),j=g.length?g[0]._captionSide:null,i=h(b[0].cloneNode(!1)),n=h(b[0].cloneNode(!1)),l=b.children("tfoot");l.length||(l=null);i=h("
",{"class":f.sScrollWrapper}).append(h("
",{"class":f.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:d?!d?null:v(d):"100%"}).append(h("
",
{"class":f.sScrollHeadInner}).css({"box-sizing":"content-box",width:c.sXInner||"100%"}).append(i.removeAttr("id").css("margin-left",0).append("top"===j?g:null).append(b.children("thead"))))).append(h("
",{"class":f.sScrollBody}).css({position:"relative",overflow:"auto",width:!d?null:v(d)}).append(b));l&&i.append(h("
",{"class":f.sScrollFoot}).css({overflow:"hidden",border:0,width:d?!d?null:v(d):"100%"}).append(h("
",{"class":f.sScrollFootInner}).append(n.removeAttr("id").css("margin-left",
0).append("bottom"===j?g:null).append(b.children("tfoot")))));var b=i.children(),k=b[0],f=b[1],t=l?b[2]:null;if(d)h(f).on("scroll.DT",function(){var a=this.scrollLeft;k.scrollLeft=a;l&&(t.scrollLeft=a)});h(f).css(e&&c.bCollapse?"max-height":"height",e);a.nScrollHead=k;a.nScrollBody=f;a.nScrollFoot=t;a.aoDrawCallback.push({fn:ka,sName:"scrolling"});return i[0]}function ka(a){var b=a.oScroll,c=b.sX,d=b.sXInner,e=b.sY,b=b.iBarWidth,f=h(a.nScrollHead),g=f[0].style,j=f.children("div"),i=j[0].style,n=j.children("table"),
j=a.nScrollBody,l=h(j),q=j.style,t=h(a.nScrollFoot).children("div"),m=t.children("table"),o=h(a.nTHead),p=h(a.nTable),s=p[0],r=s.style,u=a.nTFoot?h(a.nTFoot):null,x=a.oBrowser,T=x.bScrollOversize,Xb=D(a.aoColumns,"nTh"),O,K,P,w,Ta=[],y=[],z=[],A=[],B,C=function(a){a=a.style;a.paddingTop="0";a.paddingBottom="0";a.borderTopWidth="0";a.borderBottomWidth="0";a.height=0};K=j.scrollHeight>j.clientHeight;if(a.scrollBarVis!==K&&a.scrollBarVis!==k)a.scrollBarVis=K,Y(a);else{a.scrollBarVis=K;p.children("thead, tfoot").remove();
u&&(P=u.clone().prependTo(p),O=u.find("tr"),P=P.find("tr"));w=o.clone().prependTo(p);o=o.find("tr");K=w.find("tr");w.find("th, td").removeAttr("tabindex");c||(q.width="100%",f[0].style.width="100%");h.each(ra(a,w),function(b,c){B=Z(a,b);c.style.width=a.aoColumns[B].sWidth});u&&H(function(a){a.style.width=""},P);f=p.outerWidth();if(""===c){r.width="100%";if(T&&(p.find("tbody").height()>j.offsetHeight||"scroll"==l.css("overflow-y")))r.width=v(p.outerWidth()-b);f=p.outerWidth()}else""!==d&&(r.width=
v(d),f=p.outerWidth());H(C,K);H(function(a){z.push(a.innerHTML);Ta.push(v(h(a).css("width")))},K);H(function(a,b){if(h.inArray(a,Xb)!==-1)a.style.width=Ta[b]},o);h(K).height(0);u&&(H(C,P),H(function(a){A.push(a.innerHTML);y.push(v(h(a).css("width")))},P),H(function(a,b){a.style.width=y[b]},O),h(P).height(0));H(function(a,b){a.innerHTML=''+z[b]+"
";a.style.width=Ta[b]},K);u&&H(function(a,b){a.innerHTML=''+
A[b]+"
";a.style.width=y[b]},P);if(p.outerWidth()j.offsetHeight||"scroll"==l.css("overflow-y")?f+b:f;if(T&&(j.scrollHeight>j.offsetHeight||"scroll"==l.css("overflow-y")))r.width=v(O-b);(""===c||""!==d)&&J(a,1,"Possible column misalignment",6)}else O="100%";q.width=v(O);g.width=v(O);u&&(a.nScrollFoot.style.width=v(O));!e&&T&&(q.height=v(s.offsetHeight+b));c=p.outerWidth();n[0].style.width=v(c);i.width=v(c);d=p.height()>j.clientHeight||"scroll"==l.css("overflow-y");e="padding"+
(x.bScrollbarLeft?"Left":"Right");i[e]=d?b+"px":"0px";u&&(m[0].style.width=v(c),t[0].style.width=v(c),t[0].style[e]=d?b+"px":"0px");p.children("colgroup").insertBefore(p.children("thead"));l.scroll();if((a.bSorted||a.bFiltered)&&!a._drawHold)j.scrollTop=0}}function H(a,b,c){for(var d=0,e=0,f=b.length,g,j;e").appendTo(j.find("tbody"));
j.find("thead, tfoot").remove();j.append(h(a.nTHead).clone()).append(h(a.nTFoot).clone());j.find("tfoot th, tfoot td").css("width","");n=ra(a,j.find("thead")[0]);for(m=0;m ").css({width:o.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(a.aoData.length)for(m=0;m ").css(f||e?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(j).appendTo(k);f&&g?j.width(g):f?(j.css("width","auto"),j.removeAttr("width"),j.width()").css("width",v(a)).appendTo(b||G.body),d=c[0].offsetWidth;c.remove();return d}function Eb(a,b){var c=Fb(a,b);if(0>c)return null;var d=a.aoData[c];return!d.nTr?h(" ").html(B(a,c,b,"display"))[0]:d.anCells[b]}function Fb(a,b){for(var c,d=-1,e=-1,f=0,g=a.aoData.length;fd&&(d=c.length,e=f);return e}function v(a){return null===a?"0px":"number"==typeof a?0>a?"0px":a+"px":a.match(/\d$/)?a+"px":a}function V(a){var b,c,d=[],e=a.aoColumns,f,g,j,i;b=a.aaSortingFixed;c=h.isPlainObject(b);var n=[];f=function(a){a.length&&!h.isArray(a[0])?n.push(a):h.merge(n,a)};h.isArray(b)&&f(b);c&&b.pre&&f(b.pre);f(a.aaSorting);c&&b.post&&f(b.post);for(a=0;ae?1:0,0!==c)return"asc"===j.dir?c:-c;c=d[a];e=d[b];return ce?1:0}):i.sort(function(a,b){var c,g,j,i,k=h.length,m=f[a]._aSortData,o=f[b]._aSortData;for(j=0;jg?1:0})}a.bSorted=!0}function Hb(a){for(var b,c,d=a.aoColumns,e=V(a),a=a.oLanguage.oAria,f=0,g=d.length;f/g,
"");var i=c.nTh;i.removeAttribute("aria-sort");c.bSortable&&(0e?e+1:3));e=0;for(f=d.length;ee?e+1:3))}a.aLastSort=d}function Gb(a,b){var c=a.aoColumns[b],d=m.ext.order[c.sSortDataType],e;d&&(e=d.call(a.oInstance,a,b,$(a,b)));for(var f,g=m.ext.type.order[c.sType+"-pre"],j=0,i=a.aoData.length;j=f.length?[0,c[1]]:c)}));b.search!==k&&h.extend(a.oPreviousSearch,Ab(b.search));if(b.columns){d=0;for(e=b.columns.length;d=c&&(b=c-d);b-=b%d;if(-1===d||0>b)b=0;a._iDisplayStart=b}function Ma(a,b){var c=a.renderer,d=m.ext.renderer[b];return h.isPlainObject(c)&&c[b]?d[c[b]]||d._:"string"===typeof c?d[c]||d._:d._}function y(a){return a.oFeatures.bServerSide?"ssp":a.ajax||a.sAjaxSource?"ajax":"dom"}function ha(a,b){var c=[],c=Kb.numbers_length,d=Math.floor(c/2);b<=c?c=W(0,b):a<=d?(c=W(0,
c-2),c.push("ellipsis"),c.push(b-1)):(a>=b-1-d?c=W(b-(c-2),b):(c=W(a-d+2,a+d-1),c.push("ellipsis"),c.push(b-1)),c.splice(0,0,"ellipsis"),c.splice(0,0,0));c.DT_el="span";return c}function cb(a){h.each({num:function(b){return za(b,a)},"num-fmt":function(b){return za(b,a,Wa)},"html-num":function(b){return za(b,a,Aa)},"html-num-fmt":function(b){return za(b,a,Aa,Wa)}},function(b,c){x.type.order[b+a+"-pre"]=c;b.match(/^html\-/)&&(x.type.search[b+a]=x.type.search.html)})}function Lb(a){return function(){var b=
[ya(this[m.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return m.ext.internal[a].apply(this,b)}}var m=function(a){this.$=function(a,b){return this.api(!0).$(a,b)};this._=function(a,b){return this.api(!0).rows(a,b).data()};this.api=function(a){return a?new s(ya(this[x.iApiIndex])):new s(this)};this.fnAddData=function(a,b){var c=this.api(!0),d=h.isArray(a)&&(h.isArray(a[0])||h.isPlainObject(a[0]))?c.rows.add(a):c.row.add(a);(b===k||b)&&c.draw();return d.flatten().toArray()};this.fnAdjustColumnSizing=
function(a){var b=this.api(!0).columns.adjust(),c=b.settings()[0],d=c.oScroll;a===k||a?b.draw(!1):(""!==d.sX||""!==d.sY)&&ka(c)};this.fnClearTable=function(a){var b=this.api(!0).clear();(a===k||a)&&b.draw()};this.fnClose=function(a){this.api(!0).row(a).child.hide()};this.fnDeleteRow=function(a,b,c){var d=this.api(!0),a=d.rows(a),e=a.settings()[0],h=e.aoData[a[0][0]];a.remove();b&&b.call(this,e,h);(c===k||c)&&d.draw();return h};this.fnDestroy=function(a){this.api(!0).destroy(a)};this.fnDraw=function(a){this.api(!0).draw(a)};
this.fnFilter=function(a,b,c,d,e,h){e=this.api(!0);null===b||b===k?e.search(a,c,d,h):e.column(b).search(a,c,d,h);e.draw()};this.fnGetData=function(a,b){var c=this.api(!0);if(a!==k){var d=a.nodeName?a.nodeName.toLowerCase():"";return b!==k||"td"==d||"th"==d?c.cell(a,b).data():c.row(a).data()||null}return c.data().toArray()};this.fnGetNodes=function(a){var b=this.api(!0);return a!==k?b.row(a).node():b.rows().nodes().flatten().toArray()};this.fnGetPosition=function(a){var b=this.api(!0),c=a.nodeName.toUpperCase();
return"TR"==c?b.row(a).index():"TD"==c||"TH"==c?(a=b.cell(a).index(),[a.row,a.columnVisible,a.column]):null};this.fnIsOpen=function(a){return this.api(!0).row(a).child.isShown()};this.fnOpen=function(a,b,c){return this.api(!0).row(a).child(b,c).show().child()[0]};this.fnPageChange=function(a,b){var c=this.api(!0).page(a);(b===k||b)&&c.draw(!1)};this.fnSetColumnVis=function(a,b,c){a=this.api(!0).column(a).visible(b);(c===k||c)&&a.columns.adjust().draw()};this.fnSettings=function(){return ya(this[x.iApiIndex])};
this.fnSort=function(a){this.api(!0).order(a).draw()};this.fnSortListener=function(a,b,c){this.api(!0).order.listener(a,b,c)};this.fnUpdate=function(a,b,c,d,e){var h=this.api(!0);c===k||null===c?h.row(b).data(a):h.cell(b,c).data(a);(e===k||e)&&h.columns.adjust();(d===k||d)&&h.draw();return 0};this.fnVersionCheck=x.fnVersionCheck;var b=this,c=a===k,d=this.length;c&&(a={});this.oApi=this.internal=x.internal;for(var e in m.ext.internal)e&&(this[e]=Lb(e));this.each(function(){var e={},g=1").appendTo(q));p.nTHead=b[0];b=q.children("tbody");b.length===0&&(b=h(" ").appendTo(q));p.nTBody=b[0];b=q.children("tfoot");if(b.length===0&&a.length>0&&(p.oScroll.sX!==""||p.oScroll.sY!==""))b=h(" ").appendTo(q);if(b.length===0||b.children().length===0)q.addClass(u.sNoFooter);
else if(b.length>0){p.nTFoot=b[0];da(p.aoFooter,p.nTFoot)}if(g.aaData)for(j=0;j/g,Zb=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,$b=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)",
"g"),Wa=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi,L=function(a){return!a||!0===a||"-"===a?!0:!1},Nb=function(a){var b=parseInt(a,10);return!isNaN(b)&&isFinite(a)?b:null},Ob=function(a,b){Xa[b]||(Xa[b]=RegExp(Pa(b),"g"));return"string"===typeof a&&"."!==b?a.replace(/\./g,"").replace(Xa[b],"."):a},Ya=function(a,b,c){var d="string"===typeof a;if(L(a))return!0;b&&d&&(a=Ob(a,b));c&&d&&(a=a.replace(Wa,""));return!isNaN(parseFloat(a))&&isFinite(a)},Pb=function(a,b,c){return L(a)?!0:!(L(a)||"string"===typeof a)?null:Ya(a.replace(Aa,""),b,c)?!0:null},D=function(a,b,c){var d=[],e=0,f=a.length;if(c!==k)for(;ea.length)){b=a.slice().sort();for(var c=b[0],d=1,e=b.length;d")[0],Wb=va.textContent!==k,Yb=/<.*?>/g,Na=m.util.throttle,Rb=[],w=Array.prototype,ac=function(a){var b,c,d=m.settings,e=h.map(d,function(a){return a.nTable});if(a){if(a.nTable&&a.oApi)return[a];if(a.nodeName&&"table"===a.nodeName.toLowerCase())return b=h.inArray(a,e),-1!==b?[d[b]]:null;if(a&&"function"===typeof a.settings)return a.settings().toArray();"string"===typeof a?c=h(a):a instanceof
h&&(c=a)}else return[];if(c)return c.map(function(){b=h.inArray(this,e);return-1!==b?d[b]:null}).toArray()};s=function(a,b){if(!(this instanceof s))return new s(a,b);var c=[],d=function(a){(a=ac(a))&&(c=c.concat(a))};if(h.isArray(a))for(var e=0,f=a.length;ea?new s(b[a],this[a]):null},filter:function(a){var b=[];if(w.filter)b=w.filter.call(this,a,this);else for(var c=0,d=this.length;c ").addClass(b),h("td",c).addClass(b).html(a)[0].colSpan=aa(d),e.push(c[0]))};f(a,b);c._details&&c._details.detach();c._details=h(e);c._detailsShow&&
c._details.insertAfter(c.nTr)}return this});o(["row().child.show()","row().child().show()"],function(){Tb(this,!0);return this});o(["row().child.hide()","row().child().hide()"],function(){Tb(this,!1);return this});o(["row().child.remove()","row().child().remove()"],function(){bb(this);return this});o("row().child.isShown()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]]._detailsShow||!1:!1});var bc=/^([^:]+):(name|visIdx|visible)$/,Ub=function(a,b,c,d,e){for(var c=
[],d=0,f=e.length;d=0?b:g.length+b];if(typeof a==="function"){var e=Ba(c,f);return h.map(g,function(b,f){return a(f,Ub(c,f,0,0,e),i[f])?f:null})}var k=typeof a==="string"?a.match(bc):"";if(k)switch(k[2]){case "visIdx":case "visible":b=
parseInt(k[1],10);if(b<0){var m=h.map(g,function(a,b){return a.bVisible?b:null});return[m[m.length+b]]}return[Z(c,b)];case "name":return h.map(j,function(a,b){return a===k[1]?b:null});default:return[]}if(a.nodeName&&a._DT_CellIndex)return[a._DT_CellIndex.column];b=h(i).filter(a).map(function(){return h.inArray(this,i)}).toArray();if(b.length||!a.nodeName)return b;b=h(a).closest("*[data-dt-column]");return b.length?[b.data("dt-column")]:[]},c,f)},1);c.selector.cols=a;c.selector.opts=b;return c});u("columns().header()",
"column().header()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTh},1)});u("columns().footer()","column().footer()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTf},1)});u("columns().data()","column().data()",function(){return this.iterator("column-rows",Ub,1)});u("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].mData},1)});u("columns().cache()","column().cache()",
function(a){return this.iterator("column-rows",function(b,c,d,e,f){return ia(b.aoData,f,"search"===a?"_aFilterData":"_aSortData",c)},1)});u("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(a,b,c,d,e){return ia(a.aoData,e,"anCells",b)},1)});u("columns().visible()","column().visible()",function(a,b){var c=this.iterator("column",function(b,c){if(a===k)return b.aoColumns[c].bVisible;var f=b.aoColumns,g=f[c],j=b.aoData,i,n,l;if(a!==k&&g.bVisible!==a){if(a){var m=
h.inArray(!0,D(f,"bVisible"),c+1);i=0;for(n=j.length;id;return!0};m.isDataTable=m.fnIsDataTable=function(a){var b=h(a).get(0),c=!1;if(a instanceof m.Api)return!0;h.each(m.settings,function(a,e){var f=e.nScrollHead?h("table",e.nScrollHead)[0]:null,g=e.nScrollFoot?
h("table",e.nScrollFoot)[0]:null;if(e.nTable===b||f===b||g===b)c=!0});return c};m.tables=m.fnTables=function(a){var b=!1;h.isPlainObject(a)&&(b=a.api,a=a.visible);var c=h.map(m.settings,function(b){if(!a||a&&h(b.nTable).is(":visible"))return b.nTable});return b?new s(c):c};m.camelToHungarian=I;o("$()",function(a,b){var c=this.rows(b).nodes(),c=h(c);return h([].concat(c.filter(a).toArray(),c.find(a).toArray()))});h.each(["on","one","off"],function(a,b){o(b+"()",function(){var a=Array.prototype.slice.call(arguments);
a[0]=h.map(a[0].split(/\s/),function(a){return!a.match(/\.dt\b/)?a+".dt":a}).join(" ");var d=h(this.tables().nodes());d[b].apply(d,a);return this})});o("clear()",function(){return this.iterator("table",function(a){na(a)})});o("settings()",function(){return new s(this.context,this.context)});o("init()",function(){var a=this.context;return a.length?a[0].oInit:null});o("data()",function(){return this.iterator("table",function(a){return D(a.aoData,"_aData")}).flatten()});o("destroy()",function(a){a=a||
!1;return this.iterator("table",function(b){var c=b.nTableWrapper.parentNode,d=b.oClasses,e=b.nTable,f=b.nTBody,g=b.nTHead,j=b.nTFoot,i=h(e),f=h(f),k=h(b.nTableWrapper),l=h.map(b.aoData,function(a){return a.nTr}),o;b.bDestroying=!0;r(b,"aoDestroyCallback","destroy",[b]);a||(new s(b)).columns().visible(!0);k.off(".DT").find(":not(tbody *)").off(".DT");h(E).off(".DT-"+b.sInstance);e!=g.parentNode&&(i.children("thead").detach(),i.append(g));j&&e!=j.parentNode&&(i.children("tfoot").detach(),i.append(j));
b.aaSorting=[];b.aaSortingFixed=[];wa(b);h(l).removeClass(b.asStripeClasses.join(" "));h("th, td",g).removeClass(d.sSortable+" "+d.sSortableAsc+" "+d.sSortableDesc+" "+d.sSortableNone);f.children().detach();f.append(l);g=a?"remove":"detach";i[g]();k[g]();!a&&c&&(c.insertBefore(e,b.nTableReinsertBefore),i.css("width",b.sDestroyWidth).removeClass(d.sTable),(o=b.asDestroyStripes.length)&&f.children().each(function(a){h(this).addClass(b.asDestroyStripes[a%o])}));c=h.inArray(b,m.settings);-1!==c&&m.settings.splice(c,
1)})});h.each(["column","row","cell"],function(a,b){o(b+"s().every()",function(a){var d=this.selector.opts,e=this;return this.iterator(b,function(f,g,h,i,n){a.call(e[b](g,"cell"===b?h:d,"cell"===b?d:k),g,h,i,n)})})});o("i18n()",function(a,b,c){var d=this.context[0],a=Q(a)(d.oLanguage);a===k&&(a=b);c!==k&&h.isPlainObject(a)&&(a=a[c]!==k?a[c]:a._);return a.replace("%d",c)});m.version="1.10.16";m.settings=[];m.models={};m.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};m.models.oRow=
{nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1};m.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,
sWidthOrig:null};m.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(a){return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,
this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(a){try{return JSON.parse((-1===a.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+a.sInstance+"_"+location.pathname))}catch(b){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(a,b){try{(-1===a.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+a.sInstance+
"_"+location.pathname,JSON.stringify(b))}catch(c){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",
sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:h.extend({},m.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"};
X(m.defaults);m.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};X(m.defaults.column);m.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,
bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],
aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:k,oAjaxData:k,fnServerData:null,
aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==y(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==y(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var a=this._iDisplayLength,
b=this._iDisplayStart,c=b+a,d=this.aiDisplay.length,e=this.oFeatures,f=e.bPaginate;return e.bServerSide?!1===f||-1===a?b+d:Math.min(b+a,this._iRecordsDisplay):!f||c>d||-1===a?d:c},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null};m.ext=x={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},
order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:m.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:m.version};h.extend(x,{afnFiltering:x.search,aTypes:x.type.detect,ofnSearch:x.type.search,oSort:x.type.order,afnSortData:x.order,aoFeatures:x.feature,oApi:x.internal,oStdClasses:x.classes,oPagination:x.pager});h.extend(m.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",
sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",
sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Kb=m.ext.pager;h.extend(Kb,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(a,b){return[ha(a,
b)]},simple_numbers:function(a,b){return["previous",ha(a,b),"next"]},full_numbers:function(a,b){return["first","previous",ha(a,b),"next","last"]},first_last_numbers:function(a,b){return["first",ha(a,b),"last"]},_numbers:ha,numbers_length:7});h.extend(!0,m.ext.renderer,{pageButton:{_:function(a,b,c,d,e,f){var g=a.oClasses,j=a.oLanguage.oPaginate,i=a.oLanguage.oAria.paginate||{},n,l,m=0,o=function(b,d){var k,s,u,r,v=function(b){Sa(a,b.data.action,true)};k=0;for(s=d.length;k ").appendTo(b);o(u,r)}else{n=null;l="";switch(r){case "ellipsis":b.append('… ');break;case "first":n=j.sFirst;l=r+(e>0?"":" "+g.sPageButtonDisabled);break;case "previous":n=j.sPrevious;l=r+(e>0?"":" "+g.sPageButtonDisabled);break;case "next":n=j.sNext;l=r+(e",{"class":g.sPageButton+
" "+l,"aria-controls":a.sTableId,"aria-label":i[r],"data-dt-idx":m,tabindex:a.iTabIndex,id:c===0&&typeof r==="string"?a.sTableId+"_"+r:null}).html(n).appendTo(b);Va(u,{action:r},v);m++}}}},s;try{s=h(b).find(G.activeElement).data("dt-idx")}catch(u){}o(h(b).empty(),d);s!==k&&h(b).find("[data-dt-idx="+s+"]").focus()}}});h.extend(m.ext.type.detect,[function(a,b){var c=b.oLanguage.sDecimal;return Ya(a,c)?"num"+c:null},function(a){if(a&&!(a instanceof Date)&&!Zb.test(a))return null;var b=Date.parse(a);
return null!==b&&!isNaN(b)||L(a)?"date":null},function(a,b){var c=b.oLanguage.sDecimal;return Ya(a,c,!0)?"num-fmt"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Pb(a,c)?"html-num"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Pb(a,c,!0)?"html-num-fmt"+c:null},function(a){return L(a)||"string"===typeof a&&-1!==a.indexOf("<")?"html":null}]);h.extend(m.ext.type.search,{html:function(a){return L(a)?a:"string"===typeof a?a.replace(Mb," ").replace(Aa,""):""},string:function(a){return L(a)?
a:"string"===typeof a?a.replace(Mb," "):a}});var za=function(a,b,c,d){if(0!==a&&(!a||"-"===a))return-Infinity;b&&(a=Ob(a,b));a.replace&&(c&&(a=a.replace(c,"")),d&&(a=a.replace(d,"")));return 1*a};h.extend(x.type.order,{"date-pre":function(a){return Date.parse(a)||-Infinity},"html-pre":function(a){return L(a)?"":a.replace?a.replace(/<.*?>/g,"").toLowerCase():a+""},"string-pre":function(a){return L(a)?"":"string"===typeof a?a.toLowerCase():!a.toString?"":a.toString()},"string-asc":function(a,b){return a<
b?-1:a>b?1:0},"string-desc":function(a,b){return ab?-1:0}});cb("");h.extend(!0,m.ext.renderer,{header:{_:function(a,b,c,d){h(a.nTable).on("order.dt.DT",function(e,f,g,h){if(a===f){e=c.idx;b.removeClass(c.sSortingClass+" "+d.sSortAsc+" "+d.sSortDesc).addClass(h[e]=="asc"?d.sSortAsc:h[e]=="desc"?d.sSortDesc:c.sSortingClass)}})},jqueryui:function(a,b,c,d){h("
").addClass(d.sSortJUIWrapper).append(b.contents()).append(h(" ").addClass(d.sSortIcon+" "+c.sSortingClassJUI)).appendTo(b);
h(a.nTable).on("order.dt.DT",function(e,f,g,h){if(a===f){e=c.idx;b.removeClass(d.sSortAsc+" "+d.sSortDesc).addClass(h[e]=="asc"?d.sSortAsc:h[e]=="desc"?d.sSortDesc:c.sSortingClass);b.find("span."+d.sSortIcon).removeClass(d.sSortJUIAsc+" "+d.sSortJUIDesc+" "+d.sSortJUI+" "+d.sSortJUIAscAllowed+" "+d.sSortJUIDescAllowed).addClass(h[e]=="asc"?d.sSortJUIAsc:h[e]=="desc"?d.sSortJUIDesc:c.sSortingClassJUI)}})}}});var Vb=function(a){return"string"===typeof a?a.replace(/ /g,">").replace(/"/g,
"""):a};m.render={number:function(a,b,c,d,e){return{display:function(f){if("number"!==typeof f&&"string"!==typeof f)return f;var g=0>f?"-":"",h=parseFloat(f);if(isNaN(h))return Vb(f);h=h.toFixed(c);f=Math.abs(h);h=parseInt(f,10);f=c?b+(f-h).toFixed(c).substring(2):"";return g+(d||"")+h.toString().replace(/\B(?=(\d{3})+(?!\d))/g,a)+f+(e||"")}}},text:function(){return{display:Vb}}};h.extend(m.ext.internal,{_fnExternApiFunc:Lb,_fnBuildAjax:sa,_fnAjaxUpdate:kb,_fnAjaxParameters:tb,_fnAjaxUpdateDraw:ub,
_fnAjaxDataSrc:ta,_fnAddColumn:Da,_fnColumnOptions:ja,_fnAdjustColumnSizing:Y,_fnVisibleToColumnIndex:Z,_fnColumnIndexToVisible:$,_fnVisbleColumns:aa,_fnGetColumns:la,_fnColumnTypes:Fa,_fnApplyColumnDefs:hb,_fnHungarianMap:X,_fnCamelToHungarian:I,_fnLanguageCompat:Ca,_fnBrowserDetect:fb,_fnAddData:M,_fnAddTr:ma,_fnNodeToDataIndex:function(a,b){return b._DT_RowIndex!==k?b._DT_RowIndex:null},_fnNodeToColumnIndex:function(a,b,c){return h.inArray(c,a.aoData[b].anCells)},_fnGetCellData:B,_fnSetCellData:ib,
_fnSplitObjNotation:Ia,_fnGetObjectDataFn:Q,_fnSetObjectDataFn:R,_fnGetDataMaster:Ja,_fnClearTable:na,_fnDeleteIndex:oa,_fnInvalidate:ca,_fnGetRowElements:Ha,_fnCreateTr:Ga,_fnBuildHead:jb,_fnDrawHead:ea,_fnDraw:N,_fnReDraw:S,_fnAddOptionsHtml:mb,_fnDetectHeader:da,_fnGetUniqueThs:ra,_fnFeatureHtmlFilter:ob,_fnFilterComplete:fa,_fnFilterCustom:xb,_fnFilterColumn:wb,_fnFilter:vb,_fnFilterCreateSearch:Oa,_fnEscapeRegex:Pa,_fnFilterData:yb,_fnFeatureHtmlInfo:rb,_fnUpdateInfo:Bb,_fnInfoMacros:Cb,_fnInitialise:ga,
_fnInitComplete:ua,_fnLengthChange:Qa,_fnFeatureHtmlLength:nb,_fnFeatureHtmlPaginate:sb,_fnPageChange:Sa,_fnFeatureHtmlProcessing:pb,_fnProcessingDisplay:C,_fnFeatureHtmlTable:qb,_fnScrollDraw:ka,_fnApplyToChildren:H,_fnCalculateColumnWidths:Ea,_fnThrottle:Na,_fnConvertToWidth:Db,_fnGetWidestNode:Eb,_fnGetMaxLenString:Fb,_fnStringToCss:v,_fnSortFlatten:V,_fnSort:lb,_fnSortAria:Hb,_fnSortListener:Ua,_fnSortAttachListener:La,_fnSortingClasses:wa,_fnSortData:Gb,_fnSaveState:xa,_fnLoadState:Ib,_fnSettingsFromNode:ya,
_fnLog:J,_fnMap:F,_fnBindAction:Va,_fnCallbackReg:z,_fnCallbackFire:r,_fnLengthOverflow:Ra,_fnRenderer:Ma,_fnDataSource:y,_fnRowAttributes:Ka,_fnCalculateEnd:function(){}});h.fn.dataTable=m;m.$=h;h.fn.dataTableSettings=m.settings;h.fn.dataTableExt=m.ext;h.fn.DataTable=function(a){return h(this).dataTable(a).api()};h.each(m,function(a,b){h.fn.DataTable[a]=b});return h.fn.dataTable});