Using Jssor Slider plugin for Odoo slider banner
my_webs_utils/views/templates.xml
my_webs_utils/views/slide.xml
slide_show.js
jQuery(document).ready(function ($) {
var options = {
$AutoPlay: 1, // Auto play or not, to enable slideshow, this option must be set to greater than 0. Default value is 0. 0: no auto play, 1: continuously, 2: stop at last slide, 4: stop on click, 8: stop on user navigation (by arrow/bullet/thumbnail/drag/arrow key navigation)
$AutoPlaySteps: 1, // Steps to go for each navigation request (this options applys only when slideshow disabled), the default value is 1
$Idle: 2000, // Interval (in milliseconds) to go for next slide since the previous stopped if the slider is auto playing, default value is 3000
$PauseOnHover: 1, // Whether to pause when mouse over if a slider is auto playing, 0 no pause, 1 pause for desktop, 2 pause for touch device, 3 pause for desktop and touch device, 4 freeze for desktop, 8 freeze for touch device, 12 freeze for desktop and touch device, default value is 1
$ArrowKeyNavigation: 1, // Steps to go for each navigation request by pressing arrow key, default value is 1.
$SlideEasing: $Jease$.$OutQuint, // Specifies easing for right to left animation, default value is $Jease$.$OutQuad
$SlideDuration: 800, // Specifies default duration (swipe) for slide in milliseconds, default value is 500
$MinDragOffsetToSlide: 20, // Minimum drag offset to trigger slide, default value is 20
// $SlideWidth: 600, // Width of every slide in pixels, default value is width of 'slides' container
// $SlideHeight: 300, // Height of every slide in pixels, default value is height of 'slides' container
$SlideSpacing: 0, // Space between each slide in pixels, default value is 0
$UISearchMode: 1, // The way (0 parellel, 1 recursive, default value is 1) to search UI components (slides container, loading screen, navigator container, arrow navigator container, thumbnail navigator container etc).
$PlayOrientation: 1, // Orientation to play slide (for auto play, navigation), 1 horizental, 2 vertical, 5 horizental reverse, 6 vertical reverse, default value is 1
$DragOrientation: 1, // Orientation to drag slide, 0 no drag, 1 horizental, 2 vertical, 3 either, default value is 1 (Note that the $DragOrientation should be the same as $PlayOrientation when $Cols is greater than 1, or parking position is not 0)
$ArrowNavigatorOptions: { // Options to specify and enable arrow navigator or not
$Class: $JssorArrowNavigator$, // Class to create arrow navigator instance
$ChanceToShow: 2, // 0 Never, 1 Mouse Over, 2 Always
$Steps: 1 // Steps to go for each navigation request, default value is 1
},
$BulletNavigatorOptions: { // Options to specify and enable navigator or not
$Class: $JssorBulletNavigator$, // Class to create navigator instance
$ChanceToShow: 2, // 0 Never, 1 Mouse Over, 2 Always
$Steps: 1, // Steps to go for each navigation request, default value is 1
$SpacingX: 12, // Horizontal space between each item in pixel, default value is 0
$Orientation: 1 // The orientation of the navigator, 1 horizontal, 2 vertical, default value is 1
}
};
var slider = new $JssorSlider$("slider_container", options);
function ScaleSlider() {
var parentWidth = slider.$Elmt.parentNode.clientWidth;
if (parentWidth) {
slider.$ScaleWidth(parentWidth - 30);
}
else
window.setTimeout(ScaleSlider, 30);
}
ScaleSlider();
$(window).bind("load", ScaleSlider);
$(window).bind("resize", ScaleSlider);
$(window).bind("orientationchange", ScaleSlider);
});
slide.css
.l-009-spin img {
animation-name: l-009-spin;
animation-duration: 1.6s;
animation-iteration-count: infinite;
animation-timing-function: linear;
margin-top: -19px;
position: relative;
top: 50%;
width: 38px;
height: 38px;
}
@keyframes l-009-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
#slider_container {
visibility: hidden;
position: relative;
margin: 0 auto 20px auto;
width: 1140px;
height: 330px;
overflow: hidden;
}
.l-009-spin {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
text-align: center;
background-color: rgba(0, 0, 0, 0.7);
}
.slides {
position: absolute;
left: 0;
top: 0;
width: 1140px;
height: 330px;
overflow: hidden;
}
/*!*region Bullet Navigator*!*/
.b031 {
position: absolute;
}
.b031 .i {
position: absolute;
cursor: pointer;
}
.b031 .i .b {
fill: #000;
fill-opacity: 0.5;
stroke: #fff;
stroke-width: 1200px;
stroke-miterlimit: 10;
stroke-opacity: 0.3;
}
.b031 .i:hover .b {
fill: #fff;
fill-opacity: .7;
stroke: #000;
stroke-opacity: .5;
}
.b031 .iav .b {
fill: #fff;
stroke: #000;
fill-opacity: 1;
}
.b031 .i.idn {
opacity: .3;
}
.a051 {
display: block;
position: absolute;
cursor: pointer;
}
.a051 .a {
fill: none;
stroke: #fff;
stroke-width: 360px;
stroke-miterlimit: 10;
}
.a051:hover {
opacity: .8;
}
.a051.a051dn {
opacity: .5;
}
.a051.a051ds {
opacity: .3;
pointer-events: none;
}
slider.min.js
/*!
Slider (MIT license)
*/
/* eslint-disable */
!function(i,h,m,f,d,k,e){new(function(){});var c={E:m.PI,m:m.max,k:m.min,K:m.ceil,P:m.floor,F:m.abs,sb:m.sin,dc:m.cos,Ee:m.tan,yf:m.atan,Yb:m.sqrt,q:m.pow,ke:m.random,$Round:m.round},g=i.$Jease$={$Swing:function(a){return-c.dc(a*c.E)/2+.5},$Linear:function(a){return a},$InQuad:function(a){return a*a},$OutQuad:function(a){return-a*(a-2)},$InOutQuad:function(a){return(a*=2)<1?1/2*a*a:-1/2*(--a*(a-2)-1)},$InCubic:function(a){return a*a*a},$OutCubic:function(a){return(a-=1)*a*a+1},$InOutCubic:function(a){return(a*=2)<1?1/2*a*a*a:1/2*((a-=2)*a*a+2)},$InQuart:function(a){return a*a*a*a},$OutQuart:function(a){return-((a-=1)*a*a*a-1)},$InOutQuart:function(a){return(a*=2)<1?1/2*a*a*a*a:-1/2*((a-=2)*a*a*a-2)},$InQuint:function(a){return a*a*a*a*a},$OutQuint:function(a){return(a-=1)*a*a*a*a+1},$InOutQuint:function(a){return(a*=2)<1?1/2*a*a*a*a*a:1/2*((a-=2)*a*a*a*a+2)},$InSine:function(a){return 1-c.dc(c.E/2*a)},$OutSine:function(a){return c.sb(c.E/2*a)},$InOutSine:function(a){return-1/2*(c.dc(c.E*a)-1)},$InExpo:function(a){return a==0?0:c.q(2,10*(a-1))},$OutExpo:function(a){return a==1?1:-c.q(2,-10*a)+1},$InOutExpo:function(a){return a==0||a==1?a:(a*=2)<1?1/2*c.q(2,10*(a-1)):1/2*(-c.q(2,-10*--a)+2)},$InCirc:function(a){return-(c.Yb(1-a*a)-1)},$OutCirc:function(a){return c.Yb(1-(a-=1)*a)},$InOutCirc:function(a){return(a*=2)<1?-1/2*(c.Yb(1-a*a)-1):1/2*(c.Yb(1-(a-=2)*a)+1)},$InElastic:function(a){if(!a||a==1)return a;var b=.3,d=.075;return-(c.q(2,10*(a-=1))*c.sb((a-d)*2*c.E/b))},$OutElastic:function(a){if(!a||a==1)return a;var b=.3,d=.075;return c.q(2,-10*a)*c.sb((a-d)*2*c.E/b)+1},$InOutElastic:function(a){if(!a||a==1)return a;var b=.45,d=.1125;return(a*=2)<1?-.5*c.q(2,10*(a-=1))*c.sb((a-d)*2*c.E/b):c.q(2,-10*(a-=1))*c.sb((a-d)*2*c.E/b)*.5+1},$InBack:function(a){var b=1.70158;return a*a*((b+1)*a-b)},$OutBack:function(a){var b=1.70158;return(a-=1)*a*((b+1)*a+b)+1},$InOutBack:function(a){var b=1.70158;return(a*=2)<1?1/2*a*a*(((b*=1.525)+1)*a-b):1/2*((a-=2)*a*(((b*=1.525)+1)*a+b)+2)},$InBounce:function(a){return 1-g.$OutBounce(1-a)},$OutBounce:function(a){return a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},$InOutBounce:function(a){return a<1/2?g.$InBounce(a*2)*.5:g.$OutBounce(a*2-1)*.5+.5},$GoBack:function(a){return 1-c.F(2-1)},$InWave:function(a){return 1-c.dc(a*c.E*2)},$OutWave:function(a){return c.sb(a*c.E*2)},$OutJump:function(a){return 1-((a*=2)<1?(a=1-a)*a*a:(a-=1)*a*a)},$InJump:function(a){return(a*=2)<1?a*a*a:(a=2-a)*a*a},$Early:c.K,$Late:c.P};var b=i.$Jssor$=new function(){var j=this,xb=/\S+/g,K=1,eb=2,hb=3,gb=4,kb=5,L,r=0,n=0,B=0,E=navigator,qb=E.appName,p=E.userAgent,q=parseFloat;function Gb(){if(!L){L={Vc:"ontouchstart"in i||"createTouch"in h};var a;if(E.pointerEnabled||(a=E.msPointerEnabled))L.ie=a?"msTouchAction":"touchAction"}return L}function u(g){if(!r){r=-1;if(qb=="Microsoft Internet Explorer"&&!!i.attachEvent&&!!i.ActiveXObject){var e=p.indexOf("MSIE");r=K;n=q(p.substring(e+5,p.indexOf(";",e)));/*@cc_on@*/}else if(qb=="Netscape"&&!!i.addEventListener){var d=p.indexOf("Firefox"),b=p.indexOf("Safari"),f=p.indexOf("Chrome"),c=p.indexOf("AppleWebKit");if(d>=0){r=eb;n=q(p.substring(d+8))}else if(b>=0){var h=p.substring(0,b).lastIndexOf("/");r=f>=0?gb:hb;n=q(p.substring(h+1,b))}else{var a=/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/i.exec(p);if(a){r=K;n=q(a[1])}}if(c>=0)B=q(p.substring(c+12))}else{var a=/(opera)(?:.*version|)[ \/]([\w.]+)/i.exec(p);if(a){r=kb;n=q(a[2])}}}return g==r}function v(){return u(K)}function zb(){return u(eb)}function fb(){return u(hb)}function jb(){return u(kb)}function bb(){return fb()&&B>534&&B<535}function H(){u();return B>537||n>42||r==K&&n>=11}function cb(a){var b,c;return function(g){if(!b){b=d;var f=a.substr(0,1).toUpperCase()+a.substr(1);l([a].concat(["WebKit","ms","Moz","O","webkit"]),function(h,d){var b=a;if(d)b=h+f;if(g.style[b]!=e)return c=b})}return c}}function ab(b){var a;return function(c){a=a||cb(b)(c)||b;return a}}var M=ab("transform");function pb(a){return{}.toString.call(a)}var mb={};l(["Boolean","Number","String","Function","Array","Date","RegExp","Object"],function(a){mb["[object "+a+"]"]=a.toLowerCase()});function l(b,d){var a,c;if(pb(b)=="[object Array]"){for(a=0;a=a.x&&b.x<=a.x+a.w&&b.y>=a.y&&b.y<=a.y+a.h};j.oe=function(c,e){var a=b.Ig(e),d=b.jd(c);return j.Yf(d,a)};function w(c,d,a){if(a!==e)c.style[d]=a==e?"":a;else{var b=c.currentStyle||c.style;a=b[d];if(a==""&&i.getComputedStyle){b=c.ownerDocument.defaultView.getComputedStyle(c,f);b&&(a=b.getPropertyValue(d)||b[d])}return a}}function Y(b,c,a,d){if(a===e){a=q(w(b,c));isNaN(a)&&(a=f);return a}if(a==f)a="";else d&&(a+="px");w(b,c,a)}function m(c,a){var d=a?Y:w,b;if(a&4)b=ab(c);return function(e,f){return d(e,b?b(e):c,f,a&2)}}function Bb(a){return q(a.style.opacity||"1")}function Db(b,a){b.style.opacity=a==1?"":c.$Round(a*100)/100}var O={$Rotate:["rotate"],$RotateX:["rotateX"],$RotateY:["rotateY"],$SkewX:["skewX"],$SkewY:["skewY"]};if(!H())O=z(O,{$ScaleX:["scaleX",2],$ScaleY:["scaleY",2],$TranslateZ:["translateZ",1]});function N(c,a){var b="";if(a){if(v()&&n&&n<10){delete a.$RotateX;delete a.$RotateY;delete a.$TranslateZ}l(a,function(d,c){var a=O[c];if(a){var e=a[1]||0;if(P[c]!=d)b+=" "+a[0]+"("+d+(["deg","px",""])[e]+")"}});if(H()){if(a.$TranslateX||a.$TranslateY||a.$TranslateZ!=e)b+=" translate3d("+(a.$TranslateX||0)+"px,"+(a.$TranslateY||0)+"px,"+(a.$TranslateZ||0)+"px)";if(a.$ScaleX==e)a.$ScaleX=1;if(a.$ScaleY==e)a.$ScaleY=1;if(a.$ScaleX!=1||a.$ScaleY!=1)b+=" scale3d("+a.$ScaleX+", "+a.$ScaleY+", 1)"}}c.style[M(c)]=b}j.Zf=m("transformOrigin",4);j.dg=m("backfaceVisibility",4);m("transformStyle",4);j.bg=m("perspective",6);j.xg=m("perspectiveOrigin",4);j.yg=function(b,a){if(v()&&n<9)b.style.zoom=a==1?"":a;else{var c=M(b),f=a==1?"":"scale("+a+")",e=b.style[c],g=new RegExp(/[\s]*scale\(.*?\)/g),d=lb(e,[g],f);b.style[c]=d}};j.$AddEvent=function(a,c,d,b){a=j.$GetElement(a);if(a.addEventListener){c=="mousewheel"&&a.addEventListener("DOMMouseScroll",d,b);a.addEventListener(c,d,b)}else if(a.attachEvent){a.attachEvent("on"+c,d);b&&a.setCapture&&a.setCapture()}};j.$RemoveEvent=function(a,c,d,b){a=j.$GetElement(a);if(a.removeEventListener){c=="mousewheel"&&a.removeEventListener("DOMMouseScroll",d,b);a.removeEventListener(c,d,b)}else if(a.detachEvent){a.detachEvent("on"+c,d);b&&a.releaseCapture&&a.releaseCapture()}};j.$CancelEvent=function(a){a=t(a);a.preventDefault&&a.preventDefault();a.cancel=d;a.returnValue=k};j.$StopEvent=function(a){a=t(a);a.stopPropagation&&a.stopPropagation();a.cancelBubble=d};j.S=function(d,c){var a=[].slice.call(arguments,2),b=function(){var b=a.concat([].slice.call(arguments,0));return c.apply(d,b)};return b};j.Ag=function(a,b){if(b==e)return a.textContent||a.innerText;var c=h.createTextNode(b);j.Xb(a);a.appendChild(c)};j.Ig=function(b){var a=b.getBoundingClientRect();return{x:a.left,y:a.top,w:a.right-a.left,h:a.bottom-a.top}};j.Eb=function(d,c){for(var b=[],a=d.firstChild;a;a=a.nextSibling)(c||a.nodeType==1)&&b.push(a);return b};function ob(a,c,e,b){b=b||"u";for(a=a?a.firstChild:f;a;a=a.nextSibling)if(a.nodeType==1){if(D(a,b)==c)return a;if(!e){var d=ob(a,c,e,b);if(d)return d}}}j.$FindChild=ob;function T(a,d,g,b){b=b||"u";var c=[];for(a=a?a.firstChild:f;a;a=a.nextSibling)if(a.nodeType==1){D(a,b)==d&&c.push(a);if(!g){var e=T(a,d,g,b);if(e.length)c=c.concat(e)}}return c}j.qg=function(b,a){return b.getElementsByTagName(a)};j.tb=function(a,f,d,g){d=d||"u";var e;do{if(a.nodeType==1){var c;d&&(c=D(a,d));if(c&&c==rb(f,c)||g==a.tagName){e=a;break}}a=b.sd(a)}while(a&&a!=h.body);return e};j.ug=function(a){return X(["INPUT","TEXTAREA","SELECT"])[a.tagName]};function z(){var f=arguments,d,c,b,a,h=1&f[0],g=1+h;d=f[g-1]||{};for(;g-1;f--){var d=c[f],e=U(i);x(e,x(d));b.zd(e,d.style.cssText);b.Ib(e,d);b.nb(d)}return a};function Eb(){var a=this;b.V(a,o);var d,q="",s=["av","pv","ds","dn"],f=[],r,n=0,k=0,g=0;function m(){I(d,r,(f[g||k&2||k]||"")+" "+(f[n]||""));j.zc(d,g?"none":"")}function c(){n=0;a.T(i,"mouseup",c);a.T(h,"mouseup",c);a.T(h,"touchend",c);a.T(h,"touchcancel",c);a.T(i,"blur",c);m()}function p(b){if(g)j.$CancelEvent(b);else{n=4;m();a.a(i,"mouseup",c);a.a(h,"mouseup",c);a.a(h,"touchend",c);a.a(h,"touchcancel",c);a.a(i,"blur",c)}}a.ae=function(a){if(a===e)return k;k=a&2||a&1;m()};a.$Enable=function(a){if(a===e)return!g;g=a?0:3;m()};a.A=function(e){a.$Elmt=d=j.$GetElement(e);F(d,"data-jssor-button","1");var c=b.Tg(x(d));if(c)q=c.shift();l(s,function(a){f.push(q+a)});r=Z(" ",f);f.unshift("");a.a(d,"mousedown",p);a.a(d,"touchstart",p)};b.A(a)}j.qc=function(a){return new Eb(a)};j.Rb=w;j.Lb=m("overflow");j.zc=m("pointerEvents");j.ab=m("top",2);j.Xd=m("right",2);j.Vd=m("bottom",2);j.Q=m("left",2);j.C=m("width",2);j.D=m("height",2);m("marginLeft",2);m("marginTop",2);j.rb=m("position");j.Bb=m("display");j.Y=m("zIndex",1);j.hg=function(b,a,c){if(a!=e)Db(b,a,c);else return Bb(b)};j.zd=function(a,b){if(b!=e)a.style.cssText=b;else return a.style.cssText};j.gg=function(b,a){if(a===e){a=w(b,"backgroundImage")||"";var c=/\burl\s*\(\s*["']?([^"'\r\n,]+)["']?\s*\)/gi.exec(a)||[];return c[1]}w(b,"backgroundImage",a?"url('"+a+"')":"")};var J;j.Eg=J={$Opacity:j.hg,$Top:j.ab,$Right:j.Xd,$Bottom:j.Vd,$Left:j.Q,H:j.C,I:j.D,Ob:j.rb,Sd:j.Bb,$ZIndex:j.Y};j.Ud=function(c,b){var a={};l(b,function(d,b){if(J[b])a[b]=J[b](c)});return a};function s(b,i){var a=H(),g=bb(),h=M(b);function d(l,a){a=a||{};var g=a.$TranslateZ||0,i=(a.$RotateX||0)%360,j=(a.$RotateY||0)%360,k=(a.$Rotate||0)%360,c=a.$ScaleX,d=a.$ScaleY,f=a.Mh;if(c==e)c=1;if(d==e)d=1;if(f==e)f=1;var b=new Ab(a.$TranslateX,a.$TranslateY,g);b.$Scale(c,d,f);b.Zg(a.$SkewX,a.$SkewY);b.$RotateX(i);b.$RotateY(j);b.Yg(k);b.$Move(a.N,a.J);l.style[h]=b.ah()}s=function(c,b){b=b||{};var i=b.N,k=b.J,h;l(J,function(a,d){h=b[d];h!==e&&a(c,h)});j.Lg(c,b.$Clip);j.ig(c,b.vb);if(!a){i!=e&&j.Q(c,(b.Fd||0)+i);k!=e&&j.ab(c,(b.Pd||0)+k)}if(b.dh)if(g)ub(j.S(f,N,c,b));else if(a)d(c,b);else N(c,b)};j.Z=s;s(b,i)}j.fh=N;j.Z=s;function Ab(j,k,o){var d=this,b=[1,0,0,0,0,1,0,0,0,0,1,0,j||0,k||0,o||0,1],i=c.sb,h=c.dc,l=c.Ee;function g(a){return a*c.E/180}function m(b,c,f,g,i,l,n,o,q,t,u,w,y,A,C,F,a,d,e,h,j,k,m,p,r,s,v,x,z,B,D,E){return[b*a+c*j+f*r+g*z,b*d+c*k+f*s+g*B,b*e+c*m+f*v+g*D,b*h+c*p+f*x+g*E,i*a+l*j+n*r+o*z,i*d+l*k+n*s+o*B,i*e+l*m+n*v+o*D,i*h+l*p+n*x+o*E,q*a+t*j+u*r+w*z,q*d+t*k+u*s+w*B,q*e+t*m+u*v+w*D,q*h+t*p+u*x+w*E,y*a+A*j+C*r+F*z,y*d+A*k+C*s+F*B,y*e+A*m+C*v+F*D,y*h+A*p+C*x+F*E]}function e(c,a){return m.apply(f,(a||b).concat(c))}d.$Scale=function(a,c,d){if(a!=1||c!=1||d!=1)b=e([a,0,0,0,0,c,0,0,0,0,d,0,0,0,0,1])};d.$Move=function(a,c,d){b[12]+=a||0;b[13]+=c||0;b[14]+=d||0};d.$RotateX=function(c){if(c){a=g(c);var d=h(a),f=i(a);b=e([1,0,0,0,0,d,f,0,0,-f,d,0,0,0,0,1])}};d.$RotateY=function(c){if(c){a=g(c);var d=h(a),f=i(a);b=e([d,0,-f,0,0,1,0,0,f,0,d,0,0,0,0,1])}};d.Yg=function(c){if(c){a=g(c);var d=h(a),f=i(a);b=e([d,f,0,0,-f,d,0,0,0,0,1,0,0,0,0,1])}};d.Zg=function(a,c){if(a||c){j=g(a);k=g(c);b=e([1,l(k),0,0,l(j),1,0,0,0,0,1,0,0,0,0,1])}};d.ah=function(){return"matrix3d("+b.join(",")+")"}}var P={Fd:0,Pd:0,N:0,J:0,$Zoom:1,$ScaleX:1,$ScaleY:1,$Rotate:0,$RotateX:0,$RotateY:0,$TranslateX:0,$TranslateY:0,$TranslateZ:0,$SkewX:0,$SkewY:0};j.ad=function(c,d){var a=c||{};if(c)if(b.me(c))a={W:a};else if(b.me(c.$Clip))a.$Clip={W:c.$Clip};a.W=a.W||d;if(a.$Clip)a.$Clip.W=a.$Clip.W||d;if(a.vb)a.vb.W=a.vb.W||d;return a};function tb(c,a){var b={};l(c,function(c,d){var f=c;if(a[d]!=e)if(j.oc(c))f=c+a[d];else f=tb(c,a[d]);b[d]=f});return b}j.Sg=tb;j.Ld=function(o,j,s,t,D,E,p){var a=j;if(o){a={};for(var i in j){var F=E[i]||1,B=D[i]||[0,1],h=(s-B[0])/B[1];h=c.k(c.m(h,0),1);h=h*F;var y=c.P(h);if(h!=y)h-=y;var k=t.W||g.$Linear,m,G=o[i],r=j[i];if(b.oc(r)){k=t[i]||k;var C=k(h);m=G+r*C}else{m=z({kc:{}},o[i]);var A=t[i]||{};l(r.kc||r,function(d,a){k=A[a]||A.W||k;var c=k(h),b=d*c;m.kc[a]=b;m[a]+=b})}a[i]=m}var x=l(j,function(b,a){return P[a]!=e});x&&l(P,function(c,b){if(a[b]==e&&o[b]!==e)a[b]=o[b]});if(x){if(a.$Zoom)a.$ScaleX=a.$ScaleY=a.$Zoom;a.$OriginalWidth=p.$OriginalWidth;a.$OriginalHeight=p.$OriginalHeight;if(v()&&n>=11&&(j.N||j.J)&&s!=0&&s!=1)a.$Rotate=a.$Rotate||1e-8;a.dh=d}}if(j.$Clip&&p.$Move){var q=a.$Clip.kc,w=(q.$Top||0)+(q.$Bottom||0),u=(q.$Left||0)+(q.$Right||0);a.$Left=(a.$Left||0)+u;a.$Top=(a.$Top||0)+w;a.$Clip.$Left-=u;a.$Clip.$Right-=u;a.$Clip.$Top-=w;a.$Clip.$Bottom-=w}if(a.$Clip&&!a.$Clip.$Top&&!a.$Clip.$Left&&!a.$Clip.J&&!a.$Clip.N&&a.$Clip.$Right==p.$OriginalWidth&&a.$Clip.$Bottom==p.$OriginalHeight)a.$Clip=f;return a}};function o(){var a=this,f,e=[],c=[];function k(a,b){e.push({Kb:a,gc:b})}function j(a,c){b.c(e,function(b,d){b.Kb==a&&b.gc===c&&e.splice(d,1)})}function h(){e=[]}function g(){b.c(c,function(a){b.$RemoveEvent(a.Nd,a.Kb,a.gc,a.Md)});c=[]}a.bd=function(){return f};a.a=function(f,d,e,a){b.$AddEvent(f,d,e,a);c.push({Nd:f,Kb:d,gc:e,Md:a})};a.T=function(f,d,e,a){b.c(c,function(g,h){if(g.Nd===f&&g.Kb==d&&g.gc===e&&g.Md==a){b.$RemoveEvent(f,d,e,a);c.splice(h,1)}})};a.Rd=g;a.$On=a.addEventListener=k;a.$Off=a.removeEventListener=j;a.j=function(a){var c=[].slice.call(arguments,1);b.c(e,function(b){b.Kb==a&&b.gc.apply(i,c)})};a.$Destroy=function(){if(!f){f=d;g();h()}}}var l=function(C,F,h,m,T,O){C=C||0;var a=this,p,n,o,t,D=0,Q=1,M,N,L,E,B=0,j=0,r=0,A,l,f,g,s,z,v=[],y,I=k,J,H=k;function U(a){f+=a;g+=a;l+=a;j+=a;r+=a;B+=a}function x(x){var k=x;if(s)if(!z&&(k>=g||k=f)k=((k-f)%s+s)%s+f;if(!A||t||j!=k){var i=c.k(k,g);i=c.m(i,f);if(h.$Reverse)i=g-i+f;if(!A||t||i!=r){if(O){var w=(i-l)/(F||1),o=b.Ld(T,O,w,M,L,N,h);if(y)b.c(o,function(b,a){y[a]&&y[a](m,b)});else b.Z(m,o);var n;if(J){toDisablePointerEventsByAnimation=i>f&&i=n*o)a=n;x(a);if(!t&&a*o>=n*o)R(E);else u(P)}}function w(e,h,i){if(!p){p=d;t=i;E=h;e=c.m(e,f);e=c.k(e,g);n=e;o=n=0&&c=0&&h=0&&c=0&&df||d>h){switch(e){case j:case m:a++;break;case k:case l:case o:case i:b++;break;case p:case n:default:a--}if(a<0||b<0||a>f||b>h){switch(e){case j:case m:a=f;b++;break;case o:case i:b=h;a++;break;case k:case l:b=h;a--;break;case p:case n:default:a=0;b++}if(b>h)b=h;else if(b<0)b=0;else if(a>f)a=f;else if(a<0)a=0}d=b;c=a}}return r};h.$FormationRectangle=function(f){var d=f.$Cols||1,e=f.$Rows||1,h=[],a,b,i;i=c.$Round(c.k(d/2,e/2))+1;for(a=0;a1||a.$Clip;if(a.$Zoom||a.$Rotate){var J=d;if(J){e.$Zoom=a.$Zoom?a.$Zoom-1:1;f.$Zoom=1;var N=a.$Rotate||0;e.$Rotate=N*360*(x?-1:1);f.$Rotate=0}}if(K){var i=t.kc={};if(a.$Clip){var w=a.$ScaleClip||1;if(C&&z){i.$Top=g.I/2*w;i.$Bottom=-i.$Top}else if(C)i.$Bottom=-g.I*w;else if(z)i.$Top=g.I*w;if(B&&A){i.$Left=g.H/2*w;i.$Right=-i.$Left}else if(B)i.$Right=-g.H*w;else if(A)i.$Left=g.H*w}r.$Clip=t;f.$Clip=g[v]}var L=o?1:-1,M=s?1:-1;if(a.x)e.N+=n*a.x*L;if(a.y)e.J+=l*a.y*M;b.c(e,function(a,c){if(b.oc(a))if(a!=f[c])r[c]=a-f[c]});u[v]=j?f:e;var D=a.mf,y=c.$Round(m*a.$Delay/a.$Interval);h[v]=new Array(y);h[v].k=y;h[v].m=y+D-1;for(var F=0;F<=D;F++){var E=b.Ld(f,r,F/D,a.$Easing,a.$During,a.$Round,{$Move:a.$Move,$OriginalWidth:n,$OriginalHeight:l});E.$ZIndex=E.$ZIndex||1;h[v].push(E)}})});o.reverse();b.c(o,function(a){b.c(a,function(c){var f=c[0],e=c[1],d=f+","+e,a=i;if(e||f)a=b.gb(i);b.Z(a,u[d]);b.Lb(a,"hidden");b.rb(a,"absolute");z.Af(a);m[d]=a;b.eb(a,!j)})})}function w(){var a=this,b=0;l.call(a,0,v);a.ec=function(c,a){if(a-b>i){b=a;e&&e.rc(a);h&&h.rc(a)}};a.Xc=q}a.xf=function(){var a=0,b=u.$Transitions,d=b.length;if(x)a=y++%d;else a=c.P(c.ke()*d);b[a]&&(b[a].Zb=a);return b[a]};a.tf=function(x,y,k,l,b,t){a.zb();q=b;b=j(b,i,t);var g=l.Ad,f=k.Ad;g["no-image"]=!l.Uc;f["no-image"]=!k.Uc;var o=g,s=f,w=b,d=b.$Brother||j({},i,t);if(!b.$SlideOut){o=f;s=g}var u=d.$Shift||0;h=new n(m,s,d,c.m(u-d.$Interval,0),r,p);e=new n(m,o,w,c.m(d.$Interval-u,0),r,p);h.rc(0);e.rc(0);v=c.m(h.Cd,e.Cd);a.Zb=x};a.zb=function(){m.zb();h=f;e=f};a.Pe=function(){var a=f;if(e)a=new w;return a};if(z&&b.jg()<537)i=16;o.call(a);l.call(a,-1e7,1e7)};var r={yc:1};i.$JssorBulletNavigator$=function(){var a=this,E=b.V(a,o),h,v,C,B,m,l=0,g,s,p,z,A,i,k,u,t,x,j;function y(a){j[a]&&j[a].ae(a==l)}function w(b){a.j(r.yc,b*s)}a.cd=function(a){if(a!=m){var d=l,b=c.P(a/s);l=b;m=a;y(d);y(b)}};a.dd=function(a){b.eb(h,a)};a.hd=function(J){b.$Destroy(j);m=e;a.Rd();x=[];j=[];b.Xb(h);v=c.K(J/s);l=0;var F=u+z,G=t+A,r=c.K(v/p)-1;C=u+F*(!i?r:p-1);B=t+G*(i?r:p-1);b.C(h,C);b.D(h,B);for(var n=0;n1);i.$Enable((g.$Loop||!l.Ff(h))&&k>1)}a.cd=function(c,a,b){h=a;!b&&t()};a.dd=u;a.hd=function(g){k=g;h=0;if(!s){a.a(e,"click",b.S(f,p,-m));a.a(c,"click",b.S(f,p,m));j=b.qc(e);i=b.qc(c);b.z(e,n.Qc,1);b.z(c,n.Qc,1);s=d}};a.A=function(f,d,h,i){a.Jc=g=b.G({$Steps:1},h);e=f;c=d;if(g.cc){e=d;c=f}m=g.$Steps;l=i;if(g.$AutoCenter){q.Ac(e,n.yb,g.$AutoCenter);q.Ac(c,n.yb,g.$AutoCenter)}q.Cc(e);q.Cc(c)};a.$Destroy=function(){b.$Destroy(j,i,v)};b.A(a)};i.$JssorThumbnailNavigator$=function(){var i=this,E=b.V(i,o),h,B,a,y,C,m,l=[],A,z,g,p,s,w,v,x,t,u;function D(){var c=this;b.V(c,o);var h,e,n,l;function p(){n.ae(m==h)}function j(e){if(e||!t.$LastDragSucceeded()){var c=g-h%g,a=t.de((h+c)/g-1),b=a*g+g-c;if(a<0)b+=y%g;if(a>=C)b-=y%g;i.j(r.yc,b,k,d)}}c.ce=p;c.A=function(g,i){c.Zb=h=i;l=g.Fe||g.Uc||b.Tb();c.ld=e=b.fe(u,"thumbnailtemplate",l,d);n=b.qc(e);a.$ActionMode&1&&c.a(e,"click",b.S(f,j,0));a.$ActionMode&2&&c.a(e,"mouseenter",b.S(f,j,1))};b.A(c)}i.cd=function(a,e,d){if(a!=m){var b=m;m=a;b!=-1&&l[b].ce();l[a]&&l[a].ce()}!d&&t.$PlayTo(t.de(c.P(a/g)))};i.dd=function(a){b.eb(h,a)};i.hd=function(I,J){b.$Destroy(t,l);m=e;l=[];var K=b.gb(B);b.Xb(h);a.cc&&b.z(h,"dir","rtl");b.sg(h,b.Eb(K));var i=b.$FindChild(h,"slides",d);y=I;C=c.K(y/g);m=-1;var f=a.$Orientation&1,r=w+(w+p)*(g-1)*(1-f),o=v+(v+s)*(g-1)*f,E=(f?c.m:c.k)(A,r),u=(f?c.k:c.m)(z,o);x=c.K((A-p)/(w+p)*f+(z-s)/(v+s)*(1-f));var G=r+(r+p)*(x-1)*f,F=o+(o+s)*(x-1)*(1-f);E=c.k(E,G);u=c.k(u,F);b.C(i,E);b.D(i,u);b.nd(i,3);var n=[];b.c(J,function(k,e){var h=new D(k,e),d=h.ld,a=c.P(e/g),j=e%g;b.Q(d,(w+p)*j*(1-f));b.ab(d,(v+s)*j*f);if(!n[a]){n[a]=b.Tb();b.bb(i,n[a])}b.bb(n[a],d);l.push(h)});var H=b.G({$AutoPlay:0,$NaviQuitDrag:k,$SlideWidth:r,$SlideHeight:o,$SlideSpacing:p*f+s*(1-f),$MinDragOffsetToSlide:12,$SlideDuration:200,$PauseOnHover:1,$Cols:x,$PlayOrientation:a.$Orientation,$DragOrientation:a.$NoDrag||a.$DisableDrag?0:a.$Orientation},a);t=new j(h,H);q.Cc(h)};i.A=function(j,f,e){h=j;i.Jc=a=b.G({$SpacingX:0,$SpacingY:0,$Orientation:1,$ActionMode:1},f);A=b.C(h);z=b.D(h);var c=b.$FindChild(h,"slides",d);u=b.$FindChild(c,"prototype");e=b.gb(e);b.Ib(e,c);w=b.C(u);v=b.D(u);b.nb(u,c);b.rb(c,"absolute");b.Lb(c,"hidden");g=a.$Rows||1;p=a.$SpacingX;s=a.$SpacingY;a.$AutoCenter&=a.$Orientation;a.$AutoCenter&&q.Ac(h,n.yb,a.$AutoCenter);B=b.gb(h)};i.$Destroy=function(){b.$Destroy(t,l,E)};b.A(i)};function p(e,d,c){var a=this;b.V(a,o);l.call(a,0,c.$Idle);a.jc=0;a.rd=c.$Idle}p.Rc=21;p.xc=24;var t=i.$JssorCaptionSlideo$=i.$JssorSlideo$=function(){var a=this,gb=b.V(a,o);l.call(a,0,0);var e,u,fb=[g.$Linear,g.$Swing,g.$InQuad,g.$OutQuad,g.$InOutQuad,g.$InCubic,g.$OutCubic,g.$InOutCubic,g.$InQuart,g.$OutQuart,g.$InOutQuart,g.$InQuint,g.$OutQuint,g.$InOutQuint,g.$InSine,g.$OutSine,g.$InOutSine,g.$InExpo,g.$OutExpo,g.$InOutExpo,g.$InCirc,g.$OutCirc,g.$InOutCirc,g.$InElastic,g.$OutElastic,g.$InOutElastic,g.$InBack,g.$OutBack,g.$InOutBack,g.$InBounce,g.$OutBounce,g.$InOutBounce,g.$Early,g.$Late],I={},K,E,z=new l(0,0),L=[],w=[],G,r=0;function N(d,c){var a={};b.c(d,function(d,f){var e=I[f];if(e){if(b.Ae(d))d=N(d,c||f=="e");else if(c)if(b.oc(d))d=fb[d];a[e]=d}});return a}function O(c,f){var e=[],d=b.B(c,"play");if(f&&d){var g=new t(c,u,{Fg:d});S.push(g);a.a(g,p.Rc,Y);a.a(g,p.xc,T)}else b.c(b.Eb(c),function(a){e=e.concat(O(a,f+1))});if(!f&&(!j||j&16)||f&&(!d||!(d&16))){var h=K[b.B(c,"t")];h&&e.push({$Elmt:c,Xc:h})}return e}function H(c,e){var a=L[c];if(a==f){a=L[c]={pb:c,gd:[],xe:[]};var d=0;!b.c(w,function(a,b){d=b;return a.pb>c})&&d++;w.splice(d,0,a)}return a}function cb(o,p,g){var a,e;if(E){var k=E[b.B(o,"c")];if(k){a=H(k.r,0);a.eh=k.e||0}}b.c(p,function(h){var f=b.G(d,{},N(h)),i=b.ad(f.$Easing);delete f.$Easing;if(f.$Left){f.N=f.$Left;i.N=i.$Left;delete f.$Left}if(f.$Top){f.J=f.$Top;i.J=i.$Top;delete f.$Top}var m={$Easing:i,$OriginalWidth:g.H,$OriginalHeight:g.I},j=new l(h.b,h.d,m,o,g,f);r=c.m(r,h.b+h.d);if(a){if(!e)e=new l(h.b,0);e.U(j)}else{var k=H(h.b,h.b+h.d);k.gd.push(j)}if(f.vb)g.vb={xd:0,wd:0,Bd:0,$Opacity:0};g=b.Sg(g,f)});if(a&&e){e.ef();var h=e,j,i=e.mc(),m=e.ub(),n=c.m(m,a.eh);if(a.pbi){h=new l(i,a.pb-i);h.U(e,d)}else h=f;j=new l(a.pb,n-i,{pc:n-a.pb,Oe:d});j.U(e,d)}h&&a.gd.push(h);j&&a.xe.push(j)}return g}function bb(a){b.c(a,function(f){var a=f.$Elmt,e=b.C(a),d=b.D(a),c={$Left:b.Q(a),$Top:b.ab(a),N:0,J:0,$Opacity:1,$ZIndex:b.Y(a)||0,$Rotate:0,$RotateX:0,$RotateY:0,$ScaleX:1,$ScaleY:1,$TranslateX:0,$TranslateY:0,$TranslateZ:0,$SkewX:0,$SkewY:0,H:e,I:d,$Clip:{$Top:0,$Right:e,$Bottom:d,$Left:0}};c.Fd=c.$Left;c.Pd=c.$Top;cb(a,f.Xc,c)})}function eb(f,e,g){var c=f.b-e;if(c){var b=new l(e,c);b.U(z,d);b.$Shift(g);a.U(b)}a.Hc(f.d);return c}function db(e){var c=z.mc(),d=0;b.c(e,function(e,f){e=b.G({d:3e3},e);eb(e,c,d);c=e.b;d+=e.d;if(!f||e.t==2){a.jc=c;a.rd=c+e.d}})}function D(i,d,e){var f=d.length;if(f>4)for(var j=c.K(f/4),a=0;aa.jc&&a.M(a.jc);a.Zd(m||1);a.sc(0)}}function U(){!n&&q()}function R(c){var b=c;if(c<0&&a.n())b=1;if(b!=B){B=b;M&&a.j(p.xc,a,B)}}function J(a){i&8&&b.re(a)==27&&q()}function W(a){if(n&&b.qe(a)!==f){n=k;i&16&&b.$Delay(U,160)}}function v(a){i&32&&!b.ve(e,b.$EvtSrc(a))&&q()}function V(a){if(!n){n=d;if(j&1)b.oe(a,e)&&Q()}}function ab(h){var g=b.$EvtSrc(h),a=b.tb(g,f,f,"A"),c=a&&(b.ug(a)||a===e||b.ve(e,a));if(s&&x(i))!c&&q();else if(x(j))!c&&Q(d)}function Y(b){var a=b.Wg();childSlideoPlaying=y[a];childSlideoPlaying!==b&&y[a]&&y[a].pg();y[a]=b}function T(b,c){a.j(p.xc,b,c)}a.Wg=function(){return P||""};a.pg=q;a.pd=function(){R(1)};a.qd=function(){s=k;F=k;R(-1);!a.n()&&X()};a.ec=function(){!n&&A&&a.Jd()>a.rd&&q()};a.A=function(l,g,f){e=l;u=g;j=f.Fg;G=f.ng;K=u.$Transitions;E=u.$Controls;var k={$Top:"y",$Left:"x",$Bottom:"m",$Right:"t",$Rotate:"r",$RotateX:"rX",$RotateY:"rY",$ScaleX:"sX",$ScaleY:"sY",$TranslateX:"tX",$TranslateY:"tY",$TranslateZ:"tZ",$SkewX:"kX",$SkewY:"kY",$Opacity:"o",$Easing:"e",$ZIndex:"i",$Clip:"c",vb:"bc",xd:"re",wd:"gr",Bd:"bl"};b.c(k,function(b,a){I[b]=a});bb(O(e,0));D(z,w);if(j){a.U(z);G=d;A=b.B(e,"idle");(x(j)||x(i))&&a.a(e,"click",ab);if((j&1||A)&&!b.Sc().Vc){a.a(e,"mouseenter",V);a.a(e,"mouseleave",W)}i=b.B(e,"rollback");m=b.X(e,"speed")||"";if(m.substr(0,1)=="x")m=m.substr(1);m=b.Ce(m);P=b.X(e,"group");M=b.B(e,"pause")}var h=u.$Breaks||[],c=h[b.B(e,"b")]||[];c=c.concat({b:r,d:c.length?0:f.$Idle||A||0});db(c);G&&a.Hc(1e8);r=a.ub();D(a,w,d);a.M(-1);a.M(b.B(e,"begin")||0)};a.$Destroy=function(){b.$Destroy(gb,S);a.O();a.M(-1)};b.A(a)},j=i.$JssorSlider$=(i.module||{}).exports=function(){var a=this,Dc=b.V(a,o),Nb="data-jssor-slider",hc="data-jssor-thumb",u,m,S,Bb,db,jb,X,J,O,M,Xb,Ac,Ec=1,zc=1,jc=1,pc=1,lc={},x,R,Lb,Zb,Wb,vb,yb,xb,gb,B=[],Rb,s=-1,rc,q,I,H,P,nb,ob,F,N,kb,T,y,W,mb,Z=[],uc,wc,mc,t,ub,Hb,qb,U,Y,qc,Gb,Pb,sc,G,Kb=0,cb=0,Q=Number.MAX_VALUE,K=Number.MIN_VALUE,D,lb,eb,V=1,Vb=0,pb,A,Eb,Db,L,zb,Cb,C,ab,rb,z,Ab,ac=b.Sc(),Fb=ac.Vc,w=[],E,hb,bb,Mb,gc,kc,ib;function Jb(){return!V&&Y&12}function Fc(){return Vb||!V&&Y&3}function Ib(){return!A&&!Jb()&&!z.$IsPlaying()}function Xc(){return!Fc()&&Ib()}function ic(){return y||S}function Oc(){return ic()&2?ob:nb}function Qb(a,c,d){b.Q(a,c);b.ab(a,d)}function Cc(c,b){var a=ic(),d=(nb*b+Kb)*(a&1),e=(ob*b+Kb)*(a&2)/2;Qb(c,d,e)}function cc(b,f){if(A&&!(D&1)){var e=b,d;if(bQ){e=Q;d=1}if(d){var a=b-e;if(f){a=c.yf(a)*2/c.E;a=c.q(a*d,1.6)}else{a=c.q(a*d,.625);a=c.Ee(a*c.E/2)}b=e+a*d}}return b}function Qc(a){return cc(a,d)}function Lc(a){return cc(a)}function wb(a,b){if(!(D&1)){var c=a-Q+(b||0),d=K-a+(b||0);if(c>0&&c>d)a=Q;else if(d>0)a=K}return a}function xc(a){return!(D&1)&&a-K<.0001}function vc(a){return!(D&1)&&Q-a<.0001}function sb(a){return!(D&1)&&(a-K<.0001||Q-a<.0001)}function Sb(c,a,d){!ib&&b.c(Z,function(b){b.cd(c,a,d)})}function dc(b){var a=b,d=sb(b);if(d)a=wb(a);else{b=v(b);a=b}a=c.P(a);a=c.m(a,0);return a}function Ic(a){if(a!=s){w[s];Rb=s;s=a;rc=w[s]}}function Uc(){y=0;var b=C.n(),d=dc(b);Sb(d,b);if(sb(b)||b==c.P(b)){if(t&2&&(U>0&&d==q-1||U<0&&!d))t=0;Ic(d);a.j(j.$EVT_PARK,s,Rb)}}function nc(a,b){if(q&&(!b||!z.$IsPlaying())){z.O();z.Kc(a,a)}}function tb(a){if(q){a=v(a);a=wb(a);nc(a)}else Sb(0,0)}function ad(){var b=j.je||0,a=lb;j.je|=a;return W=a&~b}function Vc(){if(W){j.je&=~lb;W=0}}function bd(){var a=b.Tb();b.Z(a,gb);return a}function v(b,a){a=a||q||1;return(b%a+a)%a}function ec(c,a,b){t&8&&(t=0);bc(c,Gb,a,b)}function Tb(){b.c(Z,function(a){a.dd(a.Jc.$ChanceToShow<=V)})}function Kc(c){if(!V&&(b.qe(c)||!b.oe(c,u))){V=1;Tb();if(!A){Y&12&&Gc();w[s]&&w[s].uc()}a.j(j.$EVT_MOUSE_LEAVE)}}function Jc(){if(V){V=0;Tb();A||!(Y&12)||Hc()}a.j(j.$EVT_MOUSE_ENTER)}function Nc(){b.c(B,function(a){b.Z(a,gb);b.Lb(a,"hidden");b.Cb(a)});b.Z(R,gb)}function Ub(b,a){bc(b,a,d)}function bc(g,h,l,p){if(q&&(!A||m.$NaviQuitDrag)&&!Jb()){var f=C.n(),a=g;if(l){a=f+g;if(D&2){if(xc(f)&&g<0)a=Q;if(vc(f)&&g>0)a=K}}if(!(D&1))if(p)a=v(a);else a=wb(a,.5);if(l&&!sb(a))a=c.$Round(a);var i=(a-f)%q;a=f+i;if(h==e)h=Gb;var b=c.F(i),j=0;if(b){if(b<1)b=c.q(b,.5);if(b>1){var o=Oc(),n=(S&1?yb:xb)/o;b=c.k(b,n*1.5)}j=h*b}ib=d;z.O();ib=k;z.Kc(f,a,j)}}function Rc(e,h,o){var l=this,i={$Top:2,$Right:1,$Bottom:2,$Left:1},m={$Top:"top",$Right:"right",$Bottom:"bottom",$Left:"left"},g,a,f,j,k={};l.$Elmt=e;l.$ScaleSize=function(q,l,u){var p,s=q,r=l;if(!f){f=b.wg(e);g=e.parentNode;j={$Scale:b.B(e,n.Hf,1),$AutoCenter:b.B(e,n.yb)};b.c(m,function(c,a){k[a]=b.B(e,"data-scale-"+c,1)});a=e;if(h){a=b.gb(g,d);b.Z(a,{$Top:0,$Left:0});b.bb(a,e);b.bb(g,a)}}if(o){p=c.m(q,l);if(h)if(u>=0&&u<1){var w=c.k(q,l);p=c.k(p/w,1/(1-u))*w}}else s=r=p=c.q(O1e-5){var g=b,f=b;if(c.P(b)!=b&&b>e&&(D&1||b>cb))f++;var h=dc(f);Sb(h,g,d);a.j(j.$EVT_POSITION_CHANGE,v(g),v(e),b,e)}}}function Tc(o,n){var b=this,g,i,e,c,h;l.call(b,-1e8,2e8,{Hd:100});b.pd=function(){pb=d;a.j(j.$EVT_SWIPE_START,v(C.n()),ab.n())};b.qd=function(){pb=k;c=k;a.j(j.$EVT_SWIPE_END,v(C.n()),ab.n());!A&&Uc()};b.ec=function(f,b){var a=b;if(c)a=h;else if(e){var d=b/e;a=m.$SlideEasing(d)*(i-g)+g}a=Qc(a);ab.M(a)};b.Kc=function(a,c,h,f){A=k;e=h||1;g=a;i=c;ib=d;ab.M(a);ib=k;b.M(0);b.sc(e,f)};b.Wf=function(){c=d;c&&b.$Play(f,f,d)};b.lg=function(a){h=a};ab=new gd;ab.U(o);ab.U(n)}function Pc(){var c=this,a=bd();b.Y(a,0);c.$Elmt=a;c.Af=function(c){b.bb(a,c);b.eb(a)};c.zb=function(){b.Cb(a);b.Xb(a)}}function dd(r,h){var g=this,ib=b.V(g,o),x,B=0,V,jb=r,A=b.B(jb,"data-fillmode",m.$FillMode),F,u,z=[],T,K,P,O,i,n,y,Q;l.call(g,-N,N+1,{pc:D&1?q:e,$Reverse:Hb});function G(a){x&&x.$Destroy();Vb-=B;B=0;S(r,a,0);O=d;x=new db.$Class(r,db,{$Idle:b.B(r,"idle",qc),ng:!t});x.$On(p.xc,X)}function Y(){x.PcI||c>H)){var f=k,o=I/H*c/e;if(A&1)f=o>1;else if(A&2)f=o<1;l=f?e*H/c:I;i=f?H:c*I/e}b.C(u,l);b.D(u,i);b.ab(u,(H-i)/2);b.Q(u,(I-l)/2)}b.rb(u,"absolute");a.j(j.$EVT_LOAD_END,h)}}p.ue(k);n&&n(g)}function W(f,b,c,e){if(e==y&&s==h&&t&&Ib()&&!g.bd()){var a=v(f);E.tf(a,h,b,g,c,H/I);b.gh();rb.$Shift(a-rb.mc()-1);rb.M(a);nc(a,d)}}function ab(b){if(b==y&&s==h&&Ib()&&!g.bd()){if(!i){var a=f;if(E)if(E.Zb==h)a=E.Pe();else E.zb();Y();i=new cd(r,h,a,x);i.ch(n)}!i.$IsPlaying()&&i.fd()}}function J(a,d,k){if(a==h){if(a!=d)w[d]&&w[d].he();else!k&&i&&i.Jg();n&&n.$Enable();y=b.Ab();g.Nb(b.S(f,ab,y))}else{var j=c.k(h,a),e=c.m(h,a),o=c.k(e-j,j+q-e),l=N+m.$LazyLoading-1;(!P||o<=l)&&g.Nb()}}function bb(){if(s==h&&i){i.O();n&&n.$Quit();n&&n.$Disable();i.le()}}function fb(){s==h&&i&&i.O()}function Z(b){!eb&&a.j(j.$EVT_CLICK,h,b)}g.ue=function(a){if(Q!=a){Q=a;a&&b.bb(r,F);!a&&b.nb(F)}};g.Nb=function(e,c){c=c||g;if(z.length&&!K){c.ue(d);if(!T){T=d;a.j(j.$EVT_LOAD_START,h);b.c(z,function(a){if(!b.z(a,"src")){a.src=b.X(a,"src2")||"";b.Bb(a,b.z(a,"data-display"))}})}b.cg(z,u,b.S(f,M,e,c))}else M(e,c)};g.Ng=function(){if(Xc())if(q==1){g.he();J(h,h)}else{var a;if(E)a=E.xf(q);if(a){y=b.Ab();var c=h+U,d=w[v(c)];return d.Nb(b.S(f,W,c,d,a,y),g)}else(D||!sb(C.n())||!sb(C.n()+U))&&Ub(U)}};g.uc=function(){J(h,h,d)};g.he=function(){n&&n.$Quit();n&&n.$Disable();g.ze();i&&i.Og();i=f;G()};g.gh=function(){b.Cb(r)};g.ze=function(){b.eb(r)};function S(a,h,c){if(b.z(a,Nb))return;if(!O){b.z(a,"data-events",b.zc(a));b.z(a,"data-display",b.Bb(a));b.Zf(a,b.X(a,"data-to"));b.dg(a,b.X(a,"data-bf"));b.bg(a,b.B(a,"data-p"));b.xg(a,b.X(a,"po"));if(a.tagName=="IMG"){z.push(a);if(!b.z(a,"src")){P=d;b.Cb(a)}}var e=b.gg(a);if(e){var f=new Image;b.X(f,"src2",e);z.push(f)}c&&b.Y(a,(b.Y(a)||0)+1)}var g=b.Eb(a);b.c(g,function(d){if(c<2&&!u)if(b.X(d,"u")=="image"){u=d;u.border=0;b.Z(u,gb);b.Z(a,gb)}S(d,h,c+1)})}g.Tc=function(c,b){var a=N-b;Cc(V,a)};g.Zb=h;var L=b.$FindChild(r,"thumb",d);if(L){g.Fe=b.gb(L);b.Cb(L)}b.eb(r);F=b.gb(R);b.Y(F,1e3);g.a(r,"click",Z);G(d);g.Uc=u;g.Ad=r;g.ld=V=r;g.a(a,203,J);g.a(a,28,fb);g.a(a,24,bb);g.$Destroy=function(){b.$Destroy(ib,x,i)}}function cd(F,h,q,r){var c=this,D=b.V(c,o),i=0,u=0,g,m,f,e,n,x,v,y=w[h];l.call(c,0,0);function B(){c.fd()}function C(a){v=a;c.O();c.fd()}function z(){}c.fd=function(){if(!A&&!pb&&!v&&s==h&&!c.bd()){var k=c.n();if(!k)if(g&&!n){n=d;c.le(d);a.j(j.$EVT_SLIDESHOW_START,h,u,i,u,g,e)}a.j(j.$EVT_STATE_CHANGE,h,k,i,m,f,e);if(!Jb()){var l;if(k==e)t&&b.$Delay(y.Ng,20);else{if(k==f)l=e;else if(!k)l=f;else l=c.Id();(k!=f||!Fc())&&c.sc(l,B)}}}};c.Jg=function(){f==e&&f==c.n()&&c.M(m)};c.Og=function(){E&&E.Zb==h&&E.zb();var b=c.n();b=g){n=k;y.ze();E.zb();a.j(j.$EVT_SLIDESHOW_END,h,g,i,u,g,e)}a.j(j.$EVT_PROGRESS_CHANGE,h,b,i,m,f,e)};c.ch=function(a){if(a&&!x){x=a;a.$On($JssorPlayer$.If,C)}};c.a(r,p.Rc,z);q&&c.Gc(q);g=c.ub();c.Gc(r);m=g+r.jc;e=c.ub();f=t?g+r.rd:e;c.$Destroy=function(){D.$Destroy();c.O()}}function oc(){Mb=pb;gc=z.Id();bb=C.n();hb=Lc(bb)}function Hc(){oc();if(A||Jb()){z.O();a.j(j.hf)}}function Gc(f){if(Ib()){var b=C.n(),a=hb,e=0;if(f&&c.F(L)>=m.$MinDragOffsetToSlide){a=b;e=Cb}a=c.K(a);a=wb(a+e,.5);var d=c.F(a-b);if(d<1&&m.$SlideEasing!=g.$Linear)d=c.q(d,.5);if((!eb||!f)&&Mb)z.sc(gc);else if(b==a)rc.uc();else z.Kc(b,a,d*Gb)}}function fc(a){!b.tb(b.$EvtSrc(a),e,n.Td)&&b.$CancelEvent(a)}function yc(b){Eb=k;A=d;Hc();if(!Mb)y=0;a.j(j.$EVT_DRAG_START,v(bb),bb,b)}function Zc(a){Bc(a,1)}function Bc(c,d){L=0;zb=0;Cb=0;jc=pc;if(d){var i=c.touches[0];Db={x:i.clientX,y:i.clientY}}else Db=b.jd(c);var f=b.$EvtSrc(c),g=b.tb(f,"1",hc);if((!g||g===u)&&!W&&(!d||c.touches.length==1)){mb=b.tb(f,e,n.Td)||!lb||!ad();a.a(h,d?"touchmove":"mousemove",Yb);Eb=!mb&&b.tb(f,e,n.Qc);!Eb&&!mb&&yc(c,d)}}function Yb(a){var e,f;a=b.Xf(a);if(a.type!="mousemove")if(a.touches.length==1){f=a.touches[0];e={x:f.clientX,y:f.clientY}}else fb();else e=b.jd(a);if(e){var i=e.x-Db.x,j=e.y-Db.y,g=c.F(i),h=c.F(j);if(y||g>1.5||h>1.5)if(Eb)yc(a,f);else{if(c.P(hb)!=hb)y=y||S&W;if((i||j)&&!y){if(W==3)if(h>g)y=2;else y=1;else y=W;if(Fb&&y==1&&h>g*2.4)mb=d}var l=i,k=nb;if(y==2){l=j;k=ob}(L-zb)*qb<-1.5&&(Cb=0);(L-zb)*qb>1.5&&(Cb=-1);zb=L;L=l;kc=hb-L*qb/k/jc*m.$DragRatio;if(L&&y&&!mb){b.$CancelEvent(a);z.Wf(d);z.lg(kc)}}}}function fb(){Vc();a.T(h,"mousemove",Yb);a.T(h,"touchmove",Yb);eb=L;if(A){eb&&t&8&&(t=0);z.O();A=k;var b=C.n();a.j(j.$EVT_DRAG_END,v(b),b,v(bb),bb);Y&12&&oc();Gc(d)}}function Mc(a){var c=b.$EvtSrc(a),f=b.tb(c,"1",Nb);if(u===f)if(eb){b.$StopEvent(a);var d=b.tb(c,e,"data-jssor-button","A");d&&b.$CancelEvent(a)}else t&4&&(t=0)}a.$SlidesCount=function(){return B.length};a.$CurrentIndex=function(){return s};a.$CurrentPosition=function(){return C.n()};a.$AutoPlay=function(a){if(a==e)return t;if(a!=t){t=a;t&&w[s]&&w[s].uc()}};a.$IsDragging=function(){return A};a.$IsSliding=function(){return pb};a.$IsMouseOver=function(){return!V};a.$LastDragSucceeded=function(){return eb};a.$OriginalWidth=function(){return O};a.$OriginalHeight=function(){return M};a.$ScaleHeight=function(b){if(b==e)return Ac||M;a.$ScaleSize(b/M*O,b)};a.$ScaleWidth=function(b){if(b==e)return Xb||O;a.$ScaleSize(b,b/O*M)};a.$ScaleSize=function(c,a,d){b.C(u,c);b.D(u,a);Ec=c/O;zc=a/M;b.c(lc,function(a){a.$ScaleSize(Ec,zc,d)});if(!Xb){b.Ib(T,x);b.ab(T,0);b.Q(T,0)}Xb=c;Ac=a};a.Ef=xc;a.Ff=vc;a.$PlayTo=bc;a.$GoTo=tb;a.$Next=function(){Ub(1)};a.$Prev=function(){Ub(-1)};a.$Pause=function(){t=0};a.$Play=function(){a.$AutoPlay(t||1)};a.$SetSlideshowTransitions=function(a){m.$SlideshowOptions.$Transitions=a};a.$SetCaptionTransitions=function(a){db.$Transitions=a;db.Pc=b.Ab()};a.de=function(a){a=v(a);if(D&1){var d=G/F,b=v(C.n()),e=v(a-b+d),f=v(c.F(a-b));if(e>=N){if(f>q/2)if(a>b)a-=q;else a+=q}else if(a>b&&ed)a+=q}return a};function Yc(){ac.ie&&b.Rb(x,ac.ie,([f,"pan-y","pan-x","auto"])[lb]||"");a.a(u,"click",Mc,d);a.a(u,"mouseleave",Kc);a.a(u,"mouseenter",Jc);a.a(u,"mousedown",Bc);a.a(u,"touchstart",Zc);a.a(u,"dragstart",fc);a.a(u,"selectstart",fc);a.a(i,"mouseup",fb);a.a(h,"mouseup",fb);a.a(h,"touchend",fb);a.a(h,"touchcancel",fb);a.a(i,"blur",fb);m.$ArrowKeyNavigation&&a.a(h,"keydown",function(c){var a=b.re(c);if(a==37||a==39){t&8&&(t=0);ec(m.$ArrowKeyNavigation*(a-38)*qb,d)}})}function tc(f){Dc.Rd();B=[];w=[];var g=b.Eb(x),j=b.ye(["DIV","A","LI"]);b.c(g,function(a){j[a.tagName.toUpperCase()]&&!b.X(a,"u")&&b.Bb(a)!="none"&&B.push(a);b.Y(a,(b.Y(a)||0)+1)});q=B.length;if(q){var a=S&1?yb:xb;Nc();G=m.$Align;if(G==e)G=(a-F+P)/2;kb=a/F;N=c.k(q,m.$Cols||q,c.K(kb));D=N1&&Pb&&(!b.te()||b.id()>=9)}if(!(D&1)){cb=G/F;if(cb>q-1){cb=q-1;G=cb*F}K=cb;Q=K+q-kb-P/F}lb=(N>1||G?S:-1)&m.$DragOrientation;if(sc)E=new Pb(Ab,I,H,Bb,Fb,Qb);for(var d=0;d=0){d.push(B[b]);b