N2Require("SmartSliderMainAnimationSimple",["SmartSliderMainAnimationAbstract"],[],function(e,t,i){function n(i,n){switch(this.postBackgroundAnimation=!1,this._currentBackgroundAnimation=!1,this.reverseSlideIndex=null,n=e.extend({delay:0,parallax:.45,type:"horizontal",shiftedBackgroundAnimation:"auto"},n),n.delay/=1e3,t.SmartSliderMainAnimationAbstract.prototype.constructor.apply(this,arguments),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":1==this.parameters.parallax?this.animation=this._mainAnimationVertical:this.animation=this._mainAnimationVerticalParallax;break;case"vertical-reversed":1==this.parameters.parallax?this.animation=this._mainAnimationVerticalReversed:this.animation=this._mainAnimationVerticalReversedParallax;break;case"horizontal-reversed":1==this.parameters.parallax?this.animation=this._mainAnimationHorizontalReversed:this.animation=this._mainAnimationHorizontalReversedParallax;break;default:1==this.parameters.parallax?this.animation=this._mainAnimationHorizontal:this.animation=this._mainAnimationHorizontalParallax}}return n.prototype=Object.create(t.SmartSliderMainAnimationAbstract.prototype),n.prototype.constructor=n,n.prototype.setToStarterSlide=function(e){this.setActiveSlide(e)},n.prototype.changeTo=function(e,i,n,a){this.postBackgroundAnimation&&this.postBackgroundAnimation.prepareToSwitchSlide(e,i),t.SmartSliderMainAnimationAbstract.prototype.changeTo.apply(this,arguments)},n.prototype.setActiveSlide=function(e){for(var t=0;tg?g=this.slider.parameters.carousel?this.slider.slides.length-1:t.index:g>=this.slider.slides.length&&(g=this.slider.parameters.carousel?0:t.index),g!=i.index){if(g!=t.index){this.reverseSlideIndex=g,this.enableReverseMode();var A=this.slider.slides[g];"vertical"==n&&this._showSlide(A),A.$element.css(o,s);var y={},k={ease:this.getEase()},f={},S={ease:this.getEase()};k[o]=0,y[o]=-s,S[o]=s,f[o]=0,A.$element.trigger("mainAnimationStartIn",[this,t.index,A.index,!1]),this.reverseTimeline.paused(!0),this.reverseTimeline.eventCallback("onComplete",this.onBackwardChangeToComplete,[t,A,!1],this),this.reverseTimeline.fromTo(A.$element.get(0),h.inDuration,y,k,h.inDelay),A.backgroundImage&&this.reverseTimeline.fromTo(A.backgroundImage.element,h.inDuration,y,k,h.inDelay),this.reverseTimeline.fromTo(t.$element.get(0),h.inDuration,f,S,h.inDelay),t.backgroundImage&&this.reverseTimeline.fromTo(t.backgroundImage.element,h.inDuration,f,S,h.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 a=this.slider.slides[i],r=this.slider.slides[n];r.$element.css("zIndex","").css(o,""),r.backgroundImage&&r.backgroundImage.element.css("zIndex","").css(o,""),a.$element.css("zIndex","").css(d,""),a.backgroundImage&&a.backgroundImage.element.css("zIndex","").css(d,"")},this))},n.prototype.getExtraDelay=function(){return 0},n.prototype.adjustMainAnimation=function(){var e=this.parameters.duration,t=this.parameters.delay,i=this.timeline.totalDuration(),n=this.getExtraDelay();if(i>0){var a=e+t;if(!(a>i))return{inDuration:e,outDuration:e,inDelay:i-e,outDelay:n,extraDelay:n};e=e*i/a,t=t*i/a,n>t&&(e-=n-t,t=n)}else t+=n;return{inDuration:e,outDuration:e,inDelay:t,outDelay:t,extraDelay:n}},n.prototype.hasBackgroundAnimation=function(){return!1},n}),N2Require("SmartSliderFrontendBackgroundAnimation",["SmartSliderMainAnimationSimple"],[],function(e,t,i){function n(i,n,a){this._currentBackgroundAnimation=!1,t.SmartSliderMainAnimationSimple.prototype.constructor.call(this,i,n),this.isReverseAllowed=!1,this.bgAnimationElement=this.sliderElement.find(".n2-ss-background-animation"),this.backgroundAnimations=e.extend({global:0,speed:"normal"},a),this.backgroundImages=i.backgroundImages.getBackgroundImages(),i.backgroundImages.hack()}return n.prototype=Object.create(t.SmartSliderMainAnimationSimple.prototype),n.prototype.constructor=n,n.prototype.getBackgroundAnimation=function(e,t){if(t.hasBackgroundVideo()||e.hasBackgroundVideo())return!1;var i=this.backgroundAnimations.global,n=this.backgroundAnimations.speed;if(t.backgroundAnimation){var a=t.backgroundAnimation;i=a.animation,n=a.speed}return i?[i[Math.floor(Math.random()*i.length)],n]:!1},n.prototype._initAnimation=function(i,n,a){this._currentBackgroundAnimation=!1;var r=i.backgroundImage,o=n.backgroundImage;if(r&&o){var s=this.getBackgroundAnimation(i,n);if(s!==!1){var d=1;switch(s[1]){case"superSlow":d=3;break;case"slow":d=1.5;break;case"fast":d=.75;break;case"superFast":d=.5}return this._currentBackgroundAnimation=new t["SmartSliderBackgroundAnimation"+s[0].type](this,r.element,o.element,s[0],d,a),t.SmartSliderMainAnimationSimple.prototype._initAnimation.apply(this,arguments),this._currentBackgroundAnimation.postSetup(),void this.timeline.set(e("
"),{opacity:1,onComplete:e.proxy(function(){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.ended(),this._currentBackgroundAnimation=!1)},this)})}}t.SmartSliderMainAnimationSimple.prototype._initAnimation.apply(this,arguments)},n.prototype.onChangeToComplete=function(e,i){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.ended(),this._currentBackgroundAnimation=!1),t.SmartSliderMainAnimationSimple.prototype.onChangeToComplete.apply(this,arguments)},n.prototype.onReverseChangeToComplete=function(e,i,n){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.revertEnded(),this._currentBackgroundAnimation=!1),t.SmartSliderMainAnimationSimple.prototype.onReverseChangeToComplete.apply(this,arguments)},n.prototype.getExtraDelay=function(){return this._currentBackgroundAnimation?this._currentBackgroundAnimation.getExtraDelay():0},n.prototype.hasBackgroundAnimation=function(){return this._currentBackgroundAnimation},n}),N2Require("SmartSliderResponsiveSimple",["SmartSliderResponsive"],[],function(e,t,i){function n(){this.round=1,t.SmartSliderResponsive.prototype.constructor.apply(this,arguments)}return n.prototype=Object.create(t.SmartSliderResponsive.prototype),n.prototype.constructor=n,n.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.backgroundImages.getBackgroundImages(),a=0;a0?this.videoPlayerReady(r):(r[0].addEventListener("error",e.proxy(this.videoPlayerError,this,r),!0),r[0].addEventListener("canplay",e.proxy(this.videoPlayerReady,this,r))))},n.prototype.videoPlayerError=function(e){e.remove()},n.prototype.videoPlayerReady=function(t){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))},n.prototype.resizeVideo=function(e){var t=e.data("mode"),i=e.data("ratio"),n=this.slider.dimensions.slideouter||this.slider.dimensions.slide,a=n.width/n.height;"fill"==t?a>i?e.css({width:"100%",height:"auto"}):e.css({width:"auto",height:"100%"}):"fit"==t&&(i>a?e.css({width:"100%",height:"auto"}):e.css({width:"auto",height:"100%"})),e.css("marginTop",0).css(nextend.rtl.marginLeft,0),this.center(e)},n.prototype.center=function(e){var t=e.parent();e.css({marginTop:parseInt((t.height()-e.height())/2)}),e.css(nextend.rtl.marginLeft,parseInt((t.width()-e.width())/2))},n}),N2Require("SmartSliderSimple",["SmartSliderAbstract"],[],function(e,t,i){function n(i,n){this.type="simple",t.SmartSliderAbstract.prototype.constructor.call(this,i,e.extend({bgAnimations:0,carousel:1},n))}return n.prototype=Object.create(t.SmartSliderAbstract.prototype),n.prototype.constructor=n,n.prototype.initResponsiveMode=function(){this.responsive=new t.SmartSliderResponsiveSimple(this,this.parameters.responsive),this.responsive.start(),t.SmartSliderAbstract.prototype.initResponsiveMode.call(this),this.$backgroundsContainer=this.sliderElement.find(".n2-ss-slide-backgrounds")},n.prototype.initMainAnimation=function(){nModernizr.csstransforms3d&&nModernizr.csstransformspreserve3d&&this.parameters.bgAnimations?this.mainAnimation=new t.SmartSliderFrontendBackgroundAnimation(this,this.parameters.mainanimation,this.parameters.bgAnimations):this.mainAnimation=new t.SmartSliderMainAnimationSimple(this,this.parameters.mainanimation)},n.prototype.afterRawSlidesReady=function(){if(this.parameters.postBackgroundAnimations&&this.parameters.postBackgroundAnimations.slides){for(var e=0;e