jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,f){return jQuery.easing[jQuery.easing.def](a,b,c,d,f)},easeInQuad:function(a,b,c,d,f){return d*(b/=f)*b+c},easeOutQuad:function(a,b,c,d,f){return-d*(b/=f)*(b-2)+c},easeInOutQuad:function(a,b,c,d,f){return 1>(b/=f/2)?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,f){return d*(b/=f)*b*b+c},easeOutCubic:function(a,b,c,d,f){return d*((b=b/f-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,f){return 1>(b/=f/2)?d/2*b*b*b+c:
d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,f){return d*(b/=f)*b*b*b+c},easeOutQuart:function(a,b,c,d,f){return-d*((b=b/f-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,f){return 1>(b/=f/2)?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,f){return d*(b/=f)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,f){return d*((b=b/f-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,f){return 1>(b/=f/2)?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,f){return-d*Math.cos(b/
f*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,f){return d*Math.sin(b/f*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,f){return-d/2*(Math.cos(Math.PI*b/f)-1)+c},easeInExpo:function(a,b,c,d,f){return 0==b?c:d*Math.pow(2,10*(b/f-1))+c},easeOutExpo:function(a,b,c,d,f){return b==f?c+d:d*(-Math.pow(2,-10*b/f)+1)+c},easeInOutExpo:function(a,b,c,d,f){return 0==b?c:b==f?c+d:1>(b/=f/2)?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,f){return-d*(Math.sqrt(1-(b/=f)*
b)-1)+c},easeOutCirc:function(a,b,c,d,f){return d*Math.sqrt(1-(b=b/f-1)*b)+c},easeInOutCirc:function(a,b,c,d,f){return 1>(b/=f/2)?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,f){a=1.70158;var h=0,l=d;if(0==b)return c;if(1==(b/=f))return c+d;h||(h=.3*f);l<Math.abs(d)?(l=d,a=h/4):a=h/(2*Math.PI)*Math.asin(d/l);return-(l*Math.pow(2,10*--b)*Math.sin(2*(b*f-a)*Math.PI/h))+c},easeOutElastic:function(a,b,c,d,f){a=1.70158;var h=0,l=d;if(0==b)return c;if(1==(b/=
f))return c+d;h||(h=.3*f);l<Math.abs(d)?(l=d,a=h/4):a=h/(2*Math.PI)*Math.asin(d/l);return l*Math.pow(2,-10*b)*Math.sin(2*(b*f-a)*Math.PI/h)+d+c},easeInOutElastic:function(a,b,c,d,f){a=1.70158;var h=0,l=d;if(0==b)return c;if(2==(b/=f/2))return c+d;h||(h=.3*f*1.5);l<Math.abs(d)?(l=d,a=h/4):a=h/(2*Math.PI)*Math.asin(d/l);return 1>b?-.5*l*Math.pow(2,10*--b)*Math.sin(2*(b*f-a)*Math.PI/h)+c:.5*l*Math.pow(2,-10*--b)*Math.sin(2*(b*f-a)*Math.PI/h)+d+c},easeInBack:function(a,b,c,d,f,h){void 0==h&&(h=1.70158);
return d*(b/=f)*b*((h+1)*b-h)+c},easeOutBack:function(a,b,c,d,f,h){void 0==h&&(h=1.70158);return d*((b=b/f-1)*b*((h+1)*b+h)+1)+c},easeInOutBack:function(a,b,c,d,f,h){void 0==h&&(h=1.70158);return 1>(b/=f/2)?d/2*b*b*(((h*=1.525)+1)*b-h)+c:d/2*((b-=2)*b*(((h*=1.525)+1)*b+h)+2)+c},easeInBounce:function(a,b,c,d,f){return d-jQuery.easing.easeOutBounce(a,f-b,0,d,f)+c},easeOutBounce:function(a,b,c,d,f){return(b/=f)<1/2.75?7.5625*d*b*b+c:b<2/2.75?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:b<2.5/2.75?d*(7.5625*(b-=
2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(a,b,c,d,f){return b<f/2?.5*jQuery.easing.easeInBounce(a,2*b,0,d,f)+c:.5*jQuery.easing.easeOutBounce(a,2*b-f,0,d,f)+.5*d+c}});
(function(a){var b=0,c=0,d=0,f=0,h="ontouchstart"in window||0<navigator.msMaxTouchPoints,l="onorientationchange"in window,w=!1,O=!1,A=!1,ia=!1,fa=!1,H="pointer",la="pointer",aa=[],Q=[],wa=[],ha=[],I=[],ja=[],G=[],q=[],u=[],xa=[],ka=[],k={showScrollbar:function(b,c){b.scrollbarHide&&a("."+c).css({opacity:b.scrollbarOpacity,filter:"alpha(opacity:"+100*b.scrollbarOpacity+")"})},hideScrollbar:function(a,b,c,d,f,e,h,w,A,q){if(a.scrollbar&&a.scrollbarHide)for(var g=c;g<c+25;g++)b[b.length]=k.hideScrollbarIntervalTimer(10*
g,d[c],(c+24-g)/24,f,e,h,w,A,q,a)},hideScrollbarInterval:function(b,c,d,h,w,e,A,q,O){f=-1*b/u[q]*(w-e-A-h);k.setSliderOffset("."+d,f);a("."+d).css({opacity:O.scrollbarOpacity*c,filter:"alpha(opacity:"+O.scrollbarOpacity*c*100+")"})},slowScrollHorizontalInterval:function(b,c,d,h,w,e,A,O,l,H,z,B,M,y,v,t,N,n,C){if(C.infiniteSlider){if(d<=-1*u[t]){var g=a(b).width();if(d<=-1*xa[t]){var p=-1*z[0];a(c).each(function(b){k.setSliderOffset(a(c)[b],p+N);b<B.length&&(B[b]=-1*p);p+=v[b]});d+=-1*B[0];q[t]=-1*
B[0]+N;u[t]=q[t]+g-e;G[t]=0}else{var r=0,J=k.getSliderOffset(a(c[0]),"x");a(c).each(function(a){k.getSliderOffset(this,"x")<J&&(J=k.getSliderOffset(this,"x"),r=a)});M=q[t]+g;k.setSliderOffset(a(c)[r],M);q[t]=-1*B[1]+N;u[t]=q[t]+g-e;B.splice(0,1);B.splice(B.length,0,-1*M+N);G[t]++}}if(d>=-1*q[t]||0<=d){g=a(b).width();if(0<d)for(p=-1*z[0],a(c).each(function(b){k.setSliderOffset(a(c)[b],p+N);b<B.length&&(B[b]=-1*p);p+=v[b]}),d-=-1*B[0],q[t]=-1*B[0]+N,u[t]=q[t]+g-e,G[t]=y;0<-1*B[0]-g+N;){var x=0,W=k.getSliderOffset(a(c[0]),
"x");a(c).each(function(a){k.getSliderOffset(this,"x")>W&&(W=k.getSliderOffset(this,"x"),x=a)});M=q[t]-v[x];k.setSliderOffset(a(c)[x],M);B.splice(0,0,-1*M+N);B.splice(B.length-1,1);q[t]=-1*B[0]+N;u[t]=q[t]+g-e;G[t]--;I[t]++}0>d&&(x=0,W=k.getSliderOffset(a(c[0]),"x"),a(c).each(function(a){k.getSliderOffset(this,"x")>W&&(W=k.getSliderOffset(this,"x"),x=a)}),M=q[t]-v[x],k.setSliderOffset(a(c)[x],M),B.splice(0,0,-1*M+N),B.splice(B.length-1,1),q[t]=-1*B[0]+N,u[t]=q[t]+g-e,G[t]--)}}z=!1;e=k.calcActiveOffset(C,
d,B,e,G[t],y,H,t);M=(e+G[t]+y)%y;C.infiniteSlider?M!=ja[t]&&(z=!0):e!=I[t]&&(z=!0);if(z&&(y=new k.args("change",C,b,a(b).children(":eq("+M+")"),M,n),a(b).parent().data("args",y),""!=C.onSlideChange))C.onSlideChange(y);I[t]=e;ja[t]=M;d=Math.floor(d);k.setSliderOffset(b,d);C.scrollbar&&(f=Math.floor((-1*d-q[t]+N)/(u[t]-q[t]+N)*(A-O-w)),b=w-l,d>=-1*q[t]+N?(b=w-l- -1*f,k.setSliderOffset(a("."+h),0)):(d<=-1*u[t]+1&&(b=A-O-l-f),k.setSliderOffset(a("."+h),f)),a("."+h).css({width:b+"px"}))},slowScrollHorizontal:function(b,
c,d,f,h,e,w,A,O,l,z,B,H,y,v,t,N,n,C,D,K){var g=k.getSliderOffset(b,"x");e=[];var p=0,r=25/1024*A;frictionCoefficient=K.frictionCoefficient;elasticFrictionCoefficient=K.elasticFrictionCoefficient;snapFrictionCoefficient=K.snapFrictionCoefficient;h>K.snapVelocityThreshold&&K.snapToChildren&&!C?p=1:h<-1*K.snapVelocityThreshold&&K.snapToChildren&&!C&&(p=-1);h<-1*r?h=-1*r:h>r&&(h=r);a(b)[0]!==a(n)[0]&&(p*=-1,h*=-2);n=G[v];if(K.infiniteSlider)var J=q[v],m=u[v];C=[];r=[];for(var x=0;x<H.length;x++)C[x]=
H[x],x<c.length&&(r[x]=k.getSliderOffset(a(c[x]),"x"));for(;1<h||-1>h;){h*=frictionCoefficient;g+=h;(g>-1*q[v]||g<-1*u[v])&&!K.infiniteSlider&&(h*=elasticFrictionCoefficient,g+=h);if(K.infiniteSlider){if(g<=-1*m){m=a(b).width();var W=0,M=r[0];for(x=0;x<r.length;x++)r[x]<M&&(M=r[x],W=x);x=J+m;r[W]=x;J=-1*C[1]+D;m=J+m-A;C.splice(0,1);C.splice(C.length,0,-1*x+D);n++}if(g>=-1*J){m=a(b).width();W=0;M=r[0];for(x=0;x<r.length;x++)r[x]>M&&(M=r[x],W=x);x=J-y[W];r[W]=x;C.splice(0,0,-1*x+D);C.splice(C.length-
1,1);J=-1*C[0]+D;m=J+m-A;n--}}e[e.length]=g}r=!1;h=k.calcActiveOffset(K,g,C,A,n,N,I[v],v);K.snapToChildren&&(K.infiniteSlider?(h+n+N)%N!=ja[v]&&(r=!0):h!=I[v]&&(r=!0),0>p&&!r?(h++,h>=H.length&&!K.infiniteSlider&&(h=H.length-1)):0<p&&!r&&(h--,0>h&&!K.infiniteSlider&&(h=0)));if(K.snapToChildren||(g>-1*q[v]||g<-1*u[v])&&!K.infiniteSlider){for((g>-1*q[v]||g<-1*u[v])&&!K.infiniteSlider?e.splice(0,e.length):(e.splice(.1*e.length,e.length),g=0<e.length?e[e.length-1]:g);g<C[h]-.5||g>C[h]+.5;)g=(g-C[h])*snapFrictionCoefficient+
C[h],e[e.length]=g;e[e.length]=C[h]}p=1;0!=e.length%2&&(p=0);for(g=0;g<d.length;g++)clearTimeout(d[g]);n=(h+n+N)%N;J=0;for(g=p;g<e.length;g+=2)if(g==p||1<Math.abs(e[g]-J)||g>=e.length-2)J=e[g],d[d.length]=k.slowScrollHorizontalIntervalTimer(10*g,b,c,e[g],f,w,A,O,l,z,h,B,H,t,N,y,v,D,n,K);J=(h+G[v]+N)%N;""!=K.onSlideComplete&&1<e.length&&(d[d.length]=k.onSlideCompleteTimer(10*(g+1),K,b,a(b).children(":eq("+J+")"),n,v));ha[v]=d;k.hideScrollbar(K,d,g,e,f,w,A,l,z,v)},onSlideComplete:function(b,c,d,f,h){d=
new k.args("complete",b,a(c),d,f,f);a(c).parent().data("args",d);if(""!=b.onSlideComplete)b.onSlideComplete(d)},getSliderOffset:function(b,c){c="x"==c?4:5;if(!w||O||A)var d=parseInt(a(b).css("left"),10);else{d=["-webkit-transform","-moz-transform","transform"];for(var p,f=0;f<d.length;f++)if(void 0!=a(b).css(d[f])&&0<a(b).css(d[f]).length){p=a(b).css(d[f]).split(",");break}d=void 0==p[c]?0:parseInt(p[c],10)}return d},setSliderOffset:function(b,c){c=parseInt(c,10);!w||O||A?a(b).css({left:c+"px"}):
a(b).css({msTransform:"matrix(1,0,0,1,"+c+",0)",webkitTransform:"matrix(1,0,0,1,"+c+",0)",MozTransform:"matrix(1,0,0,1,"+c+",0)",transform:"matrix(1,0,0,1,"+c+",0)"})},setBrowserInfo:function(){null!=navigator.userAgent.match("WebKit")?(H="-webkit-grab",la="-webkit-grabbing"):null!=navigator.userAgent.match("Gecko")?(fa=!0,H="move",la="-moz-grabbing"):null!=navigator.userAgent.match("MSIE 7")?ia=O=!0:null!=navigator.userAgent.match("MSIE 8")?ia=A=!0:null!=navigator.userAgent.match("MSIE 9")&&(ia=
!0)},has3DTransform:function(){var b=!1,c=a("<div />").css({msTransform:"matrix(1,1,1,1,1,1)",webkitTransform:"matrix(1,1,1,1,1,1)",MozTransform:"matrix(1,1,1,1,1,1)",transform:"matrix(1,1,1,1,1,1)"});""==c.attr("style")?b=!1:fa&&21<=parseInt(navigator.userAgent.split("/")[3],10)?b=!1:void 0!=c.attr("style")&&(b=!0);return b},getSlideNumber:function(a,b,c){return(a-G[b]+c)%c},calcActiveOffset:function(a,b,c,d,f,e,h,k){f=!1;a=[];var g;b>c[0]&&(g=0);b<c[c.length-1]&&(g=e-1);for(e=0;e<c.length;e++)c[e]<=
b&&c[e]>b-d&&(f||c[e]==b||(a[a.length]=c[e-1]),a[a.length]=c[e],f=!0);0==a.length&&(a[0]=c[c.length-1]);for(e=f=0;e<a.length;e++)h=Math.abs(b-a[e]),h<d&&(f=a[e],d=h);for(e=0;e<c.length;e++)f==c[e]&&(g=e);return g},changeSlide:function(b,c,d,f,h,e,w,A,O,l,q,B,H,y,v,t,u,n){k.autoSlidePause(y);for(var g=0;g<f.length;g++)clearTimeout(f[g]);var p=Math.ceil(n.autoSlideTransTimer/10)+1,J=k.getSliderOffset(c,"x"),r=B[b],x=r-J;if(n.infiniteSlider)for(b=(b-G[y]+2*t)%t,g=!1,0==b&&2==t&&(b=t,B[b]=B[b-1]-a(d).eq(0).outerWidth(!0),
g=!0),r=B[b],x=r-J,r=[B[b]-a(c).width(),B[b]+a(c).width()],g&&B.splice(B.length-1,1),g=0;g<r.length;g++)Math.abs(r[g]-J)<Math.abs(x)&&(x=r[g]-J);r=[];k.showScrollbar(n,h);for(g=0;g<=p;g++){var z=g;z/=p;z--;z=J+x*(Math.pow(z,5)+1);r[r.length]=z}p=(b+G[y]+t)%t;for(g=J=0;g<r.length;g++){if(0==g||1<Math.abs(r[g]-J)||g>=r.length-2)J=r[g],f[g]=k.slowScrollHorizontalIntervalTimer(10*(g+1),c,d,r[g],h,e,w,A,O,l,b,q,B,v,t,H,y,u,p,n);0==g&&""!=n.onSlideStart&&(x=(I[y]+G[y]+t)%t,n.onSlideStart(new k.args("start",
n,c,a(c).children(":eq("+x+")"),x,b)))}J=!1;n.infiniteSlider?p!=ja[y]&&(J=!0):b!=I[y]&&(J=!0);J&&""!=n.onSlideComplete&&(f[f.length]=k.onSlideCompleteTimer(10*(g+1),n,c,a(c).children(":eq("+p+")"),p,y));ha[y]=f;k.hideScrollbar(n,f,g,r,h,e,w,O,l,y);k.autoSlide(c,d,f,h,e,w,A,O,l,q,B,H,y,v,t,u,n)},autoSlide:function(a,b,c,d,f,e,h,w,A,O,l,q,H,y,v,t,u){if(!Q[H].autoSlide)return!1;k.autoSlidePause(H);aa[H]=setTimeout(function(){!u.infiniteSlider&&I[H]>l.length-1&&(I[H]-=v);k.changeSlide((I[H]+G[H]+l.length+
1)%l.length,a,b,c,d,f,e,h,w,A,O,l,q,H,y,v,t,u);k.autoSlide(a,b,c,d,f,e,h,w,A,O,l,q,H,y,v,t,u)},u.autoSlideTimer+u.autoSlideTransTimer)},autoSlidePause:function(a){clearTimeout(aa[a])},isUnselectable:function(b,c){return""!=c.unselectableSelector&&1==a(b).closest(c.unselectableSelector).length?!0:!1},slowScrollHorizontalIntervalTimer:function(a,b,c,d,f,e,h,w,A,l,O,q,H,u,v,t,G,n,C,D){return setTimeout(function(){k.slowScrollHorizontalInterval(b,c,d,f,e,h,w,A,l,O,q,H,u,v,t,G,n,C,D)},a)},onSlideCompleteTimer:function(a,
b,c,d,f,e){return setTimeout(function(){k.onSlideComplete(b,c,d,f,e)},a)},hideScrollbarIntervalTimer:function(a,b,c,d,f,e,h,w,A,l){return setTimeout(function(){k.hideScrollbarInterval(b,c,d,f,e,h,w,A,l)},a)},args:function(b,c,d,f,h,e){this.prevSlideNumber=void 0==a(d).parent().data("args")?void 0:a(d).parent().data("args").prevSlideNumber;this.prevSlideObject=void 0==a(d).parent().data("args")?void 0:a(d).parent().data("args").prevSlideObject;this.targetSlideNumber=e+1;this.targetSlideObject=a(d).children(":eq("+
e+")");this.slideChanged=!1;"load"==b?this.targetSlideObject=this.targetSlideNumber=void 0:"start"==b?this.targetSlideObject=this.targetSlideNumber=void 0:"change"==b?(this.slideChanged=!0,this.prevSlideNumber=void 0==a(d).parent().data("args")?c.startAtSlide:a(d).parent().data("args").currentSlideNumber,this.prevSlideObject=a(d).children(":eq("+this.prevSlideNumber+")")):"complete"==b&&(this.slideChanged=a(d).parent().data("args").slideChanged);this.settings=c;this.data=a(d).parent().data("iosslider");
this.sliderObject=d;this.sliderContainerObject=a(d).parent();this.currentSlideObject=f;this.currentSlideNumber=h+1;this.currentSliderOffset=-1*k.getSliderOffset(d,"x")},preventDrag:function(a){a.preventDefault()},preventClick:function(a){a.stopImmediatePropagation();return!1},enableClick:function(){return!0}};k.setBrowserInfo();var Z={init:function(p,r){w=k.has3DTransform();var g=a.extend(!0,{elasticPullResistance:.6,frictionCoefficient:.92,elasticFrictionCoefficient:.6,snapFrictionCoefficient:.92,
snapToChildren:!1,snapSlideCenter:!1,startAtSlide:1,scrollbar:!1,scrollbarDrag:!1,scrollbarHide:!0,scrollbarLocation:"top",scrollbarContainer:"",scrollbarOpacity:.4,scrollbarHeight:"4px",scrollbarBorder:"0",scrollbarMargin:"5px",scrollbarBackground:"#000",scrollbarBorderRadius:"100px",scrollbarShadow:"0 0 0 #000",scrollbarElasticPullResistance:.9,desktopClickDrag:!1,keyboardControls:!1,tabToAdvance:!1,responsiveSlideContainer:!0,responsiveSlides:!0,navSlideSelector:"",navPrevSelector:"",navNextSelector:"",
autoSlideToggleSelector:"",autoSlide:!1,autoSlideTimer:5E3,autoSlideTransTimer:750,autoSlideHoverPause:!0,infiniteSlider:!1,snapVelocityThreshold:5,slideStartVelocityThreshold:0,horizontalSlideLockThreshold:5,verticalSlideLockThreshold:3,stageCSS:{position:"relative",top:"0",left:"0",overflow:"hidden",zIndex:1},unselectableSelector:"",onSliderLoaded:"",onSliderUpdate:"",onSliderResize:"",onSlideStart:"",onSlideChange:"",onSlideComplete:""},p);void 0==r&&(r=this);return a(r).each(function(p){function w(){k.autoSlidePause(e);
za=a(E).find("a");Da=a(E).find("[onclick]");sa=a(E).find("*");a(C).css("width","");a(C).css("height","");a(E).css("width","");F=a(E).children().not("script").get();ma=[];P=[];g.responsiveSlides&&a(F).css("width","");u[e]=0;m=[];t=a(C).parent().width();D=a(C).outerWidth(!0);g.responsiveSlideContainer&&(D=a(C).outerWidth(!0)>t?t:a(C).width());a(C).css({position:g.stageCSS.position,top:g.stageCSS.top,left:g.stageCSS.left,overflow:g.stageCSS.overflow,zIndex:g.stageCSS.zIndex,webkitPerspective:1E3,webkitBackfaceVisibility:"hidden",
msTouchAction:"pan-y",width:D});a(g.unselectableSelector).css({cursor:"default"});for(var b=0;b<F.length;b++){ma[b]=a(F[b]).width();P[b]=a(F[b]).outerWidth(!0);var c=P[b];g.responsiveSlides&&(P[b]>D?(c=D+-1*(P[b]-ma[b]),ma[b]=c,P[b]=D):c=ma[b],a(F[b]).css({width:c}));a(F[b]).css({webkitBackfaceVisibility:"hidden",overflow:"hidden",position:"absolute"});m[b]=-1*u[e];u[e]=u[e]+c+(P[b]-ma[b])}g.snapSlideCenter&&(n=.5*(D-P[0]),g.responsiveSlides&&P[0]>D&&(n=0));xa[e]=2*u[e];for(b=0;b<F.length;b++)k.setSliderOffset(a(F[b]),
-1*m[b]+u[e]+n),m[b]-=u[e];if(!g.infiniteSlider&&!g.snapSlideCenter){for(b=0;b<m.length&&!(m[b]<=-1*(2*u[e]-D));b++)Ea=b;m.splice(Ea+1,m.length);m[m.length]=-1*(2*u[e]-D)}for(b=0;b<m.length;b++)U[b]=m[b];Z&&(Q[e].startAtSlide=Q[e].startAtSlide>m.length?m.length:Q[e].startAtSlide,g.infiniteSlider?(Q[e].startAtSlide=(Q[e].startAtSlide-1+L)%L,I[e]=Q[e].startAtSlide):(Q[e].startAtSlide=0>Q[e].startAtSlide-1?m.length-1:Q[e].startAtSlide,I[e]=Q[e].startAtSlide-1),ja[e]=I[e]);q[e]=u[e]+n;a(E).css({position:"relative",
cursor:H,webkitPerspective:"0",webkitBackfaceVisibility:"hidden",width:u[e]+"px"});Y=u[e];u[e]=2*u[e]-D+2*n;(ba=Y+n<D||0==D?!0:!1)&&a(E).css({cursor:"default"});N=a(C).parent().outerHeight(!0);K=a(C).height();g.responsiveSlideContainer&&(K=K>N?N:K);a(C).css({height:K});k.setSliderOffset(E,m[I[e]]);if(g.infiniteSlider&&!ba){b=k.getSliderOffset(a(E),"x");for(c=(G[e]+L)%L*-1;0>c;){var d=0,f=k.getSliderOffset(a(F[0]),"x");a(F).each(function(a){k.getSliderOffset(this,"x")<f&&(f=k.getSliderOffset(this,
"x"),d=a)});var p=q[e]+Y;k.setSliderOffset(a(F)[d],p);q[e]=-1*m[1]+n;u[e]=q[e]+Y-D;m.splice(0,1);m.splice(m.length,0,-1*p+n);c++}for(;0<-1*m[0]-Y+n&&g.snapSlideCenter&&Z;){var h=0,w=k.getSliderOffset(a(F[0]),"x");a(F).each(function(a){k.getSliderOffset(this,"x")>w&&(w=k.getSliderOffset(this,"x"),h=a)});p=q[e]-P[h];k.setSliderOffset(a(F)[h],p);m.splice(0,0,-1*p+n);m.splice(m.length-1,1);q[e]=-1*m[0]+n;u[e]=q[e]+Y-D;G[e]--;I[e]++}for(;b<=-1*u[e];)d=0,f=k.getSliderOffset(a(F[0]),"x"),a(F).each(function(a){k.getSliderOffset(this,
"x")<f&&(f=k.getSliderOffset(this,"x"),d=a)}),p=q[e]+Y,k.setSliderOffset(a(F)[d],p),q[e]=-1*m[1]+n,u[e]=q[e]+Y-D,m.splice(0,1),m.splice(m.length,0,-1*p+n),G[e]++,I[e]--}k.setSliderOffset(E,m[I[e]]);g.desktopClickDrag||a(E).css({cursor:"default"});g.scrollbar&&(a("."+T).css({margin:g.scrollbarMargin,overflow:"hidden",display:"none"}),a("."+T+" ."+z).css({border:g.scrollbarBorder}),R=parseInt(a("."+T).css("marginLeft"))+parseInt(a("."+T).css("marginRight")),S=parseInt(a("."+T+" ."+z).css("borderLeftWidth"),
10)+parseInt(a("."+T+" ."+z).css("borderRightWidth"),10),y=""!=g.scrollbarContainer?a(g.scrollbarContainer).width():D,v=D/Y*(y-R),g.scrollbarHide||(ya=g.scrollbarOpacity),a("."+T).css({position:"absolute",left:0,width:y-R+"px",margin:g.scrollbarMargin}),"top"==g.scrollbarLocation?a("."+T).css("top","0"):a("."+T).css("bottom","0"),a("."+T+" ."+z).css({borderRadius:g.scrollbarBorderRadius,background:g.scrollbarBackground,height:g.scrollbarHeight,width:v-S+"px",minWidth:g.scrollbarHeight,border:g.scrollbarBorder,
webkitPerspective:1E3,webkitBackfaceVisibility:"hidden",position:"relative",opacity:ya,filter:"alpha(opacity:"+100*ya+")",boxShadow:g.scrollbarShadow}),k.setSliderOffset(a("."+T+" ."+z),Math.floor((-1*m[I[e]]-q[e]+n)/(u[e]-q[e]+n)*(y-R-v))),a("."+T).css({display:"block"}),B=a("."+T+" ."+z),M=a("."+T));g.scrollbarDrag&&!ba&&a("."+T+" ."+z).css({cursor:H});g.infiniteSlider&&(V=(u[e]+D)/3);""!=g.navSlideSelector&&a(g.navSlideSelector).each(function(b){a(this).css({cursor:"pointer"});a(this).unbind(X).bind(X,
function(c){"touchstart"==c.type?a(this).unbind("click.iosSliderEvent"):a(this).unbind("touchstart.iosSliderEvent");X=c.type+".iosSliderEvent";k.changeSlide(b,E,F,r,z,v,D,y,R,S,U,m,P,e,V,L,n,g)})});""!=g.navPrevSelector&&(a(g.navPrevSelector).css({cursor:"pointer"}),a(g.navPrevSelector).unbind(X).bind(X,function(b){"touchstart"==b.type?a(this).unbind("click.iosSliderEvent"):a(this).unbind("touchstart.iosSliderEvent");X=b.type+".iosSliderEvent";b=(I[e]+G[e]+L)%L;(0<b||g.infiniteSlider)&&k.changeSlide(b-
1,E,F,r,z,v,D,y,R,S,U,m,P,e,V,L,n,g)}));""!=g.navNextSelector&&(a(g.navNextSelector).css({cursor:"pointer"}),a(g.navNextSelector).unbind(X).bind(X,function(b){"touchstart"==b.type?a(this).unbind("click.iosSliderEvent"):a(this).unbind("touchstart.iosSliderEvent");X=b.type+".iosSliderEvent";b=(I[e]+G[e]+L)%L;(b<m.length-1||g.infiniteSlider)&&k.changeSlide(b+1,E,F,r,z,v,D,y,R,S,U,m,P,e,V,L,n,g)}));g.autoSlide&&!ba&&""!=g.autoSlideToggleSelector&&(a(g.autoSlideToggleSelector).css({cursor:"pointer"}),
a(g.autoSlideToggleSelector).unbind(X).bind(X,function(b){"touchstart"==b.type?a(this).unbind("click.iosSliderEvent"):a(this).unbind("touchstart.iosSliderEvent");X=b.type+".iosSliderEvent";oa?(k.autoSlide(E,F,r,z,v,D,y,R,S,U,m,P,e,V,L,n,g),oa=!1,a(g.autoSlideToggleSelector).removeClass("on")):(k.autoSlidePause(e),oa=!0,a(g.autoSlideToggleSelector).addClass("on"))}));k.autoSlide(E,F,r,z,v,D,y,R,S,U,m,P,e,V,L,n,g);a(C).bind("mouseleave.iosSliderEvent",function(){if(oa)return!0;k.autoSlide(E,F,r,z,v,
D,y,R,S,U,m,P,e,V,L,n,g)});a(C).bind("touchend.iosSliderEvent",function(){if(oa)return!0;k.autoSlide(E,F,r,z,v,D,y,R,S,U,m,P,e,V,L,n,g)});g.autoSlideHoverPause&&a(C).bind("mouseenter.iosSliderEvent",function(){k.autoSlidePause(e)});a(C).data("iosslider",{obj:Fa,settings:g,scrollerNode:E,slideNodes:F,numberOfSlides:L,centeredSlideOffset:n,sliderNumber:e,originalOffsets:U,childrenOffsets:m,sliderMax:u[e],scrollbarClass:z,scrollbarWidth:v,scrollbarStageWidth:y,stageWidth:D,scrollMargin:R,scrollBorder:S,
infiniteSliderOffset:G[e],infiniteSliderWidth:V,slideNodeOuterWidths:P,shortContent:ba});Z=!1;return!0}b++;var e=b,r=[];Q[e]=a.extend({},g);q[e]=0;u[e]=0;var J=[0,0],aa=[0,0],T="scrollbarBlock"+b,z="scrollbar"+b,B,M,y,v,t,N,n=0,C=a(this),D,K,R,S,fa,Z=!0;p=-1;var m,U=[],ya=0,da=0,Ga=0,E=a(this).children(":first-child"),F,ma,P,L=a(E).children().not("script").length,ca=!1,Ea=0,Aa=!1,ta=void 0,V;G[e]=0;var ba=!1,oa=!1;wa[e]=!1;var ea,ua=!1,pa=!1,X="touchstart.iosSliderEvent click.iosSliderEvent",Y,za,
Da,sa;ka[e]=!1;ha[e]=[];g.scrollbarDrag&&(g.scrollbar=!0,g.scrollbarHide=!1);var Fa=a(this);if(void 0!=Fa.data("iosslider"))return!0;var qa=[],ra=Math.floor(12317*Math.random());a(E).parent().append("<i class = 'i"+ra+"'></i>").append("<i class = 'i"+ra+"'></i>");a(".i"+ra).css({position:"absolute",right:"10px",bottom:"10px",zIndex:1E3,fontStyle:"normal",background:"#fff",opacity:.2}).eq(1).css({bottom:"auto",right:"auto",top:"10px",left:"10px"});for(p=0;p<qa.length;p++)a(".i"+ra).html(a(".i"+ra).html()+
qa[p]);14.2<=parseInt(a().jquery.split(".").join(""),10)?a(this).delegate("img","dragstart.iosSliderEvent",function(a){a.preventDefault()}):a(this).find("img").bind("dragstart.iosSliderEvent",function(a){a.preventDefault()});g.infiniteSlider&&(g.scrollbar=!1);g.infiniteSlider&&1==L&&(g.infiniteSlider=!1);g.scrollbar&&(""!=g.scrollbarContainer?a(g.scrollbarContainer).append("<div class = '"+T+"'><div class = '"+z+"'></div></div>"):a(E).parent().append("<div class = '"+T+"'><div class = '"+z+"'></div></div>"));
if(!w())return!0;a(this).find("a").bind("mousedown",k.preventDrag);a(this).find("[onclick]").bind("click",k.preventDrag).each(function(){a(this).data("onclick",this.onclick)});p=k.calcActiveOffset(g,k.getSliderOffset(a(E),"x"),m,D,G[e],L,void 0,e);p=(p+G[e]+L)%L;p=new k.args("load",g,E,a(E).children(":eq("+p+")"),p,p);a(C).data("args",p);if(""!=g.onSliderLoaded)g.onSliderLoaded(p);if(Q[e].responsiveSlides||Q[e].responsiveSlideContainer)p=l?"orientationchange":"resize",a(window).bind(p+".iosSliderEvent-"+
e,function(){if(!w())return!0;var b=a(C).data("args");if(""!=g.onSliderResize)g.onSliderResize(b)});!g.keyboardControls&&!g.tabToAdvance||ba||a(document).bind("keydown.iosSliderEvent",function(a){O||A||(a=a.originalEvent);if(ka[e])return!0;if(37==a.keyCode&&g.keyboardControls)a.preventDefault(),a=(I[e]+G[e]+L)%L,(0<a||g.infiniteSlider)&&k.changeSlide(a-1,E,F,r,z,v,D,y,R,S,U,m,P,e,V,L,n,g);else if(39==a.keyCode&&g.keyboardControls||9==a.keyCode&&g.tabToAdvance)a.preventDefault(),a=(I[e]+G[e]+L)%L,
(a<m.length-1||g.infiniteSlider)&&k.changeSlide(a+1,E,F,r,z,v,D,y,R,S,U,m,P,e,V,L,n,g)});if(h||g.desktopClickDrag){var na=!1,Ba=!1;p=a(E);var va=a(E),Ca=!1;g.scrollbarDrag&&(p=p.add(B),va=va.add(M));a(p).bind("mousedown.iosSliderEvent touchstart.iosSliderEvent",function(b){if(na)return!0;na=!0;Ba=!1;"touchstart"==b.type?a(va).unbind("mousedown.iosSliderEvent"):a(va).unbind("touchstart.iosSliderEvent");if(ka[e]||ba||(Ca=k.isUnselectable(b.target,g)))return ca=na=!1,!0;ea=a(this)[0]===a(B)[0]?B:E;O||
A||(b=b.originalEvent);k.autoSlidePause(e);sa.unbind(".disableClick");if("touchstart"==b.type)eventX=b.touches[0].pageX,eventY=b.touches[0].pageY;else{if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges();else if(document.selection)if(A)try{document.selection.empty()}catch(Ha){}else document.selection.empty();eventX=b.pageX;eventY=b.pageY;Aa=!0;ta=E;a(this).css({cursor:la})}J=[0,0];aa=[0,0];c=
0;ca=!1;for(b=0;b<r.length;b++)clearTimeout(r[b]);b=k.getSliderOffset(E,"x");b>-1*q[e]+n+Y?(b=-1*q[e]+n+Y,k.setSliderOffset(a("."+z),b),a("."+z).css({width:v-S+"px"})):b<-1*u[e]&&(k.setSliderOffset(a("."+z),y-R-v),a("."+z).css({width:v-S+"px"}));b=a(this)[0]===a(B)[0]?q[e]:0;da=-1*(k.getSliderOffset(this,"x")-eventX-b);k.getSliderOffset(this,"y");J[1]=eventX;aa[1]=eventY;pa=!1});a(document).bind("touchmove.iosSliderEvent mousemove.iosSliderEvent",function(b){O||A||(b=b.originalEvent);if(ka[e]||ba||
Ca||!na)return!0;var p=0;if("touchmove"==b.type)eventX=b.touches[0].pageX,eventY=b.touches[0].pageY;else{if(window.getSelection)window.getSelection().empty||window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges();else if(document.selection)if(A)try{document.selection.empty()}catch(Ia){}else document.selection.empty();eventX=b.pageX;eventY=b.pageY;if(!Aa||!ia&&("undefined"!=typeof b.webkitMovementX||"undefined"!=typeof b.webkitMovementY)&&0===b.webkitMovementY&&0===b.webkitMovementX)return!0}J[0]=
J[1];J[1]=eventX;c=(J[1]-J[0])/2;aa[0]=aa[1];aa[1]=eventY;d=(aa[1]-aa[0])/2;if(!ca){var h=(I[e]+G[e]+L)%L;h=new k.args("start",g,E,a(E).children(":eq("+h+")"),h,void 0);a(C).data("args",h);if(""!=g.onSlideStart)g.onSlideStart(h)}(d>g.verticalSlideLockThreshold||d<-1*g.verticalSlideLockThreshold)&&"touchmove"==b.type&&!ca&&(ua=!0);(c>g.horizontalSlideLockThreshold||c<-1*g.horizontalSlideLockThreshold)&&"touchmove"==b.type&&b.preventDefault();if(c>g.slideStartVelocityThreshold||c<-1*g.slideStartVelocityThreshold)ca=
!0;if(ca&&!ua){h=k.getSliderOffset(E,"x");var w=a(ea)[0]===a(B)[0]?q[e]:n,r=a(ea)[0]===a(B)[0]?(q[e]-u[e]-n)/(y-R-v):1,l=a(ea)[0]===a(B)[0]?g.scrollbarElasticPullResistance:g.elasticPullResistance,H=g.snapSlideCenter&&a(ea)[0]===a(B)[0]?0:n,t=g.snapSlideCenter&&a(ea)[0]===a(B)[0]?n:0;"touchmove"==b.type&&(Ga!=b.touches.length&&(da=-1*h+eventX),Ga=b.touches.length);if(g.infiniteSlider){if(h<=-1*u[e]){var x=a(E).width();if(h<=-1*xa[e]){var K=-1*U[0];a(F).each(function(b){k.setSliderOffset(a(F)[b],K+
n);b<m.length&&(m[b]=-1*K);K+=P[b]});da-=-1*m[0];q[e]=-1*m[0]+n;u[e]=q[e]+x-D;G[e]=0}else{var N=0,la=k.getSliderOffset(a(F[0]),"x");a(F).each(function(a){k.getSliderOffset(this,"x")<la&&(la=k.getSliderOffset(this,"x"),N=a)});l=q[e]+x;k.setSliderOffset(a(F)[N],l);q[e]=-1*m[1]+n;u[e]=q[e]+x-D;m.splice(0,1);m.splice(m.length,0,-1*l+n);G[e]++}}if(h>=-1*q[e]||0<=h)if(x=a(E).width(),0<=h)for(K=-1*U[0],a(F).each(function(b){k.setSliderOffset(a(F)[b],K+n);b<m.length&&(m[b]=-1*K);K+=P[b]}),da+=-1*m[0],q[e]=
-1*m[0]+n,u[e]=q[e]+x-D,G[e]=L;0<-1*m[0]-x+n;){var M=0,Q=k.getSliderOffset(a(F[0]),"x");a(F).each(function(a){k.getSliderOffset(this,"x")>Q&&(Q=k.getSliderOffset(this,"x"),M=a)});l=q[e]-P[M];k.setSliderOffset(a(F)[M],l);m.splice(0,0,-1*l+n);m.splice(m.length-1,1);q[e]=-1*m[0]+n;u[e]=q[e]+x-D;G[e]--;I[e]++}else M=0,Q=k.getSliderOffset(a(F[0]),"x"),a(F).each(function(a){k.getSliderOffset(this,"x")>Q&&(Q=k.getSliderOffset(this,"x"),M=a)}),l=q[e]-P[M],k.setSliderOffset(a(F)[M],l),m.splice(0,0,-1*l+n),
m.splice(m.length-1,1),q[e]=-1*m[0]+n,u[e]=q[e]+x-D,G[e]--}else x=a(E).width(),h>-1*q[e]+n&&(p=(q[e]+-1*(da-w-eventX+H)*r-w)*l*-1/r),h<-1*u[e]&&(p=(u[e]+t+-1*(da-w-eventX)*r-w)*l*-1/r);k.setSliderOffset(E,-1*(da-w-eventX-p)*r-w+t);g.scrollbar&&(k.showScrollbar(g,z),f=Math.floor((da-eventX-p-q[e]+H)/(u[e]-q[e]+n)*(y-R-v)*r),h=v,0>=f?(h=v-S- -1*f,k.setSliderOffset(a("."+z),0),a("."+z).css({width:h+"px"})):f>=y-R-S-v?(h=y-R-S-f,k.setSliderOffset(a("."+z),f),a("."+z).css({width:h+"px"})):k.setSliderOffset(a("."+
z),f));"touchmove"==b.type&&(fa=b.touches[0].pageX);b=!1;p=k.calcActiveOffset(g,-1*(da-eventX-p),m,D,G[e],L,void 0,e);h=(p+G[e]+L)%L;g.infiniteSlider?h!=ja[e]&&(b=!0):p!=I[e]&&(b=!0);if(b&&(I[e]=p,ja[e]=h,pa=!0,h=new k.args("change",g,E,a(E).children(":eq("+h+")"),h,h),a(C).data("args",h),""!=g.onSlideChange))g.onSlideChange(h)}});qa=a(window);if(A||O)qa=a(document);a(p).bind("touchcancel.iosSliderEvent touchend.iosSliderEvent",function(a){a=a.originalEvent;if(Ba)return!1;Ba=!0;if(ka[e]||ba||Ca)return!0;
if(0!=a.touches.length)for(var b=0;b<a.touches.length;b++)a.touches[b].pageX==fa&&k.slowScrollHorizontal(E,F,r,z,c,d,v,D,y,R,S,U,m,P,e,V,L,ea,pa,n,g);else k.slowScrollHorizontal(E,F,r,z,c,d,v,D,y,R,S,U,m,P,e,V,L,ea,pa,n,g);na=ua=!1;return!0});a(qa).bind("mouseup.iosSliderEvent-"+e,function(b){ca?za.unbind("click.disableClick").bind("click.disableClick",k.preventClick):za.unbind("click.disableClick").bind("click.disableClick",k.enableClick);Da.each(function(){this.onclick=function(b){if(ca)return!1;
a(this).data("onclick")&&a(this).data("onclick").call(this,b||window.event)};this.onclick=a(this).data("onclick")});1.8<=parseFloat(a().jquery)?sa.each(function(){var b=a._data(this,"events");if(void 0!=b&&void 0!=b.click&&"iosSliderEvent"!=b.click[0].namespace){if(!ca)return!1;a(this).one("click.disableClick",k.preventClick);b=a._data(this,"events").click;var c=b.pop();b.splice(0,0,c)}}):1.6<=parseFloat(a().jquery)&&sa.each(function(){var b=a(this).data("events");if(void 0!=b&&void 0!=b.click&&"iosSliderEvent"!=
b.click[0].namespace){if(!ca)return!1;a(this).one("click.disableClick",k.preventClick);b=a(this).data("events").click;var c=b.pop();b.splice(0,0,c)}});if(!wa[e]){if(ba)return!0;g.desktopClickDrag&&a(E).css({cursor:H});g.scrollbarDrag&&a(B).css({cursor:H});Aa=!1;if(void 0==ta)return!0;k.slowScrollHorizontal(ta,F,r,z,c,d,v,D,y,R,S,U,m,P,e,V,L,ea,pa,n,g);ta=void 0}na=ua=!1})}})},destroy:function(b,c){void 0==c&&(c=this);return a(c).each(function(){var c=a(this),d=c.data("iosslider");if(void 0==d)return!1;
void 0==b&&(b=!0);k.autoSlidePause(d.sliderNumber);wa[d.sliderNumber]=!0;a(window).unbind(".iosSliderEvent-"+d.sliderNumber);a(document).unbind(".iosSliderEvent-"+d.sliderNumber);a(document).unbind("keydown.iosSliderEvent");a(this).unbind(".iosSliderEvent");a(this).children(":first-child").unbind(".iosSliderEvent");a(this).children(":first-child").children().unbind(".iosSliderEvent");b&&(a(this).attr("style",""),a(this).children(":first-child").attr("style",""),a(this).children(":first-child").children().attr("style",
""),a(d.settings.navSlideSelector).attr("style",""),a(d.settings.navPrevSelector).attr("style",""),a(d.settings.navNextSelector).attr("style",""),a(d.settings.autoSlideToggleSelector).attr("style",""),a(d.settings.unselectableSelector).attr("style",""));d.settings.scrollbar&&a(".scrollbarBlock"+d.sliderNumber).remove();d=ha[d.sliderNumber];for(var f=0;f<d.length;f++)clearTimeout(d[f]);c.removeData("iosslider");c.removeData("args")})},update:function(b){void 0==b&&(b=this);return a(b).each(function(){var b=
a(this),c=b.data("iosslider");if(void 0==c)return!1;c.settings.startAtSlide=b.data("args").currentSlideNumber;Z.destroy(!1,this);1!=c.numberOfSlides&&c.settings.infiniteSlider&&(c.settings.startAtSlide=(I[c.sliderNumber]+1+G[c.sliderNumber]+c.numberOfSlides)%c.numberOfSlides);Z.init(c.settings,this);b=new k.args("update",c.settings,c.scrollerNode,a(c.scrollerNode).children(":eq("+(c.settings.startAtSlide-1)+")"),c.settings.startAtSlide-1,c.settings.startAtSlide-1);a(c.stageNode).data("args",b);if(""!=
c.settings.onSliderUpdate)c.settings.onSliderUpdate(b)})},addSlide:function(b,c){return this.each(function(){var d=a(this),f=d.data("iosslider");if(void 0==f)return!1;0==a(f.scrollerNode).children().length?(a(f.scrollerNode).append(b),d.data("args").currentSlideNumber=1):f.settings.infiniteSlider?(1==c?a(f.scrollerNode).children(":eq(0)").before(b):a(f.scrollerNode).children(":eq("+(c-2)+")").after(b),-1>G[f.sliderNumber]&&I[f.sliderNumber]--,d.data("args").currentSlideNumber>=c&&I[f.sliderNumber]++):
(c<=f.numberOfSlides?a(f.scrollerNode).children(":eq("+(c-1)+")").before(b):a(f.scrollerNode).children(":eq("+(c-2)+")").after(b),d.data("args").currentSlideNumber>=c&&d.data("args").currentSlideNumber++);d.data("iosslider").numberOfSlides++;Z.update(this)})},removeSlide:function(b){return this.each(function(){var c=a(this),d=c.data("iosslider");if(void 0==d)return!1;a(d.scrollerNode).children(":eq("+(b-1)+")").remove();I[d.sliderNumber]>b-1&&I[d.sliderNumber]--;c.data("iosslider").numberOfSlides--;
Z.update(this)})},goToSlide:function(b,c){void 0==c&&(c=this);return a(c).each(function(){var c=a(this).data("iosslider");if(void 0==c||c.shortContent)return!1;b=b>c.childrenOffsets.length?c.childrenOffsets.length-1:b-1;k.changeSlide(b,a(c.scrollerNode),a(c.slideNodes),ha[c.sliderNumber],c.scrollbarClass,c.scrollbarWidth,c.stageWidth,c.scrollbarStageWidth,c.scrollMargin,c.scrollBorder,c.originalOffsets,c.childrenOffsets,c.slideNodeOuterWidths,c.sliderNumber,c.infiniteSliderWidth,c.numberOfSlides,
c.centeredSlideOffset,c.settings)})},prevSlide:function(){return this.each(function(){var b=a(this).data("iosslider");if(void 0==b||b.shortContent)return!1;var c=(I[b.sliderNumber]+G[b.sliderNumber]+b.numberOfSlides)%b.numberOfSlides;(0<c||b.settings.infiniteSlider)&&k.changeSlide(c-1,a(b.scrollerNode),a(b.slideNodes),ha[b.sliderNumber],b.scrollbarClass,b.scrollbarWidth,b.stageWidth,b.scrollbarStageWidth,b.scrollMargin,b.scrollBorder,b.originalOffsets,b.childrenOffsets,b.slideNodeOuterWidths,b.sliderNumber,
b.infiniteSliderWidth,b.numberOfSlides,b.centeredSlideOffset,b.settings);I[b.sliderNumber]=c})},nextSlide:function(){return this.each(function(){var b=a(this).data("iosslider");if(void 0==b||b.shortContent)return!1;var c=(I[b.sliderNumber]+G[b.sliderNumber]+b.numberOfSlides)%b.numberOfSlides;(c<b.childrenOffsets.length-1||b.settings.infiniteSlider)&&k.changeSlide(c+1,a(b.scrollerNode),a(b.slideNodes),ha[b.sliderNumber],b.scrollbarClass,b.scrollbarWidth,b.stageWidth,b.scrollbarStageWidth,b.scrollMargin,
b.scrollBorder,b.originalOffsets,b.childrenOffsets,b.slideNodeOuterWidths,b.sliderNumber,b.infiniteSliderWidth,b.numberOfSlides,b.centeredSlideOffset,b.settings);I[b.sliderNumber]=c})},lock:function(){return this.each(function(){var b=a(this).data("iosslider");if(void 0==b||b.shortContent)return!1;a(b.scrollerNode).css({cursor:"default"});ka[b.sliderNumber]=!0})},unlock:function(){return this.each(function(){var b=a(this).data("iosslider");if(void 0==b||b.shortContent)return!1;a(b.scrollerNode).css({cursor:H});
ka[b.sliderNumber]=!1})},getData:function(){return this.each(function(){var b=a(this).data("iosslider");return void 0==b||b.shortContent?!1:b})},autoSlidePause:function(){return this.each(function(){var b=a(this).data("iosslider");if(void 0==b||b.shortContent)return!1;Q[b.sliderNumber].autoSlide=!1;k.autoSlidePause(b.sliderNumber);return b})},autoSlidePlay:function(){return this.each(function(){var b=a(this).data("iosslider");if(void 0==b||b.shortContent)return!1;Q[b.sliderNumber].autoSlide=!0;k.autoSlide(a(b.scrollerNode),
a(b.slideNodes),ha[b.sliderNumber],b.scrollbarClass,b.scrollbarWidth,b.stageWidth,b.scrollbarStageWidth,b.scrollMargin,b.scrollBorder,b.originalOffsets,b.childrenOffsets,b.slideNodeOuterWidths,b.sliderNumber,b.infiniteSliderWidth,b.numberOfSlides,b.centeredSlideOffset,b.settings);return b})}};a.fn.iosSlider=function(b){if(Z[b])return Z[b].apply(this,Array.prototype.slice.call(arguments,1));if("object"!==typeof b&&b)a.error("invalid method call!");else return Z.init.apply(this,arguments)}})(jQuery);
(function(a,b,c){function d(a){var b={},d=/^jQuery\d+$/;c.each(a.attributes,function(a,c){c.specified&&!d.test(c.name)&&(b[c.name]=c.value)});return b}function f(a,b){var d=c(this);if(this.value==d.attr("placeholder")&&d.hasClass("placeholder"))if(d.data("placeholder-password")){d=d.hide().next().show().attr("id",d.removeAttr("id").data("placeholder-id"));if(!0===a)return d[0].value=b;d.focus()}else this.value="",d.removeClass("placeholder"),this==l()&&this.select()}function h(){var a=c(this),b=this.id;
if(""==this.value){if("password"==this.type){if(!a.data("placeholder-textinput")){try{var h=a.clone().attr({type:"text"})}catch(Q){h=c("<input>").attr(c.extend(d(this),{type:"text"}))}h.removeAttr("name").data({"placeholder-password":a,"placeholder-id":b}).bind("focus.placeholder",f);a.data({"placeholder-textinput":h,"placeholder-id":b}).before(h)}a=a.removeAttr("id").hide().prev().attr("id",b).show()}a.addClass("placeholder");a[0].value=a.attr("placeholder")}else a.removeClass("placeholder")}function l(){try{return b.activeElement}catch(H){}}
var w="placeholder"in b.createElement("input"),O="placeholder"in b.createElement("textarea"),A=c.fn,ia=c.valHooks,fa=c.propHooks;w&&O?(A=A.placeholder=function(){return this},A.input=A.textarea=!0):(A=A.placeholder=function(){this.filter((w?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":f,"blur.placeholder":h}).data("placeholder-enabled",!0).trigger("blur.placeholder");return this},A.input=w,A.textarea=O,A={get:function(a){var b=c(a),d=b.data("placeholder-password");
return d?d[0].value:b.data("placeholder-enabled")&&b.hasClass("placeholder")?"":a.value},set:function(a,b){var d=c(a),w=d.data("placeholder-password");if(w)return w[0].value=b;if(!d.data("placeholder-enabled"))return a.value=b;""==b?(a.value=b,a!=l()&&h.call(a)):d.hasClass("placeholder")?f.call(a,!0,b)||(a.value=b):a.value=b;return d}},w||(ia.input=A,fa.value=A),O||(ia.textarea=A,fa.value=A),c(function(){c(b).delegate("form","submit.placeholder",function(){var a=c(".placeholder",this).each(f);setTimeout(function(){a.each(h)},
10)})}),c(a).bind("beforeunload.placeholder",function(){c(".placeholder").each(function(){this.value=""})}))})(this,document,jQuery);var tdDetect={};
(function(){tdDetect={isIe8:!1,isIe9:!1,isIe10:!1,isIe11:!1,isIe:!1,isSafari:!1,isChrome:!1,isIpad:!1,isTouchDevice:!1,hasHistory:!1,isPhoneScreen:!1,isIos:!1,isAndroid:!1,isOsx:!1,isFirefox:!1,isWinOs:!1,isMobileDevice:!1,htmlJqueryObj:null,runIsPhoneScreen:function(){(768>jQuery(window).width()||768>jQuery(window).height())&&!1===tdDetect.isIpad?tdDetect.isPhoneScreen=!0:tdDetect.isPhoneScreen=!1},set:function(a,b){tdDetect[a]=b}};tdDetect.htmlJqueryObj=jQuery("html");-1!==navigator.appVersion.indexOf("Win")&&
tdDetect.set("isWinOs",!0);"ontouchstart"in window&&!tdDetect.isWinOs&&tdDetect.set("isTouchDevice",!0);tdDetect.htmlJqueryObj.is(".ie8")&&(tdDetect.set("isIe8",!0),tdDetect.set("isIe",!0));tdDetect.htmlJqueryObj.is(".ie9")&&(tdDetect.set("isIe9",!0),tdDetect.set("isIe",!0));-1<navigator.userAgent.indexOf("MSIE 10.0")&&(tdDetect.set("isIe10",!0),tdDetect.set("isIe",!0));navigator.userAgent.match(/Trident.*rv:11\./)&&tdDetect.set("isIe11",!0);window.history&&window.history.pushState&&tdDetect.set("hasHistory",
!0);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&tdDetect.set("isSafari",!0);/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())&&tdDetect.set("isChrome",!0);null!==navigator.userAgent.match(/iPad/i)&&tdDetect.set("isIpad",!0);/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&tdDetect.set("isIos",!0);/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&tdDetect.set("isMobileDevice",!0);tdDetect.runIsPhoneScreen();
-1<navigator.userAgent.toLowerCase().indexOf("android")&&tdDetect.set("isAndroid",!0);-1!==navigator.userAgent.indexOf("Mac OS X")&&tdDetect.set("isOsx",!0);-1!==navigator.userAgent.indexOf("Firefox")&&tdDetect.set("isFirefox",!0)})();var tdUtil={};
(function(){tdUtil={email_pattern:/^[a-zA-Z0-9][a-zA-Z0-9_\.-]{0,}[a-zA-Z0-9]@[a-zA-Z0-9][a-zA-Z0-9_\.-]{0,}[a-z0-9][\.][a-z0-9]{2,4}$/,stopBubble:function(a){a&&a.stopPropagation?a.stopPropagation():window.event.cancelBubble=!0},isEmail:function(a){return tdUtil.email_pattern.test(a)},imageMoveClassToFigure:function(a){jQuery("figure ."+a).each(function(){jQuery(this).parent().parent().addClass(a);jQuery(this).removeClass(a)})},getBackendVar:function(a){return"undefined"===typeof window[a]?"":window[a]},
isUndefined:function(a){return void 0===a},scrollToElement:function(a,b){tdIsScrollingAnimation=!0;jQuery("html, body").stop();a=a.offset().top>jQuery(document).height()-jQuery(window).height()?jQuery(document).height()-jQuery(window).height():a.offset().top;jQuery("html, body").animate({scrollTop:a},{duration:b,easing:"easeInOutQuart",complete:function(){tdIsScrollingAnimation=!1}})},scrollIntoView:function(a){tdIsScrollingAnimation=!0;if(!0!==tdDetect.isMobileDevice){jQuery("html, body").stop();
a=a.offset().top;a-=150;var b=Math.abs(jQuery(window).scrollTop()-a)/5;jQuery("html, body").animate({scrollTop:a},{duration:1100+b,easing:"easeInOutQuart",complete:function(){tdIsScrollingAnimation=!1}})}},scrollToPosition:function(a,b){tdIsScrollingAnimation=!0;jQuery("html, body").stop();jQuery("html, body").animate({scrollTop:a},{duration:b,easing:"easeInOutQuart",complete:function(){tdIsScrollingAnimation=!1}})},tdMoveY:function(a,b){b="translate3d(0px,"+b+"px, 0px)";a.style["-webkit-transform"]=
b;a.style["-moz-transform"]=b;a.style["-ms-transform"]=b;a.style["-o-transform"]=b;a.style.transform=b},isValidUrl:function(a){return/^(https?:\/\/)?((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(\:\d+)?(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_.~+=-]*)?(\#[-a-z\d_]*)?$/i.test(a)?!0:!1},round:function(a,b,c){b=Math.pow(10,b|0);a*=b;var d=0<a|-(0>a);var f=a%1===.5*d;var h=Math.floor(a);if(f)switch(c){case "PHP_ROUND_HALF_DOWN":a=h+(0>d);break;case "PHP_ROUND_HALF_EVEN":a=h+h%2*d;break;
case "PHP_ROUND_HALF_ODD":a=h+!(h%2);break;default:a=h+(0<d)}return(f?a:Math.round(a))/b}}})();var tdSite={},tdScrollToTopIsVisible=!1,tdResizeVideoTimer;jQuery(window).ready(function(){jQuery(".td-scroll-up").click(function(){tdScrollToTopIsVisible=!1;jQuery(this).removeClass("td-scroll-up-visible");window.scrollTo(0,0);return!1});tdSite.retina();tdSite.mobileMenu();tdSite.openCloseSearchBox();tdSite.resizeVideos();tdSite.validateCommentsForm();jQuery("input, textarea").placeholder()});
(function(){tdSite={tdEventsScrollToTop:function(a){400<a?!1===tdScrollToTopIsVisible&&(tdScrollToTopIsVisible=!0,jQuery(".td-scroll-up").addClass("td-scroll-up-visible")):!0===tdScrollToTopIsVisible&&(tdScrollToTopIsVisible=!1,jQuery(".td-scroll-up").removeClass("td-scroll-up-visible"))},resizeVideos:function(){jQuery(document).find('iframe[src*="youtube.com"]').each(function(){if(!jQuery(this).parent().hasClass("td_wrapper_playlist_player_youtube")){var a=jQuery(this);a.attr("width","100%");var b=
a.width();a.css("height",.5625*b,"important")}});jQuery(document).find('iframe[src*="vimeo.com"]').each(function(){if(!jQuery(this).parent().hasClass("td_wrapper_playlist_player_vimeo")){var a=jQuery(this);a.attr("width","100%");var b=a.width();a.css("height",.5625*b,"important")}});jQuery(document).find('iframe[src*="dailymotion.com"]').each(function(){var a=jQuery(this);a.css("width","100%");var b=a.width();a.css("height",.6*b,"important")});jQuery(document).find('iframe[src*="facebook.com/plugins/video.php"]').each(function(){var a=
jQuery(this);a.attr("width","100%");var b=a.width();a.css("height",.5625*b,"important")})},retina:function(){1<window.devicePixelRatio&&(jQuery(".td-retina").each(function(a){a=jQuery(this).attr("src").replace(".png","@2x.png");a=a.replace(".jpg","@2x.jpg");jQuery(this).attr("src",a)}),jQuery(".td-retina-data").each(function(a){jQuery(this).attr("src",jQuery(this).data("retina"));jQuery(this).addClass("td-retina-version")}))},mobileMenu:function(){jQuery("#td-top-mobile-toggle a, .td-mobile-close a").click(function(){jQuery("body").hasClass("td-menu-mob-open-menu")?
jQuery("body").removeClass("td-menu-mob-open-menu"):jQuery("body").addClass("td-menu-mob-open-menu")});jQuery(document).find("#td-mobile-nav .menu-item-has-children").each(function(a){a="td_mobile_elem_with_submenu_"+a;jQuery(this).addClass(a);jQuery(this).children("a").addClass("td-link-element-after");jQuery(this).click(function(a){var b=jQuery(a.target);!b.length||!b.hasClass("td-element-after")&&!b.hasClass("td-link-element-after")||"#"!==b.attr("href")&&void 0!==b.attr("href")||(a.preventDefault(),
a.stopPropagation(),jQuery(this).toggleClass("td-sub-menu-open"))})})},openCloseSearchBox:function(){jQuery("#td-header-search-button").click(function(){jQuery("body").addClass("td-search-opened");window.scrollTo(0,0);var a=jQuery("#td-header-search");setTimeout(function(){a.focus()},1300)});jQuery(".td-search-close a").click(function(){jQuery("body").removeClass("td-search-opened")})},validateCommentsForm:function(){jQuery(".comment-form").submit(function(a){jQuery("form#commentform :input").each(function(){var b=
jQuery(this),c=jQuery(this).parent().parent();b.attr("aria-required")&&(""==b.val()?(a.preventDefault(),c.addClass("td-comment-form-warnings"),"comment"==b.attr("id")?(c.find(".td-warning-comment").show(200),b.css("border","1px solid #ff7a7a")):"author"==b.attr("id")?(c.find(".td-warning-author").show(200),b.css("border","1px solid #ff7a7a")):"email"==b.attr("id")&&(c.find(".td-warning-email").show(200),b.css("border","1px solid #ff7a7a"))):"email"==b.attr("id")&&!1===tdUtil.isEmail(b.val())&&(a.preventDefault(),
c.addClass("td-comment-form-warnings"),c.find(".td-warning-email-error").show(200)))})});jQuery("form#commentform :input").each(function(){var a=jQuery(this).parent().parent(),b=jQuery(this);b.focus(function(){"comment"==b.attr("id")?(a.find(".td-warning-comment").hide(200),b.css("border","1px solid #e1e1e1")):"author"==b.attr("id")?(a.find(".td-warning-author").hide(200),b.css("border","1px solid #e1e1e1")):"email"==b.attr("id")&&(a.find(".td-warning-email").hide(200),a.find(".td-warning-email-error").hide(200),
b.css("border","1px solid #e1e1e1"))})})}}})();
"undefined"!==typeof window.td_fb_login_enabled&&jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"td_ajax_fb_login_get_credentials"},success:function(a){var b=jQuery.parseJSON(a);""===b.error&&(window.fbAsyncInit=function(){FB.init({appId:b.app_id,cookie:!0,xfbml:!0,version:"v13.0"});FB.AppEvents.logPageView()},function(a,b,f){var c=a.getElementsByTagName(b)[0];a.getElementById(f)||(a=a.createElement(b),a.id=f,a.src="https://connect.facebook.net/en_US/sdk.js",c.parentNode.insertBefore(a,c))}(document,
"script","facebook-jssdk"))}});var tdAjaxSearch={};jQuery().ready(function(){tdAjaxSearch.init()});
(function(){tdAjaxSearch={_current_selection_index:0,_last_request_results_count:0,_first_down_up:!0,_is_search_open:!1,init:function(){jQuery(document).click(function(a){"td-icon-search"!==a.target.className&&"td-header-search"!==a.target.id&&"td-header-search-top"!==a.target.id&&!0===tdAjaxSearch._is_search_open&&tdAjaxSearch.hide_search_box()});jQuery("#td-header-search-button").click(function(a){a.preventDefault();!0===tdAjaxSearch._is_search_open?tdAjaxSearch.hide_search_box():tdAjaxSearch.show_search_box()});
jQuery("#td-header-search").keydown(function(a){if(a.which&&13===a.which||a.keyCode&&13===a.keyCode)return a=jQuery(".td-aj-cur-element"),a.length?(a=a.find(".entry-title a").attr("href"),window.location=a):jQuery(this).parent().parent().submit(),!1;(a.which&&8===a.which||a.keyCode&&8===a.keyCode)&&jQuery(this).val().length&&jQuery("#td-aj-search").empty();tdAjaxSearch.td_aj_search_input_focus();setTimeout(function(){tdAjaxSearch.do_ajax_call()},100);return!0})},show_search_box:function(){jQuery(".td-drop-down-search").addClass("td-drop-down-search-open");
!0!==tdDetect.isIos&&setTimeout(function(){document.getElementById("td-header-search").focus()},200);tdAjaxSearch._is_search_open=!0},hide_search_box:function(){jQuery(".td-drop-down-search").removeClass("td-drop-down-search-open");tdAjaxSearch._is_search_open=!1},td_aj_search_input_focus:function(){tdAjaxSearch._current_selection_index=0;tdAjaxSearch._first_down_up=!0;jQuery(".td-search-form").fadeTo(100,1);jQuery(".td_module_wrap").removeClass("td-aj-cur-element")},process_ajax_response:function(a){var b=
jQuery("#td-header-search").val();""===b?jQuery("#td-aj-search").empty():(a=jQuery.parseJSON(a),a.td_search_query===b&&(tdAjaxSearch._current_selection_index=0,tdAjaxSearch._last_request_results_count=a.td_total_in_list,tdAjaxSearch._first_down_up=!0,jQuery("#td-aj-search").html(a.td_data),"undefined"!==typeof window.tdAnimationStack&&!0===window.tdAnimationStack.activated&&(window.tdAnimationStack.check_for_new_items("#td-aj-search .td-animation-stack",window.tdAnimationStack.SORTED_METHOD.sort_left_to_right,
!0,!1),window.tdAnimationStack.compute_items(!1))))},do_ajax_call:function(){var a=jQuery("#td-header-search").val();""===a?tdAjaxSearch.td_aj_search_input_focus():tdLocalCache.exist(a)?tdAjaxSearch.process_ajax_response(tdLocalCache.get(a)):jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"td_ajax_search",td_string:a},success:function(b,c,d){tdLocalCache.set(a,b);tdAjaxSearch.process_ajax_response(b)},error:function(a,c,d){}})}}})();"use strict";
var Froogaloop=function(){function a(b){return new a.fn.init(b)}function b(a,b,c){if(!c.contentWindow.postMessage)return!1;var d=c.getAttribute("src").split("?")[0];a=JSON.stringify({method:a,value:b});"//"===d.substr(0,2)&&(d=window.location.protocol+d);c.contentWindow.postMessage(a,d)}function c(a){try{var b=JSON.parse(a.data);var c=b.event||b.method}catch(H){}"ready"==c&&!h&&(h=!0);if(a.origin!=l)return!1;a=b.value;var d=b.data,w=""===w?null:b.player_id;b=w?f[w][c]:f[c];c=[];if(!b)return!1;void 0!==
a&&c.push(a);d&&c.push(d);w&&c.push(w);return 0<c.length?b.apply(null,c):b.call()}function d(a,b,c){c?(f[c]||(f[c]={}),f[c][a]=b):f[a]=b}var f={},h=!1,l="";a.fn=a.prototype={element:null,init:function(a){"string"===typeof a&&(a=document.getElementById(a));this.element=a;a=this.element.getAttribute("src");"//"===a.substr(0,2)&&(a=window.location.protocol+a);a=a.split("/");for(var b="",c=0,d=a.length;c<d;c++){if(3>c)b+=a[c];else break;2>c&&(b+="/")}l=b;return this},api:function(a,c){if(!this.element||
!a)return!1;var f=this.element,h=""!==f.id?f.id:null,l=c&&c.constructor&&c.call&&c.apply?null:c;(c=c&&c.constructor&&c.call&&c.apply?c:null)&&d(a,c,h);b(a,l,f);return this},addEvent:function(a,c){if(!this.element)return!1;var f=this.element,l=""!==f.id?f.id:null;d(a,c,l);"ready"!=a?b("addEventListener",a,f):"ready"==a&&h&&c.call(null,l);return this},removeEvent:function(a){if(!this.element)return!1;var c=this.element,d;a:{if((d=""!==c.id?c.id:null)&&f[d]){if(!f[d][a]){d=!1;break a}f[d][a]=null}else{if(!f[a]){d=
!1;break a}f[a]=null}d=!0}"ready"!=a&&d&&b("removeEventListener",a,c)}};a.fn.init.prototype=a.fn;window.addEventListener?window.addEventListener("message",c,!1):window.attachEvent("onmessage",c);return window.Froogaloop=window.$f=a}(),tdYoutubePlayers={},tdVimeoPlayers={};jQuery().ready(function(){tdYoutubePlayers.init();tdVimeoPlayers.init()});
(function(){tdYoutubePlayers={tdPlayerContainer:"player_youtube",players:[],init:function(){for(var a=jQuery(".td_wrapper_playlist_player_youtube"),b=0;b<a.length;b++){var c=jQuery(a[b]),d=tdYoutubePlayers.addPlayer(c),f=d.tdPlayerContainer;c.parent().find(".td_youtube_control").data("player-id",f);for(var h=c.parent().find(".td_click_video_youtube"),l=0;l<h.length;l++)jQuery(h[l]).data("player-id",f),l+1<h.length?jQuery(h[l]).data("next-video-id",jQuery(h[l+1]).data("video-id")):jQuery(h[l]).data("next-video-id",
jQuery(h[0]).data("video-id"));"1"==c.data("autoplay")&&(d.autoplay=1);c=c.data("first-video");""!==c&&(d.tdPlaylistIdYoutubeVideoRunning=c,d.playVideo(c))}jQuery(".td_click_video_youtube").click(function(){var a=jQuery(this).data("video-id"),b=jQuery(this).data("player-id");void 0!==b&&""!==b&&void 0!==a&&""!==a&&tdYoutubePlayers.operatePlayer(b,"play",a)});jQuery(".td_youtube_control").click(function(){var a=jQuery(this).data("player-id");void 0!==a&&""!==a&&(jQuery(this).hasClass("td-sp-video-play")?
tdYoutubePlayers.operatePlayer(a,"play"):tdYoutubePlayers.operatePlayer(a,"pause"))})},addPlayer:function(a){a=tdYoutubePlayers.createPlayer(tdYoutubePlayers.tdPlayerContainer+"_"+tdYoutubePlayers.players.length,a);tdYoutubePlayers.players.push(a);return a},operatePlayer:function(a,b,c){for(var d=0;d<tdYoutubePlayers.players.length;d++)if(tdYoutubePlayers.players[d].tdPlayerContainer==a){a=tdYoutubePlayers.players[d];a.playStatus();"play"===b?(a.autoplay=1,void 0===c?a.playerPlay():a.playVideo(c)):
"pause"==b&&tdYoutubePlayers.players[d].playerPause();break}},createPlayer:function(a,b){var c={tdYtPlayer:"",tdPlayerContainer:a,autoplay:0,tdPlaylistIdYoutubeVideoRunning:"",jqTDWrapperVideoPlaylist:b.closest(".td_wrapper_video_playlist"),jqPlayerWrapper:b,jqControlPlayer:"",_videoId:"",playVideo:function(a){c._videoId=a;"undefined"===typeof YT||"undefined"===typeof YT.Player?(window.onYouTubePlayerAPIReady=function(){for(var a=0;a<tdYoutubePlayers.players.length;a++)tdYoutubePlayers.players[a].loadPlayer()},
jQuery.getScript("https://www.youtube.com/player_api").done(function(a,b){})):c.loadPlayer(a)},loadPlayer:function(a){var b=c._videoId;void 0!==a&&(b=a);if(void 0!==b){c.tdPlaylistIdYoutubeVideoRunning=b;a=window.td_youtube_list_ids["td_"+c.tdPlaylistIdYoutubeVideoRunning].title;var d=window.td_youtube_list_ids["td_"+c.tdPlaylistIdYoutubeVideoRunning].time;c.jqTDWrapperVideoPlaylist.find(".td_click_video_youtube").removeClass("td_video_currently_playing");c.jqTDWrapperVideoPlaylist.find(".td_"+b).addClass("td_video_currently_playing");
c.jqTDWrapperVideoPlaylist.find(".td_current_video_play_title_youtube").html(a);c.jqTDWrapperVideoPlaylist.find(".td_current_video_play_time_youtube").html(d);c.jqPlayerWrapper.html("<div id="+c.tdPlayerContainer+"></div>");c.jqControlPlayer=c.jqTDWrapperVideoPlaylist.find(".td_youtube_control");c.tdYtPlayer=new YT.Player(c.tdPlayerContainer,{playerVars:{autoplay:c.autoplay},height:"100%",width:"100%",videoId:b,events:{onStateChange:c.onPlayerStateChange}})}},onPlayerStateChange:function(a){if(a.data===
YT.PlayerState.PLAYING)c.pauseStatus();else if(a.data===YT.PlayerState.ENDED){c.playStatus();c.autoplay=1;a="";var b=c.jqTDWrapperVideoPlaylist.find(".td_video_currently_playing");b.length&&(b=jQuery(b).next(".td_click_video_youtube"),b.length&&(a=jQuery(b).data("video-id")));""!==a&&c.playVideo(a)}else YT.PlayerState.PAUSED&&c.playStatus()},playerPlay:function(){c.tdYtPlayer.playVideo()},playerPause:function(){c.tdYtPlayer.pauseVideo()},playStatus:function(){c.jqControlPlayer.removeClass("td-sp-video-pause").addClass("td-sp-video-play")},
pauseStatus:function(){c.jqControlPlayer.removeClass("td-sp-video-play").addClass("td-sp-video-pause")}};return c}};tdVimeoPlayers={tdPlayerContainer:"player_vimeo",players:[],existingAutoplay:!1,init:function(){for(var a=jQuery(".td_wrapper_playlist_player_vimeo"),b=0;b<a.length;b++)0!==tdVimeoPlayers.addPlayer(jQuery(a[b])).autoplay&&(tdVimeoPlayers.existingAutoplay=!0);jQuery(".td_click_video_vimeo").click(function(){var a=jQuery(this).data("video-id"),b=jQuery(this).data("player-id");void 0!==
b&&""!==b&&void 0!==a&&""!==a&&tdVimeoPlayers.operatePlayer(b,"play",a)});jQuery(".td_vimeo_control").click(function(){var a=jQuery(this).data("player-id");void 0!==a&&""!==a&&(jQuery(this).hasClass("td-sp-video-play")?tdVimeoPlayers.operatePlayer(a,"play"):tdVimeoPlayers.operatePlayer(a,"pause"))})},addPlayer:function(a){var b=tdVimeoPlayers.tdPlayerContainer+"_"+tdVimeoPlayers.players.length,c=tdVimeoPlayers.createPlayer(b,a);a.parent().find(".td_vimeo_control").data("player-id",b);for(var d=a.parent().find(".td_click_video_vimeo"),
f=0;f<d.length;f++)jQuery(d[f]).data("player-id",b),f+1<d.length?jQuery(d[f]).data("next-video-id",jQuery(d[f+1]).data("video-id")):jQuery(d[f]).data("next-video-id",jQuery(d[0]).data("video-id"));"1"==a.data("autoplay")&&(c.autoplay=1);a=a.data("first-video");void 0!==a&&""!==a&&c.createPlayer(a);tdVimeoPlayers.players.push(c);return c},operatePlayer:function(a,b,c){for(var d=0;d<tdVimeoPlayers.players.length;d++)if(tdVimeoPlayers.players[d].playerId==a){a=tdVimeoPlayers.players[d];"play"===b?(a.autoplay=
1,void 0!==c?a.createPlayer(c):a.playerPlay()):"pause"===b&&a.playerPause();break}},createPlayer:function(a,b){var c={playerId:a,jqTDWrapperVideoPlaylist:b.closest(".td_wrapper_video_playlist"),jqPlayerWrapper:b,currentVideoPlaying:"",player:"",jqControlPlayer:"",autoplay:0,createPlayer:function(a){if(""!==a){this.currentVideoPlaying=a;var b="",d=window.td_vimeo_list_ids["td_"+a].title,l=window.td_vimeo_list_ids["td_"+a].time;c.jqTDWrapperVideoPlaylist.find(".td_click_video_vimeo").removeClass("td_video_currently_playing");
c.jqTDWrapperVideoPlaylist.find(".td_"+a).addClass("td_video_currently_playing");c.jqTDWrapperVideoPlaylist.find(".td_current_video_play_title_vimeo").html(d);c.jqTDWrapperVideoPlaylist.find(".td_current_video_play_time_vimeo").html(l);c.jqControlPlayer=c.jqTDWrapperVideoPlaylist.find(".td_vimeo_control");tdVimeoPlayers.existingAutoplay||0===c.autoplay?c.playStatus():(b="&autoplay=1",tdDetect.isMobileDevice?c.playStatus():c.pauseStatus());c.jqPlayerWrapper.html('<iframe id="'+c.playerId+'" src="https://player.vimeo.com/video/'+
a+"?api=1&player_id="+c.playerId+b+'"  frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>');c.createVimeoObjectPlayer(jQuery)}},createVimeoObjectPlayer:function(a){var b="";a=a("#"+c.playerId);a.length&&(b=$f(a[0]),c.player=b,b.addEvent("ready",function(){b.addEvent("play",function(a){c.pauseStatus();c.autoplay=1});b.addEvent("pause",function(a){c.playStatus()});b.addEvent("finish",function(a){a="";var b=c.jqTDWrapperVideoPlaylist.find(".td_video_currently_playing");
b.length&&(b=jQuery(b).next(".td_click_video_vimeo"),b.length&&(a=jQuery(b).data("video-id")));""!==a?(c.createPlayer(a),tdDetect.isMobileDevice?c.playStatus():c.pauseStatus()):c.playStatus()})}))},playerPlay:function(){c.autoplay=1;c.player.api("play")},playerPause:function(){c.player.api("pause")},playStatus:function(){c.jqControlPlayer.removeClass("td-sp-video-pause").addClass("td-sp-video-play")},pauseStatus:function(){c.jqControlPlayer.removeClass("td-sp-video-play").addClass("td-sp-video-pause")}};
return c}}})();var tdEvents={};
(function(){tdEvents={scroll_event_slow_run:!1,scroll_event_medium_run:!1,resize_event_slow_run:!1,resize_event_medium_run:!1,scroll_window_scrollTop:0,window_pageYOffset:window.pageYOffset,window_innerHeight:window.innerHeight,window_innerWidth:window.innerWidth,init:function(){jQuery(window).scroll(function(){tdEvents.scroll_event_slow_run=!0;tdEvents.scroll_event_medium_run=!0;tdEvents.scroll_window_scrollTop=jQuery(window).scrollTop();tdEvents.window_pageYOffset=window.pageYOffset;tdAffix.scroll();
tdCustomEvents._callback_scroll()});jQuery(window).resize(function(){tdEvents.resize_event_slow_run=!0;tdEvents.resize_event_medium_run=!0;tdEvents.window_innerHeight=window.innerHeight;tdEvents.window_innerWidth=window.innerWidth;tdCustomEvents._callback_resize()});setInterval(function(){tdEvents.scroll_event_medium_run&&(tdEvents.scroll_event_medium_run=!1,tdCustomEvents._lazy_callback_scroll_100());tdEvents.resize_event_medium_run&&(tdEvents.resize_event_medium_run=!1,tdCustomEvents._lazy_callback_resize_100())},
100);setInterval(function(){tdEvents.scroll_event_slow_run&&(tdEvents.scroll_event_slow_run=!1,tdSite.tdEventsScrollToTop(tdEvents.scroll_window_scrollTop),tdCustomEvents._lazy_callback_scroll_500());tdEvents.resize_event_slow_run&&(tdEvents.resize_event_slow_run=!1,tdCustomEvents._lazy_callback_resize_500())},500)}};tdEvents.init()})();var tdAjaxCount={};
(function(){tdAjaxCount={tdGetViewsCountsAjax:function(a,b){var c="td_ajax_get_views";"post"===a&&(c="td_ajax_update_views");jQuery.ajax({type:"POST",url:td_ajax_url,cache:!0,data:{action:c,td_post_ids:b},success:function(a,b,c){a=jQuery.parseJSON(a);a instanceof Object&&jQuery.each(a,function(a,b){jQuery(".td-nr-views-"+a).html(b)})},error:function(a,b,c){}})}}})();var tdCustomEvents={};
(function(){tdCustomEvents={_callback_scroll:function(){},_callback_resize:function(){},_lazy_callback_scroll_100:function(){},_lazy_callback_scroll_500:function(){},_lazy_callback_resize_100:function(){tdAffix.setWPAdminBarPosition()},_lazy_callback_resize_500:function(){clearTimeout(tdResizeVideoTimer);tdResizeVideoTimer=setTimeout(function(){tdSite.resizeVideos()},200)}}})();var tdAffix={};
(function(){tdAffix={_menu:void 0,_menuHeight:void 0,_nextElement:void 0,_currentPosition:void 0,_previousScrolledPosition:0,_previousScrolledDistance:0,_isUp:0,_marginFakeWidth:30,_marginFakeColor:void 0,_wpadminbar:void 0,_wpadminbarFirstPositionCheck:!1,_wpadminbarHeight:0,init:function(a){"hide"!==tdUtil.getBackendVar("tdm_sticky_menu")&&(a=jQuery("."+a),a.length&&(tdAffix._menu=a,tdAffix._menuHeight=a.outerHeight(!0),tdAffix._nextElement=a.next(),tdAffix._previousScrolledPosition=tdEvents.window_pageYOffset,
tdAffix._previousScrolledPosition>tdAffix._menuHeight?(tdAffix._currentPosition=1,tdAffix._menu.css("position","fixed"),tdAffix._menu.css("top",-tdAffix._menuHeight),tdAffix._nextElement.css("padding-top",tdAffix._menuHeight)):tdAffix._currentPosition=0,tdAffix._marginFakeColor=tdAffix._menu.css("background-color"),jQuery(document.body).hasClass("admin-bar")&&(a=jQuery("<div></div>"),jQuery(document.body).prepend(a),tdAffix._wpadminbarHeight=a.offset().top,a.remove()),tdAffix.setWPAdminBarPosition()),
tdAffix.log(tdAffix._currentPosition+" : "+tdAffix._menuHeight))},_addMarginFake:function(){void 0!==tdAffix._menu&&(tdAffix._menu.css("border-top-width",tdAffix._marginFakeWidth),tdAffix._menu.css("border-top-style","solid"),tdAffix._menu.css("border-top-color",tdAffix._marginFakeColor),tdAffix._menu.css("height",tdAffix._menuHeight+tdAffix._marginFakeWidth))},_removeMarginFake:function(){void 0!==tdAffix._menu&&(tdAffix._menu.css("border-top-width",""),tdAffix._menu.css("border-top-style",""),tdAffix._menu.css("border-top-color",
""),tdAffix._menu.css("height",""))},_setMenuToOriginalState:function(){void 0!==tdAffix._menu&&(tdAffix._currentPosition=0,tdAffix._menu.css("position",""),tdAffix._menu.css("top",""),tdAffix._nextElement.css("padding-top",""),tdAffix._previousScrolledPosition=tdEvents.scroll_window_scrollTop,tdAffix._removeMarginFake(),tdAffix._menu.hide().show(0))},scroll:function(){if(void 0!==tdAffix._menu)if(0!==tdAffix._currentPosition&&0>=tdEvents.scroll_window_scrollTop)tdAffix.log("special case"),tdAffix._setMenuToOriginalState();
else{tdAffix.log(tdEvents.scroll_window_scrollTop+" : "+tdAffix._previousScrolledPosition);tdAffix._checkWPAdminBarPosition();if(tdEvents.scroll_window_scrollTop>tdAffix._previousScrolledPosition)switch(tdAffix._currentPosition){case 0:tdAffix.log("down 0");tdEvents.scroll_window_scrollTop>tdAffix._menuHeight+tdAffix._wpadminbarHeight&&(tdAffix._currentPosition=1,tdAffix._menu.css("position","fixed"),tdAffix._menu.css("top",-tdAffix._menuHeight),tdAffix._nextElement.css("padding-top",tdAffix._menuHeight));
break;case 1:tdAffix.log("down 1");break;case 2:tdAffix.log("down 2");var a=parseInt(tdAffix._menu.css("top").replace("px",""));tdEvents.scroll_window_scrollTop>a+tdAffix._menuHeight+tdAffix._marginFakeWidth&&(tdAffix._fastUp=!0,tdAffix._currentPosition=1,tdAffix._menu.css("position","fixed"),tdAffix._menu.css("top",-tdAffix._menuHeight),tdAffix._removeMarginFake());break;case 3:!0===tdDetect.isIos&&0<tdAffix._isUp?(tdAffix._isUp=0,tdAffix.log("skip down")):(tdAffix.log("down 3"),tdAffix._currentPosition=
2,tdAffix._menu.css("position","absolute"),tdAffix._menu.css("top",tdAffix._previousScrolledPosition-tdAffix._marginFakeWidth+1),tdAffix._addMarginFake())}else if(tdEvents.scroll_window_scrollTop<tdAffix._previousScrolledPosition)switch(0>=tdAffix._isUp&&tdAffix._isUp++,tdAffix._currentPosition){case 0:tdAffix.log("up 0");break;case 1:tdAffix.log("up 1");tdAffix._previousScrolledPosition-tdEvents.scroll_window_scrollTop>=tdAffix._menuHeight?(tdAffix._currentPosition=3,tdAffix._menu.css("position",
"fixed"),tdAffix._menu.css("top",0),tdAffix._removeMarginFake()):(tdAffix._currentPosition=2,tdAffix._menu.css("position","absolute"),tdAffix._menu.css("top",tdEvents.scroll_window_scrollTop-tdAffix._menuHeight-tdAffix._marginFakeWidth),tdAffix._addMarginFake());break;case 2:tdAffix.log("up 2");a=parseInt(tdAffix._menu.css("top").replace("px",""));a>=tdEvents.scroll_window_scrollTop+tdAffix._previousScrolledDistance-tdAffix._marginFakeWidth&&(tdAffix._currentPosition=3,tdAffix._menu.css("position",
"fixed"),tdAffix._menu.css("top",0),tdAffix._removeMarginFake());break;case 3:tdAffix.log("up 3"),tdEvents.scroll_window_scrollTop<=tdAffix._wpadminbarHeight&&(tdAffix._currentPosition=0,tdAffix._setMenuToOriginalState())}tdAffix._previousScrolledPosition=tdEvents.scroll_window_scrollTop}},_checkWPAdminBarPosition:function(){!1===tdAffix._wpadminbarFirstPositionCheck&&(tdAffix.setWPAdminBarPosition(),tdAffix._wpadminbarFirstPositionCheck=!0)},setWPAdminBarPosition:function(){if(void 0===tdAffix._wpadminbar){var a=
jQuery("#wpadminbar");a.length&&(tdAffix._wpadminbar=a)}void 0!==tdAffix._wpadminbar&&(tdAffix._wpadminbar.css("position","absolute"),tdAffix._wpadminbar.css("top",0),tdAffix._wpadminbarHeight=tdAffix._wpadminbar.outerHeight())},log:function(a){}};tdAffix.init("td-header-wrap")})();
jQuery().ready(function(){jQuery("#login-link").on("click",function(){tdLogin.showHideElements([["#td-login-div",1],["#td-register-div",0],["#td-forgot-pass-div",0]]);jQuery("#td-mobile-nav").addClass("td-hide-menu-content");700<jQuery(window).width()&&!1===tdDetect.isIe&&jQuery("#login_email").focus();tdLogin.showHideMsg()});jQuery("#register-link").on("click",function(){tdLogin.showHideElements([["#td-login-div",0],["#td-register-div",1],["#td-forgot-pass-div",0]]);jQuery("#td-mobile-nav").addClass("td-hide-menu-content");
700<jQuery(window).width()&&!1===tdDetect.isIe&&jQuery("#register_email").focus();tdLogin.showHideMsg()});jQuery("#forgot-pass-link").on("click",function(){tdLogin.showHideElements([["#td-login-div",0],["#td-register-div",0],["#td-forgot-pass-div",1]]);700<jQuery(window).width()&&!1===tdDetect.isIe&&jQuery("#forgot_email").focus();tdLogin.showHideMsg()});jQuery("#login_button").on("click",function(){tdLogin.handlerLogin()});jQuery("#login_pass").keydown(function(a){(a.which&&13===a.which||a.keyCode&&
13===a.keyCode)&&tdLogin.handlerLogin()});jQuery("#register_button").on("click",function(){tdLogin.handlerRegister()});jQuery("#register_user").keydown(function(a){(a.which&&13===a.which||a.keyCode&&13===a.keyCode)&&tdLogin.handlerRegister()});jQuery("#forgot_button").on("click",function(){tdLogin.handlerForgotPass()});jQuery("#forgot_email").keydown(function(a){(a.which&&13===a.which||a.keyCode&&13===a.keyCode)&&tdLogin.handlerForgotPass()});jQuery(".td-login-close a, .td-register-close a").on("click",
function(){tdLogin.showHideElements([["#td-login-div",0],["#td-register-div",0],["#td-forgot-pass-div",0]]);jQuery("#td-mobile-nav").removeClass("td-hide-menu-content")});jQuery(".td-forgot-pass-close a").on("click",function(){tdLogin.showHideElements([["#td-login-div",1],["#td-register-div",0],["#td-forgot-pass-div",0]])});if(void 0!==window.tds_login_mobile)jQuery(".td-login-modal-js, .comment-reply-login").on("click",function(a){a.preventDefault();jQuery("body").addClass("td-menu-mob-open-menu");
jQuery(".td-mobile-container").hide();jQuery("#td-mobile-nav").addClass("td-hide-menu-content");setTimeout(function(){jQuery(".td-mobile-container").show()},500);tdLogin.showHideElements([["#td-login-div",1],["#td-register-div",0],["#td-forgot-pass-div",0]])});jQuery(".td-login-fb-mob").on("click",function(a){a.preventDefault();a=jQuery(this);tdLogin.doFBLoginAction(a)})});var tdLogin={};
(function(){tdLogin={email_pattern:/^[a-zA-Z0-9][a-zA-Z0-9_\.-]{0,}[a-zA-Z0-9]@[a-zA-Z0-9][a-zA-Z0-9_\.-]{0,}[a-z0-9][\.][a-z0-9]{2,4}$/,handlerLogin:function(){var a=jQuery("#login_email"),b=jQuery("#login_pass"),c=jQuery("#gRecaptchaResponseMobL");if(a.length&&b.length){var d=a.val().trim(),f=b.val().trim(),h=c.attr("data-sitekey"),l="";d&&f?(tdLogin.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]),tdLogin.showHideMsg(td_please_wait),c.length?grecaptcha.ready(function(){grecaptcha.execute(h,
{action:"submit"}).then(function(a){l=a;tdLogin.doAction("td_mod_login",d,"",f,l)})}):tdLogin.doAction("td_mod_login",d,"",f)):tdLogin.showHideMsg(td_email_user_pass_incorrect)}},handlerRegister:function(){var a=jQuery("#register_email"),b=jQuery("#register_user"),c=jQuery("#gRecaptchaResponseMobR");if(a.length&&b.length){var d=a.val().trim(),f=b.val().trim(),h=c.attr("data-sitekey"),l="";tdLogin.email_pattern.test(d)&&f?(tdLogin.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]),tdLogin.showHideMsg(td_please_wait),
c.length?grecaptcha.ready(function(){grecaptcha.execute(h,{action:"submit"}).then(function(a){l=a;tdLogin.doAction("td_mod_register",d,f,"",l)})}):tdLogin.doAction("td_mod_register",d,f,"")):tdLogin.showHideMsg(td_email_user_incorrect)}},handlerForgotPass:function(){var a=jQuery("#forgot_email");a.length&&(a=a.val().trim(),tdLogin.email_pattern.test(a)?(tdLogin.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]),tdLogin.showHideMsg(td_please_wait),tdLogin.doAction("td_mod_remember_pass",a,"",
"")):tdLogin.showHideMsg(td_email_incorrect))},showHideElements:function(a){if(a.constructor===Array)for(var b=a.length,c=0;c<b;c++)if(a[c].constructor===Array&&2===a[c].length){var d=jQuery(a[c][0]);d.length&&(1===a[c][1]?d.removeClass("td-login-hide").addClass("td-login-show"):d.removeClass("td-login-show").addClass("td-login-hide"))}},showTabs:function(a){if(a.constructor===Array)for(var b=a.length,c=0;c<b;c++)if(a[c].constructor===Array&&2===a[c].length){var d=jQuery(a[c][0]);d.length&&(1===a[c][1]?
d.addClass("td_login_tab_focus"):d.removeClass("td_login_tab_focus"))}},addRemoveClass:function(a){if(a.constructor===Array&&3===a.length){var b=jQuery(a[0]);b.length&&(1===a[1]?b.addClass(a[2]):b.removeClass(a[2]))}},showHideMsg:function(a){var b=jQuery(".td_display_err");b.length&&(void 0!==a&&a.constructor===String&&0<a.length?(b.show(),b.html(a)):(b.hide(),b.html("")))},clearFields:function(){jQuery("#login_email").val("");jQuery("#login_pass").val("");jQuery("#register_email").val("");jQuery("#register_user").val("");
jQuery("#forgot_email").val("")},doAction:function(a,b,c,d,f){jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:a,email:b,user:c,pass:d,captcha:f,mobile:!0},success:function(a,b,c){a=jQuery.parseJSON(a);switch(a[0]){case "login":1===a[1]?location.reload(!0):(tdLogin.addRemoveClass([".td_display_err",0,"td_display_msg_ok"]),tdLogin.showHideMsg(a[2]));break;case "register":1===a[1]?tdLogin.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]):tdLogin.addRemoveClass([".td_display_err",0,"td_display_msg_ok"]);
tdLogin.showHideMsg(a[2]);break;case "remember_pass":1===a[1]?tdLogin.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]):tdLogin.addRemoveClass([".td_display_err",0,"td_display_msg_ok"]),tdLogin.showHideMsg(a[2])}},error:function(a,b,c){}})},doFBLoginAction:function(a){var b=a.closest("#login-form");b.find(".td_display_err").hide();b.addClass("td-login-form-mobile-fb-open");FB.login(function(a){"connected"===a.status?FB.api("/me?fields=id,name,first_name,last_name,email,picture.type(large),locale",
function(a){jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"td_ajax_fb_login_user",user:a},success:function(a){a=jQuery.parseJSON(a);""!==a.error?(b.removeClass("td-login-form-mobile-fb-open"),tdLogin.addRemoveClass([".td_display_err",0,"td_display_msg_ok"]),tdLogin.showHideMsg(a.error)):(""!==a.success&&(tdLogin.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]),tdLogin.showHideMsg(a.success)),location.reload(!0))}})}):(b.removeClass("td-login-form-mobile-fb-open"),tdLogin.addRemoveClass([".td_display_err",
0,"td_display_msg_ok"]),tdLogin.showHideMsg("An unexpected error has occured. Please try again!"))},{scope:"public_profile, email"})}}})();var tdViewport={};
(function(){tdViewport={INTERVAL_INITIAL_INDEX:-1,_currentIntervalIndex:tdViewport.INTERVAL_INITIAL_INDEX,_intervalList:[],init:function(){if("undefined"!==typeof window.td_viewport_interval_list&&Array===window.td_viewport_interval_list.constructor){for(var a=0;a<window.td_viewport_interval_list.length;a++){var b=new tdViewport.item,c=window.td_viewport_interval_list[a];if(!c.hasOwnProperty("limitBottom")||!c.hasOwnProperty("sidebarWidth"))break;b.limitBottom=c.limitBottom;b.sidebarWidth=c.sidebarWidth;
tdViewport._items.push(b)}tdViewport.detectChanges()}},getCurrentIntervalIndex:function(){return tdViewport._currentIntervalIndex},setIntervalList:function(a){tdViewport._intervalList=a},getIntervalList:function(){return tdViewport._intervalList},getCurrentIntervalItem:function(){return tdViewport.INTERVAL_INITIAL_INDEX===tdViewport._currentIntervalIndex||0===tdViewport._currentIntervalIndex?null:tdViewport._items[tdViewport._currentIntervalIndex-1]},_items:[],item:function(){this.sidebarWidth=this.limitBottom=
void 0},detectChanges:function(){var a=!1,b=0;var c=!0===tdDetect.isSafari?this._safariWiewPortWidth.getRealWidth():Math.max(document.documentElement.clientWidth,window.innerWidth||0);for(var d=0;d<tdViewport._items.length;d++){if(c<=tdViewport._items[d].limitBottom){b!==tdViewport._currentIntervalIndex&&(tdViewport._currentIntervalIndex=b,a=!0,tdViewport.log("changing viewport "+tdViewport._currentIntervalIndex+" ~ "+c));break}b++}!1===a&&b!==tdViewport._currentIntervalIndex&&(tdViewport._currentIntervalIndex=
b,a=!0,tdViewport.log("changing viewport "+tdViewport._currentIntervalIndex+" ~ "+c));return a},_safariWiewPortWidth:{divAdded:!1,divJqueryObject:"",getRealWidth:function(){!1===this.divAdded&&(this.divJqueryObject=jQuery("<div>").css({height:"1px",position:"absolute",top:"-1px",left:"0",right:"0",visibility:"hidden","z-index":"-1"}),this.divJqueryObject.appendTo("body"),this.divAdded=!0);return this.divJqueryObject.width()}},log:function(a){}};tdViewport.init()})();var tdPullDown={};
(function(){tdPullDown={_view_port_interval_index:tdViewport.INTERVAL_INITIAL_INDEX,items:[],item:function(){this.container_jquery_obj=this.vertical_jquery_obj=this.horizontal_jquery_obj=this.blockUid="";this.isTdbMenu=!1;this.horizontal_max_width=this.horizontal_no_items_css_class=this.horizontal_element_css_class=this.sub_icon=this.main_sub_icon="";this.minimum_elements=1;this.excluded_jquery_elements=[];this._horizontal_extra_space=1;this._horizontal_elements=[];this._vertical_elements=[];this._vertical_ul_jquery_obj=
"";this._vertical_jquery_obj_outer_width=0;this._is_initialized=!1},init:function(){tdPullDown._view_port_interval_index=tdViewport.getCurrentIntervalIndex();tdPullDown.items=[]},add_item:function(a){if(1!==a.vertical_jquery_obj.length)throw"item.vertical_jquery_obj is more or less than one: "+a.vertical_jquery_obj.length;if(1!==a.horizontal_jquery_obj.length)throw"item.horizontal_jquery_obj is more or less than one: "+a.horizontal_jquery_obj.length;if(1!==a.container_jquery_obj.length)throw"item.container_jquery_obj is more or less than one: "+
a.container_jquery_obj.length;if(""===a.horizontal_element_css_class)throw"item.horizontal_element_css_class is empty";tdPullDown.items.push(a);tdPullDown._initialize_item(a);tdPullDown._compute_item(a)},deleteItem:function(a){for(var b=0;b<tdPullDown.items.length;b++)if(tdPullDown.items[b].blockUid===a)return tdPullDown.items.splice(b,1),!0;return!1},unloadItem:function(a){for(var b=0;b<tdPullDown.items.length;b++)if(tdPullDown.items[b].blockUid===a){for(var c=0;c<tdPullDown.items[b]._vertical_elements.length;c++)tdPullDown.items[b]._vertical_elements[c].jquery_object.detach().appendTo(tdPullDown.items[b].horizontal_jquery_obj);
tdPullDown.deleteItem(a);return!0}return!1},_initialize_item:function(a){if(!0!==a._is_initialized)if(a._vertical_ul_jquery_obj=a.vertical_jquery_obj.find("ul:first"),0===a._vertical_ul_jquery_obj.length)tdPullDown.log("Item can' be initialized. The vertical list doesn't have an 'ul' container");else{var b=null,c=null;a.horizontal_jquery_obj.find("."+a.horizontal_element_css_class+":visible").each(function(d,h){b=jQuery(h);b.css("-webkit-transition","opacity 0.2s");b.css("-moz-transition","opacity 0.2s");
b.css("-o-transition","opacity 0.2s");b.css("transition","opacity 0.2s");b.css("opacity","1");c={jquery_object:b,calculated_width:b.outerWidth(!0)};a._horizontal_elements.push(c)});a._vertical_jquery_obj_outer_width=a.vertical_jquery_obj.outerWidth(!0);a.vertical_jquery_obj.css("display","none");var d=a.horizontal_jquery_obj.css("padding-left");void 0!==d&&""!==d&&(a._horizontal_extra_space+=parseInt(d.replace("px","")));d=a.horizontal_jquery_obj.css("padding-right");void 0!==d&&""!==d&&(a._horizontal_extra_space+=
parseInt(d.replace("px","")));d=a.horizontal_jquery_obj.css("margin-left");void 0!==d&&""!==d&&(a._horizontal_extra_space+=parseInt(d.replace("px","")));d=a.horizontal_jquery_obj.css("margin-right");void 0!==d&&""!==d&&(a._horizontal_extra_space+=parseInt(d.replace("px","")));d=a.horizontal_jquery_obj.css("border-left");void 0!==d&&""!==d&&(a._horizontal_extra_space+=parseInt(d.replace("px","")));d=a.horizontal_jquery_obj.css("border-right");void 0!==d&&""!==d&&(a._horizontal_extra_space+=parseInt(d.replace("px",
"")));a._is_initialized=!0}},_get_horizontal_elements_width:function(a){for(var b=0,c=a._horizontal_elements.length-1;0<=c;c--)b+=a._horizontal_elements[c].calculated_width;return b},_reinitialize_all_items:function(){for(var a=tdPullDown.items.length-1;0<=a;a--)tdPullDown._reinitialize_item(tdPullDown.items[a])},_reinitialize_item:function(a){if(!1!==a._is_initialized){a._is_initialized=!1;a.horizontal_jquery_obj.html(a.horizontal_jquery_obj.html()+a._vertical_ul_jquery_obj.html());if(a.isTdbMenu){var b=
a.horizontal_jquery_obj.find("> .tdb-normal-menu.menu-item-has-children");b.length&&b.each(function(){var b=jQuery(this);tdPullDown._change_sub_icon_horiz_elements(a,b)})}a._vertical_ul_jquery_obj.html("");a._horizontal_elements=[];a._vertical_elements=[];a._horizontal_extra_space=1;tdPullDown._initialize_item(a)}},_compute_item:function(a){if(!1!==a._is_initialized){tdPullDown._prepare_horizontal_header(a,!0);var b=0,c=a.container_jquery_obj.width();if(void 0!==c&&""!==c){b=c;if(""!==a.horizontal_max_width){var d=
parseInt(a.horizontal_max_width.replace("px",""));c>d&&(b=d)}for(c=a.excluded_jquery_elements.length-1;0<=c;c--)b-=a.excluded_jquery_elements[c].outerWidth(!0)}0<a._vertical_elements.length&&(b-=a._vertical_jquery_obj_outer_width);b-=tdPullDown._get_horizontal_elements_width(a);for(b-=a._horizontal_extra_space;0>b;){if(0!==a.minimum_elements&&a._horizontal_elements.length<=a.minimum_elements){tdPullDown._make_all_elements_vertical(a);tdPullDown._prepare_horizontal_header(a);return}0===a._vertical_elements.length&&
(b-=a._vertical_jquery_obj_outer_width);d=tdPullDown._make_element_vertical(a);b+=d.calculated_width}if(0!==a.minimum_elements&&0===a._horizontal_elements.length&&0<a._vertical_elements.length&&b>=a._vertical_elements[0].calculated_width){for(d=c=0;d<a.minimum_elements&&d<a._vertical_elements.length;d++)c+=a._vertical_elements[d].calculated_width;for(var f=0,h=a.minimum_elements;0<h&&0<a._vertical_elements.length&&b>=c;)if(d=tdPullDown._make_element_horizontal(a),null!==d)f+=d.calculated_width,h--;
else{tdPullDown._prepare_horizontal_header(a);return}b-=f}for(;(0<a._horizontal_elements.length||0===a._horizontal_elements.length&&0===a.minimum_elements)&&0<a._vertical_elements.length&&b>=a._vertical_elements[0].calculated_width;)if(d=tdPullDown._make_element_horizontal(a),null!==d)b-=d.calculated_width;else{tdPullDown._prepare_horizontal_header(a);return}1===a._vertical_elements.length&&b+a._vertical_jquery_obj_outer_width>=a._vertical_elements[0].calculated_width&&tdPullDown._make_element_horizontal(a);
tdPullDown._add_no_items_class(a);tdPullDown._prepare_horizontal_header(a)}},_prepare_horizontal_header:function(a,b){var c=a.horizontal_jquery_obj.parent().siblings(".block-title:first");1===c.length&&(c=c.find("span:first"),1===c.length&&("undefined"!==typeof b&&!0===b?c.css("margin-right",0):0===a._horizontal_elements.length?c.css("margin-right",a._vertical_jquery_obj_outer_width+"px"):c.css("margin-right",0)))},_compute_all_items:function(){for(var a=tdPullDown.items.length-1;0<=a;a--)tdPullDown.items[a].constructor===
tdPullDown.item&&tdPullDown._compute_item(tdPullDown.items[a])},_make_element_horizontal:function(a){if(!1===a._is_initialized||0===a._vertical_elements.length)return null;var b=a._vertical_elements.shift(),c=b.jquery_object;0===a._vertical_elements.length&&a.vertical_jquery_obj.css("display","none");a._horizontal_elements.push(b);c.css("opacity","0");c.detach().appendTo(a.horizontal_jquery_obj);!0===a.isTdbMenu&&c.hasClass("menu-item-has-children")&&c.hasClass("tdb-normal-menu")&&tdPullDown._change_sub_icon_horiz_elements(a,
c);setTimeout(function(){b.jquery_object.css("opacity","1")},50);return b},_change_sub_icon_horiz_elements:function(a,b){b=b.find("> a");var c=b.find(".tdb-sub-menu-icon");c.length?""!==a.main_sub_icon?c.replaceWith(a.main_sub_icon):c.remove():""!==a.main_sub_icon&&b.append(a.main_sub_icon)},_make_element_vertical:function(a){if(!1===a._is_initialized||0===a._horizontal_elements.length)return null;var b=a._horizontal_elements.pop(),c=b.jquery_object;0===a._vertical_elements.length&&a.vertical_jquery_obj.css("display",
"");a._vertical_elements.unshift(b);c.detach().prependTo(a._vertical_ul_jquery_obj);!0===a.isTdbMenu&&c.hasClass("menu-item-has-children")&&c.hasClass("tdb-normal-menu")&&tdPullDown._change_sub_icon_vert_elements(a,c);return b},_change_sub_icon_vert_elements:function(a,b){b=b.find("> a");var c=b.find(".tdb-sub-menu-icon");c.length?""!==a.sub_icon?c.replaceWith(a.sub_icon):c.remove():""!==a.sub_icon&&b.append(a.sub_icon)},_make_all_elements_vertical:function(a){for(;0<a._horizontal_elements.length;)tdPullDown._make_element_vertical(a);
tdPullDown._add_no_items_class(a)},_add_no_items_class:function(a){""!==a.horizontal_no_items_css_class&&(0===a._horizontal_elements.length?a.horizontal_jquery_obj.addClass(a.horizontal_no_items_css_class):0<a._horizontal_elements.length&&a.horizontal_jquery_obj.removeClass(a.horizontal_no_items_css_class))},td_events_resize:function(){0!==tdPullDown.items.length&&(tdPullDown._view_port_interval_index!==tdViewport.getCurrentIntervalIndex()?(tdPullDown._view_port_interval_index=tdViewport.getCurrentIntervalIndex(),
"undefined"!==typeof tdPullDown.reinitTimeout&&clearTimeout(tdPullDown.reinitTimeout),tdPullDown.reinitTimeout=setTimeout(function(){tdPullDown._reinitialize_all_items();tdPullDown._compute_all_items()},100)):tdPullDown._compute_all_items())},log:function(a){}};tdPullDown.init()})();var tdSocialSharing={};
(function(){tdSocialSharing={init:function(){jQuery(".td-social-sharing-button").on("click",function(a){var b=jQuery(this),c="";if(!b.hasClass("td-social-mail")&&!b.hasClass("td-social-share-text"))if(a.preventDefault(),b.hasClass("td-social-expand-tabs")){c=b.data("block-uid");a=jQuery("#"+c);var d=b.find(".td-social-expand-tabs-icon");if(a.hasClass("td-social-show-all")){b.detach().appendTo(a.find(".td-social-sharing-hidden:first"));var f=a.find(".td-post-sharing-visible:first"),h=new tdPullDown.item;
h.blockUid=a.attr("id");h.horizontal_jquery_obj=f;h.vertical_jquery_obj=a.find(".td-social-sharing-hidden:first");h.horizontal_element_css_class="td-social-sharing-button-js";h.container_jquery_obj=f.parents(".td-post-sharing:first");tdPullDown.add_item(h);jQuery("#"+c).removeClass("td-social-show-all");d.removeClass("td-icon-minus");d.addClass("td-icon-plus")}else tdPullDown.unloadItem(c),jQuery("#"+c).addClass("td-social-show-all"),d.removeClass("td-icon-plus"),d.addClass("td-icon-minus"),b.detach().appendTo(a.find(".td-post-sharing-visible:first"))}else if(b.hasClass("td-social-print"))window.print();
else if(b.hasClass("td-social-copy_url")){if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(b.attr("href"));else{var l=jQuery('<input type="text" style="position:fixed;top:-999999px;left:-999999px" value="'+b.attr("href")+'" />');jQuery("body").append(l);l.focus();l.select();new Promise(function(a,b){document.execCommand("copy")?a():b();l.remove()})}b.addClass("td-social-copy_url-disabled");b.addClass("td-social-copy_url-copied");setTimeout(function(){b.removeClass("td-social-copy_url-copied");
setTimeout(function(){b.removeClass("td-social-copy_url-disabled")},200)},1E3)}else a.preventDefault(),c=jQuery(window).width()/2-450,a=jQuery(window).height()/2-300,window.open(b.attr("href"),"mywin","left="+c+",top="+a+",width=900,height=600,toolbar=0")});setTimeout(function(){jQuery(".td-post-sharing").each(function(a,b){a=jQuery(this);b=jQuery(b);var c=b.find(".td-post-sharing-visible:first"),d=new tdPullDown.item;d.blockUid=b.attr("id");d.horizontal_jquery_obj=c;d.vertical_jquery_obj=b.find(".td-social-sharing-hidden:first");
d.horizontal_element_css_class="td-social-sharing-button-js";a.hasClass("tdb-block")?d.container_jquery_obj=c.parents(".wpb_wrapper:first"):d.container_jquery_obj=c.parents(".td-post-sharing:first");tdPullDown.add_item(d)})},50)}};tdSocialSharing.init()})();var tdShowVideo={};
(function(){tdShowVideo={_isInitialized:!1,_isApiYoutubeLoaded:!1,_isApiVimeoLoaded:!1,items:[],_$clearZone:void 0,_$body:void 0,_refLeft:!1,_hDist:void 0,_refBottom:!1,_vDist:void 0,_width:450,_playingOne:!1,_pauseHidden:!1,_runFixed:!1,_bodyClass:"td-sticky-video",item:function(){this.id=void 0;this.inlineHeight=this.inlineWidth=0;this.$wrapper=this.player=this.initialOffsetTop=void 0;this.inViewport=this.moved=!1;this.wrapperHeightBeforeFixed=void 0;this.playerStarted=!1;this.internalStatus=this.playerType=
this.parentFixIndexClass=this.restoreFixIndexClass=void 0},loadApiYoutube:function(){if(!tdShowVideo._isApiYoutubeLoaded){var a=document.createElement("script");a.src="https://www.youtube.com/iframe_api";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b);tdShowVideo._isApiYoutubeLoaded=!0}},loadApiVimeo:function(){if(!tdShowVideo._isApiVimeoLoaded){var a=document.createElement("script");a.src="https://player.vimeo.com/api/player.js";var b=document.getElementsByTagName("script")[0];
b.parentNode.insertBefore(a,b);tdShowVideo._isApiVimeoLoaded=!0}},init:function(){tdShowVideo._isInitialized||("undefined"!==typeof window.tds_video_scroll&&""!==window.tds_video_scroll&&(tdShowVideo._runFixed=!0),"undefined"!==typeof window.tds_video_position_h&&""!==window.tds_video_position_h&&(tdShowVideo._refLeft=!0),"undefined"!==typeof window.tds_video_position_v&&""!==window.tds_video_position_v&&(tdShowVideo._refBottom=!0),"undefined"!==typeof window.tds_video_distance_h&&""!==window.tds_video_distance_h&&
(tdShowVideo._hDist=parseInt(window.tds_video_distance_h.trim(),10)),"undefined"!==typeof window.tds_video_distance_v&&""!==window.tds_video_distance_v&&(tdShowVideo._vDist=parseInt(window.tds_video_distance_v.trim(),10)),"undefined"!==typeof window.tds_video_width&&""!==window.tds_video_width&&(tdShowVideo._width=parseInt(window.tds_video_width.trim(),10)),"undefined"!==typeof window.tds_video_playing_one&&""!==window.tds_video_playing_one&&(tdShowVideo._playingOne=!0),"undefined"!==typeof window.tds_video_pause_hidden&&
""!==window.tds_video_pause_hidden&&(tdShowVideo._pauseHidden=!0),tdShowVideo._$clearZone=jQuery('<div class="td-close-video-fixed"><i class="td-icon-modal-close"></i></div>'),tdShowVideo._$body=jQuery("body"),tdShowVideo._$body.append(tdShowVideo._$clearZone).on("click",".td-close-video-fixed",function(a){var b=jQuery(this).data("item-id");"undefined"!==typeof b&&tdShowVideo.items.forEach(function(a){b===a.id&&(tdShowVideo._clearPlayerStarted(),tdShowVideo._movePlayerFromZone(a),tdShowVideo._pauseHidden&&
tdShowVideo._pausePlayer(a))})}),this._isInitialized=!0)},addItem:function(a){tdShowVideo._isInitialized&&a.constructor===tdShowVideo.item&&tdShowVideo.items.push(a)},scroll:function(){tdShowVideo._isInitialized&&tdShowVideo._checkItems()},_checkItems:function(){tdShowVideo._isInitialized&&(tdShowVideo._runFixed&&tdShowVideo.items.forEach(function(a){!0!==tdDetect.isPhoneScreen&&(tdShowVideo._getReplacer(a).insertBefore(a.$wrapper.parent()),tdShowVideo._isItemInViewport(a)?tdShowVideo._movePlayerFromZone(a):
tdShowVideo._movePlayerToZone(a))}),setTimeout(function(){tdShowVideo._pauseHidden&&tdShowVideo._pauseOtherPlayers()},500))},_movePlayerToZone:function(a){if("youtube"===a.playerType){if(!tdShowVideo._isInitialized||a.moved||"undefined"===typeof a.player||"undefined"===typeof a.player.getPlayerState||a.player.getPlayerState()!==YT.PlayerState.PLAYING||"undefined"===typeof a.playerStarted)return!1}else if("vimeo"===a.playerType){if(!tdShowVideo._isInitialized||a.moved||"undefined"===typeof a.player||
"undefined"===typeof a.internalStatus||"VIMEO_PLAYING"!==a.internalStatus||"undefined"===typeof a.playerStarted)return!1}else if("video"===a.playerType){if(!tdShowVideo._isInitialized||a.moved||"undefined"===typeof a.player||"undefined"===typeof a.internalStatus||"VIDEO_PLAYING"!==a.internalStatus||"undefined"===typeof a.playerStarted)return!1}else if("undefined"===typeof a.playerType)return!1;tdShowVideo._clearPlayerStarted(a);tdShowVideo._clearZone();var b=a.$wrapper.data("id");"undefined"===typeof b&&
(b=tdShowVideo._getUniqueId(),a.$wrapper.data("id",b),a.id=b);"undefined"===typeof a.initialOffsetTop&&(a.initialOffsetTop=a.$wrapper.offset().top);a.wrapperHeightBeforeFixed=a.$wrapper.height();a.$wrapper.parent().addClass("td-video-fixed");tdShowVideo._showReplacer(a);tdShowVideo._refLeft&&a.$wrapper.parent().addClass("td-video-fixed-left");tdShowVideo._refBottom&&a.$wrapper.parent().addClass("td-video-fixed-bottom");b="width:"+tdShowVideo._width+"px !important;";b+="height:"+tdShowVideo._width*
a.inlineHeight/a.inlineWidth+"px !important;";"undefined"!==typeof tdShowVideo._hDist&&(b=tdShowVideo._refLeft?b+("left:"+tdShowVideo._hDist+"px !important;"):b+("right:"+tdShowVideo._hDist+"px !important;"));"undefined"!==typeof tdShowVideo._vDist&&(b=tdShowVideo._refBottom?b+("bottom:"+tdShowVideo._vDist+"px !important;"):b+("top:"+tdShowVideo._vDist+"px !important;"));a.$wrapper.css("width",tdShowVideo._width);a.$wrapper.css("height","100%");a.$wrapper.parent().attr("style",b);a.$wrapper.closest(".tdb-block-inner").hasClass("td-fix-index")?
(a.$wrapper.closest(".tdb-block-inner").removeClass("td-fix-index"),a.restoreFixIndexClass=!0,a.parentFixIndexClass="tdb-block-inner"):a.$wrapper.closest(".td_block_inner").hasClass("td-fix-index")&&(a.$wrapper.closest(".td_block_inner").removeClass("td-fix-index"),a.restoreFixIndexClass=!0,a.parentFixIndexClass="td_block_inner");tdShowVideo._$clearZone.data("item-id",a.id);tdShowVideo._$clearZone.show();tdShowVideo._$clearZone.prependTo(a.$wrapper.parent());tdShowVideo._addBodyClass();return a.moved=
!0},_movePlayerFromZone:function(a){if(!tdShowVideo._isInitialized||!a.moved)return!1;a.$wrapper.parent().removeClass("td-video-fixed");tdShowVideo._hideReplacer(a);tdShowVideo._refLeft&&a.$wrapper.parent().removeClass("td-video-fixed-left");tdShowVideo._refBottom&&a.$wrapper.parent().removeClass("td-video-fixed-bottom");a.$wrapper.parent().removeAttr("style");a.$wrapper.css("width","");"undefined"!==typeof a.wrapperHeightBeforeFixed&&a.$wrapper.css("height",a.wrapperHeightBeforeFixed+"px");"undefined"!==
typeof a.restoreFixIndexClass&&(a.$wrapper.closest("."+a.parentFixIndexClass).addClass("td-fix-index"),delete a.restoreFixIndexClass,delete a.parentFixIndexClass);tdShowVideo._$clearZone.appendTo(tdShowVideo._$body);tdShowVideo._$clearZone.hide();tdShowVideo._removeBodyClass();a.moved=!1;return!0},_addBodyClass:function(){tdShowVideo._$body.addClass(tdShowVideo._bodyClass)},_removeBodyClass:function(){tdShowVideo._$body.removeClass(tdShowVideo._bodyClass)},_isItemInViewport:function(a){var b=a.initialOffsetTop;
"undefined"===typeof b&&(b=a.$wrapper.offset().top,a.initialOffsetTop=b);return b>=tdEvents.scroll_window_scrollTop&&b<=tdEvents.scroll_window_scrollTop+tdEvents.window_innerHeight||b+a.inlineHeight>=tdEvents.scroll_window_scrollTop&&b+a.inlineHeight<=tdEvents.scroll_window_scrollTop+tdEvents.window_innerHeight?!0:!1},_pauseOtherPlayers:function(){tdShowVideo.items.forEach(function(a){tdShowVideo._isItemInViewport(a)||a.moved||"undefined"!==typeof a.player&&("youtube"===a.playerType&&"undefined"!==
typeof a.player.getPlayerState&&a.player.getPlayerState()===YT.PlayerState.PLAYING?a.player.pauseVideo():"vimeo"===a.playerType&&"undefined"!==typeof a.internalStatus&&"VIMEO_PLAYING"===a.internalStatus?a.player.pause():"video"===a.playerType&&"undefined"!==typeof a.internalStatus&&"VIDEO_PLAYING"===a.internalStatus&&a.player.pause())})},_pausePlayer:function(a){"undefined"!==typeof a.player&&("youtube"===a.playerType&&"undefined"!==typeof a.player.getPlayerState&&a.player.getPlayerState()===YT.PlayerState.PLAYING?
a.player.pauseVideo():"vimeo"===a.playerType&&"undefined"!==typeof a.internalStatus&&"VIMEO_PLAYING"===a.internalStatus?a.player.pause():"video"===a.playerType&&"undefined"!==typeof a.internalStatus&&"VIDEO_PLAYING"===a.internalStatus&&a.player.pause())},_clearZone:function(){tdShowVideo._isInitialized&&tdShowVideo.items.forEach(function(a){tdShowVideo._movePlayerFromZone(a,!0)})},_clearPlayerStarted:function(a){tdShowVideo.items.forEach(function(b){"undefined"!==typeof a?b!==a&&"undefined"!==typeof b.playerStarted&&
delete b.playerStarted:"undefined"!==typeof b.playerStarted&&delete b.playerStarted})},_getReplacer:function(a){if(tdShowVideo._isInitialized){if("undefined"!==typeof a.$replacer)return a.$replacer;a.$replacer=jQuery('<div class="td-video-replacer" data-id="'+a.$wrapper.data("id")+'" style="position: absolute; visibility: hidden; width:'+a.inlineWidth+"px;height:"+a.inlineHeight+'px"></div>');return a.$replacer}},_showReplacer:function(a){tdShowVideo._isInitialized&&tdShowVideo._getReplacer(a).css("position",
"relative")},_hideReplacer:function(a){tdShowVideo._isInitialized&&tdShowVideo._getReplacer(a).css("position","absolute")},_getUniqueId:function(){return"uid_"+Math.floor(1E4*Math.random()+1)+"_"+Math.floor(100*Math.random()+1)},addPlayerStarted:function(a){tdShowVideo._isInitialized&&tdShowVideo.items.forEach(function(b){b.player===a?b.playerStarted=!0:tdShowVideo._playingOne&&("youtube"===b.playerType&&"undefined"!==typeof b.player?b.player.pauseVideo():"vimeo"===b.playerType&&"undefined"!==typeof b.player?
b.player.pause():"video"===b.playerType&&"undefined"!==typeof b.player&&b.player.pause(),b.playerStarted=!1)})},clearPlayerStarted:function(a){tdShowVideo._isInitialized&&tdShowVideo.items.forEach(function(b){b.player===a&&"undefined"!==typeof b.playerStarted&&delete b.playerStarted})},onYoutubeReadyEvent:function(a){tdShowVideo._isInitialized&&a.target.setPlaybackQuality("hd720")},onYoutubeStateChangeEvent:function(a){if(tdShowVideo._isInitialized)switch(a.target.getPlayerState()){case YT.PlayerState.PLAYING:tdShowVideo.addPlayerStarted(a.target);
break;case YT.PlayerState.ENDED:tdShowVideo.clearPlayerStarted(a.target)}}}})();
window.onYouTubeIframeAPIReady=function(){tdShowVideo.init();jQuery(".td-youtube-player, .wp-block-embed-youtube iframe").each(function(){var a=jQuery(this),b=new tdShowVideo.item;b.playerType="youtube";b.inlineWidth=a.outerWidth();b.inlineHeight=a.outerHeight();b.$wrapper=a;b.player=new YT.Player(this,{height:"720",width:"960",events:{onReady:tdShowVideo.onYoutubeReadyEvent,onStateChange:tdShowVideo.onYoutubeStateChangeEvent}});tdShowVideo.addItem(b)})};
jQuery(window).on("load",function(){tdYoutubePlayers.players.length&&(tdShowVideo.init(),tdYoutubePlayers.players.forEach(function(a){var b=new tdShowVideo.item;b.playerType="youtube";b.inlineWidth=a.jqPlayerWrapper.outerWidth();b.inlineHeight=a.jqPlayerWrapper.outerHeight();b.$wrapper=a.jqPlayerWrapper;b.player=a.tdYtPlayer;tdShowVideo.addItem(b)}))});
jQuery(window).on("load",function(){var a=jQuery('.wpb_video_wrapper iframe[src*="vimeo.com"], .wp-block-embed-vimeo iframe[src*="vimeo.com"]');a.length&&(tdShowVideo.init(),a.each(function(a){var b=jQuery(this),d=new tdShowVideo.item;d.playerType="vimeo";d.inlineWidth=b.outerWidth();d.inlineHeight=b.outerHeight();d.$wrapper=b;d.id=a;d.player=new Vimeo.Player(this);d.player.on("play",function(){d.internalStatus="VIMEO_PLAYING";tdShowVideo.addPlayerStarted(d.player)});d.player.on("pause",function(){d.internalStatus=
void 0});d.player.on("ended",function(a){d.internalStatus=void 0;tdShowVideo.clearPlayerStarted(d.player)});tdShowVideo.addItem(d)}))});
jQuery(window).ready(function(){var a=!1;if("undefined"!==typeof window.tds_video_scroll&&""!==window.tds_video_scroll||"undefined"!==typeof window.tds_video_playing_one&&""!==window.tds_video_playing_one||"undefined"!==typeof window.tds_video_pause_hidden&&""!==window.tds_video_pause_hidden)a=!0;a&&jQuery(".td-youtube-player, .wp-block-embed-youtube iframe").length&&tdShowVideo.loadApiYoutube();jQuery('.wpb_video_wrapper iframe[src*="vimeo.com"], .wp-block-embed-vimeo iframe[src*="vimeo.com"]').length&&
tdShowVideo.loadApiVimeo();a=jQuery("video");a.length&&(tdShowVideo.init(),a.each(function(a){var b=jQuery(this),d=new tdShowVideo.item;d.playerType="video";d.inlineWidth=b.outerWidth();d.inlineHeight=b.outerHeight();d.$wrapper=b;d.id=a;d.player=this;d.player.addEventListener("play",function(a){d.internalStatus="VIDEO_PLAYING";tdShowVideo.addPlayerStarted(d.player)},!0);d.player.addEventListener("pause",function(a){d.internalStatus=void 0;tdShowVideo.addPlayerStarted(d.player)},!0);d.player.addEventListener("ended",
function(a){d.internalStatus=void 0;tdShowVideo.addPlayerStarted(d.player)},!0);tdShowVideo.addItem(d)}))});
