PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/live2news.com/wp-content/themes/Newspaper/mobile/js/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //home/trave494/live2news.com/wp-content/themes/Newspaper/mobile/js/tagdiv_theme.min.js

jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b*b+c:
d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return 1>(b/=e/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,e){return-d*Math.cos(b/
e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return 0==b?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return 0==b?c:b==e?c+d:1>(b/=e/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,e){return-d*(Math.sqrt(1-(b/=e)*
b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return 1>(b/=e/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,e){a=1.70158;var h=0,q=d;if(0==b)return c;if(1==(b/=e))return c+d;h||(h=.3*e);q<Math.abs(d)?(q=d,a=h/4):a=h/(2*Math.PI)*Math.asin(d/q);return-(q*Math.pow(2,10*--b)*Math.sin(2*(b*e-a)*Math.PI/h))+c},easeOutElastic:function(a,b,c,d,e){a=1.70158;var h=0,q=d;if(0==b)return c;if(1==(b/=
e))return c+d;h||(h=.3*e);q<Math.abs(d)?(q=d,a=h/4):a=h/(2*Math.PI)*Math.asin(d/q);return q*Math.pow(2,-10*b)*Math.sin(2*(b*e-a)*Math.PI/h)+d+c},easeInOutElastic:function(a,b,c,d,e){a=1.70158;var h=0,q=d;if(0==b)return c;if(2==(b/=e/2))return c+d;h||(h=.3*e*1.5);q<Math.abs(d)?(q=d,a=h/4):a=h/(2*Math.PI)*Math.asin(d/q);return 1>b?-.5*q*Math.pow(2,10*--b)*Math.sin(2*(b*e-a)*Math.PI/h)+c:.5*q*Math.pow(2,-10*--b)*Math.sin(2*(b*e-a)*Math.PI/h)+d+c},easeInBack:function(a,b,c,d,e,h){void 0==h&&(h=1.70158);
return d*(b/=e)*b*((h+1)*b-h)+c},easeOutBack:function(a,b,c,d,e,h){void 0==h&&(h=1.70158);return d*((b=b/e-1)*b*((h+1)*b+h)+1)+c},easeInOutBack:function(a,b,c,d,e,h){void 0==h&&(h=1.70158);return 1>(b/=e/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,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){return(b/=e)<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,e){return b<e/2?.5*jQuery.easing.easeInBounce(a,2*b,0,d,e)+c:.5*jQuery.easing.easeOutBounce(a,2*b-e,0,d,e)+.5*d+c}});
(function(a){var b=0,c=0,d=0,e=0,h="ontouchstart"in window||0<navigator.msMaxTouchPoints,q="onorientationchange"in window,C=!1,N=!1,y=!1,ia=!1,T=!1,u="pointer",la="pointer",Z=[],R=[],wa=[],ha=[],K=[],ja=[],J=[],p=[],v=[],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,e,f,h,y,C,p){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,e,f,h,y,C,p,a)},hideScrollbarInterval:function(b,c,g,d,h,f,y,C,p){e=-1*b/v[C]*(h-f-y-d);k.setSliderOffset("."+g,e);a("."+g).css({opacity:p.scrollbarOpacity*c,filter:"alpha(opacity:"+p.scrollbarOpacity*c*100+")"})},slowScrollHorizontalInterval:function(b,c,g,d,h,f,y,C,N,q,x,E,u,z,w,r,H,n,A){if(A.infiniteSlider){if(g<=-1*v[r]){var l=a(b).width();if(g<=-1*xa[r]){var t=-1*x[0];a(c).each(function(b){k.setSliderOffset(a(c)[b],t+H);b<E.length&&(E[b]=-1*t);t+=w[b]});g+=-1*E[0];p[r]=-1*
E[0]+H;v[r]=p[r]+l-f;J[r]=0}else{var D=0,da=k.getSliderOffset(a(c[0]),"x");a(c).each(function(a){k.getSliderOffset(this,"x")<da&&(da=k.getSliderOffset(this,"x"),D=a)});u=p[r]+l;k.setSliderOffset(a(c)[D],u);p[r]=-1*E[1]+H;v[r]=p[r]+l-f;E.splice(0,1);E.splice(E.length,0,-1*u+H);J[r]++}}if(g>=-1*p[r]||0<=g){l=a(b).width();if(0<g)for(t=-1*x[0],a(c).each(function(b){k.setSliderOffset(a(c)[b],t+H);b<E.length&&(E[b]=-1*t);t+=w[b]}),g-=-1*E[0],p[r]=-1*E[0]+H,v[r]=p[r]+l-f,J[r]=z;0<-1*E[0]-l+H;){var aa=0,
W=k.getSliderOffset(a(c[0]),"x");a(c).each(function(a){k.getSliderOffset(this,"x")>W&&(W=k.getSliderOffset(this,"x"),aa=a)});u=p[r]-w[aa];k.setSliderOffset(a(c)[aa],u);E.splice(0,0,-1*u+H);E.splice(E.length-1,1);p[r]=-1*E[0]+H;v[r]=p[r]+l-f;J[r]--;K[r]++}0>g&&(aa=0,W=k.getSliderOffset(a(c[0]),"x"),a(c).each(function(a){k.getSliderOffset(this,"x")>W&&(W=k.getSliderOffset(this,"x"),aa=a)}),u=p[r]-w[aa],k.setSliderOffset(a(c)[aa],u),E.splice(0,0,-1*u+H),E.splice(E.length-1,1),p[r]=-1*E[0]+H,v[r]=p[r]+
l-f,J[r]--)}}x=!1;f=k.calcActiveOffset(A,g,E,f,J[r],z,q,r);u=(f+J[r]+z)%z;A.infiniteSlider?u!=ja[r]&&(x=!0):f!=K[r]&&(x=!0);if(x&&(z=new k.args("change",A,b,a(b).children(":eq("+u+")"),u,n),a(b).parent().data("args",z),""!=A.onSlideChange))A.onSlideChange(z);K[r]=f;ja[r]=u;g=Math.floor(g);k.setSliderOffset(b,g);A.scrollbar&&(e=Math.floor((-1*g-p[r]+H)/(v[r]-p[r]+H)*(y-C-h)),b=h-N,g>=-1*p[r]+H?(b=h-N- -1*e,k.setSliderOffset(a("."+d),0)):(g<=-1*v[r]+1&&(b=y-C-N-e),k.setSliderOffset(a("."+d),e)),a("."+
d).css({width:b+"px"}))},slowScrollHorizontal:function(b,c,g,d,e,f,h,y,C,N,u,E,q,z,w,r,H,n,A,B,L){var l=k.getSliderOffset(b,"x");f=[];var t=0,D=25/1024*y;frictionCoefficient=L.frictionCoefficient;elasticFrictionCoefficient=L.elasticFrictionCoefficient;snapFrictionCoefficient=L.snapFrictionCoefficient;e>L.snapVelocityThreshold&&L.snapToChildren&&!A?t=1:e<-1*L.snapVelocityThreshold&&L.snapToChildren&&!A&&(t=-1);e<-1*D?e=-1*D:e>D&&(e=D);a(b)[0]!==a(n)[0]&&(t*=-1,e*=-2);n=J[w];if(L.infiniteSlider)var x=
p[w],m=v[w];A=[];D=[];for(var I=0;I<q.length;I++)A[I]=q[I],I<c.length&&(D[I]=k.getSliderOffset(a(c[I]),"x"));for(;1<e||-1>e;){e*=frictionCoefficient;l+=e;(l>-1*p[w]||l<-1*v[w])&&!L.infiniteSlider&&(e*=elasticFrictionCoefficient,l+=e);if(L.infiniteSlider){if(l<=-1*m){m=a(b).width();var da=0,W=D[0];for(I=0;I<D.length;I++)D[I]<W&&(W=D[I],da=I);I=x+m;D[da]=I;x=-1*A[1]+B;m=x+m-y;A.splice(0,1);A.splice(A.length,0,-1*I+B);n++}if(l>=-1*x){m=a(b).width();da=0;W=D[0];for(I=0;I<D.length;I++)D[I]>W&&(W=D[I],
da=I);I=x-z[da];D[da]=I;A.splice(0,0,-1*I+B);A.splice(A.length-1,1);x=-1*A[0]+B;m=x+m-y;n--}}f[f.length]=l}D=!1;e=k.calcActiveOffset(L,l,A,y,n,H,K[w],w);L.snapToChildren&&(L.infiniteSlider?(e+n+H)%H!=ja[w]&&(D=!0):e!=K[w]&&(D=!0),0>t&&!D?(e++,e>=q.length&&!L.infiniteSlider&&(e=q.length-1)):0<t&&!D&&(e--,0>e&&!L.infiniteSlider&&(e=0)));if(L.snapToChildren||(l>-1*p[w]||l<-1*v[w])&&!L.infiniteSlider){for((l>-1*p[w]||l<-1*v[w])&&!L.infiniteSlider?f.splice(0,f.length):(f.splice(.1*f.length,f.length),l=
0<f.length?f[f.length-1]:l);l<A[e]-.5||l>A[e]+.5;)l=(l-A[e])*snapFrictionCoefficient+A[e],f[f.length]=l;f[f.length]=A[e]}t=1;0!=f.length%2&&(t=0);for(l=0;l<g.length;l++)clearTimeout(g[l]);n=(e+n+H)%H;x=0;for(l=t;l<f.length;l+=2)if(l==t||1<Math.abs(f[l]-x)||l>=f.length-2)x=f[l],g[g.length]=k.slowScrollHorizontalIntervalTimer(10*l,b,c,f[l],d,h,y,C,N,u,e,E,q,r,H,z,w,B,n,L);x=(e+J[w]+H)%H;""!=L.onSlideComplete&&1<f.length&&(g[g.length]=k.onSlideCompleteTimer(10*(l+1),L,b,a(b).children(":eq("+x+")"),n,
w));ha[w]=g;k.hideScrollbar(L,g,l,f,d,h,y,N,u,w)},onSlideComplete:function(b,c,g,d,e){g=new k.args("complete",b,a(c),g,d,d);a(c).parent().data("args",g);if(""!=b.onSlideComplete)b.onSlideComplete(g)},getSliderOffset:function(b,c){c="x"==c?4:5;if(!C||N||y)var g=parseInt(a(b).css("left"),10);else{g=["-webkit-transform","-moz-transform","transform"];for(var d,l=0;l<g.length;l++)if(void 0!=a(b).css(g[l])&&0<a(b).css(g[l]).length){d=a(b).css(g[l]).split(",");break}g=void 0==d[c]?0:parseInt(d[c],10)}return g},
setSliderOffset:function(b,c){c=parseInt(c,10);!C||N||y?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")?(u="-webkit-grab",la="-webkit-grabbing"):null!=navigator.userAgent.match("Gecko")?(T=!0,u="move",la="-moz-grabbing"):null!=navigator.userAgent.match("MSIE 7")?ia=N=!0:null!=navigator.userAgent.match("MSIE 8")?
ia=y=!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:T&&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-J[b]+c)%c},calcActiveOffset:function(a,b,c,d,e,f,k,h){e=!1;a=[];var g;b>c[0]&&(g=
0);b<c[c.length-1]&&(g=f-1);for(f=0;f<c.length;f++)c[f]<=b&&c[f]>b-d&&(e||c[f]==b||(a[a.length]=c[f-1]),a[a.length]=c[f],e=!0);0==a.length&&(a[0]=c[c.length-1]);for(f=e=0;f<a.length;f++)k=Math.abs(b-a[f]),k<d&&(e=a[f],d=k);for(f=0;f<c.length;f++)e==c[f]&&(g=f);return g},changeSlide:function(b,c,d,e,h,f,y,C,p,N,x,u,q,z,w,r,v,n){k.autoSlidePause(z);for(var g=0;g<e.length;g++)clearTimeout(e[g]);var l=Math.ceil(n.autoSlideTransTimer/10)+1,D=k.getSliderOffset(c,"x"),t=u[b],E=t-D;if(n.infiniteSlider)for(b=
(b-J[z]+2*r)%r,g=!1,0==b&&2==r&&(b=r,u[b]=u[b-1]-a(d).eq(0).outerWidth(!0),g=!0),t=u[b],E=t-D,t=[u[b]-a(c).width(),u[b]+a(c).width()],g&&u.splice(u.length-1,1),g=0;g<t.length;g++)Math.abs(t[g]-D)<Math.abs(E)&&(E=t[g]-D);t=[];k.showScrollbar(n,h);for(g=0;g<=l;g++){var H=g;H/=l;H--;H=D+E*(Math.pow(H,5)+1);t[t.length]=H}l=(b+J[z]+r)%r;for(g=D=0;g<t.length;g++){if(0==g||1<Math.abs(t[g]-D)||g>=t.length-2)D=t[g],e[g]=k.slowScrollHorizontalIntervalTimer(10*(g+1),c,d,t[g],h,f,y,C,p,N,b,x,u,w,r,q,z,v,l,n);
0==g&&""!=n.onSlideStart&&(E=(K[z]+J[z]+r)%r,n.onSlideStart(new k.args("start",n,c,a(c).children(":eq("+E+")"),E,b)))}D=!1;n.infiniteSlider?l!=ja[z]&&(D=!0):b!=K[z]&&(D=!0);D&&""!=n.onSlideComplete&&(e[e.length]=k.onSlideCompleteTimer(10*(g+1),n,c,a(c).children(":eq("+l+")"),l,z));ha[z]=e;k.hideScrollbar(n,e,g,t,h,f,y,p,N,z);k.autoSlide(c,d,e,h,f,y,C,p,N,x,u,q,z,w,r,v,n)},autoSlide:function(a,b,c,d,e,f,h,y,C,u,p,N,q,z,w,r,v){if(!R[q].autoSlide)return!1;k.autoSlidePause(q);Z[q]=setTimeout(function(){!v.infiniteSlider&&
K[q]>p.length-1&&(K[q]-=w);k.changeSlide((K[q]+J[q]+p.length+1)%p.length,a,b,c,d,e,f,h,y,C,u,p,N,q,z,w,r,v);k.autoSlide(a,b,c,d,e,f,h,y,C,u,p,N,q,z,w,r,v)},v.autoSlideTimer+v.autoSlideTransTimer)},autoSlidePause:function(a){clearTimeout(Z[a])},isUnselectable:function(b,c){return""!=c.unselectableSelector&&1==a(b).closest(c.unselectableSelector).length?!0:!1},slowScrollHorizontalIntervalTimer:function(a,b,c,d,e,f,h,y,C,u,p,N,q,v,w,r,J,n,A,B){return setTimeout(function(){k.slowScrollHorizontalInterval(b,
c,d,e,f,h,y,C,u,p,N,q,v,w,r,J,n,A,B)},a)},onSlideCompleteTimer:function(a,b,c,d,e,f){return setTimeout(function(){k.onSlideComplete(b,c,d,e,f)},a)},hideScrollbarIntervalTimer:function(a,b,c,d,e,f,h,y,C,u){return setTimeout(function(){k.hideScrollbarInterval(b,c,d,e,f,h,y,C,u)},a)},args:function(b,c,g,d,e,f){this.prevSlideNumber=void 0==a(g).parent().data("args")?void 0:a(g).parent().data("args").prevSlideNumber;this.prevSlideObject=void 0==a(g).parent().data("args")?void 0:a(g).parent().data("args").prevSlideObject;
this.targetSlideNumber=f+1;this.targetSlideObject=a(g).children(":eq("+f+")");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(g).parent().data("args")?c.startAtSlide:a(g).parent().data("args").currentSlideNumber,this.prevSlideObject=a(g).children(":eq("+this.prevSlideNumber+")")):"complete"==b&&(this.slideChanged=a(g).parent().data("args").slideChanged);
this.settings=c;this.data=a(g).parent().data("iosslider");this.sliderObject=g;this.sliderContainerObject=a(g).parent();this.currentSlideObject=d;this.currentSlideNumber=e+1;this.currentSliderOffset=-1*k.getSliderOffset(g,"x")},preventDrag:function(a){a.preventDefault()},preventClick:function(a){a.stopImmediatePropagation();return!1},enableClick:function(){return!0}};k.setBrowserInfo();var Y={init:function(l,t){C=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:""},
l);void 0==t&&(t=this);return a(t).each(function(l){function C(){k.autoSlidePause(f);za=a(F).find("a");Da=a(F).find("[onclick]");sa=a(F).find("*");a(A).css("width","");a(A).css("height","");a(F).css("width","");G=a(F).children().not("script").get();ma=[];O=[];g.responsiveSlides&&a(G).css("width","");v[f]=0;m=[];r=a(A).parent().width();B=a(A).outerWidth(!0);g.responsiveSlideContainer&&(B=a(A).outerWidth(!0)>r?r:a(A).width());a(A).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:B});a(g.unselectableSelector).css({cursor:"default"});for(var b=0;b<G.length;b++){ma[b]=a(G[b]).width();O[b]=a(G[b]).outerWidth(!0);var c=O[b];g.responsiveSlides&&(O[b]>B?(c=B+-1*(O[b]-ma[b]),ma[b]=c,O[b]=B):c=ma[b],a(G[b]).css({width:c}));a(G[b]).css({webkitBackfaceVisibility:"hidden",overflow:"hidden",position:"absolute"});m[b]=-1*v[f];v[f]=v[f]+c+(O[b]-ma[b])}g.snapSlideCenter&&
(n=.5*(B-O[0]),g.responsiveSlides&&O[0]>B&&(n=0));xa[f]=2*v[f];for(b=0;b<G.length;b++)k.setSliderOffset(a(G[b]),-1*m[b]+v[f]+n),m[b]-=v[f];if(!g.infiniteSlider&&!g.snapSlideCenter){for(b=0;b<m.length&&!(m[b]<=-1*(2*v[f]-B));b++)Ea=b;m.splice(Ea+1,m.length);m[m.length]=-1*(2*v[f]-B)}for(b=0;b<m.length;b++)I[b]=m[b];Y&&(R[f].startAtSlide=R[f].startAtSlide>m.length?m.length:R[f].startAtSlide,g.infiniteSlider?(R[f].startAtSlide=(R[f].startAtSlide-1+M)%M,K[f]=R[f].startAtSlide):(R[f].startAtSlide=0>R[f].startAtSlide-
1?m.length-1:R[f].startAtSlide,K[f]=R[f].startAtSlide-1),ja[f]=K[f]);p[f]=v[f]+n;a(F).css({position:"relative",cursor:u,webkitPerspective:"0",webkitBackfaceVisibility:"hidden",width:v[f]+"px"});X=v[f];v[f]=2*v[f]-B+2*n;(ba=X+n<B||0==B?!0:!1)&&a(F).css({cursor:"default"});H=a(A).parent().outerHeight(!0);L=a(A).height();g.responsiveSlideContainer&&(L=L>H?H:L);a(A).css({height:L});k.setSliderOffset(F,m[K[f]]);if(g.infiniteSlider&&!ba){b=k.getSliderOffset(a(F),"x");for(c=(J[f]+M)%M*-1;0>c;){var d=0,e=
k.getSliderOffset(a(G[0]),"x");a(G).each(function(a){k.getSliderOffset(this,"x")<e&&(e=k.getSliderOffset(this,"x"),d=a)});var l=p[f]+X;k.setSliderOffset(a(G)[d],l);p[f]=-1*m[1]+n;v[f]=p[f]+X-B;m.splice(0,1);m.splice(m.length,0,-1*l+n);c++}for(;0<-1*m[0]-X+n&&g.snapSlideCenter&&Y;){var h=0,y=k.getSliderOffset(a(G[0]),"x");a(G).each(function(a){k.getSliderOffset(this,"x")>y&&(y=k.getSliderOffset(this,"x"),h=a)});l=p[f]-O[h];k.setSliderOffset(a(G)[h],l);m.splice(0,0,-1*l+n);m.splice(m.length-1,1);p[f]=
-1*m[0]+n;v[f]=p[f]+X-B;J[f]--;K[f]++}for(;b<=-1*v[f];)d=0,e=k.getSliderOffset(a(G[0]),"x"),a(G).each(function(a){k.getSliderOffset(this,"x")<e&&(e=k.getSliderOffset(this,"x"),d=a)}),l=p[f]+X,k.setSliderOffset(a(G)[d],l),p[f]=-1*m[1]+n,v[f]=p[f]+X-B,m.splice(0,1),m.splice(m.length,0,-1*l+n),J[f]++,K[f]--}k.setSliderOffset(F,m[K[f]]);g.desktopClickDrag||a(F).css({cursor:"default"});g.scrollbar&&(a("."+P).css({margin:g.scrollbarMargin,overflow:"hidden",display:"none"}),a("."+P+" ."+x).css({border:g.scrollbarBorder}),
Q=parseInt(a("."+P).css("marginLeft"))+parseInt(a("."+P).css("marginRight")),S=parseInt(a("."+P+" ."+x).css("borderLeftWidth"),10)+parseInt(a("."+P+" ."+x).css("borderRightWidth"),10),z=""!=g.scrollbarContainer?a(g.scrollbarContainer).width():B,w=B/X*(z-Q),g.scrollbarHide||(ya=g.scrollbarOpacity),a("."+P).css({position:"absolute",left:0,width:z-Q+"px",margin:g.scrollbarMargin}),"top"==g.scrollbarLocation?a("."+P).css("top","0"):a("."+P).css("bottom","0"),a("."+P+" ."+x).css({borderRadius:g.scrollbarBorderRadius,
background:g.scrollbarBackground,height:g.scrollbarHeight,width:w-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("."+P+" ."+x),Math.floor((-1*m[K[f]]-p[f]+n)/(v[f]-p[f]+n)*(z-Q-w))),a("."+P).css({display:"block"}),E=a("."+P+" ."+x),T=a("."+P));g.scrollbarDrag&&!ba&&a("."+P+" ."+x).css({cursor:u});g.infiniteSlider&&(U=
(v[f]+B)/3);""!=g.navSlideSelector&&a(g.navSlideSelector).each(function(b){a(this).css({cursor:"pointer"});a(this).unbind(V).bind(V,function(c){"touchstart"==c.type?a(this).unbind("click.iosSliderEvent"):a(this).unbind("touchstart.iosSliderEvent");V=c.type+".iosSliderEvent";k.changeSlide(b,F,G,t,x,w,B,z,Q,S,I,m,O,f,U,M,n,g)})});""!=g.navPrevSelector&&(a(g.navPrevSelector).css({cursor:"pointer"}),a(g.navPrevSelector).unbind(V).bind(V,function(b){"touchstart"==b.type?a(this).unbind("click.iosSliderEvent"):
a(this).unbind("touchstart.iosSliderEvent");V=b.type+".iosSliderEvent";b=(K[f]+J[f]+M)%M;(0<b||g.infiniteSlider)&&k.changeSlide(b-1,F,G,t,x,w,B,z,Q,S,I,m,O,f,U,M,n,g)}));""!=g.navNextSelector&&(a(g.navNextSelector).css({cursor:"pointer"}),a(g.navNextSelector).unbind(V).bind(V,function(b){"touchstart"==b.type?a(this).unbind("click.iosSliderEvent"):a(this).unbind("touchstart.iosSliderEvent");V=b.type+".iosSliderEvent";b=(K[f]+J[f]+M)%M;(b<m.length-1||g.infiniteSlider)&&k.changeSlide(b+1,F,G,t,x,w,B,
z,Q,S,I,m,O,f,U,M,n,g)}));g.autoSlide&&!ba&&""!=g.autoSlideToggleSelector&&(a(g.autoSlideToggleSelector).css({cursor:"pointer"}),a(g.autoSlideToggleSelector).unbind(V).bind(V,function(b){"touchstart"==b.type?a(this).unbind("click.iosSliderEvent"):a(this).unbind("touchstart.iosSliderEvent");V=b.type+".iosSliderEvent";oa?(k.autoSlide(F,G,t,x,w,B,z,Q,S,I,m,O,f,U,M,n,g),oa=!1,a(g.autoSlideToggleSelector).removeClass("on")):(k.autoSlidePause(f),oa=!0,a(g.autoSlideToggleSelector).addClass("on"))}));k.autoSlide(F,
G,t,x,w,B,z,Q,S,I,m,O,f,U,M,n,g);a(A).bind("mouseleave.iosSliderEvent",function(){if(oa)return!0;k.autoSlide(F,G,t,x,w,B,z,Q,S,I,m,O,f,U,M,n,g)});a(A).bind("touchend.iosSliderEvent",function(){if(oa)return!0;k.autoSlide(F,G,t,x,w,B,z,Q,S,I,m,O,f,U,M,n,g)});g.autoSlideHoverPause&&a(A).bind("mouseenter.iosSliderEvent",function(){k.autoSlidePause(f)});a(A).data("iosslider",{obj:Fa,settings:g,scrollerNode:F,slideNodes:G,numberOfSlides:M,centeredSlideOffset:n,sliderNumber:f,originalOffsets:I,childrenOffsets:m,
sliderMax:v[f],scrollbarClass:x,scrollbarWidth:w,scrollbarStageWidth:z,stageWidth:B,scrollMargin:Q,scrollBorder:S,infiniteSliderOffset:J[f],infiniteSliderWidth:U,slideNodeOuterWidths:O,shortContent:ba});Y=!1;return!0}b++;var f=b,t=[];R[f]=a.extend({},g);p[f]=0;v[f]=0;var D=[0,0],Z=[0,0],P="scrollbarBlock"+b,x="scrollbar"+b,E,T,z,w,r,H,n=0,A=a(this),B,L,Q,S,aa,Y=!0;l=-1;var m,I=[],ya=0,ea=0,Ga=0,F=a(this).children(":first-child"),G,ma,O,M=a(F).children().not("script").length,ca=!1,Ea=0,Aa=!1,ta=void 0,
U;J[f]=0;var ba=!1,oa=!1;wa[f]=!1;var fa,ua=!1,pa=!1,V="touchstart.iosSliderEvent click.iosSliderEvent",X,za,Da,sa;ka[f]=!1;ha[f]=[];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(F).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(l=0;l<qa.length;l++)a(".i"+ra).html(a(".i"+ra).html()+qa[l]);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==M&&(g.infiniteSlider=!1);g.scrollbar&&(""!=g.scrollbarContainer?a(g.scrollbarContainer).append("<div class = '"+P+"'><div class = '"+
x+"'></div></div>"):a(F).parent().append("<div class = '"+P+"'><div class = '"+x+"'></div></div>"));if(!C())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)});l=k.calcActiveOffset(g,k.getSliderOffset(a(F),"x"),m,B,J[f],M,void 0,f);l=(l+J[f]+M)%M;l=new k.args("load",g,F,a(F).children(":eq("+l+")"),l,l);a(A).data("args",l);if(""!=g.onSliderLoaded)g.onSliderLoaded(l);if(R[f].responsiveSlides||
R[f].responsiveSlideContainer)l=q?"orientationchange":"resize",a(window).bind(l+".iosSliderEvent-"+f,function(){if(!C())return!0;var b=a(A).data("args");if(""!=g.onSliderResize)g.onSliderResize(b)});!g.keyboardControls&&!g.tabToAdvance||ba||a(document).bind("keydown.iosSliderEvent",function(a){N||y||(a=a.originalEvent);if(ka[f])return!0;if(37==a.keyCode&&g.keyboardControls)a.preventDefault(),a=(K[f]+J[f]+M)%M,(0<a||g.infiniteSlider)&&k.changeSlide(a-1,F,G,t,x,w,B,z,Q,S,I,m,O,f,U,M,n,g);else if(39==
a.keyCode&&g.keyboardControls||9==a.keyCode&&g.tabToAdvance)a.preventDefault(),a=(K[f]+J[f]+M)%M,(a<m.length-1||g.infiniteSlider)&&k.changeSlide(a+1,F,G,t,x,w,B,z,Q,S,I,m,O,f,U,M,n,g)});if(h||g.desktopClickDrag){var na=!1,Ba=!1;l=a(F);var va=a(F),Ca=!1;g.scrollbarDrag&&(l=l.add(E),va=va.add(T));a(l).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[f]||ba||(Ca=k.isUnselectable(b.target,g)))return ca=na=!1,!0;fa=a(this)[0]===a(E)[0]?E:F;N||y||(b=b.originalEvent);k.autoSlidePause(f);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(y)try{document.selection.empty()}catch(Ha){}else document.selection.empty();
eventX=b.pageX;eventY=b.pageY;Aa=!0;ta=F;a(this).css({cursor:la})}D=[0,0];Z=[0,0];c=0;ca=!1;for(b=0;b<t.length;b++)clearTimeout(t[b]);b=k.getSliderOffset(F,"x");b>-1*p[f]+n+X?(b=-1*p[f]+n+X,k.setSliderOffset(a("."+x),b),a("."+x).css({width:w-S+"px"})):b<-1*v[f]&&(k.setSliderOffset(a("."+x),z-Q-w),a("."+x).css({width:w-S+"px"}));b=a(this)[0]===a(E)[0]?p[f]:0;ea=-1*(k.getSliderOffset(this,"x")-eventX-b);k.getSliderOffset(this,"y");D[1]=eventX;Z[1]=eventY;pa=!1});a(document).bind("touchmove.iosSliderEvent mousemove.iosSliderEvent",
function(b){N||y||(b=b.originalEvent);if(ka[f]||ba||Ca||!na)return!0;var l=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(y)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}D[0]=D[1];D[1]=eventX;c=(D[1]-D[0])/2;Z[0]=Z[1];Z[1]=eventY;d=(Z[1]-Z[0])/2;if(!ca){var h=(K[f]+J[f]+M)%M;h=new k.args("start",g,F,a(F).children(":eq("+h+")"),h,void 0);a(A).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(F,"x");var t=a(fa)[0]===a(E)[0]?p[f]:n,C=a(fa)[0]===a(E)[0]?(p[f]-v[f]-n)/(z-Q-w):1,u=a(fa)[0]===a(E)[0]?g.scrollbarElasticPullResistance:g.elasticPullResistance,q=g.snapSlideCenter&&a(fa)[0]===a(E)[0]?0:n,r=g.snapSlideCenter&&a(fa)[0]===a(E)[0]?n:0;"touchmove"==b.type&&(Ga!=b.touches.length&&(ea=-1*h+eventX),Ga=b.touches.length);if(g.infiniteSlider){if(h<=-1*v[f]){var H=a(F).width();if(h<=-1*xa[f]){var L=
-1*I[0];a(G).each(function(b){k.setSliderOffset(a(G)[b],L+n);b<m.length&&(m[b]=-1*L);L+=O[b]});ea-=-1*m[0];p[f]=-1*m[0]+n;v[f]=p[f]+H-B;J[f]=0}else{var la=0,R=k.getSliderOffset(a(G[0]),"x");a(G).each(function(a){k.getSliderOffset(this,"x")<R&&(R=k.getSliderOffset(this,"x"),la=a)});u=p[f]+H;k.setSliderOffset(a(G)[la],u);p[f]=-1*m[1]+n;v[f]=p[f]+H-B;m.splice(0,1);m.splice(m.length,0,-1*u+n);J[f]++}}if(h>=-1*p[f]||0<=h)if(H=a(F).width(),0<=h)for(L=-1*I[0],a(G).each(function(b){k.setSliderOffset(a(G)[b],
L+n);b<m.length&&(m[b]=-1*L);L+=O[b]}),ea+=-1*m[0],p[f]=-1*m[0]+n,v[f]=p[f]+H-B,J[f]=M;0<-1*m[0]-H+n;){var P=0,T=k.getSliderOffset(a(G[0]),"x");a(G).each(function(a){k.getSliderOffset(this,"x")>T&&(T=k.getSliderOffset(this,"x"),P=a)});u=p[f]-O[P];k.setSliderOffset(a(G)[P],u);m.splice(0,0,-1*u+n);m.splice(m.length-1,1);p[f]=-1*m[0]+n;v[f]=p[f]+H-B;J[f]--;K[f]++}else P=0,T=k.getSliderOffset(a(G[0]),"x"),a(G).each(function(a){k.getSliderOffset(this,"x")>T&&(T=k.getSliderOffset(this,"x"),P=a)}),u=p[f]-
O[P],k.setSliderOffset(a(G)[P],u),m.splice(0,0,-1*u+n),m.splice(m.length-1,1),p[f]=-1*m[0]+n,v[f]=p[f]+H-B,J[f]--}else H=a(F).width(),h>-1*p[f]+n&&(l=(p[f]+-1*(ea-t-eventX+q)*C-t)*u*-1/C),h<-1*v[f]&&(l=(v[f]+r+-1*(ea-t-eventX)*C-t)*u*-1/C);k.setSliderOffset(F,-1*(ea-t-eventX-l)*C-t+r);g.scrollbar&&(k.showScrollbar(g,x),e=Math.floor((ea-eventX-l-p[f]+q)/(v[f]-p[f]+n)*(z-Q-w)*C),h=w,0>=e?(h=w-S- -1*e,k.setSliderOffset(a("."+x),0),a("."+x).css({width:h+"px"})):e>=z-Q-S-w?(h=z-Q-S-e,k.setSliderOffset(a("."+
x),e),a("."+x).css({width:h+"px"})):k.setSliderOffset(a("."+x),e));"touchmove"==b.type&&(aa=b.touches[0].pageX);b=!1;l=k.calcActiveOffset(g,-1*(ea-eventX-l),m,B,J[f],M,void 0,f);h=(l+J[f]+M)%M;g.infiniteSlider?h!=ja[f]&&(b=!0):l!=K[f]&&(b=!0);if(b&&(K[f]=l,ja[f]=h,pa=!0,h=new k.args("change",g,F,a(F).children(":eq("+h+")"),h,h),a(A).data("args",h),""!=g.onSlideChange))g.onSlideChange(h)}});qa=a(window);if(y||N)qa=a(document);a(l).bind("touchcancel.iosSliderEvent touchend.iosSliderEvent",function(a){a=
a.originalEvent;if(Ba)return!1;Ba=!0;if(ka[f]||ba||Ca)return!0;if(0!=a.touches.length)for(var b=0;b<a.touches.length;b++)a.touches[b].pageX==aa&&k.slowScrollHorizontal(F,G,t,x,c,d,w,B,z,Q,S,I,m,O,f,U,M,fa,pa,n,g);else k.slowScrollHorizontal(F,G,t,x,c,d,w,B,z,Q,S,I,m,O,f,U,M,fa,pa,n,g);na=ua=!1;return!0});a(qa).bind("mouseup.iosSliderEvent-"+f,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[f]){if(ba)return!0;g.desktopClickDrag&&a(F).css({cursor:u});g.scrollbarDrag&&a(E).css({cursor:u});Aa=!1;if(void 0==ta)return!0;k.slowScrollHorizontal(ta,G,t,x,c,d,w,B,z,Q,S,I,m,O,f,U,M,fa,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 e=0;e<d.length;e++)clearTimeout(d[e]);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;Y.destroy(!1,this);1!=c.numberOfSlides&&c.settings.infiniteSlider&&(c.settings.startAtSlide=(K[c.sliderNumber]+1+J[c.sliderNumber]+c.numberOfSlides)%c.numberOfSlides);Y.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),e=d.data("iosslider");if(void 0==e)return!1;0==a(e.scrollerNode).children().length?(a(e.scrollerNode).append(b),d.data("args").currentSlideNumber=1):e.settings.infiniteSlider?(1==c?a(e.scrollerNode).children(":eq(0)").before(b):a(e.scrollerNode).children(":eq("+(c-2)+")").after(b),-1>J[e.sliderNumber]&&K[e.sliderNumber]--,d.data("args").currentSlideNumber>=
c&&K[e.sliderNumber]++):(c<=e.numberOfSlides?a(e.scrollerNode).children(":eq("+(c-1)+")").before(b):a(e.scrollerNode).children(":eq("+(c-2)+")").after(b),d.data("args").currentSlideNumber>=c&&d.data("args").currentSlideNumber++);d.data("iosslider").numberOfSlides++;Y.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();K[d.sliderNumber]>b-1&&K[d.sliderNumber]--;c.data("iosslider").numberOfSlides--;
Y.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=(K[b.sliderNumber]+J[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);K[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=(K[b.sliderNumber]+J[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);K[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:u});
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;R[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;R[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(Y[b])return Y[b].apply(this,Array.prototype.slice.call(arguments,1));if("object"!==typeof b&&b)a.error("invalid method call!");else return Y.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 e(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==q()&&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(R){h=c("<input>").attr(c.extend(d(this),{type:"text"}))}h.removeAttr("name").data({"placeholder-password":a,"placeholder-id":b}).bind("focus.placeholder",e);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 q(){try{return b.activeElement}catch(u){}}
var C="placeholder"in b.createElement("input"),N="placeholder"in b.createElement("textarea"),y=c.fn,ia=c.valHooks,T=c.propHooks;C&&N?(y=y.placeholder=function(){return this},y.input=y.textarea=!0):(y=y.placeholder=function(){this.filter((C?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":e,"blur.placeholder":h}).data("placeholder-enabled",!0).trigger("blur.placeholder");return this},y.input=C,y.textarea=N,y={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),y=d.data("placeholder-password");if(y)return y[0].value=b;if(!d.data("placeholder-enabled"))return a.value=b;""==b?(a.value=b,a!=q()&&h.call(a)):d.hasClass("placeholder")?e.call(a,!0,b)||(a.value=b):a.value=b;return d}},C||(ia.input=y,T.value=y),N||(ia.textarea=y,T.value=y),c(function(){c(b).delegate("form","submit.placeholder",function(){var a=c(".placeholder",this).each(e);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();var c=a.offset().top>jQuery(document).height()-jQuery(window).height()?jQuery(document).height()-jQuery(window).height():a.offset().top;jQuery("html, body").animate({scrollTop:c},{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){var c="translate3d(0px,"+b+"px, 0px)";a.style["-webkit-transform"]=
c;a.style["-moz-transform"]=c;a.style["-ms-transform"]=c;a.style["-o-transform"]=c;a.style.transform=c},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 e=a%1===.5*d;var h=Math.floor(a);if(e)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(e?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.setMenuMinHeight();tdSite.retina();tdSite.mobileMenu();tdSite.openCloseSearchBox();tdSite.resizeVideos();tdSite.validateCommentsForm();jQuery("input, textarea").placeholder()});
(function(){tdSite={setMenuMinHeight:function(){var a=jQuery("#td-mobile-nav");a.length&&a.css("min-height",tdEvents.window_innerHeight+1+"px")},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"))})})}}})();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),window.tdAnimationStack.compute_items())))},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(u){}"ready"==c&&!h&&(h=!0);if(a.origin!=q)return!1;a=b.value;var d=b.data,C=""===C?null:b.player_id;b=C?e[C][c]:e[c];c=[];if(!b)return!1;void 0!==
a&&c.push(a);d&&c.push(d);C&&c.push(C);return 0<c.length?b.apply(null,c):b.call()}function d(a,b,c){c?(e[c]||(e[c]={}),e[c][a]=b):e[a]=b}var e={},h=!1,q="";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+="/")}q=b;return this},api:function(a,c){if(!this.element||
!a)return!1;var e=this.element,h=""!==e.id?e.id:null,q=c&&c.constructor&&c.call&&c.apply?null:c,C=c&&c.constructor&&c.call&&c.apply?c:null;C&&d(a,C,h);b(a,q,e);return this},addEvent:function(a,c){if(!this.element)return!1;var e=this.element,q=""!==e.id?e.id:null;d(a,c,q);"ready"!=a?b("addEventListener",a,e):"ready"==a&&h&&c.call(null,q);return this},removeEvent:function(a){if(!this.element)return!1;var c=this.element,d;a:{if((d=""!==c.id?c.id:null)&&e[d]){if(!e[d][a]){d=!1;break a}e[d][a]=null}else{if(!e[a]){d=
!1;break a}e[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),e=d.tdPlayerContainer;c.parent().find(".td_youtube_control").data("player-id",e);for(var h=c.parent().find(".td_click_video_youtube"),q=0;q<h.length;q++)jQuery(h[q]).data("player-id",e),q+1<h.length?jQuery(h[q]).data("next-video-id",jQuery(h[q+1]).data("video-id")):jQuery(h[q]).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"),
e=0;e<d.length;e++)jQuery(d[e]).data("player-id",b),e+1<d.length?jQuery(d[e]).data("next-video-id",jQuery(d[e+1]).data("video-id")):jQuery(d[e]).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,q=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(q);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(){tdSite.setMenuMinHeight();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(){tdSite.setMenuMinHeight();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){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]])})});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");a.length&&b.length&&(a=a.val().trim(),b=b.val().trim(),a&&b?(tdLogin.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]),tdLogin.showHideMsg(td_please_wait),tdLogin.doAction("td_mod_login",a,"",b)):tdLogin.showHideMsg(td_email_user_pass_incorrect))},handlerRegister:function(){var a=
jQuery("#register_email"),b=jQuery("#register_user");a.length&&b.length&&(a=a.val().trim(),b=b.val().trim(),tdLogin.email_pattern.test(a)&&b?(tdLogin.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]),tdLogin.showHideMsg(td_please_wait),tdLogin.doAction("td_mod_register",a,b,"")):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){jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:a,email:b,user:c,pass:d,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){}})}}})();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.horizontal_element_css_class=this.container_jquery_obj=this.vertical_jquery_obj=this.horizontal_jquery_obj=this.blockUid="";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){!1!==a._is_initialized&&(a._is_initialized=!1,a.horizontal_jquery_obj.html(a.horizontal_jquery_obj.html()+a._vertical_ul_jquery_obj.html()),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.css("width");if(void 0!==c&&""!==c)for(b=c.replace("px",""),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);
b-=a._horizontal_extra_space;for(var d;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 e=0,h=a.minimum_elements;0<h&&0<a._vertical_elements.length&&b>=c;)if(d=tdPullDown._make_element_horizontal(a),null!==d)e+=d.calculated_width,h--;else{tdPullDown._prepare_horizontal_header(a);return}b-=e}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._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();0===a._vertical_elements.length&&a.vertical_jquery_obj.css("display",
"none");a._horizontal_elements.push(b);b.jquery_object.css("opacity","0");b.jquery_object.detach().appendTo(a.horizontal_jquery_obj);setTimeout(function(){b.jquery_object.css("opacity","1")},50);return b},_make_element_vertical:function(a){if(!1===a._is_initialized||0===a._horizontal_elements.length)return null;var b=a._horizontal_elements.pop();0===a._vertical_elements.length&&a.vertical_jquery_obj.css("display","");a._vertical_elements.unshift(b);b.jquery_object.detach().prependTo(a._vertical_ul_jquery_obj);
return b},_make_all_elements_vertical:function(a){for(;0<a._horizontal_elements.length;)tdPullDown._make_element_vertical(a)},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").click(function(a){var b=jQuery(this);if(!b.hasClass("td-social-mail")&&!b.hasClass("td-social-share-text"))if(a.preventDefault(),b.hasClass("td-social-expand-tabs")){a=b.data("block-uid");var c=jQuery("#"+a),d=b.find(".td-social-expand-tabs-icon");if(c.hasClass("td-social-show-all")){b.detach().appendTo(c.find(".td-social-sharing-hidden:first"));b=c.find(".td-post-sharing-visible:first");var e=new tdPullDown.item;e.blockUid=
c.attr("id");e.horizontal_jquery_obj=b;e.vertical_jquery_obj=c.find(".td-social-sharing-hidden:first");e.horizontal_element_css_class="td-social-sharing-button-js";e.container_jquery_obj=b.parents(".td-post-sharing:first");tdPullDown.add_item(e);jQuery("#"+a).removeClass("td-social-show-all");d.removeClass("td-icon-minus");d.addClass("td-icon-plus")}else tdPullDown.unloadItem(a),jQuery("#"+a).addClass("td-social-show-all"),d.removeClass("td-icon-plus"),d.addClass("td-icon-minus"),b.detach().appendTo(c.find(".td-post-sharing-visible:first"))}else b.hasClass("td-social-print")?
window.print():(a.preventDefault(),a=jQuery(window).width()/2-450,c=jQuery(window).height()/2-300,window.open(b.attr("href"),"mywin","left="+a+",top="+c+",width=900,height=600,toolbar=0"))});setTimeout(function(){jQuery(".td-post-sharing").each(function(a,b){var c=jQuery(b),d=c.find(".td-post-sharing-visible:first"),e=new tdPullDown.item;e.blockUid=c.attr("id");e.horizontal_jquery_obj=d;e.vertical_jquery_obj=c.find(".td-social-sharing-hidden:first");e.horizontal_element_css_class="td-social-sharing-button-js";
e.container_jquery_obj=d.parents(".td-post-sharing:first");tdPullDown.add_item(e)})},50)}};tdSocialSharing.init()})();