/*
 * Zoom In/Out Sliders Full Collection  v4.2.1.2
 *
 * Copyright 2012-2017, LambertGroup
 * 
 */

(function(e){function t(a){var b="cubic-bezier(0.250, 0.250, 0.750, 0.750)";switch(a){case "linear":b="cubic-bezier(0.250, 0.250, 0.750, 0.750)";break;case "swing":b="cubic-bezier(0.250, 0.100, 0.250, 1.000)";break;case "ease":b="cubic-bezier(0.250, 0.100, 0.250, 1.000)";break;case "ease-in":b="cubic-bezier(0.420, 0.000, 1.000, 1.000)";break;case "ease-out":b="cubic-bezier(0.000, 0.000, 0.580, 1.000)";break;case "ease-in-out":b="cubic-bezier(0.420, 0.000, 0.580, 1.000)";break;case "easeInQuad":b=
"cubic-bezier(0.550, 0.085, 0.680, 0.530)";break;case "easeOutQuad":b="cubic-bezier(0.250, 0.460, 0.450, 0.940)";break;case "easeInOutQuad":case "easeInCubic":b="cubic-bezier(0.550, 0.055, 0.675, 0.190)";break;case "easeOutCubic":b="cubic-bezier(0.215, 0.610, 0.355, 1.000)";break;case "easeInOutCubic":b="cubic-bezier(0.645, 0.045, 0.355, 1.000)";break;case "easeInQuart":b="cubic-bezier(0.895, 0.030, 0.685, 0.220)";break;case "easeOutQuart":b="cubic-bezier(0.165, 0.840, 0.440, 1.000)";break;case "easeInOutQuart":b=
"cubic-bezier(0.770, 0.000, 0.175, 1.000)";break;case "easeInQuint":b="cubic-bezier(0.755, 0.050, 0.855, 0.060)";break;case "easeOutQuint":b="cubic-bezier(0.230, 1.000, 0.320, 1.000)";break;case "easeInOutQuint":b="cubic-bezier(0.860, 0.000, 0.070, 1.000)";break;case "easeInSine":b="cubic-bezier(0.470, 0.000, 0.745, 0.715)";break;case "easeOutSine":b="cubic-bezier(0.390, 0.575, 0.565, 1.000)";break;case "easeInOutSine":b="cubic-bezier(0.445, 0.050, 0.550, 0.950)";break;case "easeInExpo":b="cubic-bezier(0.950, 0.050, 0.795, 0.035)";
break;case "easeOutExpo":b="cubic-bezier(0.190, 1.000, 0.220, 1.000)";break;case "easeInOutExpo":b="cubic-bezier(1.000, 0.000, 0.000, 1.000)";break;case "easeInCirc":b="cubic-bezier(0.600, 0.040, 0.980, 0.335)";break;case "easeOutCirc":b="cubic-bezier(0.075, 0.820, 0.165, 1.000)";break;case "easeInOutCirc":b="cubic-bezier(0.785, 0.135, 0.150, 0.860)";break;case "easeInBack":b="cubic-bezier(0.600, -0.280, 0.735, 0.045)";break;case "easeOutBack":b="cubic-bezier(0.175, 0.885, 0.320, 1.275)";break;case "easeInOutBack":b=
"cubic-bezier(0.680, -0.550, 0.265, 1.550)"}return b}function H(a){var b=I();return_str=a;if(-1!=b&&10>b)switch(a){case "ease":return_str="swing";break;case "ease-in":return_str="easeInQuad";break;case "ease-out":return_str="easeOutQuad";break;case "ease-in-out":return_str="easeInOutQuad";break;default:return_str="swing"}return return_str}function J(a,b){aux_inner_div=a;a.find("div:first").is("div")&&(aux_inner_div=a.find("div:first"),aux_inner_div.hasClass("newFS")&&aux_inner_div.find("div:first").is("div")&&
(aux_inner_div=aux_inner_div.find("div:first")));b.inner_div=aux_inner_div}function V(a,b,d){var h=I(),f=d.origWidth/d.width;d.width100Proc&&d.height100Proc&&d.height>=d.width&&(f=d.origHeight/d.height);d.responsive&&(newCss="",-1!=a.css("font-size").lastIndexOf("px")?(fontSize=a.css("font-size").substr(0,a.css("font-size").lastIndexOf("px")),newCss+="font-size:"+fontSize/f+"px;"):-1!=a.css("font-size").lastIndexOf("em")&&(fontSize=a.css("font-size").substr(0,a.css("font-size").lastIndexOf("em")),
newCss+="font-size:"+fontSize/f+"em;"),-1!=a.css("line-height").lastIndexOf("px")?(lineHeight=a.css("line-height").substr(0,a.css("line-height").lastIndexOf("px")),newCss+="line-height:"+lineHeight/f+"px;"):-1!=a.css("line-height").lastIndexOf("em")&&(lineHeight=a.css("line-height").substr(0,a.css("line-height").lastIndexOf("em")),newCss+="line-height:"+lineHeight/f+"em;"),a.wrapInner('<div class="newFS" style="'+newCss+'" />'));theIframe=a.find("iframe:first");if(null!=theIframe.width()&&d.responsive){theW=
theIframe.width();theH=theIframe.height();if(""==b.iFrameArr[a.index()]||void 0==b.iFrameArr[a.index()])b.iFrameArr[a.index()]=theW+";"+theH;iFrameDimensions=b.iFrameArr[a.index()].split(";");theIframe.css({width:parseInt(iFrameDimensions[0]/f,10),height:parseInt(iFrameDimensions[1]/f,10)})}var m,l,n,g,p;m=a.attr("data-final-left");l=a.attr("data-final-top");d.responsive&&(m=parseInt(m/f,10),l=parseInt(l/f,10),d.width100Proc&&d.height100Proc&&d.height>=d.width&&768>=d.width&&!(a.hasAttrLike("class",
"^transp[0-9]+")||a.hasAttrLike("class","^texture[0-9]+")||a.hasAttrLike("class","^lbg1_.*center"))&&(m=10));var q=d.defaultEasing;""!=a.attr("data-easing")&&void 0!=a.attr("data-easing")&&(q=a.attr("data-easing"));q=H(q);n=1;1==b.isVideoPlaying&&(n=0);J(a,b);""!=a.attr("data-css3-animation")&&void 0!=a.attr("data-css3-animation")&&b.inner_div.addClass(a.attr("data-css3-animation"));if(-1!=h&&10>h)a.stop().animate({opacity:n,left:m+"px",top:l+"px"},1E3*a.attr("data-duration"),q,function(){1==b.isVideoPlaying&&
e(b.currentImg.attr("data-text-id")).children().css("opacity",0);if(void 0!=a.attr("data-intermediate-left")&&""!=a.attr("data-intermediate-left")||""!=a.attr("data-intermediate-css3-animation")&&void 0!=a.attr("data-intermediate-css3-animation"))g=a.attr("data-intermediate-left"),p=a.attr("data-intermediate-top"),d.responsive&&(g=parseInt(g/f,10),p=parseInt(p/f,10),d.width100Proc&&d.height100Proc&&d.height>=d.width&&768>=d.width&&!(a.hasAttrLike("class","^transp[0-9]+")||a.hasAttrLike("class","^texture[0-9]+")||
a.hasAttrLike("class","^lbg1_.*center"))&&(g=10)),b.timeouts_arr[b.timeouts_arr.length]=setTimeout(function(){J(a,b);""!=a.attr("data-intermediate-css3-animation")&&void 0!=a.attr("data-intermediate-css3-animation")&&(b.inner_div.removeClass(a.attr("data-css3-animation")),b.inner_div.addClass(a.attr("data-intermediate-css3-animation")));a.stop().animate({opacity:n,left:g+"px",top:p+"px"},1E3*a.attr("data-intermediate-duration"),H(a.attr("data-intermediate-easing")),function(){})},1E3*a.attr("data-intermediate-delay")),
8==h&&a.find("img:first").is("img")&&a.find("img:first").animate({opacity:n},1E3*a.attr("data-intermediate-duration"),H(a.attr("data-intermediate-easing")),function(){})}),8==h&&a.find("img:first").is("img")&&a.find("img:first").animate({opacity:n},1E3*a.attr("data-duration"),q,function(){});else if(a.css({opacity:n,"-webkit-transform":"translate("+m+"px,"+l+"px)","-moz-transform":"translate("+m+"px,"+l+"px)","-ms-transform":"translate("+m+"px,"+l+"px)","-o-transform":"translate("+m+"px,"+l+"px)",
transform:"translate("+m+"px,"+l+"px)","-webkit-transition-duration":a.attr("data-duration")+"s","-moz-transition-duration":a.attr("data-duration")+"s","-ms-transition-duration":a.attr("data-duration")+"s","-o-transition-duration":a.attr("data-duration")+"s","transition-duration":a.attr("data-duration")+"s","-webkit-transition-timing-function":t(q),"-moz-transition-timing-function":t(q),"-ms-transition-timing-function":t(q),"-o-transition-timing-function":t(q),"transition-timing-function":t(q)}),
void 0!=a.attr("data-intermediate-left")&&""!=a.attr("data-intermediate-left")||""!=a.attr("data-intermediate-css3-animation")&&void 0!=a.attr("data-intermediate-css3-animation"))g=a.attr("data-intermediate-left"),p=a.attr("data-intermediate-top"),d.responsive&&(g=parseInt(g/f,10),p=parseInt(p/f,10),d.width100Proc&&d.height100Proc&&d.height>=d.width&&768>=d.width&&!(a.hasAttrLike("class","^transp[0-9]+")||a.hasAttrLike("class","^texture[0-9]+")||a.hasAttrLike("class","^lbg1_.*center"))&&(g=10)),b.timeouts_arr[b.timeouts_arr.length]=
setTimeout(function(){a.css({"-webkit-transform":"translate("+g+"px,"+p+"px)","-moz-transform":"translate("+g+"px,"+p+"px)","-ms-transform":"translate("+g+"px,"+p+"px)","-o-transform":"translate("+g+"px,"+p+"px)",transform:"translate("+g+"px,"+p+"px)","-webkit-transition-duration":a.attr("data-intermediate-duration")+"s","-moz-transition-duration":a.attr("data-intermediate-duration")+"s","-ms-transition-duration":a.attr("data-intermediate-duration")+"s","-o-transition-duration":a.attr("data-intermediate-duration")+
"s","transition-duration":a.attr("data-intermediate-duration")+"s","-webkit-transition-timing-function":t(a.attr("data-intermediate-easing")),"-moz-transition-timing-function":t(a.attr("data-intermediate-easing")),"-ms-transition-timing-function":t(a.attr("data-intermediate-easing")),"-o-transition-timing-function":t(a.attr("data-intermediate-easing")),"transition-timing-function":t(a.attr("data-intermediate-easing"))});J(a,b);""!=a.attr("data-intermediate-css3-animation")&&void 0!=a.attr("data-intermediate-css3-animation")&&
(b.inner_div.removeClass(a.attr("data-css3-animation")),b.inner_div.addClass(a.attr("data-intermediate-css3-animation")))},1E3*(parseFloat(a.attr("data-duration"))+parseFloat(a.attr("data-intermediate-delay"))))}function M(a,b,d,h,f,m,l,n){var g=I();e(a.currentImg.attr("data-text-id")).css("display","block");b=e(b.attr("data-text-id")).children();var p,q,r=0;currentText_arr=[];(l||n)&&e(".newFS",f).contents().unwrap();b.each(function(){currentText_arr[r]=e(this);var b=currentText_arr[r];l||n?(l&&
b.css({display:"none",opacity:0}),J(b,a),a.inner_div.removeClass(b.attr("data-css3-animation")),a.inner_div.removeClass(b.attr("data-intermediate-css3-animation")),a.inner_div.removeClass(b.attr("data-exit-css3-animation"))):b.css({display:"block"});p=b.attr("data-initial-left");q=b.attr("data-initial-top");d.responsive&&(p=parseInt(p/(d.origWidth/d.width),10),q=parseInt(q/(d.origWidth/d.width),10));-1!=g&&10>g?(b.css({opacity:parseFloat(b.attr("data-fade-start"))/100,left:p+"px",top:q+"px"}),8==
g&&b.find("img:first").is("img")&&b.find("img:first").css("opacity",parseFloat(b.attr("data-fade-start"))/100)):b.css({opacity:parseFloat(b.attr("data-fade-start"))/100,"-webkit-transform":"translate("+p+"px,"+q+"px)","-moz-transform":"translate("+p+"px,"+q+"px)","-ms-transform":"translate("+p+"px,"+q+"px)","-o-transform":"translate("+p+"px,"+q+"px)",transform:"translate("+p+"px,"+q+"px)","-webkit-transition-duration":"0s","-moz-transition-duration":"0s","-ms-transition-duration":"0s","-o-transition-duration":"0s",
"transition-duration":"0s"});l||(a.timeouts_arr[a.timeouts_arr.length]=setTimeout(function(){V(b,a,d)},1E3*b.attr("data-delay")));r++})}function da(a,b,d,h){var f=I(),m=b.origWidth/b.width;b.width100Proc&&b.height100Proc&&b.height>=b.width&&(m=b.origHeight/b.height);d=e(a.currentImg.attr("data-text-id")).children();var l=0;currentText_arr=[];d.each(function(){currentText_arr[l]=e(this);var d=currentText_arr[l],g=b.defaultExitLeft;void 0!=d.attr("data-exit-left")&&""!=d.attr("data-exit-left")&&(g=
parseInt(d.attr("data-exit-left")/m,10));b.width100Proc&&b.height100Proc&&b.height>=b.width&&768>=b.width&&!(d.hasAttrLike("class","^transp[0-9]+")||d.hasAttrLike("class","^texture[0-9]+")||d.hasAttrLike("class","^lbg1_.*center"))&&(g=10);var h=b.defaultExitTop;void 0!=d.attr("data-exit-top")&&""!=d.attr("data-exit-top")&&(h=parseInt(d.attr("data-exit-top")/m,10));var q=b.defaultExitDuration;void 0!=d.attr("data-exit-duration")&&""!=d.attr("data-exit-duration")&&(q=parseFloat(d.attr("data-exit-duration")));
var r=b.defaultExitDelay;void 0!=d.attr("data-exit-delay")&&""!=d.attr("data-exit-delay")&&(r=parseFloat(d.attr("data-exit-delay")));var R=b.defaultExitFade;void 0!=d.attr("data-exit-fade")&&""!=d.attr("data-exit-fade")&&(R=parseFloat(d.attr("data-exit-fade")));var u=b.defaultExitEasing;void 0!=d.attr("data-exit-easing")&&""!=d.attr("data-exit-easing")&&(u=d.attr("data-exit-easing"));u=H(u);u=b.defaultExitOFF.toString();void 0!=d.attr("data-exit-off")&&""!=d.attr("data-exit-off")&&(u=d.attr("data-exit-off"));
b.fadeSlides&&(u="false");"true"==u&&(q=0);var z=b.defaultExitEasing;""!=d.attr("data-exit-easing")&&void 0!=d.attr("data-exit-easing")&&(z=d.attr("data-exit-easing"));z=H(z);theIframe=d.find("iframe:first");null!=theIframe.width()&&(theIframe[0].src=theIframe[0].src);J(d,a);""!=d.attr("data-exit-css3-animation")&&void 0!=d.attr("data-exit-css3-animation")&&(u="true",a.inner_div.removeClass(d.attr("data-css3-animation")),a.inner_div.removeClass(d.attr("data-intermediate-css3-animation")),a.inner_div.addClass(d.attr("data-exit-css3-animation")));
0<q?a.timeouts_arr[a.timeouts_arr.length]=setTimeout(function(){-1!=f&&10>f?(d.stop().animate({opacity:R,left:g+"px",top:h+"px"},1E3*q,z,function(){}),8==f&&d.find("img:first").is("img")&&d.find("img:first").animate({opacity:R},1E3*q,z,function(){})):d.css({opacity:R,"-webkit-transform":"translate("+g+"px,"+h+"px)","-moz-transform":"translate("+g+"px,"+h+"px)","-ms-transform":"translate("+g+"px,"+h+"px)","-o-transform":"translate("+g+"px,"+h+"px)",transform:"translate("+g+"px,"+h+"px)","-webkit-transition-duration":q+
"s","-moz-transition-duration":q+"s","-ms-transition-duration":q+"s","-o-transition-duration":q+"s","transition-duration":q+"s","-webkit-transition-timing-function":t(z),"-moz-transition-timing-function":t(z),"-ms-transition-timing-function":t(z),"-o-transition-timing-function":t(z),"transition-timing-function":t(z)})},1E3*r):"false"==u&&d.css({display:"none"});l++})}function L(a){if(a)for(var b in a)a[b]&&clearTimeout(a[b]);a.length=0}function O(a){if(a)for(var b in a)a[b]&&clearInterval(a[b]);a.length=
0}function ea(a,b){if(a)for(var d in a)a[d]&&(a[d]=function(){});a.length=0;b.rotationDurationArr.length=0}function P(a,b,d,h,f){var m=I();-1==a&&(a=0);var l=e(f[a]);f=b.horizontalPosition;void 0!=l.attr("data-horizontalPosition")&&""!=l.attr("data-horizontalPosition")&&(f=l.attr("data-horizontalPosition"));var n=b.verticalPosition;void 0!=l.attr("data-verticalPosition")&&""!=l.attr("data-verticalPosition")&&(n=l.attr("data-verticalPosition"));var g=b.initialZoom;void 0!=l.attr("data-initialZoom")&&
""!=l.attr("data-initialZoom")&&(g=Number(l.attr("data-initialZoom")));var p=b.finalZoom;void 0!=l.attr("data-finalZoom")&&""!=l.attr("data-finalZoom")&&(p=Number(l.attr("data-finalZoom")));h=h[a].split(";");b.responsive&&(h[0]/=b.origWidth/b.width,h[1]/=b.origWidth/b.width);b.width100Proc&&b.height100Proc&&h[1]*Math.min(p,g)<b.height&&(newH=b.height/Math.min(p,g),newW=h[0]/h[1]*newH,h[0]=newW,h[1]=newH);a=e("#contentHolderUnit_"+a,d).find("img:first");parseInt(p*h[0],10);parseInt(p*h[1],10);a.css({width:parseInt(g*
h[0],10)+"px",height:parseInt(g*h[1],10)+"px"});switch(f){case "left":d=0;break;case "center":d=(b.width-parseInt(g*h[0],10))/2;break;case "right":d=b.width-parseInt(g*h[0],10);break;default:d=0}switch(n){case "top":g=-2;break;case "center":g=(b.height-parseInt(g*h[1],10))/2;break;case "bottom":g=b.height-parseInt(g*h[1],10)+2;break;default:g=0}a.css({left:parseInt(d,10)+"px",top:parseInt(g,10)+"px",opacity:b.initialOpacity});(-1==m||-1!=m&&10<=m)&&a.css({"-webkit-transform-origin":f+" "+n,"-moz-transform-origin":f+
" "+n,"-ms-transform-origin":f+" "+n,"-o-transform-origin":f+" "+n,"transform-origin":f+" "+n})}function W(a,b,d,h,f){f=e(f[a.current_img_no]);var m=I(),l=b.horizontalPosition;void 0!=f.attr("data-horizontalPosition")&&""!=f.attr("data-horizontalPosition")&&(l=f.attr("data-horizontalPosition"));var n=b.verticalPosition;void 0!=f.attr("data-verticalPosition")&&""!=f.attr("data-verticalPosition")&&(n=f.attr("data-verticalPosition"));var g=b.duration;void 0!=f.attr("data-duration")&&""!=f.attr("data-duration")&&
(g=Number(f.attr("data-duration")));var p=b.initialZoom;void 0!=f.attr("data-initialZoom")&&""!=f.attr("data-initialZoom")&&(p=Number(f.attr("data-initialZoom")));var q=b.finalZoom;void 0!=f.attr("data-finalZoom")&&""!=f.attr("data-finalZoom")&&(q=Number(f.attr("data-finalZoom")));a.current_imgInside=e("#contentHolderUnit_"+a.current_img_no,d).find("img:first");a.previous_imgInside=e("#contentHolderUnit_"+a.previous_current_img_no,d).find("img:first");var r=h[a.current_img_no].split(";");b.responsive&&
(r[0]/=b.origWidth/b.width,r[1]/=b.origWidth/b.width);p!=q?-1!=m&&10>m?(b.width100Proc&&(g+=b.durationIEfix),a.curZoom=1,zoomStep=0,a.cur_marginLeft=0,a.cur_marginTop=0,-1!=m&&10>m&&clearInterval(a.msiInterval),a.msiInitialTime=(new Date).getTime(),a.msiInterval=setInterval(function(){nowx=(new Date).getTime();nowx-a.msiInitialTime>1E3*g?clearInterval(a.msiInterval):(zoomStep=(nowx-a.msiInitialTime)*Math.abs(p-q)/(1E3*g),a.curZoom=p<=q?1+zoomStep:1-zoomStep,"center"==l?a.cur_marginLeft=(1-a.curZoom)*
p*r[0]/2:"right"==l&&(a.cur_marginLeft=(1-a.curZoom)*p*r[0]),"center"==n?a.cur_marginTop=(1-a.curZoom)*p*r[1]/2:"bottom"==n&&(a.cur_marginTop=(1-a.curZoom)*p*r[1]),a.current_imgInside.css({filter:'progid:DXImageTransform.Microsoft.Matrix(FilterType="bilinear",M11='+a.curZoom+", M12=0, M21=0, M22="+a.curZoom+", Dx="+a.cur_marginLeft+",Dy="+a.cur_marginTop+")"}))},25)):(rotate_aux="",-1!=m&&11<=m&&(rotate_aux=" rotate(0.1deg)"),zoomVal=q/p,b=b.zoomEasing,""!=f.attr("data-zoomEasing")&&void 0!=f.attr("data-zoomEasing")&&
(b=f.attr("data-zoomEasing")),a.current_imgInside.css({"-webkit-transition-duration":g+"s","-moz-transition-duration":g+"s","-ms-transition-duration":g+"s","-o-transition-duration":g+"s","transition-duration":g+"s","-webkit-transition-timing-function":t(b),"-moz-transition-timing-function":t(b),"-ms-transition-timing-function":t(b),"-o-transition-timing-function":t(b),"transition-timing-function":t(b),"-webkit-transform":"scale("+zoomVal+")"+rotate_aux+"","-moz-transform":"scale("+zoomVal+")"+rotate_aux+
"","-ms-transform":"scale("+zoomVal+")"+rotate_aux+"","-o-transform":"scale("+zoomVal+")",transform:"scale("+zoomVal+")"+rotate_aux+"",perspective:"0","-webkit-perspective":"0"})):-1!=m&&10>m&&(clearInterval(a.msiInterval),a.current_imgInside.css("filter",'progid:DXImageTransform.Microsoft.Matrix(FilterType="bilinear",M11=1, M12=0, M21=0, M22=1, Dx=0, Dy=0)'))}function X(a,b){nowx=(new Date).getTime();!a.mouseOverBanner&&b.showCircleTimer&&(a.ctx.clearRect(0,0,a.canvas.width,a.canvas.height),a.ctx.beginPath(),
a.ctx.globalAlpha=b.behindCircleAlpha/100,a.ctx.arc(b.circleRadius+2*b.circleLineWidth,b.circleRadius+2*b.circleLineWidth,b.circleRadius,0,2*Math.PI,!1),a.ctx.lineWidth=b.circleLineWidth+2,a.ctx.strokeStyle=b.behindCircleColor,a.ctx.stroke(),a.ctx.beginPath(),a.ctx.globalAlpha=b.circleAlpha/100,a.ctx.arc(b.circleRadius+2*b.circleLineWidth,b.circleRadius+2*b.circleLineWidth,b.circleRadius,0,(a.timeElapsed+nowx-a.arcInitialTime)/1E3*2/a.autoPlay*Math.PI,!1),a.ctx.lineWidth=b.circleLineWidth,a.ctx.strokeStyle=
b.circleColor,a.ctx.stroke())}function G(a,b,d,h,f,m,l,n,g,p,q,r,t,u,z,w){var v=I(),x=!0;if(!d.loop&&b.current_img_no+a>=b.total_images||!d.loop&&0>b.current_img_no+a)x=!1;x&&!b.slideIsRunning&&b.firstLoadingComplete&&(b.slideIsRunning=!0,L(b.timeouts_arr),O(b.continuouseIntervalIDs),ea(b.rotationFunctionsArr,b),da(b,d,m,l),b.arcInitialTime=(new Date).getTime(),b.timeElapsed=0,d.showCircleTimer&&(clearInterval(b.intervalID),b.ctx.clearRect(0,0,b.canvas.width,b.canvas.height),b.ctx.beginPath(),b.ctx.globalAlpha=
d.behindCircleAlpha/100,b.ctx.arc(d.circleRadius+2*d.circleLineWidth,d.circleRadius+2*d.circleLineWidth,d.circleRadius,0,2*Math.PI,!1),b.ctx.lineWidth=d.circleLineWidth+2,b.ctx.strokeStyle=d.behindCircleColor,b.ctx.stroke(),b.ctx.beginPath(),b.ctx.globalAlpha=d.circleAlpha/100,b.ctx.arc(d.circleRadius+2*d.circleLineWidth,d.circleRadius+2*d.circleLineWidth,d.circleRadius,0,0,!1),b.ctx.lineWidth=d.circleLineWidth,b.ctx.strokeStyle=d.circleColor,b.ctx.stroke(),b.intervalID=setInterval(function(){X(b,
d)},125)),b.bottomNavClicked||(b.previous_current_img_no=b.current_img_no),b.bottomNavClicked=!1,"opportune"==d.skin&&e(h[b.current_img_no]).removeClass("bottomNavButtonON"),"opportune"!=d.skin&&e(r[b.current_img_no]).removeClass("thumbsHolder_ThumbON"),p.css("display","none"),b.current_img_no=b.current_img_no+a>=b.total_images?0:0>b.current_img_no+a?b.total_images-1:b.current_img_no+a,aa(f,b,d),"opportune"==d.skin&&e(h[b.current_img_no]).addClass("bottomNavButtonON"),"opportune"!=d.skin&&(e(r[b.current_img_no]).addClass("thumbsHolder_ThumbON"),
currentCarouselLeft=t.css("left").substr(0,t.css("left").lastIndexOf("px")),0===b.current_img_no||b.current_img_no===b.total_images-1?S(0,t,u,z,d,w,b):S(1001,t,u,z,d,w,b)),setTimeout(function(){b.currentImg=e(f[b.current_img_no]);W(b,d,g,q,f)},100),d.fadeSlides?(e("#contentHolderUnit_"+b.current_img_no,g).css({opacity:1,"z-index":0,display:"block"}),e("#contentHolderUnit_"+b.previous_current_img_no,g).css({"z-index":1,display:"block"}),e("#contentHolderUnit_"+b.previous_current_img_no,g).animate({opacity:0},
1E3*d.scrollSlideDuration,d.scrollSlideEasing,function(){b.slideIsRunning=!1;d.fadeSlides&&(e("#contentHolderUnit_"+b.current_img_no,g).css({"z-index":1}),e("#contentHolderUnit_"+b.previous_current_img_no,g).css({"z-index":0,display:"none"}));"true"==b.currentImg.attr("data-video")&&p.css("display","block");e("#contentHolderUnit_"+b.previous_current_img_no,g).html(e(f[b.previous_current_img_no]).html());P(b.previous_current_img_no,d,g,b.origImgsDimensions,f);L(b.timeouts_arr);M(b,e(f[b.previous_current_img_no]),
d,m,g,l,!0,!1);M(b,b.currentImg,d,m,g,l,!1,!1);-1!=v&&10>v&&b.previous_imgInside.css("filter",'progid:DXImageTransform.Microsoft.Matrix(FilterType="bilinear",M11=1, M12=0, M21=0, M22=1, Dx=0, Dy=0)')})):n.animate({left:-1*b.current_img_no*d.width+"px"},1E3*d.scrollSlideDuration,d.scrollSlideEasing,function(){b.slideIsRunning=!1;"true"==b.currentImg.attr("data-video")&&p.css("display","block");e("#contentHolderUnit_"+b.previous_current_img_no,g).html(e(f[b.previous_current_img_no]).html());P(b.previous_current_img_no,
d,g,b.origImgsDimensions,f);L(b.timeouts_arr);M(b,e(f[b.previous_current_img_no]),d,m,g,l,!0,!1);M(b,b.currentImg,d,m,g,l,!1,!1);-1!=v&&10>v&&b.previous_imgInside.css("filter",'progid:DXImageTransform.Microsoft.Matrix(FilterType="bilinear",M11=1, M12=0, M21=0, M22=1, Dx=0, Dy=0)')}),0<b.autoPlay&&1<b.total_images&&!b.mouseOverBanner&&(b.timeoutID=setTimeout(function(){G(1,b,d,h,f,m,l,n,g,p,q,r,t,u,z,w)},1E3*b.autoPlay)))}function T(a,b,d,e,f){var h=e.origWidth/e.width;e.width100Proc&&e.height100Proc&&
e.height>=e.width&&(h=e.origHeight/e.height);b=d.origImgsDimensions[b].split(";");e.responsive&&(b[0]/=h,b[1]/=h);a.width(b[0]);a.height(b[1]);f&&e.width100Proc&&e.height100Proc&&a.css({position:"relative",left:parseInt(e.width-a.width(),10)+"px",top:parseInt(e.height-a.height(),10)+"px"})}function fa(a,b,d,h,f,m,l){d.responsive&&(imgInside=e("#contentHolderUnit_"+a,f).find("img:first"),null!=imgInside.width()&&T(imgInside,a,b,d,!0),textIdChildren=e(e(h[a]).attr("data-text-id")).children(),k=-1,textIdChildren.each(function(){k++;
imgInside=e(this).find("img:first");null!=imgInside.width()&&T(imgInside,e(h[a]).attr("data-text-id")+"-"+k,b,d,!1)}),e(e(h[a]).attr("data-text-id")).css({width:d.width+"px",left:parseInt(a*d.width,10),top:l.css("top")}))}function S(a,b,d,e,f,m,l){currentCarouselLeft=b.css("left").substr(0,b.css("left").lastIndexOf("px"));1===a||-1===a?(l.isCarouselScrolling=!0,b.css("opacity","0.5"),b.animate({opacity:1,left:"+="+a*l.carouselStep},500,"easeOutCubic",function(){Q(l,b,d,e,f,m);l.isCarouselScrolling=
!1})):currentCarouselLeft!=-1*Math.floor(l.current_img_no/f.numberOfThumbsPerScreen)*l.carouselStep&&(l.isCarouselScrolling=!0,b.css("opacity","0.5"),b.animate({opacity:1,left:-1*Math.floor(l.current_img_no/f.numberOfThumbsPerScreen)*l.carouselStep},500,"easeOutCubic",function(){Q(l,b,d,e,f,m);l.isCarouselScrolling=!1}))}function Q(a,b,d,e,f,m){currentCarouselLeft=b.css("left").substr(0,b.css("left").lastIndexOf("px"));0>currentCarouselLeft?d.hasClass("carouselLeftNavDisabled")&&d.removeClass("carouselLeftNavDisabled"):
d.addClass("carouselLeftNavDisabled");Math.abs(currentCarouselLeft-a.carouselStep)<(m.width()+a.thumbMarginLeft)*a.total_images?e.hasClass("carouselRightNavDisabled")&&e.removeClass("carouselRightNavDisabled"):e.addClass("carouselRightNavDisabled")}function ba(a,b,d,h,f,m,l,n,g,p){"opportune"!=b.skin&&(p.css({top:b.height+"px","margin-top":parseInt(b.thumbsWrapperMarginTop/(b.origWidth/b.width),10)+"px",height:parseInt(b.origthumbsHolderWrapperH/(b.origWidth/b.width),10)+"px"}),bgTopCorrection=0,
m.css("background-position","0px "+((p.height()-b.origthumbsHolderWrapperH)/2+bgTopCorrection)+"px"),l.css("background-position","0px "+((p.height()-b.origthumbsHolderWrapperH)/2+bgTopCorrection)+"px"),g.css("width",b.width-m.width()-l.width()),b.origWidthThumbsHolderVisibleWrapper=b.origWidth-m.width()-l.width(),h.css({width:parseInt(b.origThumbW/(b.origWidthThumbsHolderVisibleWrapper/g.width()),10)+"px",height:parseInt(b.origThumbH/(b.origWidthThumbsHolderVisibleWrapper/g.width()),10)+"px"}),b.numberOfThumbsPerScreen>=
a.total_images&&g.css("left",parseInt((p.width()-(n.width()+a.thumbMarginLeft)*a.total_images)/2,10)+"px"),e(".thumbsHolder_ThumbOFF",d).find("img:first").css({width:h.width()+"px",height:h.height()+"px","margin-top":parseInt((p.height()-h.height())/2,10)+"px"}),a.thumbMarginLeft=Math.floor((p.width()-m.width()-l.width()-n.width()*b.numberOfThumbsPerScreen)/(b.numberOfThumbsPerScreen-1)),thumb_i=-1,f.children().each(function(){thumb_i++;theThumb=e(this);theThumb.css("background-position","center "+
b.thumbsOnMarginTop/(b.origWidth/b.width)+"px");0>=thumb_i?theThumb.css("margin-left",Math.floor((p.width()-m.width()-l.width()-(a.thumbMarginLeft+theThumb.width())*(b.numberOfThumbsPerScreen-1)-theThumb.width())/2)+"px"):theThumb.css("margin-left",a.thumbMarginLeft+"px")}),a.carouselStep=(n.width()+a.thumbMarginLeft)*b.numberOfThumbsPerScreen)}function ga(a,b,d,h,f,m,l,n,g,p,q,r,t,u,z,w,v,x,A,c,G,F){xfullScreenMode=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen;if(!xfullScreenMode&&
(e(".bannerscollection_zoominout_texts",n).css({display:"none"}),b.fadeSlides&&e("#contentHolderUnit_"+a.current_img_no,n).css({"z-index":0,display:"none"}),r=0,responsiveWidth=h.parent().parent().width(),responsiveHeight=h.parent().parent().height(),b.responsiveRelativeToBrowser&&(responsiveWidth=e(window).width(),responsiveHeight=e(window).height()),b.width100Proc&&(b.width=responsiveWidth),b.height100Proc&&(b.height=responsiveHeight),b.origWidth!=responsiveWidth||b.width100Proc)){b.origWidth>responsiveWidth||
b.width100Proc?b.width=responsiveWidth:b.width100Proc||(b.width=b.origWidth);b.height100Proc||(b.height=b.width/a.bannerRatio);n.width(b.width);n.height(b.height);m.width(b.width);m.height(b.height);l.width(b.width);l.height(b.height);f.css("margin-top",parseInt((b.height-v.height())/2,10)+"px");ca(b,f);for(i=0;i<a.total_images;i++)fa(i,a,b,d,n,h,f);contentHolderUnit=e(".contentHolderUnit",n);contentHolderUnit.width(b.width);contentHolderUnit.height(b.height);holderWidth=b.width*a.total_images;for(i=
0;i<a.total_images;i++)P(i,b,n,a.origImgsDimensions,d),r=b.fadeSlides?0:parseInt(i*b.width,10),e(e(d[i]).attr("data-text-id")).css({width:h.width()+"px",left:r,top:f.css("top")});l.width(holderWidth);"opportune"==b.skin?(A.css({left:parseInt((n.width()-A.width())/2,10)+"px",top:b.height+"px"}),b.width100Proc&&b.height100Proc||A.css("margin-top",parseInt(b.thumbsWrapperMarginTop/(b.origWidth/b.width),10)+"px")):ba(a,b,n,q,t,u,z,w,c,G);g.css({left:parseInt((b.width-g.width())/2,10)+"px",top:parseInt((b.height-
g.height())/2,10)+"px"});clearTimeout(a.timeoutID);O(a.continuouseIntervalIDs);1<a.total_images?F.click():(e("#contentHolderUnit_"+a.current_img_no,n).html(e(d[a.previous_current_img_no]).html()),P(a.current_img_no,b,n,a.origImgsDimensions,d),L(a.timeouts_arr),M(a,a.currentImg,b,h,n,f,!1,!0),b.fadeSlides&&e("#contentHolderUnit_"+a.current_img_no,n).css({opacity:1,"z-index":0,display:"block"}),setTimeout(function(){W(a,b,n,p,d)},100))}}function I(){var a=-1;if("Microsoft Internet Explorer"==navigator.appName){var b=
navigator.userAgent,d=/MSIE ([0-9]{1,}[.0-9]{0,})/;null!=d.exec(b)&&(a=parseFloat(RegExp.$1))}else"Netscape"==navigator.appName&&(b=navigator.userAgent,d=/Trident\/.*rv:([0-9]{1,}[.0-9]{0,})/,null!=d.exec(b)&&(a=parseFloat(RegExp.$1)));return parseInt(a,10)}function aa(a,b,d){b.autoPlay=d.autoPlay;void 0!=e(a[b.current_img_no]).attr("data-autoPlay")&&""!=e(a[b.current_img_no]).attr("data-autoPlay")&&(b.autoPlay=e(a[b.current_img_no]).attr("data-autoPlay"))}function ca(a,b){0!=a.hideControlsUnder&&
a.width<=a.hideControlsUnder?b.css({display:"none"}):b.css({display:"block"})}e.fn.hasAttrLike=function(a,b){b=new RegExp(b);var d=!1;this.filter(function(h){h=e(this).attr(a);if(!h)return!1;h=h.split(/\s/);d=!1;e.each(h,function(a,e){b.test(e)&&(d=!0)})});return d};e.fn.bannerscollection_zoominout=function(a){a=e.extend({},e.fn.bannerscollection_zoominout.defaults,a);return this.each(function(){var b=e(this);responsiveWidth=b.parent().width();responsiveHeight=b.parent().height();a.responsiveRelativeToBrowser&&
(responsiveWidth=e(window).width(),responsiveHeight=e(window).height());a.origWidth=a.width;a.width100Proc&&(a.width=responsiveWidth);a.origHeight=a.height;a.height100Proc&&(a.height=responsiveHeight);a.responsive&&(a.origWidth!=responsiveWidth||a.width100Proc)&&(a.width=a.origWidth>responsiveWidth||a.width100Proc?responsiveWidth:a.origWidth,a.height100Proc||(a.height=a.width/(a.origWidth/a.origHeight)));var d=e("<div></div>").addClass("bannerscollection_zoominout").addClass(a.skin),h=e('<div class="bannerControls">   <div class="leftNav"></div>   <div class="rightNav"></div>      </div>  <div class="contentHolderVisibleWrapper"><div class="contentHolder"></div></div>   <div class="playOver"></div>  <div class="thumbsHolderWrapper"><div class="thumbsHolderVisibleWrapper"><div class="thumbsHolder"></div></div></div> <canvas class="mycanvas"></canvas> <div class="play_pause"></div>');
b.wrap(d);b.after(h);var f=b.parent(".bannerscollection_zoominout");a.setAsBg&&f.wrap('<div class="setAsBg" />');var m=e(".bannerControls",f),l=e(".contentHolderVisibleWrapper",f),n=e(".contentHolder",f),d=e('<div class="bottomNav"></div>');b.after(d);a.showAllControllers||m.css("display","none");var g=e(".leftNav",f),p=e(".rightNav",f),q=e(".play_pause",f);g.css("display","none");p.css("display","none");a.showNavArrows&&a.showOnInitNavArrows&&(g.css("display","block"),p.css("display","block"));ca(a,
m);var r=e(".bottomNav",f),t;"opportune"==a.skin&&(r.css({display:"block",top:a.height+"px"}),a.width100Proc&&a.height100Proc?r.css("margin-top",a.thumbsWrapperMarginTop+"px"):r.css("margin-top",a.thumbsWrapperMarginTop/(a.origWidth/a.width)+"px"));a.showBottomNav||r.css("display","none");a.showOnInitBottomNav||r.css("left","-5000px");var u=e(".thumbsHolderWrapper",f),z=e(".thumbsHolderVisibleWrapper",f),w=e(".thumbsHolder",f),v,x;v=e('<div class="carouselLeftNav"></div>');x=e('<div class="carouselRightNav"></div>');
u.append(v);u.append(x);x.css("right","0");w.css("width",v.width()+"px");a.showBottomNav&&a.showOnInitBottomNav||u.css({opacity:0,display:"none"});"opportune"!=a.skin&&u.css("margin-top",parseInt(a.thumbsWrapperMarginTop/(a.origWidth/a.width),10)+"px");var d=I(),A=e(".playOver",f);A.css({left:parseInt((a.width-A.width())/2,10)+"px",top:parseInt((a.height-A.height())/2,10)+"px"});var c={total_images:0,current_img_no:0,currentImg:0,previous_current_img_no:0,autoPlay:!1,slideIsRunning:!1,mouseOverBanner:!1,
isVideoPlaying:!1,bottomNavClicked:!1,current_imgInside:"",previous_imgInside:"",windowWidth:0,carouselStep:0,thumbMarginLeft:0,timeoutID:"",intervalID:"",arcInitialTime:(new Date).getTime(),timeElapsed:0,origImgsDimensionsBGS:[],origImgsDimensions:[],canvas:"",ctx:"",timeouts_arr:[],continuouseIntervalIDs:[],rotationFunctionsArr:[],rotationDurationArr:[],iFrameArr:[],bannerRatio:a.origWidth/a.origHeight,msiInterval:"",msiInitialTime:(new Date).getTime(),curZoom:0,cur_marginLeft:0,cur_marginTop:0,
firstLoadingComplete:!1,inner_div:"",pauseOnMouseOver:!0,pauseButtonClicked:!1,pauseButtonOver:!1};c.canvas=e(".mycanvas",f)[0];c.canvas.width=2*a.circleRadius+4*a.circleLineWidth;c.canvas.height=2*a.circleRadius+4*a.circleLineWidth;var h=e(".mycanvas",f).css("top").substring(0,e(".mycanvas",f).css("top").length-2),H=e(".mycanvas",f).css("right").substring(0,e(".mycanvas",f).css("right").length-2),h=parseInt(h,10)+parseInt((c.canvas.height-q.height())/2,10),H=parseInt(H,10)+parseInt((c.canvas.width-
q.width())/2,10);q.css({top:h+"px",right:H+"px"});c.autoPlay=a.autoPlay;-1!=d&&9>d&&(a.showCircleTimer=!1);a.showCircleTimer&&(c.ctx=c.canvas.getContext("2d"));var F=[],J=0;f.width(a.width);f.height(a.height);l.width(a.width);l.height(a.height);n.width(a.width);n.height(a.height);m.css("margin-top",parseInt((a.height-g.height())/2,10)+"px");d=b.find("ul:first");c.total_images=0;var B=d.children(),N,L=0,K,U=0,O=0,C,y,Y=0,Q=0,V='<img src="'+a.absUrl+'skins/empty.png" alt="" width="1" height="1" />';
B.each(function(){c.currentImg=e(this);c.currentImg.is("li")||(c.currentImg=c.currentImg.find("li:first"));if(c.currentImg.is("li")){c.total_images++;myzindex=0;mydisplay="none";1==c.total_images&&(myzindex=1,mydisplay="block");N=e('<div class="contentHolderUnit" rel="'+(c.total_images-1)+'" id="contentHolderUnit_'+(c.total_images-1)+'">'+c.currentImg.html()+"</div>");a.fadeSlides?N.css({position:"absolute",top:0,left:0,"z-index":myzindex,display:mydisplay}):N.css({position:"relative","float":"left"});
N.width(a.width);N.height(a.height);n.append(N);L+=a.width;C=e("#contentHolderUnit_"+(c.total_images-1),f).find("img:first");null!=C.width()?(c.origImgsDimensions[c.total_images-1]=C.width()+";"+C.height(),a.responsive&&a.origWidth!=responsiveWidth&&T(C,c.total_images-1,c,a,!0)):(e("#contentHolderUnit_"+(c.total_images-1),f).prepend(V),c.origImgsDimensions[c.total_images-1]="1;1");c.current_img_no=c.total_images-1;C=e("#contentHolderUnit_"+c.current_img_no,f).find("img:first");F[c.total_images-1]=
C.width()+";"+C.height();P(c.total_images-1,a,f,c.origImgsDimensions,B);"opportune"==a.skin&&(K=e('<div class="bottomNavButtonOFF" rel="'+(c.total_images-1)+'"></div>'),r.append(K),U+=parseInt(K.css("padding-left").substring(0,K.css("padding-left").length-2),10)+K.width(),O=parseInt((r.height()-parseInt(K.css("height").substring(0,K.css("height").length-2)))/2,10),K.css("margin-top",O+"px"));"opportune"!=a.skin&&(image_name=e(B[c.total_images-1]).attr("data-bottom-thumb"),y=e('<div class="thumbsHolder_ThumbOFF" rel="'+
(c.total_images-1)+'"><img src="'+image_name+'"></div>'),w.append(y),0==a.origThumbW&&(0==a.numberOfThumbsPerScreen&&(a.numberOfThumbsPerScreen=Math.floor((a.origWidth-v.width()-x.width())/y.width())),a.origThumbW=y.width(),a.origThumbH=y.height(),a.origthumbsHolderWrapperH=u.height(),c.thumbMarginLeft=Math.floor((a.origWidth-v.width()-x.width()-y.width()*a.numberOfThumbsPerScreen)/(a.numberOfThumbsPerScreen-1))),w.css("width",w.width()+c.thumbMarginLeft+y.width()+"px"),Y=parseInt((u.height()-parseInt(y.css("height").substring(0,
y.css("height").length-2)))/2,10));Q=a.fadeSlides?0:parseInt((c.total_images-1)*a.width,10);n.append(e(c.currentImg.attr("data-text-id")));e(c.currentImg.attr("data-text-id")).css({width:b.width()+"px",left:Q,top:m.css("top")});var d=-1;e(c.currentImg.attr("data-text-id")).children().each(function(){d++;C=e(this).find("img:first");null!=C.width()?(c.origImgsDimensions[c.currentImg.attr("data-text-id")+"-"+d]=C.width()+";"+C.height(),a.responsive&&a.origWidth!=responsiveWidth&&T(C,c.currentImg.attr("data-text-id")+
"-"+d,c,a,!1)):c.origImgsDimensions[c.currentImg.attr("data-text-id")+"-"+d]=null})}});n.width(L);r.width(U);a.showOnInitBottomNav&&r.css("left",parseInt((f.width()-U)/2,10)+"px");"opportune"!=a.skin&&(z.css({width:a.origWidth-v.width()-x.width(),left:v.width()+"px"}),c.carouselStep=(y.width()+c.thumbMarginLeft)*a.numberOfThumbsPerScreen,v.addClass("carouselLeftNavDisabled"),a.numberOfThumbsPerScreen>=c.total_images&&(x.addClass("carouselRightNavDisabled"),v.css("display","none"),x.css("display",
"none"),z.css("left",parseInt((u.width()-(y.width()+c.thumbMarginLeft)*c.total_images)/2,10)+"px")),u.css("top",a.height+"px"),e(".thumbsHolder_ThumbOFF",f).find("img:first").css("margin-top",Y+"px"),a.origthumbsHolder_MarginTop=Y);var D=e(".thumbsHolder_ThumbOFF",f);ba(c,a,f,D,w,v,x,y,z,u);e("iframe",f).each(function(){var a=e(this).attr("src"),b="?wmode=transparent";-1!=a.indexOf("?")&&(b="&wmode=transparent");e(this).attr("src",a+b)});c.current_img_no=0;c.currentImg=e(B[0]);f.find("img:first");
a.enableTouchScreen&&f.swipe({swipe:function(d,e,g,h,l){c.effectIsRunning||(e="right"==e?-1:1,clearTimeout(c.timeoutID),G(e,c,a,E,B,b,m,n,f,A,F,D,w,v,x,y))}});a.showPauseButton?(e(".mycanvas",f).css({cursor:"pointer"}),e(".mycanvas",f).click(function(){if(q.hasClass("xplay")){if(q.removeClass("xplay"),c.pauseOnMouseOver=a.pauseOnMouseOver,c.pauseButtonClicked=!1,c.mouseOverBanner=!1,nowx=(new Date).getTime(),0<c.autoPlay&&1<c.total_images&&c.firstLoadingComplete){clearTimeout(c.timeoutID);c.arcInitialTime=
(new Date).getTime();var d=parseInt(1E3*c.autoPlay-(c.timeElapsed+nowx-c.arcInitialTime),10);c.timeoutID=setTimeout(function(){G(1,c,a,E,B,b,m,n,f,A,F,D,w,v,x,y)},d);0==c.timeElapsed&&(clearInterval(c.intervalID),c.intervalID=setInterval(function(){X(c,a)},125))}}else q.addClass("xplay"),c.pauseOnMouseOver=!1,c.pauseButtonClicked=!0,c.mouseOverBanner=!0,clearTimeout(c.timeoutID),nowx=(new Date).getTime(),c.timeElapsed+=nowx-c.arcInitialTime}),e(".mycanvas",f).mouseenter(function(){c.pauseButtonOver=
!0}),f.mouseleave(function(){c.pauseButtonOver=!1})):q.css({display:"none"});f.mouseenter(function(){a.pauseOnMouseOver&&1<c.total_images&&c.firstLoadingComplete&&!c.pauseButtonClicked&&(c.mouseOverBanner=!0,clearTimeout(c.timeoutID),nowx=(new Date).getTime(),c.timeElapsed+=nowx-c.arcInitialTime);a.autoHideNavArrows&&a.showNavArrows&&(g.css("display","block"),p.css("display","block"));a.autoHideBottomNav&&a.showBottomNav&&("opportune"==a.skin?r.css({display:"block",left:parseInt((f.width()-U)/2,10)+
"px"}):0>a.thumbsWrapperMarginTop&&c.isVideoPlaying||!a.showBottomNav||(u.css({display:"block"}),u.stop().animate({opacity:1},500,"swing",function(){})))});f.mouseleave(function(){a.pauseOnMouseOver&&1<c.total_images&&c.firstLoadingComplete&&!c.pauseButtonClicked&&(c.mouseOverBanner=!1,nowx=(new Date).getTime());a.autoHideNavArrows&&a.showNavArrows&&!c.isVideoPlaying&&(g.css("display","none"),p.css("display","none"));a.autoHideBottomNav&&a.showBottomNav&&("opportune"==a.skin?r.css("display","none"):
u.stop().animate({opacity:0},300,"swing",function(){}));if(0<c.autoPlay&&1<c.total_images&&!c.isVideoPlaying&&a.pauseOnMouseOver&&c.firstLoadingComplete&&!c.pauseButtonClicked){clearTimeout(c.timeoutID);c.arcInitialTime=(new Date).getTime();var d=parseInt(1E3*c.autoPlay-(c.timeElapsed+nowx-c.arcInitialTime),10);c.timeoutID=setTimeout(function(){G(1,c,a,E,B,b,m,n,f,A,F,D,w,v,x,y)},d)}});e(window).on("blur focus",function(d){if(e(this).data("prevType")!=d.type)switch(d.type){case "blur":1<c.total_images&&
c.firstLoadingComplete&&!c.pauseButtonClicked&&(clearTimeout(c.timeoutID),nowx=(new Date).getTime(),c.timeElapsed+=nowx-c.arcInitialTime);break;case "focus":0<c.autoPlay&&1<c.total_images&&c.firstLoadingComplete&&!c.pauseButtonClicked&&(nowx=(new Date).getTime(),clearTimeout(c.timeoutID),c.arcInitialTime=(new Date).getTime(),d=parseInt(1E3*c.autoPlay-(c.timeElapsed+nowx-c.arcInitialTime),10),c.timeoutID=setTimeout(function(){G(1,c,a,E,B,b,m,n,f,A,F,D,w,v,x,y)},d))}});d=e(".contentHolderUnit",n);-1!=
navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")&&-1==navigator.userAgent.indexOf("Android")?d.css("z-index","1"):-1!=navigator.userAgent.indexOf("Chrome")&&-1==navigator.userAgent.indexOf("Android")&&d.css("z-index","1");d.click(function(){var b=e(this).attr("rel");"true"==e(B[c.current_img_no]).attr("data-video")&&(b!=c.current_img_no?c.isVideoPlaying=!1:(clearTimeout(c.timeoutID),C=e(this).find("img:first"),C.css("display","none"),A.css("display","none"),e(c.currentImg.attr("data-text-id")).children().css("opacity",
0),c.isVideoPlaying=!0,0>a.thumbsWrapperMarginTop&&(u.css("display","none"),"opportune"==a.skin&&r.css("display","none")),a.showCircleTimer&&(clearInterval(c.intervalID),c.ctx.clearRect(0,0,c.canvas.width,c.canvas.height),c.ctx.beginPath(),c.ctx.globalAlpha=0,c.ctx.arc(a.circleRadius+2*a.circleLineWidth,a.circleRadius+2*a.circleLineWidth,a.circleRadius,0,0,!1),c.ctx.lineWidth=a.circleLineWidth+2,c.ctx.strokeStyle=a.behindCircleColor,c.ctx.stroke(),c.ctx.beginPath(),c.ctx.globalAlpha=0,c.ctx.arc(a.circleRadius+
2*a.circleLineWidth,a.circleRadius+2*a.circleLineWidth,a.circleRadius,0,0,!1),c.ctx.lineWidth=a.circleLineWidth,c.ctx.strokeStyle=a.circleColor,c.ctx.stroke())));var d=e(B[c.current_img_no]);void 0!=d.attr("data-link")&&b==c.current_img_no&&""!=d.attr("data-link")&&(b=a.target,void 0!=d.attr("data-target")&&""!=d.attr("data-target")&&(b=d.attr("data-target")),"_blank"==b?window.open(d.attr("data-link")):window.location=d.attr("data-link"))});A.click(function(){A.css("display","none");clearTimeout(c.timeoutID);
C=e("#contentHolderUnit_"+c.current_img_no,f).find("img:first");C.css("display","none");e(c.currentImg.attr("data-text-id")).children().css("opacity",0);c.isVideoPlaying=!0;0>a.thumbsWrapperMarginTop&&(u.css("display","none"),"opportune"==a.skin&&r.css("display","none"));a.showCircleTimer&&(clearInterval(c.intervalID),c.ctx.clearRect(0,0,c.canvas.width,c.canvas.height),c.ctx.beginPath(),c.ctx.globalAlpha=0,c.ctx.arc(a.circleRadius+2*a.circleLineWidth,a.circleRadius+2*a.circleLineWidth,a.circleRadius,
0,0,!1),c.ctx.lineWidth=a.circleLineWidth+2,c.ctx.strokeStyle=a.behindCircleColor,c.ctx.stroke(),c.ctx.beginPath(),c.ctx.globalAlpha=0,c.ctx.arc(a.circleRadius+2*a.circleLineWidth,a.circleRadius+2*a.circleLineWidth,a.circleRadius,0,0,!1),c.ctx.lineWidth=a.circleLineWidth,c.ctx.strokeStyle=a.circleColor,c.ctx.stroke())});g.click(function(){c.slideIsRunning||(c.isVideoPlaying=!1,a.showBottomNav&&(u.css({opacity:1,display:"block"}),"opportune"==a.skin&&r.css("display","block")),clearTimeout(c.timeoutID),
G(-1,c,a,E,B,b,m,n,f,A,F,D,w,v,x,y))});p.click(function(){c.slideIsRunning||(c.isVideoPlaying=!1,a.showBottomNav&&(u.css({opacity:1,display:"block"}),"opportune"==a.skin&&r.css("display","block")),clearTimeout(c.timeoutID),G(1,c,a,E,B,b,m,n,f,A,F,D,w,v,x,y))});var Z=!1;e(window).resize(function(){var d=I();doResizeNow=!0;-1!=d&&9==d&&0==c.windowWidth&&(doResizeNow=!1);c.windowWidth==e(window).width()?doResizeNow=!1:c.windowWidth=e(window).width();a.responsive&&doResizeNow&&!c.slideIsRunning&&(!1!==
Z&&clearTimeout(Z),Z=setTimeout(function(){ga(c,a,B,b,m,l,n,f,A,F,D,E,w,v,x,y,g,K,r,z,u,p)},300))});var E=e(".bottomNavButtonOFF",f);"opportune"==a.skin&&(E.click(function(){if(!c.slideIsRunning&&c.firstLoadingComplete){c.isVideoPlaying=!1;var d=e(this).attr("rel");c.current_img_no!=d&&(e(E[c.current_img_no]).removeClass("bottomNavButtonON"),c.previous_current_img_no=c.current_img_no,c.bottomNavClicked=!0,c.current_img_no=d-1,clearTimeout(c.timeoutID),G(1,c,a,E,B,b,m,n,f,A,F,D,w,v,x,y))}}),E.mouseenter(function(){var b=
e(this),c=b.attr("rel");if(a.showPreviewThumbs){t=e('<div class="bottomOverThumb"></div>');b.append(t);var d=e(B[c]).attr("data-bottom-thumb"),f=e(B[J]).attr("data-bottom-thumb"),g=80,h=-80;J>c&&(g=-80,h=80);t.html("");t.html('<div class="innerBottomOverThumb"><img src="'+f+'"style="margin:0px;" id="oldThumb"><img src="'+d+'" style="margin-top:-80px; margin-left:'+g+'px;" id="newThumb"></div>');e("#newThumb").stop().animate({marginLeft:"0px"},150,function(){t.html('<div class="innerBottomOverThumb"><img src="'+
d+'"></div>')});e("#oldThumb").stop().animate({marginLeft:h+"px"},150,function(){});J=c}b.addClass("bottomNavButtonON")}),E.mouseleave(function(){var b=e(this),d=b.attr("rel");a.showPreviewThumbs&&t.remove();c.current_img_no!=d&&b.removeClass("bottomNavButtonON")}));D.mousedown(function(){if(!c.slideIsRunning&&c.firstLoadingComplete){arrowClicked=!0;c.isVideoPlaying=!1;var d=e(this).attr("rel");c.current_img_no!=d&&(e(D[c.current_img_no]).removeClass("thumbsHolder_ThumbON"),c.previous_current_img_no=
c.current_img_no,c.bottomNavClicked=!0,c.current_img_no=d-1,clearTimeout(c.timeoutID),G(1,c,a,E,B,b,m,n,f,A,F,D,w,v,x,y))}});D.mouseup(function(){arrowClicked=!1});D.mouseenter(function(){var a=e(this);a.attr("rel");a.addClass("thumbsHolder_ThumbON")});D.mouseleave(function(){var a=e(this),b=a.attr("rel");c.current_img_no!=b&&a.removeClass("thumbsHolder_ThumbON")});v.click(function(){c.isCarouselScrolling||(currentCarouselLeft=w.css("left").substr(0,w.css("left").lastIndexOf("px")),0>currentCarouselLeft&&
S(1,w,v,x,a,y,c))});x.click(function(){c.isCarouselScrolling||(currentCarouselLeft=w.css("left").substr(0,w.css("left").lastIndexOf("px")),Math.abs(currentCarouselLeft-c.carouselStep)<(y.width()+c.thumbMarginLeft)*c.total_images&&S(-1,w,v,x,a,y,c))});"opportune"==a.skin&&e(E[c.current_img_no]).addClass("bottomNavButtonON");e(D[c.current_img_no]).addClass("thumbsHolder_ThumbON");aa(B,c,a);setTimeout(function(){e(".myloader",f).css("display","none");c.firstLoadingComplete=!0;1<c.total_images&&(c.arcInitialTime=
(new Date).getTime(),c.mouseOverBanner=!1,c.timeElapsed=0);W(c,a,f,F,B);M(c,c.currentImg,a,b,f,m,!1,!1);0<c.autoPlay&&1<c.total_images&&(clearTimeout(c.timeoutID),a.showCircleTimer&&(c.intervalID=setInterval(function(){X(c,a)},125)),c.timeoutID=setTimeout(function(){G(1,c,a,E,B,b,m,n,f,A,F,D,w,v,x,y)},1E3*c.autoPlay))},1E3*a.myloaderTime);"true"==e(B[c.current_img_no]).attr("data-video")&&A.css("display","block")})};e.fn.bannerscollection_zoominout.defaults={skin:"opportune",width:918,height:382,
width100Proc:!1,height100Proc:!1,autoPlay:10,fadeSlides:!0,loop:!0,setAsBg:!1,horizontalPosition:"center",verticalPosition:"center",initialZoom:1,finalZoom:.8,zoomEasing:"ease",duration:20,durationIEfix:30,initialOpacity:1,target:"_blank",pauseOnMouseOver:!0,showPauseButton:!0,showCircleTimer:!0,showCircleTimerIE8IE7:!1,circleRadius:13,circleLineWidth:2,circleColor:"#FFFFFF",circleAlpha:100,behindCircleColor:"#FFFFFF",behindCircleAlpha:20,responsive:!0,responsiveRelativeToBrowser:!0,numberOfThumbsPerScreen:0,
thumbsOnMarginTop:20,thumbsWrapperMarginTop:20,showAllControllers:!0,showNavArrows:!0,showOnInitNavArrows:!0,autoHideNavArrows:!0,showBottomNav:!0,showOnInitBottomNav:!0,autoHideBottomNav:!1,showPreviewThumbs:!0,enableTouchScreen:!0,absUrl:"",scrollSlideDuration:.8,scrollSlideEasing:"easeOutQuad",defaultEasing:"swing",myloaderTime:2,hideControlsUnder:768,defaultExitLeft:0,defaultExitTop:0,defaultExitDuration:0,defaultExitDelay:0,defaultExitFade:1,defaultExitEasing:"swing",defaultExitOFF:!1,origWidth:0,
origHeight:0,origThumbW:0,origThumbH:0,origthumbsHolderWrapperH:0,origthumbsHolder_MarginTop:0,windowOrientationScreenSize0:0,windowOrientationScreenSize90:0,windowOrientationScreenSize_90:0,windowCurOrientation:0}})(jQuery);



(function(a){if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],a)}else{a(jQuery)}}(function(f){var p="left",o="right",e="up",x="down",c="in",z="out",m="none",s="auto",l="swipe",t="pinch",A="tap",j="doubletap",b="longtap",y="hold",D="horizontal",u="vertical",i="all",r=10,g="start",k="move",h="end",q="cancel",a="ontouchstart" in window,v=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,d=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,B="TouchSwipe";var n={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"label, button, input, select, textarea, a, .noSwipe"};f.fn.swipe=function(G){var F=f(this),E=F.data(B);if(E&&typeof G==="string"){if(E[G]){return E[G].apply(this,Array.prototype.slice.call(arguments,1))}else{f.error("Method "+G+" does not exist on jQuery.swipe")}}else{if(!E&&(typeof G==="object"||!G)){return w.apply(this,arguments)}}return F};f.fn.swipe.defaults=n;f.fn.swipe.phases={PHASE_START:g,PHASE_MOVE:k,PHASE_END:h,PHASE_CANCEL:q};f.fn.swipe.directions={LEFT:p,RIGHT:o,UP:e,DOWN:x,IN:c,OUT:z};f.fn.swipe.pageScroll={NONE:m,HORIZONTAL:D,VERTICAL:u,AUTO:s};f.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:i};function w(E){if(E&&(E.allowPageScroll===undefined&&(E.swipe!==undefined||E.swipeStatus!==undefined))){E.allowPageScroll=m}if(E.click!==undefined&&E.tap===undefined){E.tap=E.click}if(!E){E={}}E=f.extend({},f.fn.swipe.defaults,E);return this.each(function(){var G=f(this);var F=G.data(B);if(!F){F=new C(this,E);G.data(B,F)}})}function C(a4,av){var az=(a||d||!av.fallbackToMouseEvents),J=az?(d?(v?"MSPointerDown":"pointerdown"):"touchstart"):"mousedown",ay=az?(d?(v?"MSPointerMove":"pointermove"):"touchmove"):"mousemove",U=az?(d?(v?"MSPointerUp":"pointerup"):"touchend"):"mouseup",S=az?null:"mouseleave",aD=(d?(v?"MSPointerCancel":"pointercancel"):"touchcancel");var ag=0,aP=null,ab=0,a1=0,aZ=0,G=1,aq=0,aJ=0,M=null;var aR=f(a4);var Z="start";var W=0;var aQ=null;var T=0,a2=0,a5=0,ad=0,N=0;var aW=null,af=null;try{aR.bind(J,aN);aR.bind(aD,a9)}catch(ak){f.error("events not supported "+J+","+aD+" on jQuery.swipe")}this.enable=function(){aR.bind(J,aN);aR.bind(aD,a9);return aR};this.disable=function(){aK();return aR};this.destroy=function(){aK();aR.data(B,null);return aR};this.option=function(bc,bb){if(av[bc]!==undefined){if(bb===undefined){return av[bc]}else{av[bc]=bb}}else{f.error("Option "+bc+" does not exist on jQuery.swipe.options")}return null};function aN(bd){if(aB()){return}if(f(bd.target).closest(av.excludedElements,aR).length>0){return}var be=bd.originalEvent?bd.originalEvent:bd;var bc,bb=a?be.touches[0]:be;Z=g;if(a){W=be.touches.length}else{bd.preventDefault()}ag=0;aP=null;aJ=null;ab=0;a1=0;aZ=0;G=1;aq=0;aQ=aj();M=aa();R();if(!a||(W===av.fingers||av.fingers===i)||aX()){ai(0,bb);T=at();if(W==2){ai(1,be.touches[1]);a1=aZ=au(aQ[0].start,aQ[1].start)}if(av.swipeStatus||av.pinchStatus){bc=O(be,Z)}}else{bc=false}if(bc===false){Z=q;O(be,Z);return bc}else{if(av.hold){af=setTimeout(f.proxy(function(){aR.trigger("hold",[be.target]);if(av.hold){bc=av.hold.call(aR,be,be.target)}},this),av.longTapThreshold)}ao(true)}return null}function a3(be){var bh=be.originalEvent?be.originalEvent:be;if(Z===h||Z===q||am()){return}var bd,bc=a?bh.touches[0]:bh;var bf=aH(bc);a2=at();if(a){W=bh.touches.length}if(av.hold){clearTimeout(af)}Z=k;if(W==2){if(a1==0){ai(1,bh.touches[1]);a1=aZ=au(aQ[0].start,aQ[1].start)}else{aH(bh.touches[1]);aZ=au(aQ[0].end,aQ[1].end);aJ=ar(aQ[0].end,aQ[1].end)}G=a7(a1,aZ);aq=Math.abs(a1-aZ)}if((W===av.fingers||av.fingers===i)||!a||aX()){aP=aL(bf.start,bf.end);al(be,aP);ag=aS(bf.start,bf.end);ab=aM();aI(aP,ag);if(av.swipeStatus||av.pinchStatus){bd=O(bh,Z)}if(!av.triggerOnTouchEnd||av.triggerOnTouchLeave){var bb=true;if(av.triggerOnTouchLeave){var bg=aY(this);bb=E(bf.end,bg)}if(!av.triggerOnTouchEnd&&bb){Z=aC(k)}else{if(av.triggerOnTouchLeave&&!bb){Z=aC(h)}}if(Z==q||Z==h){O(bh,Z)}}}else{Z=q;O(bh,Z)}if(bd===false){Z=q;O(bh,Z)}}function L(bb){var bc=bb.originalEvent;if(a){if(bc.touches.length>0){F();return true}}if(am()){W=ad}a2=at();ab=aM();if(ba()||!an()){Z=q;O(bc,Z)}else{if(av.triggerOnTouchEnd||(av.triggerOnTouchEnd==false&&Z===k)){bb.preventDefault();Z=h;O(bc,Z)}else{if(!av.triggerOnTouchEnd&&a6()){Z=h;aF(bc,Z,A)}else{if(Z===k){Z=q;O(bc,Z)}}}}ao(false);return null}function a9(){W=0;a2=0;T=0;a1=0;aZ=0;G=1;R();ao(false)}function K(bb){var bc=bb.originalEvent;if(av.triggerOnTouchLeave){Z=aC(h);O(bc,Z)}}function aK(){aR.unbind(J,aN);aR.unbind(aD,a9);aR.unbind(ay,a3);aR.unbind(U,L);if(S){aR.unbind(S,K)}ao(false)}function aC(bf){var be=bf;var bd=aA();var bc=an();var bb=ba();if(!bd||bb){be=q}else{if(bc&&bf==k&&(!av.triggerOnTouchEnd||av.triggerOnTouchLeave)){be=h}else{if(!bc&&bf==h&&av.triggerOnTouchLeave){be=q}}}return be}function O(bd,bb){var bc=undefined;if(I()||V()){bc=aF(bd,bb,l)}else{if((P()||aX())&&bc!==false){bc=aF(bd,bb,t)}}if(aG()&&bc!==false){bc=aF(bd,bb,j)}else{if(ap()&&bc!==false){bc=aF(bd,bb,b)}else{if(ah()&&bc!==false){bc=aF(bd,bb,A)}}}if(bb===q){a9(bd)}if(bb===h){if(a){if(bd.touches.length==0){a9(bd)}}else{a9(bd)}}return bc}function aF(be,bb,bd){var bc=undefined;if(bd==l){aR.trigger("swipeStatus",[bb,aP||null,ag||0,ab||0,W,aQ]);if(av.swipeStatus){bc=av.swipeStatus.call(aR,be,bb,aP||null,ag||0,ab||0,W,aQ);if(bc===false){return false}}if(bb==h&&aV()){aR.trigger("swipe",[aP,ag,ab,W,aQ]);if(av.swipe){bc=av.swipe.call(aR,be,aP,ag,ab,W,aQ);if(bc===false){return false}}switch(aP){case p:aR.trigger("swipeLeft",[aP,ag,ab,W,aQ]);if(av.swipeLeft){bc=av.swipeLeft.call(aR,be,aP,ag,ab,W,aQ)}break;case o:aR.trigger("swipeRight",[aP,ag,ab,W,aQ]);if(av.swipeRight){bc=av.swipeRight.call(aR,be,aP,ag,ab,W,aQ)}break;case e:aR.trigger("swipeUp",[aP,ag,ab,W,aQ]);if(av.swipeUp){bc=av.swipeUp.call(aR,be,aP,ag,ab,W,aQ)}break;case x:aR.trigger("swipeDown",[aP,ag,ab,W,aQ]);if(av.swipeDown){bc=av.swipeDown.call(aR,be,aP,ag,ab,W,aQ)}break}}}if(bd==t){aR.trigger("pinchStatus",[bb,aJ||null,aq||0,ab||0,W,G,aQ]);if(av.pinchStatus){bc=av.pinchStatus.call(aR,be,bb,aJ||null,aq||0,ab||0,W,G,aQ);if(bc===false){return false}}if(bb==h&&a8()){switch(aJ){case c:aR.trigger("pinchIn",[aJ||null,aq||0,ab||0,W,G,aQ]);if(av.pinchIn){bc=av.pinchIn.call(aR,be,aJ||null,aq||0,ab||0,W,G,aQ)}break;case z:aR.trigger("pinchOut",[aJ||null,aq||0,ab||0,W,G,aQ]);if(av.pinchOut){bc=av.pinchOut.call(aR,be,aJ||null,aq||0,ab||0,W,G,aQ)}break}}}if(bd==A){if(bb===q||bb===h){clearTimeout(aW);clearTimeout(af);if(Y()&&!H()){N=at();aW=setTimeout(f.proxy(function(){N=null;aR.trigger("tap",[be.target]);if(av.tap){bc=av.tap.call(aR,be,be.target)}},this),av.doubleTapThreshold)}else{N=null;aR.trigger("tap",[be.target]);if(av.tap){bc=av.tap.call(aR,be,be.target)}}}}else{if(bd==j){if(bb===q||bb===h){clearTimeout(aW);N=null;aR.trigger("doubletap",[be.target]);if(av.doubleTap){bc=av.doubleTap.call(aR,be,be.target)}}}else{if(bd==b){if(bb===q||bb===h){clearTimeout(aW);N=null;aR.trigger("longtap",[be.target]);if(av.longTap){bc=av.longTap.call(aR,be,be.target)}}}}}return bc}function an(){var bb=true;if(av.threshold!==null){bb=ag>=av.threshold}return bb}function ba(){var bb=false;if(av.cancelThreshold!==null&&aP!==null){bb=(aT(aP)-ag)>=av.cancelThreshold}return bb}function ae(){if(av.pinchThreshold!==null){return aq>=av.pinchThreshold}return true}function aA(){var bb;if(av.maxTimeThreshold){if(ab>=av.maxTimeThreshold){bb=false}else{bb=true}}else{bb=true}return bb}function al(bb,bc){if(av.allowPageScroll===m||aX()){bb.preventDefault()}else{var bd=av.allowPageScroll===s;switch(bc){case p:if((av.swipeLeft&&bd)||(!bd&&av.allowPageScroll!=D)){bb.preventDefault()}break;case o:if((av.swipeRight&&bd)||(!bd&&av.allowPageScroll!=D)){bb.preventDefault()}break;case e:if((av.swipeUp&&bd)||(!bd&&av.allowPageScroll!=u)){bb.preventDefault()}break;case x:if((av.swipeDown&&bd)||(!bd&&av.allowPageScroll!=u)){bb.preventDefault()}break}}}function a8(){var bc=aO();var bb=X();var bd=ae();return bc&&bb&&bd}function aX(){return !!(av.pinchStatus||av.pinchIn||av.pinchOut)}function P(){return !!(a8()&&aX())}function aV(){var be=aA();var bg=an();var bd=aO();var bb=X();var bc=ba();var bf=!bc&&bb&&bd&&bg&&be;return bf}function V(){return !!(av.swipe||av.swipeStatus||av.swipeLeft||av.swipeRight||av.swipeUp||av.swipeDown)}function I(){return !!(aV()&&V())}function aO(){return((W===av.fingers||av.fingers===i)||!a)}function X(){return aQ[0].end.x!==0}function a6(){return !!(av.tap)}function Y(){return !!(av.doubleTap)}function aU(){return !!(av.longTap)}function Q(){if(N==null){return false}var bb=at();return(Y()&&((bb-N)<=av.doubleTapThreshold))}function H(){return Q()}function ax(){return((W===1||!a)&&(isNaN(ag)||ag<av.threshold))}function a0(){return((ab>av.longTapThreshold)&&(ag<r))}function ah(){return !!(ax()&&a6())}function aG(){return !!(Q()&&Y())}function ap(){return !!(a0()&&aU())}function F(){a5=at();ad=event.touches.length+1}function R(){a5=0;ad=0}function am(){var bb=false;if(a5){var bc=at()-a5;if(bc<=av.fingerReleaseThreshold){bb=true}}return bb}function aB(){return !!(aR.data(B+"_intouch")===true)}function ao(bb){if(bb===true){aR.bind(ay,a3);aR.bind(U,L);if(S){aR.bind(S,K)}}else{aR.unbind(ay,a3,false);aR.unbind(U,L,false);if(S){aR.unbind(S,K,false)}}aR.data(B+"_intouch",bb===true)}function ai(bc,bb){var bd=bb.identifier!==undefined?bb.identifier:0;aQ[bc].identifier=bd;aQ[bc].start.x=aQ[bc].end.x=bb.pageX||bb.clientX;aQ[bc].start.y=aQ[bc].end.y=bb.pageY||bb.clientY;return aQ[bc]}function aH(bb){var bd=bb.identifier!==undefined?bb.identifier:0;var bc=ac(bd);bc.end.x=bb.pageX||bb.clientX;bc.end.y=bb.pageY||bb.clientY;return bc}function ac(bc){for(var bb=0;bb<aQ.length;bb++){if(aQ[bb].identifier==bc){return aQ[bb]}}}function aj(){var bb=[];for(var bc=0;bc<=5;bc++){bb.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0})}return bb}function aI(bb,bc){bc=Math.max(bc,aT(bb));M[bb].distance=bc}function aT(bb){if(M[bb]){return M[bb].distance}return undefined}function aa(){var bb={};bb[p]=aw(p);bb[o]=aw(o);bb[e]=aw(e);bb[x]=aw(x);return bb}function aw(bb){return{direction:bb,distance:0}}function aM(){return a2-T}function au(be,bd){var bc=Math.abs(be.x-bd.x);var bb=Math.abs(be.y-bd.y);return Math.round(Math.sqrt(bc*bc+bb*bb))}function a7(bb,bc){var bd=(bc/bb)*1;return bd.toFixed(2)}function ar(){if(G<1){return z}else{return c}}function aS(bc,bb){return Math.round(Math.sqrt(Math.pow(bb.x-bc.x,2)+Math.pow(bb.y-bc.y,2)))}function aE(be,bc){var bb=be.x-bc.x;var bg=bc.y-be.y;var bd=Math.atan2(bg,bb);var bf=Math.round(bd*180/Math.PI);if(bf<0){bf=360-Math.abs(bf)}return bf}function aL(bc,bb){var bd=aE(bc,bb);if((bd<=45)&&(bd>=0)){return p}else{if((bd<=360)&&(bd>=315)){return p}else{if((bd>=135)&&(bd<=225)){return o}else{if((bd>45)&&(bd<135)){return x}else{return e}}}}}function at(){var bb=new Date();return bb.getTime()}function aY(bb){bb=f(bb);var bd=bb.offset();var bc={left:bd.left,right:bd.left+bb.outerWidth(),top:bd.top,bottom:bd.top+bb.outerHeight()};return bc}function E(bb,bc){return(bb.x>bc.left&&bb.x<bc.right&&bb.y>bc.top&&bb.y<bc.bottom)}}}));