(function(){var e=this;e.N2_=e.N2_||{r:[],d:[]},e.N2R=e.N2R||function(){e.N2_.r.push(arguments)},e.N2D=e.N2D||function(){e.N2_.d.push(arguments)}}).call(window),N2D("SmartSliderMainAnimationSimple",["SmartSliderMainAnimationAbstract"],function(e,t){function i(t,i){switch(this.postBackgroundAnimation=!1,this._currentBackgroundAnimation=!1,this.reverseSlideIndex=null,i=e.extend({delay:0,parallax:0,type:"horizontal",shiftedBackgroundAnimation:"auto"},i),i.delay/=1e3,N2Classes.SmartSliderMainAnimationAbstract.prototype.constructor.apply(this,arguments),!t.isAdmin&&this.slider.parameters.postBackgroundAnimations&&(this.isReverseAllowed=!1,this.postBackgroundAnimation=new N2Classes.SmartSliderPostBackgroundAnimation(t,this)),this.parameters.type){case"no":this.animation=this._mainAnimationNo,this.isNoAnimation=!0;break;case"fade":this.animation=this._mainAnimationFade;break;case"crossfade":this.animation=this._mainAnimationCrossFade;break;case"vertical":0===this.parameters.parallax?this.animation=this._mainAnimationVertical:this.animation=this._mainAnimationVerticalParallax;break;case"vertical-reversed":0===this.parameters.parallax?this.animation=this._mainAnimationVerticalReversed:this.animation=this._mainAnimationVerticalReversedParallax;break;case"horizontal-reversed":0===this.parameters.parallax?this.animation=this._mainAnimationHorizontalReversed:this.animation=this._mainAnimationHorizontalReversedParallax;break;default:0===this.parameters.parallax?this.animation=this._mainAnimationHorizontal:this.animation=this._mainAnimationHorizontalParallax}}return i.prototype=Object.create(N2Classes.SmartSliderMainAnimationAbstract.prototype),i.prototype.constructor=i,i.prototype.setToStarterSlide=function(e){this.setActiveSlide(e)},i.prototype.changeTo=function(e,t,i,n){this.postBackgroundAnimation&&this.postBackgroundAnimation.prepareToSwitchSlide(e,t),N2Classes.SmartSliderMainAnimationAbstract.prototype.changeTo.apply(this,arguments)},i.prototype.setActiveSlide=function(e){for(var t=0;tB?B=this.slider.parameters.carousel?this.slider.slides.length-1:t.index:B>=this.slider.slides.length&&(B=this.slider.parameters.carousel?0:t.index),B!==i.index){if(B!==t.index){this.reverseSlideIndex=B,this.enableReverseMode();var E=this.slider.slides[B];"vertical"===n&&this._showSlide(E),E.$element.css(r,o);var C={},w={ease:this.getEase()},z={},N={ease:this.getEase()};w[r]=0,C[r]=-o,N[r]=o,z[r]=0,E.$element.trigger("mainAnimationStartIn",[this,t.index,E.index,!1]),this.reverseTimeline.paused(!0),this.reverseTimeline.eventCallback("onComplete",this.onBackwardChangeToComplete,[t,E,!1],this),w.roundProps="x,y",this.reverseTimeline.fromTo(E.$element.get(0),b.inDuration,C,w,b.inDelay),E.background&&this.reverseTimeline.fromTo(E.background.element,b.inDuration,C,w,b.inDelay),N.roundProps="x,y",this.reverseTimeline.fromTo(t.$element.get(0),b.inDuration,z,N,b.inDelay),t.background&&this.reverseTimeline.fromTo(t.background.element,b.inDuration,z,N,b.inDelay)}}else this.reverseSlideIndex=null}this.sliderElement.on("mainAnimationComplete.n2-simple-fade",e.proxy(function(e,t,i,n){this.sliderElement.off("mainAnimationComplete.n2-simple-fade");var s=this.slider.slides[i],a=this.slider.slides[n];a.$element.css("zIndex","").css(r,"").removeClass("n2-ss-parallax-clip"),a.background&&a.background.element.css("zIndex","").css(r,""),s.$element.css("zIndex","").css(d,"").removeClass("n2-ss-parallax-clip"),s.background&&s.background.element.css("zIndex","").css(d,"")},this))},i.prototype.getExtraDelay=function(){return 0},i.prototype.adjustMainAnimation=function(){var e=this.parameters.duration,t=this.parameters.delay,i=this.timeline.totalDuration(),n=this.getExtraDelay();if(i>0){var s=e+t;if(!(s>i))return{inDuration:e,outDuration:e,inDelay:i-e,outDelay:n,extraDelay:n};e=e*i/s,t=t*i/s,n>t&&(e-=n-t,t=n)}else t+=n;return{inDuration:e,outDuration:e,inDelay:t,outDelay:t,extraDelay:n}},i.prototype.hasBackgroundAnimation=function(){return!1},i}),N2D("SmartSliderResponsiveSimple",["SmartSliderResponsive"],function(e,t){function i(){this.round=1,N2Classes.SmartSliderResponsive.prototype.constructor.apply(this,arguments)}return i.prototype=Object.create(N2Classes.SmartSliderResponsive.prototype),i.prototype.constructor=i,i.prototype.init=function(){this.sliderElement.find(".n2-ss-section-main-content").length&&(this.updateVerticalRatios=this._updateVerticalRatios),this._sliderHorizontal=this.addHorizontalElement(this.sliderElement,["width","marginLeft","marginRight"],"w","slider"),this.addHorizontalElement(this.sliderElement.find(".n2-ss-slider-1"),["width","paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"],"w"),this._sliderVertical=this.addVerticalElement(this.sliderElement,["marginTop","marginBottom"],"h"),this.addHorizontalElement(this.sliderElement,["fontSize"],"fontRatio","slider"),this.addVerticalElement(this.sliderElement.find(".n2-ss-slider-1"),["height","paddingTop","paddingBottom","borderTopWidth","borderBottomWidth"],"h","slider"),this.addHorizontalElement(this.sliderElement.find(".n2-ss-slide"),["width"],"w","slideouter"),this.addVerticalElement(this.sliderElement.find(".n2-ss-slide"),["height"],"h","slideouter");var t=this.sliderElement.find(".n2-ss-layers-container");this.addHorizontalElement(t,["width"],"slideW","slide"),this.addVerticalElement(t,["height"],"slideH","slide").setCentered();for(var i=this.slider.parameters.mainanimation.parallax,n=this.slider.backgrounds.getBackgroundImages(),s=0;s=53;r?(this._videoPlayerReady=e.proxy(this.videoPlayerReady,this,a),a[0].videoWidth>0?this._videoPlayerReady():(a[0].addEventListener("error",e.proxy(this.videoPlayerError,this,a),!0),a[0].addEventListener("canplay",this._videoPlayerReady))):this.videoPlayerError(a)}},i.prototype.videoPlayerError=function(e){e.remove()},i.prototype.videoPlayerReady=function(t){t[0].removeEventListener("canplay",this._videoPlayerReady),t.data("ratio",t[0].videoWidth/t[0].videoHeight),t.addClass("n2-active"),this.slider.ready(e.proxy(function(){this.slider.sliderElement.on("SliderResize",e.proxy(this.resizeVideo,this,t)),this.resizeVideo(t)},this))},i.prototype.resizeVideo=function(e){var t=e.data("mode"),i=e.data("ratio"),n=this.slider.dimensions.slideouter||this.slider.dimensions.slide,s=n.width/n.height;"fill"===t?s>i?e.css({width:"100%",height:"auto"}):e.css({width:"auto",height:"100%"}):"fit"===t&&(i>s?e.css({width:"100%",height:"auto"}):e.css({width:"auto",height:"100%"})),e.css("marginTop",0).css(n2const.rtl.marginLeft,0),this.center(e)},i.prototype.center=function(e){var t=e.parent();e.css({marginTop:parseInt((t.height()-e.height())/2)}),e.css(n2const.rtl.marginLeft,parseInt((t.width()-e.width())/2))},i}),N2D("SmartSliderSimple",["SmartSliderAbstract"],function(e,t){function i(t,i){this.type="simple",N2Classes.SmartSliderAbstract.prototype.constructor.call(this,t,e.extend({bgAnimations:0,carousel:1},i))}return i.prototype=Object.create(N2Classes.SmartSliderAbstract.prototype),i.prototype.constructor=i,i.prototype.__initSlides=function(){1!==this.parameters.mainanimation.parallax&&(this.needBackgroundWrap=!0),N2Classes.SmartSliderAbstract.prototype.__initSlides.apply(this,arguments)},i.prototype.initResponsiveMode=function(){this.responsive=new N2Classes.SmartSliderResponsiveSimple(this,this.parameters.responsive),this.responsive.start(),N2Classes.SmartSliderAbstract.prototype.initResponsiveMode.call(this),this.$backgroundsContainer=this.sliderElement.find(".n2-ss-slide-backgrounds")},i.prototype.initMainAnimation=function(){nModernizr.csstransforms3d&&nModernizr.csstransformspreserve3d&&this.parameters.bgAnimations?this.mainAnimation=new N2Classes.SmartSliderFrontendBackgroundAnimation(this,this.parameters.mainanimation,this.parameters.bgAnimations):this.mainAnimation=new N2Classes.SmartSliderMainAnimationSimple(this,this.parameters.mainanimation),this.pJS=!1,this.parameters.particlejs&&N2R("particlesJS",e.proxy(function(){this.startParticleJS(this.parameters.particlejs)},this))},i.prototype.afterRawSlidesReady=function(){if(this.parameters.postBackgroundAnimations&&this.parameters.postBackgroundAnimations.slides){for(var e=0;e