<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">!function(e,t,i){function s(t){this.device=null,this.load=e.Deferred(),this.slider=t,this.slides=this.slider.realSlides,this.loaded=[],this.lazyLoad=t.parameters.lazyLoad,this.lazyLoadNeighbor=t.parameters.lazyLoadNeighbor,this.deviceDeferred=e.Deferred(),this.backgroundImages=[];for(var i=0;i&lt;this.slides.length;i++){this.loaded[i]=!1;var s=this.slides.eq(i).find(".n2-ss-slide-background");s.length&gt;0?this.backgroundImages[i]=new n(i,s,this):this.backgroundImages[i]=!1,this.slides.eq(i).data("slideBackground",this.backgroundImages[i])}this.slider.sliderElement.one("SliderDevice",e.proxy(this.onSlideDeviceChangedFirst,this))}function n(t,i,s){this.responsiveElement=!1,this.loadStarted=!1,this.i=t,this.element=i,this.manager=s,this.loadDeferred=e.Deferred();var n=i.find(".n2-ss-slide-background-image");if(this.image=n,n.hasClass("n2-ss-slide-simple"))this.mode="simple",this.currentSrc=n.attr("src");else if(n.hasClass("n2-ss-slide-fill"))this.mode="fill",this.currentSrc=n.attr("src");else if(n.hasClass("n2-ss-slide-fit"))this.mode="fit",this.currentSrc=n.attr("src");else if(n.hasClass("n2-ss-slide-stretch"))this.mode="stretch",this.currentSrc=n.attr("src");else if(n.hasClass("n2-ss-slide-center")){this.mode="center";var r=n.css("backgroundImage").match(/url\(["]*([^)"]+)["]*\)/i);r.length&gt;0&amp;&amp;(this.currentSrc=r[1])}else if(n.hasClass("n2-ss-slide-tile")){this.mode="tile";var r=n.css("backgroundImage").match(/url\(["]*([^)"]+)["]*\)/i);r.length&gt;0&amp;&amp;(this.currentSrc=r[1])}else if(n.hasClass("n2-ss-slide-fixed")&amp;&amp;!(n2const.isPhone&amp;&amp;!this.manager.slider.parameters["background.parallax.mobile"]||n2const.isTablet&amp;&amp;!this.manager.slider.parameters["background.parallax.tablet"])){this.mode="fixed";var r=n.css("backgroundImage").match(/url\(["]*([^)"]+)["]*\)/i);r.length&gt;0&amp;&amp;(this.currentSrc=r[1])}else this.mode="fill",this.currentSrc="";if(this.x=n.data("x"),this.y=n.data("y"),this.hash=i.data("hash"),this.desktopSrc=i.data("desktop")||"",this.tabletSrc=i.data("tablet")||"",this.mobileSrc=i.data("mobile")||"",nextend.isRetina){var a=i.data("desktop-retina");a&amp;&amp;(this.desktopSrc=a),a=i.data("tablet-retina"),a&amp;&amp;(this.tabletSrc=a),a=i.data("mobile-retina"),a&amp;&amp;(this.mobileSrc=a)}var o=i.data("opacity");o&gt;=0&amp;&amp;1&gt;o&amp;&amp;(this.opacity=o),s.slider.isAdmin&amp;&amp;(this._change=this.change,this.change=this.changeAdmin),this.listenImageManager()}s.prototype.whenWithProgress=function(t){for(var i=0,s=e.Deferred(),n=0;n&lt;t.length;n++)t[n].done(function(){s.notify(++i,t.length)});return e.when.apply(e,t).done(function(){s.resolveWith(null,arguments)}),s.promise()},s.prototype.getBackgroundImages=function(){return this.backgroundImages},s.prototype.onSlideDeviceChangedFirst=function(t,i){this.onSlideDeviceChanged(t,i),this.deviceDeferred.resolve(),this.slider.sliderElement.on("SliderDevice",e.proxy(this.onSlideDeviceChanged,this)),1==this.lazyLoad?(this.preLoad=this.preLoadLazyNeighbor,this.load=e.when(this.preLoad(this.slider.currentSlideIndex))):2==this.lazyLoad?(e(window).load(e.proxy(this.preLoadAll,this)),this.load=e.when(this.preLoad(this.slider.currentSlideIndex))):this.load=this.whenWithProgress(this.preLoadAll())},s.prototype.onSlideDeviceChanged=function(e,t){this.device=t;for(var i=0;i&lt;this.backgroundImages.length;i++)this.backgroundImages[i]&amp;&amp;this.backgroundImages[i].onSlideDeviceChanged(t)},s.prototype.changed=function(e){1==this.lazyLoad||2==this.lazyLoad?e==this.slider.currentSlideIndex&amp;&amp;this.preLoad(e):this.preLoad(e)},s.prototype.preLoadCurrent=function(){this.preLoad(this.slider.currentSlideIndex)},s.prototype.preLoadAll=function(){for(var e=[],t=0;t&lt;this.backgroundImages.length;t++)e.push(this._preLoad(t));return e},s.prototype.preLoad=function(e){return this._preLoad(e)},s.prototype.preLoadLazyNeighbor=function(t){var i=this.lazyLoadNeighbor,s=[this._preLoad(t)];if(i){for(var n=0,r=t;i&gt;n;)r--,0&gt;r&amp;&amp;(r=this.backgroundImages.length-1),s.push(this._preLoad(r)),n++;for(n=0,r=t;i&gt;n;)r++,r&gt;=this.backgroundImages.length&amp;&amp;(r=0),s.push(this._preLoad(r)),n++}var a=e.Deferred();if(1!=s[0].state()&amp;&amp;"resolved"!=s[0].state()){var o=setTimeout(e.proxy(function(){this.slider.load.showSpinner("backgroundImage"+t),o=null},this),50);e.when.apply(e,s).done(e.proxy(function(){o?(clearTimeout(o),o=null):this.slider.load.removeSpinner("backgroundImage"+t),setTimeout(function(){a.resolve()},100)},this))}else setTimeout(function(){a.resolve()},100);return a},s.prototype._preLoad=function(t){return this.loaded[t]||(this.slides.eq(t).find("[data-lazysrc]").each(function(){var t=e(this);t.attr("src",t.data("lazysrc"))}),this.loaded[t]=!0),this.backgroundImages[t]?this.backgroundImages[t].preLoad():!0},s.prototype.hack=function(){for(var e=0;e&lt;this.backgroundImages.length;e++)this.backgroundImages[e]&amp;&amp;this.backgroundImages[e].hack()},t.NextendSmartSliderBackgroundImages=s,n.prototype.fixNatural=function(e){var t=new Image;t.src=e.src,e.naturalWidth=t.width,e.naturalHeight=t.height},n.prototype.preLoad=function(){return"pending"==this.loadDeferred.state()&amp;&amp;(this.loadStarted=!0,this.manager.deviceDeferred.done(e.proxy(function(){this.onSlideDeviceChanged(this.manager.device),this.element.n2imagesLoaded(e.proxy(function(){this.isLoaded=!0;var e=this.image[0];"IMG"==e.tagName&amp;&amp;"undefined"==typeof e.naturalWidth&amp;&amp;this.fixNatural(e),this.loadDeferred.resolve(this.element)},this))},this))),this.loadDeferred},n.prototype.afterLoaded=function(){return e.when(this.loadDeferred,this.manager.slider.responsive.ready)},n.prototype.onSlideDeviceChanged=function(e){var t=this.desktopSrc;"mobile"==e.device?this.mobileSrc?t=this.mobileSrc:this.tabletSrc&amp;&amp;(t=this.tabletSrc):"tablet"==e.device&amp;&amp;this.tabletSrc&amp;&amp;(t=this.tabletSrc),this.change(t,"",this.mode,this.x,this.y)},n.prototype.addResponsiveElement=function(e){this.responsiveElement=e},n.prototype.listenImageManager=function(){""!=this.hash&amp;&amp;e(window).on(this.hash,e.proxy(this.onImageManagerChanged,this))},n.prototype.notListenImageManager=function(){""!=this.hash&amp;&amp;e(window).off(this.hash,null,e.proxy(this.onImageManagerChanged,this))},n.prototype.onImageManagerChanged=function(e,t){this.tabletSrc=t.tablet.image,this.mobileSrc=t.mobile.image,"tablet"!=this.manager.device.device&amp;&amp;"mobile"!=this.manager.device.device||this.onSlideDeviceChanged(this.manager.device)},n.prototype.changeDesktop=function(t,i,s,n,r){if(this.notListenImageManager(),this.desktopSrc=t,this.hash=md5(t),"default"==s&amp;&amp;(s=nextend.smartSlider.slideBackgroundMode),this.change(t,i,s,n,r),""!=t){var a=new Image;a.addEventListener("load",e.proxy(function(){e.when(nextend.imageManager.getVisual(t)).done(e.proxy(function(e){this.onImageManagerChanged(null,e.value),this.listenImageManager()},this))},this),!1),a.src=nextend.imageHelper.fixed(t)}else this.tabletSrc="",this.mobileSrc=""},n.prototype.changeAdmin=function(e,t,i,s,n){this.manager.slider.parameters.dynamicHeight&amp;&amp;(i="simple"),this._change(nextend.imageHelper.fixed(e),t,i,s,n)},n.prototype.change=function(t,i,s,n,r){if(n=parseInt(n),r=parseInt(r),isNaN(n)&amp;&amp;(n=50),n=Math.max(0,Math.min(100,n)),isNaN(r)&amp;&amp;(r=50),r=Math.max(0,Math.min(100,r)),(this.currentSrc!=t||this.mode!=s||this.x!=n||this.y!=r)&amp;&amp;this.loadStarted){var a=null;switch(s){case"simple":a=e('&lt;img data-x="'+n+'" data-y="'+r+'" src="'+t+'" class="n2-ss-slide-background-image n2-ss-slide-simple" /&gt;');break;case"fill":a=e('&lt;img data-x="'+n+'" data-y="'+r+'" src="'+t+'" class="n2-ss-slide-background-image n2-ss-slide-fill" /&gt;'),this.responsiveElement.setCentered();break;case"fit":a=e('&lt;img data-x="'+n+'" data-y="'+r+'" src="'+t+'" class="n2-ss-slide-background-image n2-ss-slide-fit" /&gt;'),this.responsiveElement.setCentered();break;case"stretch":a=e('&lt;img data-x="'+n+'" data-y="'+r+'" src="'+t+'" class="n2-ss-slide-background-image n2-ss-slide-stretch" /&gt;'),this.responsiveElement.unsetCentered();break;case"center":a=e("&lt;div style=\"background-image: url('"+t+"');background-position:"+n+"% "+r+'%;" class="n2-ss-slide-background-image n2-ss-slide-center"&gt;&lt;/div&gt;'),this.responsiveElement.unsetCentered();break;case"tile":a=e("&lt;div style=\"background-image: url('"+t+"');background-position:"+n+"% "+r+'%;" class="n2-ss-slide-background-image n2-ss-slide-tile"&gt;&lt;/div&gt;'),this.responsiveElement.unsetCentered()}switch(""==t&amp;&amp;a.css("display","none"),a.css("opacity",this.opacity),this.image.replaceWith(a).remove(),this.responsiveElement.element=this.image=a,this.currentSrc=t,this.mode=s,this.x=n,this.y=r,"pending"==this.loadDeferred.state()&amp;&amp;this.loadDeferred.resolve(),this.loadDeferred=e.Deferred(),this.manager.changed(this.i),s){case"fill":case"fit":this.afterLoaded().done(e.proxy(function(){this.responsiveElement.afterLoaded(),this.responsiveElement.refreshRatio(),this.responsiveElement._refreshResize()},this));break;case"stretch":case"center":case"tile":case"fixed":case"simple":this.responsiveElement._refreshResize()}}},n.prototype.setOpacity=function(e){this.opacity=e,this.image.css("opacity",e)},n.prototype.hack=function(){NextendTween.set(this.element,{rotation:1e-4})},t.NextendSmartSliderBackgroundImage=n}(n2,window),function(e,t,i){function s(t,i){this.smartSlider=t,this.spinnerKey="fadePlaceholder",this.id=t.sliderElement.attr("id"),this.parameters=e.extend({fade:1,scroll:0},i),this.spinner=e("#"+this.id+"-spinner"),this.deferred=e.Deferred()}s.prototype.start=function(){if(this.parameters.scroll){var t=e(window);t.on("scroll."+this.id,e.proxy(this.onScroll,this)),this.onScroll()}else if(this.parameters.fade){this.loadingArea=e("#"+this.id+"-placeholder").eq(0),this.showSpinner("fadePlaceholder");var i=this.spinner.find(".n2-ss-spinner-counter");i.length&amp;&amp;this.smartSlider.backgroundImages.load.progress(e.proxy(function(e,t){i.html(Math.round(e/(t+1)*100)+"%")},this)),e.when(this.smartSlider.responsive.ready,this.smartSlider.backgroundImages.load).done(e.proxy(this.showSlider,this))}else this.smartSlider.responsive.ready.done(e.proxy(function(){this.showSlider()},this))},s.prototype.onScroll=function(){var t=e(window);t.scrollTop()+t.height()&gt;this.smartSlider.sliderElement.offset().top+100&amp;&amp;(e.when(this.smartSlider.responsive.ready,this.smartSlider.backgroundImages.load).done(e.proxy(this.showSlider,this)),t.off("scroll."+this.id))},s.prototype.showSlider=function(t){e.when.apply(e,this.smartSlider.widgetDeferreds).done(e.proxy(function(){this.smartSlider.responsive.doResize(),this.smartSlider.sliderElement.trigger("BeforeVisible"),this.smartSlider.sliderElement.addClass("n2-ss-loaded").removeClass("n2notransition"),this.removeSpinner("fadePlaceholder"),e("#"+this.id+"-placeholder").remove(),this.loadingArea=this.smartSlider.sliderElement,"function"==typeof t?t(this.deferred):this.deferred.resolve()},this))},s.prototype.loaded=function(e){this.deferred.done(e)},s.prototype.showSpinner=function(e){this.spinnerKey=e,this.spinner.appendTo(this.loadingArea).css("display","")},s.prototype.removeSpinner=function(e){this.spinnerKey==e&amp;&amp;(this.spinner.detach(),this.spinnerKey="")},t.NextendSmartSliderLoad=s}(n2,window),function(e,t,i){function s(){this.sliders={},this.readys={},this._resetCounters=[]}s.prototype.makeReady=function(e,t){if(this.sliders[e]=t,"undefined"!=typeof this.readys[e])for(var i=0;i&lt;this.readys[e].length;i++)this.readys[e][i].call(t,t,t.sliderElement)},s.prototype.ready=function(e,t){"undefined"!=typeof this.sliders[e]?t.call(this.sliders[e],this.sliders[e],this.sliders[e].sliderElement):("undefined"==typeof this.readys[e]&amp;&amp;(this.readys[e]=[]),this.readys[e].push(t))},s.prototype.trigger=function(t,i){var s=n2(t),n=i.split(","),r=s.closest(".n2-ss-slide,.n2-ss-static-slide");if(n.length&gt;1){-1==e.inArray(t,this._resetCounters)&amp;&amp;(this._resetCounters.push(t),r.on("layerAnimationSetStart.resetCounter",function(){s.data("eventCounter",0)}));var a=s.data("eventCounter")||0;i=n[a],a++,a&gt;n.length-1&amp;&amp;(a=0),s.data("eventCounter",a)}r.triggerHandler(i)},s.prototype.applyAction=function(e,t){var i=n2(e).closest(".n2-ss-slider").data("ss");i[t].apply(i,Array.prototype.slice.call(arguments,2))},window.n2ss=new s}(n2,window),function($,scope,undefined){function NextendSmartSliderAbstract(e,t){this.startedDeferred=$.Deferred(),e instanceof n2&amp;&amp;(e="#"+e.attr("id"));var i=e.substr(1);return window[i]&amp;&amp;window[i]instanceof NextendSmartSliderAbstract?!1:(window[i]=this,this.readyDeferred=$.Deferred(),void $(e).n2waitUntilExists(e,$.proxy(function(){var s=$(e);if(this.nextCarousel=this.next,this.previousCarousel=this.previous,"SCRIPT"==s.prop("tagName")){var n=s.data("dependency"),r=s.data("delay"),a=$.proxy(function(){var n=$(s.html().replace(/&lt;_s_c_r_i_p_t/g,"&lt;script").replace(/&lt;_\/_s_c_r_i_p_t/g,"&lt;/script"));s.replaceWith(n),this.postInit(i,$(e),t),$(window).triggerHandler("n2Rocket",[this.sliderElement])},this);n&amp;&amp;$("#n2-ss-"+n).length?n2ss.ready(n,$.proxy(function(e){e.ready(a)},this)):r?setTimeout(a,r):a()}else this.postInit(i,s,t)},this),!0))}NextendSmartSliderAbstract.prototype.postInit=function(e,t,i){i.isDelayed?setTimeout($.proxy(this._postInit,this,e,t,i),200):this._postInit(e,t,i)},NextendSmartSliderAbstract.prototype._postInit=function(e,t,i){var s=t.is(":visible");s?this.__postInit(e,t,i):setTimeout($.proxy(this._postInit,this,e,t,i),200)},NextendSmartSliderAbstract.prototype.__postInit=function(id,sliderElement,parameters){this.killed=!1,this.isAdmin=!1,this.currentSlideIndex=0,this.responsive=!1,this.layerMode=!0,this._lastChangeTime=0,this.id=parseInt(id.replace("n2-ss-","")),this.sliderElement=sliderElement.data("ss",this),this.parameters=$.extend({admin:!1,playWhenVisible:1,isStaticEdited:!1,callbacks:"",autoplay:{},blockrightclick:!1,maintainSession:0,align:"normal",controls:{drag:!1,touch:"horizontal",keyboard:!1,scroll:!1,tilt:!1},hardwareAcceleration:!0,layerMode:{playOnce:0,playFirstLayer:1,mode:"skippable",inAnimation:"mainInEnd"},foreverLayerAnimation:!1,parallax:{enabled:0,mobile:0,horizontal:"mouse",vertical:"mouse",origin:"enter"},load:{},mainanimation:{},randomize:{randomize:0,randomizeFirst:0},responsive:{},lazyload:{enabled:0},postBackgroundAnimations:!1,initCallbacks:[],dynamicHeight:0,lightbox:[],lightboxDeviceImages:[],titles:[],descriptions:[],"background.parallax.tablet":0,"background.parallax.mobile":0,allowBGImageAttachmentFixed:1},parameters);try{eval(this.parameters.callbacks)}catch(e){console.error(e)}this.startVisibilityCheck(),n2ss.makeReady(this.id,this),this.widgetDeferreds=[],this.sliderElement.on("addWidget",$.proxy(this.addWidget,this)),this.isAdmin=!!this.parameters.admin,this.isAdmin&amp;&amp;(this.changeTo=function(){}),this.load=new NextendSmartSliderLoad(this,this.parameters.load),this.findSlides(),this.randomize(),this.currentSlideIndex=this.__getActiveSlideIndex();var forceActiveSlideIndex="undefined"!=typeof window["ss"+this.id]?parseInt(window["ss"+this.id]):null;if(null!==forceActiveSlideIndex&amp;&amp;this.changeActiveBeforeLoad(forceActiveSlideIndex),!this.isAdmin&amp;&amp;this.parameters.maintainSession&amp;&amp;"undefined"!=typeof sessionStorage){var sessionIndex=parseInt(sessionStorage.getItem("ss-"+this.id));null===forceActiveSlideIndex&amp;&amp;null!==sessionIndex&amp;&amp;this.changeActiveBeforeLoad(sessionIndex),this.sliderElement.on("mainAnimationComplete",$.proxy(function(e,t,i,s){sessionStorage.setItem("ss-"+this.id,s)},this))}this.backgroundImages=new NextendSmartSliderBackgroundImages(this);for(var i=0;i&lt;this.parameters.initCallbacks.length;i++)new Function(this.parameters.initCallbacks[i])(this);if(this.initSlides(),this.widgets=new NextendSmartSliderWidgets(this),this.sliderElement.on("universalenter",$.proxy(function(){this.sliderElement.addClass("n2-hover")},this)).on("universalleave",$.proxy(function(e){e.stopPropagation(),this.sliderElement.removeClass("n2-hover")},this)),this.controls={},this.layerMode&amp;&amp;this.initMainAnimationWithLayerAnimation(),this.parameters.blockrightclick&amp;&amp;this.sliderElement.bind("contextmenu",function(e){e.preventDefault()}),this.initMainAnimation(),this.initResponsiveMode(),!this.killed){if(this.initControls(),this.startedDeferred.resolve(this),!this.isAdmin){var event="click";"0"!=this.parameters.controls.touch&amp;&amp;this.parameters.controls.touch&amp;&amp;(event="n2click"),this.sliderElement.find("[data-n2click]").each(function(i,el){var el=$(el);el.on(event,function(){eval(el.data("n2click"))})}),this.sliderElement.find("[data-click]").each(function(i,el){var el=$(el).on("click",function(){eval(el.data("click"))}).css("cursor","pointer")}),this.sliderElement.find("[data-n2middleclick]").on("mousedown",function(e){var el=$(this);2!=e.which&amp;&amp;4!=e.which||(e.preventDefault(),eval(el.data("n2middleclick")))}),this.sliderElement.find("[data-mouseenter]").each(function(i,el){var el=$(el).on("mouseenter",function(){eval(el.data("mouseenter"))})}),this.sliderElement.find("[data-mouseleave]").each(function(i,el){var el=$(el).on("mouseleave",function(){eval(el.data("mouseleave"))})}),this.sliderElement.find("[data-play]").each(function(i,el){var el=$(el).on("n2play",function(){eval(el.data("play"))})}),this.sliderElement.find("[data-pause]").each(function(i,el){var el=$(el).on("n2pause",function(){eval(el.data("pause"))})}),this.sliderElement.find("[data-stop]").each(function(i,el){var el=$(el).on("n2stop",function(){eval(el.data("stop"))})});var preventFocus=!1;this.slides.find("a").on("mousedown",function(e){preventFocus=!0,setTimeout(function(){preventFocus=!1},100)}),this.slides.find("a").on("focus",$.proxy(function(e){if(!preventFocus){var t=this.findSlideIndexByElement(e.currentTarget);-1!=t&amp;&amp;t!=this.currentSlideIndex&amp;&amp;this.changeTo(t,!1,!1)}},this))}this.preReadyResolve(),this.initCarousel(),this.sliderElement.find('[role="button"]').keypress(function(e){32!==event.keyCode&amp;&amp;13!==event.keyCode||(event.preventDefault(),$(event.target).click())})}},NextendSmartSliderAbstract.prototype.initSlides=function(){if(this.layerMode){if(this.isAdmin&amp;&amp;"showcase"!=this.type)new NextendSmartSliderSlide(this,this.slides.eq(this.currentSlideIndex),1);else for(var e=0;e&lt;this.slides.length;e++)new NextendSmartSliderSlide(this,this.slides.eq(e),this.currentSlideIndex==e);var t=this.findStaticSlide();t.length&amp;&amp;new NextendSmartSliderSlide(this,t,!0,!0)}},NextendSmartSliderAbstract.prototype.getRealIndex=function(e){return e},NextendSmartSliderAbstract.prototype.changeActiveBeforeLoad=function(e){e&gt;0&amp;&amp;e&lt;this.slides.length&amp;&amp;this.currentSlideIndex!=e&amp;&amp;(this.unsetActiveSlide(this.slides.eq(this.currentSlideIndex)),this.setActiveSlide(this.slides.eq(e)),this.currentSlideIndex=e,this.ready($.proxy(function(){this.sliderElement.trigger("sliderSwitchTo",[e,this.getRealIndex(e)])},this)))},NextendSmartSliderAbstract.prototype.kill=function(){this.killed=!0,$("#"+this.sliderElement.attr("id")+"-placeholder").remove(),this.sliderElement.closest(".n2-ss-align").remove()},NextendSmartSliderAbstract.prototype.randomize=function(){this.parameters.randomize.randomizeFirst&amp;&amp;(this.slides.filter(".n2-ss-slide-active").removeClass("n2-ss-slide-active"),this.slides.eq(Math.floor(Math.random()*this.slides.length)).addClass("n2-ss-slide-active")),this.parameters.randomize.randomize&amp;&amp;this.shuffleSlides()},NextendSmartSliderAbstract.prototype.shuffleSlides=function(){this.slides.sort(function(){return Math.round(Math.random())-.5}),this.slides.appendTo(this.slides.parent()),this.shuffled=[];for(var e=0;e&lt;this.slides.length;e++)this.shuffled[e]=this.slides.eq(e).data("originalIndex");if(this.parameters.postBackgroundAnimations&amp;&amp;this.parameters.postBackgroundAnimations.slides){for(var t=[],e=0;e&lt;this.shuffled.length;e++)t.push(this.parameters.postBackgroundAnimations.slides[this.shuffled[e]]);this.parameters.postBackgroundAnimations.slides=t}if(this.parameters.bgAnimations&amp;&amp;this.parameters.bgAnimations.slides){for(var i=[],e=0;e&lt;this.shuffled.length;e++)i.push(this.parameters.bgAnimations.slides[this.shuffled[e]]);this.parameters.bgAnimations.slides=i}},NextendSmartSliderAbstract.prototype.findSlides=function(){this.realSlides=this.slides=this.sliderElement.find(".n2-ss-slide");for(var e=0;e&lt;this.realSlides.length;e++)this.realSlides.eq(e).data("originalIndex",e)},NextendSmartSliderAbstract.prototype.findStaticSlide=function(){return this.sliderElement.find(".n2-ss-static-slide")},NextendSmartSliderAbstract.prototype.addWidget=function(e,t){this.widgetDeferreds.push(t)},NextendSmartSliderAbstract.prototype.started=function(e){this.startedDeferred.done($.proxy(e,this))},NextendSmartSliderAbstract.prototype.preReadyResolve=function(){setTimeout($.proxy(this._preReadyResolve,this),1)},NextendSmartSliderAbstract.prototype._preReadyResolve=function(){this.load.start(),this.load.loaded($.proxy(this.readyResolve,this))},NextendSmartSliderAbstract.prototype.readyResolve=function(){$(window).scroll(),this.readyDeferred.resolve()},NextendSmartSliderAbstract.prototype.ready=function(e){this.readyDeferred.done($.proxy(e,this))},NextendSmartSliderAbstract.prototype.startVisibilityCheck=function(){this.visibleDeferred=$.Deferred(),this.parameters.playWhenVisible?this.ready($.proxy(function(){$(window).on("scroll.n2-ss-visible"+this.id+" resize.n2-ss-visible"+this.id,$.proxy(this.checkIfVisible,this)),this.checkIfVisible()},this)):this.ready($.proxy(function(){this.visibleDeferred.resolve()},this))},NextendSmartSliderAbstract.prototype.checkIfVisible=function(){var e=$(window).scrollTop(),t=e+$(window).height(),i=this.sliderElement.offset().top+this.sliderElement.height()/2;i&gt;=e&amp;&amp;t&gt;=i&amp;&amp;($(window).off("scroll.n2-ss-visible"+this.id+" resize.n2-ss-visible"+this.id,$.proxy(this.checkIfVisible,this)),this.visibleDeferred.resolve())},NextendSmartSliderAbstract.prototype.visible=function(e){this.visibleDeferred.done($.proxy(e,this))},NextendSmartSliderAbstract.prototype.isPlaying=function(){return"ended"!=this.mainAnimation.getState()},NextendSmartSliderAbstract.prototype.focus=function(e){var t=$.Deferred();if("undefined"==typeof e&amp;&amp;(e=0),this.responsive.parameters.focusUser&amp;&amp;!e||this.responsive.parameters.focusAutoplay&amp;&amp;e){var i=this.sliderElement.offset().top-(this.responsive.verticalOffsetSelectors.height()||0);$(window).scrollTop()!=i?$("html, body").animate({scrollTop:i},400,$.proxy(function(){t.resolve()},this)):t.resolve()}else t.resolve();return t},NextendSmartSliderAbstract.prototype.initCarousel=function(){if(!parseInt(this.parameters.carousel)){this.next=this.nextNotCarousel,this.previous=this.previousNotCarousel;var e=this.slides.length,t=1,i=this.sliderElement.find(".nextend-arrow-previous"),s=function(e){e!=t&amp;&amp;(NextendTween.to(i,.4,{opacity:e}).play(),t=e)},n=1,r=this.sliderElement.find(".nextend-arrow-next"),a=function(e){e!=n&amp;&amp;(NextendTween.to(r,.4,{opacity:e}).play(),n=e)},o=function(t){s(0==t?0:1),a(t==e-1?0:1)};o(this.__getActiveSlideIndex()),this.sliderElement.on("sliderSwitchTo",function(e,t){o(t)})}},NextendSmartSliderAbstract.prototype.next=function(e,t){var i=this.currentSlideIndex+1;return i&gt;=this.slides.length&amp;&amp;(i=0),this.changeTo(i,!1,e,t)},NextendSmartSliderAbstract.prototype.previous=function(e,t){var i=this.currentSlideIndex-1;return 0&gt;i&amp;&amp;(i=this.slides.length-1),this.changeTo(i,!0,e,t)},NextendSmartSliderAbstract.prototype.nextNotCarousel=function(e,t){var i=this.currentSlideIndex+1;return i&lt;this.slides.length?this.changeTo(i,!1,e,t):!1},NextendSmartSliderAbstract.prototype.previousNotCarousel=function(e,t){var i=this.currentSlideIndex-1;return i&gt;=0?this.changeTo(i,!0,e,t):!1},NextendSmartSliderAbstract.prototype.directionalChangeToReal=function(e){this.directionalChangeTo(e)},NextendSmartSliderAbstract.prototype.directionalChangeTo=function(e){e&gt;this.currentSlideIndex?this.changeTo(e,!1):this.changeTo(e,!0)},NextendSmartSliderAbstract.prototype.changeTo=function(e,t,i,s){if(e=parseInt(e),e!=this.currentSlideIndex){this.sliderElement.trigger("sliderSwitchTo",[e,this.getRealIndex(e)]);var n=$.now();return $.when(this.backgroundImages.preLoad(e),this.focus(i)).done($.proxy(function(){if(this._lastChangeTime&lt;=n){this._lastChangeTime=n;var r=this.mainAnimation.getState();if("ended"==r){"undefined"==typeof i&amp;&amp;(i=!1);var a=this.mainAnimation;"undefined"!=typeof s&amp;&amp;(a=s),this._changeTo(e,t,i,s),a.changeTo(this.currentSlideIndex,this.slides.eq(this.currentSlideIndex),e,this.slides.eq(e),t,i),this.currentSlideIndex=e}else"playing"==r&amp;&amp;(this.sliderElement.off(".fastChange").one("mainAnimationComplete.fastChange",$.proxy(function(){this.changeTo.call(this,e,t,i,s)},this)),this.mainAnimation.timeScale(2*this.mainAnimation.timeScale()))}},this)),!0}return!1},NextendSmartSliderAbstract.prototype._changeTo=function(e,t,i,s){},NextendSmartSliderAbstract.prototype.revertTo=function(e,t){this.unsetActiveSlide(this.slides.eq(t)),this.setActiveSlide(this.slides.eq(e)),this.currentSlideIndex=e,this.sliderElement.trigger("sliderSwitchTo",[e,this.getRealIndex(e)])},NextendSmartSliderAbstract.prototype.__getActiveSlideIndex=function(){var e=this.slides.index(this.slides.filter(".n2-ss-slide-active"));return-1===e&amp;&amp;(e=0),e},NextendSmartSliderAbstract.prototype.setActiveSlide=function(e){e.addClass("n2-ss-slide-active")},NextendSmartSliderAbstract.prototype.unsetActiveSlide=function(e){e.removeClass("n2-ss-slide-active")},NextendSmartSliderAbstract.prototype.initMainAnimationWithLayerAnimation=function(){"forced"==this.parameters.layerMode.mode&amp;&amp;this.sliderElement.on("preChangeToPlay",$.proxy(function(e,t,i,s,n){i.handled=!0,s.on("layerAnimationCompleteOut.layers",function(){s.off("layerAnimationCompleteOut.layers"),t.resolve()}),this.callOnSlide(s,"playOut")},this)),this.sliderElement.on("mainAnimationStart",$.proxy(this.onMainAnimationStartSyncLayers,this,this.parameters.layerMode)).on("reverseModeEnabled",$.proxy(this.onMainAnimationStartSyncLayersReverse,this,this.parameters.layerMode))},NextendSmartSliderAbstract.prototype.onMainAnimationStartSyncLayers=function(e,t,i,s,n){var r=this.slides.eq(n),a=this.slides.eq(s);"mainInStart"==e.inAnimation?r.one("mainAnimationStartIn.layers",$.proxy(function(){r.off("mainAnimationStartInCancel.layers"),this.callOnSlide(r,"playIn")},this)):"mainInEnd"==e.inAnimation&amp;&amp;r.one("mainAnimationCompleteIn.layers",$.proxy(function(){r.off("mainAnimationStartInCancel.layers"),this.callOnSlide(r,"playIn")},this)),"skippable"==e.mode&amp;&amp;a.on("mainAnimationCompleteOut.layers",$.proxy(function(){a.off("mainAnimationCompleteOut.layers"),e.playOnce?this.parameters.foreverLayerAnimation||this.callOnSlide(a,"pause"):this.callOnSlide(a,"reset")},this)),r.one("mainAnimationStartInCancel.layers",function(){r.off("mainAnimationStartIn.layers"),r.off("mainAnimationCompleteIn.layers")})},NextendSmartSliderAbstract.prototype.onMainAnimationStartSyncLayersReverse=function(e,t,i){var s=this.slides.eq(i);"mainInStart"==e.inAnimation?s.one("mainAnimationStartIn.layers",$.proxy(function(){this.callOnSlide(s,"playIn")},this)):"mainInEnd"==e.inAnimation&amp;&amp;s.one("mainAnimationCompleteIn.layers",$.proxy(function(){this.sliderElement.off("mainAnimationComplete.layers"),this.callOnSlide(s,"playIn")},this)),this.sliderElement.one("mainAnimationComplete.layers",function(){s.off("mainAnimationStartIn.layers"),s.off("mainAnimationCompleteIn.layers")})},NextendSmartSliderAbstract.prototype.callOnSlide=function(e,t){e.data("slide")[t]()},NextendSmartSliderAbstract.prototype.findSlideIndexByElement=function(e){e=$(e);for(var t=0;t&lt;this.slides.length;t++)if(1===this.slides.eq(t).has(e).length)return t;return-1},NextendSmartSliderAbstract.prototype.initMainAnimation=function(){},NextendSmartSliderAbstract.prototype.initResponsiveMode=function(){new scope[this.responsiveClass](this,this.parameters.responsive),this.dimensions=this.responsive.responsiveDimensions},NextendSmartSliderAbstract.prototype.initControls=function(){this.parameters.admin||("0"!=this.parameters.controls.touch&amp;&amp;new NextendSmartSliderControlTouch(this,this.parameters.controls.touch,{fallbackToMouseEvents:this.parameters.controls.drag}),this.parameters.controls.keyboard&amp;&amp;("undefined"!=typeof this.controls.touch?new NextendSmartSliderControlKeyboard(this,this.controls.touch._direction.axis):new NextendSmartSliderControlKeyboard(this,"horizontal")),this.parameters.controls.scroll&amp;&amp;new NextendSmartSliderControlScroll(this),this.parameters.controls.tilt&amp;&amp;new NextendSmartSliderControlTilt(this),this.controlAutoplay=new NextendSmartSliderControlAutoplay(this,this.parameters.autoplay))},NextendSmartSliderAbstract.prototype.getSlideIndex=function(e){return e},NextendSmartSliderAbstract.prototype.slideToID=function(e,t){var i=this.realSlides.index(this.realSlides.filter('[data-id="'+e+'"]'));if(-1!=i)return this.slide(this.getSlideIndex(i),t);var s=$('[data-id="'+e+'"]').closest(".n2-ss-slider");if(s.length&amp;&amp;this.id==s.data("ss").id)return!0;if(s.length){var n=0;return"undefined"!=typeof n2ScrollOffsetSelector&amp;&amp;(n=n2(n2ScrollOffsetSelector).outerHeight()),n2("html, body").animate({scrollTop:s.offset().top-n},400),s.data("ss").slideToID(e,t)}},NextendSmartSliderAbstract.prototype.slide=function(e,t){return e&gt;=0&amp;&amp;e&lt;this.slides.length?"undefined"==typeof t?parseInt(this.parameters.carousel)&amp;&amp;this.currentSlideIndex==this.slides.length-1&amp;&amp;0==e?this.next():this.currentSlideIndex&gt;e?this.changeTo(e,!0):this.changeTo(e):this.changeTo(e,!t):!1},NextendSmartSliderAbstract.prototype.adminGetCurrentSlideElement=function(){return this.parameters.isStaticEdited?this.findStaticSlide():this.slides.eq(this.currentSlideIndex)},NextendSmartSliderAbstract.prototype.startAutoplay=function(e){return"undefined"!=typeof this.controlAutoplay?(this.controlAutoplay.pauseAutoplayExtraPlayingEnded(e,"autoplayButton"),!0):!1},scope.NextendSmartSliderAbstract=NextendSmartSliderAbstract,function(e,t){var i={},s=function(e){i[e]&amp;&amp;(t.clearInterval(i[e]),i[e]=null)},n="n2waitUntilExists.found";e.fn.n2waitUntilExists=function(r,a,o,l){var d=e(r),h=d.not(function(){return e(this).data(n)});return"remove"===a?s(r):(h.each(a).data(n,!0),o&amp;&amp;d.length?s(r):l||(i[r]=t.setInterval(function(){d.n2waitUntilExists(r,a,o,!0)},500))),d}}(n2,window)}(n2,window),function($,scope,undefined){function NextendSmartSliderWidgets(e){this.slider=e,this.sliderElement=e.sliderElement.on("BeforeVisible",$.proxy(this.onReady,this)),this.initExcludeSlides()}NextendSmartSliderWidgets.prototype.onReady=function(){this.dimensions=this.slider.dimensions,this.widgets={previous:this.sliderElement.find(".nextend-arrow-previous"),next:this.sliderElement.find(".nextend-arrow-next"),bullet:this.sliderElement.find(".nextend-bullet-bar"),autoplay:this.sliderElement.find(".nextend-autoplay"),indicator:this.sliderElement.find(".nextend-indicator"),bar:this.sliderElement.find(".nextend-bar"),thumbnail:this.sliderElement.find(".nextend-thumbnail"),shadow:this.sliderElement.find(".nextend-shadow"),fullscreen:this.sliderElement.find(".nextend-fullscreen"),html:this.sliderElement.find(".nextend-widget-html")},this.variableElementsDimension={width:this.sliderElement.find("[data-sswidth]"),height:this.sliderElement.find("[data-ssheight]")},this.variableElements={top:this.sliderElement.find("[data-sstop]"),right:this.sliderElement.find("[data-ssright]"),bottom:this.sliderElement.find("[data-ssbottom]"),left:this.sliderElement.find("[data-ssleft]")},this.slider.sliderElement.on("SliderAnimatedResize",$.proxy(this.onAnimatedResize,this)),this.slider.sliderElement.on("SliderResize",$.proxy(this.onResize,this)),this.slider.sliderElement.one("slideCountChanged",$.proxy(function(){this.onResize(this.slider.responsive.lastRatios)},this)),this.onResize(this.slider.responsive.lastRatios),this.initHover()},NextendSmartSliderWidgets.prototype.initHover=function(){var e=null,t=this.sliderElement.find(".n2-ss-widget-hover");t.length&gt;0&amp;&amp;this.sliderElement.on("universalenter",function(i){var s=$(this);e&amp;&amp;clearTimeout(e),t.css("visibility","visible"),setTimeout(function(){s.addClass("n2-ss-widget-hover-show")},50)}).on("universalleave",function(){var i=this;e&amp;&amp;clearTimeout(e),e=setTimeout(function(){$(i).removeClass("n2-ss-widget-hover-show"),e=setTimeout(function(){t.css("visibility","hidden")},400)},500)})},NextendSmartSliderWidgets.prototype.initExcludeSlides=function(){var e=this.sliderElement.find(".n2-ss-widget[data-exclude-slides]"),t=function(e,t,i){
-1!=$.inArray(i+1+"",t)?e.addClass("n2-ss-widget-hidden"):e.removeClass("n2-ss-widget-hidden")};e.each($.proxy(function(e,i){for(var s=$(i),n=s.attr("data-exclude-slides").split(","),e=n.length-1;e&gt;=0;e--){var r=n[e].split("-");if(2==r.length&amp;&amp;parseInt(r[0])&lt;=parseInt(r[1])){n[e]=r[0],r[0]=parseInt(r[0]),r[1]=parseInt(r[1]);for(var a=r[0]+1;a&lt;=r[1];a++)n.push(a+"")}}t(s,n,this.slider.currentSlideIndex),this.slider.sliderElement.on("sliderSwitchTo",function(e,i){t(s,n,i)})},this))},NextendSmartSliderWidgets.prototype.onAnimatedResize=function(e,ratios,timeline,duration){for(var key in this.widgets){var el=this.widgets[key],visible=el.is(":visible");this.dimensions[key+"width"]=visible?el.outerWidth(!1):0,this.dimensions[key+"height"]=visible?el.outerHeight(!1):0}this.dimensions.width=this.dimensions.slider.width,this.dimensions.height=this.dimensions.slider.height,this.dimensions.outerwidth=this.sliderElement.parent().width(),this.dimensions.outerheight=this.sliderElement.parent().height(),this.dimensions.canvaswidth=this.dimensions.slide.width,this.dimensions.canvasheight=this.dimensions.slide.height,this.dimensions.margintop=this.dimensions.slider.marginTop,this.dimensions.marginright=this.dimensions.slider.marginRight,this.dimensions.marginbottom=this.dimensions.slider.marginBottom,this.dimensions.marginleft=this.dimensions.slider.marginLeft;var variableText="";for(var key in this.dimensions){var value=this.dimensions[key];if("object"==typeof value)for(var key2 in value)variableText+="var "+key+key2+" = "+value[key2]+";";else variableText+="var "+key+" = "+value+";"}eval(variableText);for(var k in this.variableElementsDimension)for(var i=0;i&lt;this.variableElementsDimension[k].length;i++){var el=this.variableElementsDimension[k].eq(i);if(el.is(":visible")){var to={};try{to[k]=eval(el.data("ss"+k))+"px";for(var widget in this.widgets)this.widgets[widget].filter(el).length&amp;&amp;("width"==k?this.dimensions[widget+k]=el.outerWidth(!1):"height"==k&amp;&amp;(this.dimensions[widget+k]=el.outerHeight(!1)),eval(widget+k+" = "+this.dimensions[widget+k]+";"))}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}timeline.to(el,duration,to,0)}}for(var k in this.variableElements)for(var i=0;i&lt;this.variableElements[k].length;i++){var el=this.variableElements[k].eq(i);try{var to={};to[k]=eval(el.data("ss"+k))+"px",timeline.to(el,duration,to,0)}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}},NextendSmartSliderWidgets.prototype.onResize=function(e,ratios,responsive,timeline){if(!timeline){for(var k in this.variableElements)for(var i=0;i&lt;this.variableElements[k].length;i++){var last=this.variableElements[k].data("n2Last"+k);last&gt;0&amp;&amp;this.variableElements[k].css(k,0)}for(var key in this.widgets){var el=this.widgets[key],visible=el.length&amp;&amp;el.is(":visible");el.length&amp;&amp;el.is(":visible")?(this.dimensions[key+"width"]=el.outerWidth(!1),this.dimensions[key+"height"]=el.outerHeight(!1)):(this.dimensions[key+"width"]=0,this.dimensions[key+"height"]=0)}for(var k in this.variableElements)for(var i=0;i&lt;this.variableElements[k].length;i++){var last=this.variableElements[k].data("n2Last"+k);last&gt;0&amp;&amp;this.variableElements[k].css(k,last)}this.dimensions.width=this.dimensions.slider.width,this.dimensions.height=this.dimensions.slider.height,this.dimensions.outerwidth=this.sliderElement.parent().width(),this.dimensions.outerheight=this.sliderElement.parent().height(),this.dimensions.canvaswidth=this.dimensions.slide.width,this.dimensions.canvasheight=this.dimensions.slide.height,this.dimensions.margintop=this.dimensions.slider.marginTop,this.dimensions.marginright=this.dimensions.slider.marginRight,this.dimensions.marginbottom=this.dimensions.slider.marginBottom,this.dimensions.marginleft=this.dimensions.slider.marginLeft;var variableText="";for(var key in this.dimensions){var value=this.dimensions[key];if("object"==typeof value)for(var key2 in value)variableText+="var "+key+key2+" = "+value[key2]+";";else variableText+="var "+key+" = "+value+";"}eval(variableText);for(var k in this.variableElementsDimension)for(var i=0;i&lt;this.variableElementsDimension[k].length;i++){var el=this.variableElementsDimension[k].eq(i);if(el.is(":visible"))try{el.css(k,eval(el.data("ss"+k))+"px");for(var widget in this.widgets)this.widgets[widget].filter(el).length&amp;&amp;("width"==k?this.dimensions[widget+k]=el.outerWidth(!1):"height"==k&amp;&amp;(this.dimensions[widget+k]=el.outerHeight(!1)),eval(widget+k+" = "+this.dimensions[widget+k]+";"))}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}for(var k in this.variableElements)for(var i=0;i&lt;this.variableElements[k].length;i++){var el=this.variableElements[k].eq(i);try{var value=eval(el.data("ss"+k));el.css(k,value+"px"),el.data("n2Last"+k,value)}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}this.slider.responsive.refreshStaticSizes()}},scope.NextendSmartSliderWidgets=NextendSmartSliderWidgets}(n2,window),function(e,t,i){function s(e,t,i,s,n,r){this.durationMultiplier=n,this.original={currentImage:t,nextImage:i},this.animationProperties=s,this.reversed=r,this.timeline=e.timeline,this.containerElement=e.bgAnimationElement,this.shiftedBackgroundAnimation=e.parameters.shiftedBackgroundAnimation,this.clonedImages={}}s.prototype.postSetup=function(){},s.prototype.ended=function(){},s.prototype.revertEnded=function(){},s.prototype.placeNextImage=function(){this.clonedImages.nextImage=this.original.nextImage.clone().css({position:"absolute",top:0,left:0}),this.containerElement.append(this.clonedImages.nextImage)},s.prototype.placeCurrentImage=function(){this.clonedImages.currentImage=this.original.currentImage.clone().css({position:"absolute",top:0,left:0}),this.containerElement.append(this.clonedImages.currentImage)},s.prototype.hideOriginals=function(){this.original.currentImage.css("opacity",0),this.original.nextImage.css("opacity",0)},s.prototype.resetAll=function(){this.original.currentImage.css("opacity",1),this.original.nextImage.css("opacity",1),this.containerElement.html("")},s.prototype.getExtraDelay=function(){return 0},t.NextendSmartSliderBackgroundAnimationAbstract=s}(n2,window),function(e,t,i){function s(){this.shiftedPreSetup=!1,this._clonedCurrent=!1,this._clonedNext=!1,NextendSmartSliderBackgroundAnimationAbstract.prototype.constructor.apply(this,arguments),this.w=this.original.currentImage.width(),this.h=this.original.currentImage.height()}function n(){s.prototype.constructor.apply(this,arguments),this.setup()}function r(){n.prototype.constructor.apply(this,arguments)}function a(){n.prototype.constructor.apply(this,arguments)}function o(){s.prototype.constructor.apply(this,arguments);var t=e.extend(!0,{perspective:1.5*this.w,duration:.8,direction:"left"},this.animationProperties);this.reversed&amp;&amp;("left"==t.direction?t.direction="right":t.direction="left");var i=parseInt(this.w/2);this.clonedCurrent().css({position:"absolute",top:0,left:"left"==t.direction?-1*(this.w/2):0}),this.clonedNext().css({position:"absolute",top:0,left:"left"==t.direction?0:-1*(this.w/2)});var n=e('&lt;div class="tab"&gt;&lt;/div&gt;').css({width:i,height:this.h,position:"absolute",top:"0px",left:"left"==t.direction?i:"0","z-index":101});NextendTween.set(n,{transformStyle:"preserve-3d",transformOrigin:"left"==t.direction?"0px 0px":i+"px 0px"});var r=e('&lt;div class="n2-ff-3d"&gt;&lt;/div&gt;').append(this.clonedCurrent()).css({width:i,height:this.h,position:"absolute",top:0,left:0,"-webkit-transform":"translateZ(0.1px)",overflow:"hidden"}).appendTo(n);NextendTween.set(r,{backfaceVisibility:"hidden",transformStyle:"preserve-3d"});var a=e('&lt;div class="n2-ff-3d"&gt;&lt;/div&gt;').append(this.clonedNext()).appendTo(n).css({width:i,height:this.h,position:"absolute",top:0,left:0,overflow:"hidden"});NextendTween.set(a,{backfaceVisibility:"hidden",transformStyle:"preserve-3d",rotationY:180,rotationZ:0});var o=e("&lt;div&gt;&lt;/div&gt;").append(this.clonedCurrent().clone().css("left","left"==t.direction?0:-i)).css({position:"absolute",top:0,left:"left"==t.direction?"0":i,width:i,height:this.h,zIndex:100,overflow:"hidden"}),l=e('&lt;div class="overlay"&gt;&lt;/div&gt;').css({position:"absolute",top:0,left:"left"==t.direction?i:0,width:i,height:this.h,background:"#000",opacity:1,overflow:"hidden"}),d=e("&lt;div&gt;&lt;/div&gt;").css({width:this.w,height:this.h,position:"absolute",top:0,left:0}).append(n).append(o).append(l);NextendTween.set(d,{perspective:t.perspective,perspectiveOrigin:"50% 50%"}),this.placeNextImage(),this.clonedImages.nextImage.css({overflow:"hidden",width:"100%",height:"100%"}),this.containerElement.append(d),this.preSetup(),this.timeline.to(n.get(0),t.duration*this.durationMultiplier,{rotationY:"left"==t.direction?-180:180},0),this.timeline.to(l.get(0),t.duration*this.durationMultiplier,{opacity:0},0)}function l(){n.prototype.constructor.apply(this,arguments)}function d(){n.prototype.constructor.apply(this,arguments)}function h(){n.prototype.constructor.apply(this,arguments)}s.prototype=Object.create(NextendSmartSliderBackgroundAnimationAbstract.prototype),s.prototype.constructor=s,s.prototype.clonedCurrent=function(){return this._clonedCurrent||(this._clonedCurrent=this.original.currentImage.clone().css({width:this.w,height:this.h})),this._clonedCurrent},s.prototype.clonedNext=function(){return this._clonedNext||(this._clonedNext=this.original.nextImage.clone().css({width:this.w,height:this.h})),this._clonedNext},s.prototype.preSetup=function(){0!=this.shiftedBackgroundAnimation?this.shiftedPreSetup=!0:this._preSetup()},s.prototype._preSetup=function(e){this.timeline.to(this.original.currentImage.get(0),this.getExtraDelay(),{opacity:0},0),this.original.nextImage.css("opacity",0)},s.prototype.postSetup=function(){this.timeline.to(this.original.nextImage.get(0),this.getExtraDelay(),{opacity:1})},s.prototype.getExtraDelay=function(){return.2},s.prototype.ended=function(){this.original.currentImage.css("opacity",1),this.containerElement.html("")},s.prototype.revertEnded=function(){this.original.nextImage.css("opacity",1),this.containerElement.html("")},t.NextendSmartSliderBackgroundAnimationFluxAbstract=s,n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.setup=function(t){var i=e("&lt;div&gt;&lt;/div&gt;").css({position:"absolute",left:0,top:0,width:this.w,height:this.h});this.container=i,NextendTween.set(i.get(0),{force3D:!0,perspective:1e3});for(var s=[],n=[],r=t.columns,a=t.rows,o=Math.floor(this.w/r),l=Math.floor(this.h/a),d=this.w-r*o,h=Math.ceil(d/r),p=this.h-a*l,c=Math.ceil(p/a),m=0,u=0;r&gt;u;u++){s[u]=[];var f=o,y=0;if(d&gt;0){var g=d&gt;=h?h:d;f+=g,d-=g}for(var v=p,x=0;a&gt;x;x++){var S=l;if(v&gt;0){var g=v&gt;=c?c:v;S+=g,v-=g}var b=e('&lt;div class="tile tile-'+u+"-"+x+'"&gt;&lt;/div&gt;').css({position:"absolute",top:y+"px",left:m+"px",width:f+"px",height:S+"px",zIndex:-Math.abs(u-parseInt(r/2))+r-Math.abs(x-parseInt(a/2))}).appendTo(i),w=this.renderTile(b,f,S,t,m,y);n.push(w),s[u][x]=w,y+=S}m+=f}i.appendTo(this.containerElement),this.preSetup(),this.animate(t,n,s)},n.prototype.animate=function(t,i,s){this["sequence"+t.tiles.sequence](e.proxy(this.transform,this,t),i,s,t.tiles.delay*this.durationMultiplier)},n.prototype.sequenceParallel=function(e,t){e(t,null)},n.prototype.sequenceRandom=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=0;r&lt;t.length;r++)e(t[r],n+Math.random()*s)},n.prototype.sequenceForwardCol=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=0;r&lt;t.length;r++)e(t[r],n+s*r)},n.prototype.sequenceBackwardCol=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=t.length-1,a=0;a&lt;t.length;a++)e(t[a],n+s*(r-a))},n.prototype.sequenceForwardRow=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=0,a=0;a&lt;i[0].length;a++)for(var o=0;o&lt;i.length;o++)e(i[o][a],n+s*r),r++},n.prototype.sequenceBackwardRow=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=t.length-1,a=0;a&lt;i[0].length;a++)for(var o=0;o&lt;i.length;o++)e(i[o][a],n+s*r),r--},n.prototype.sequenceForwardDiagonal=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=0;r&lt;i[0].length;r++)for(var a=0;a&lt;i.length;a++)e(i[a][r],n+s*(a+r))},n.prototype.sequenceBackwardDiagonal=function(e,t,i,s){for(var n=this.timeline.totalDuration(),r=i[0].length+i.length-2,a=0;a&lt;i[0].length;a++)for(var o=0;o&lt;i.length;o++)e(i[o][a],n+s*(r-o-a))},t.NextendSmartSliderBackgroundAnimationTiled=n,r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.prototype.setup=function(){var t=e.extend(!0,{columns:1,rows:1,tiles:{cropOuter:!1,crop:!0,delay:0,sequence:"Parallel"},main:{type:"next",duration:.5,real3D:!0,zIndex:1,current:{ease:"easeInOutCubic"},next:{ease:"easeInOutCubic"}}},this.animationProperties);this.reversed&amp;&amp;("undefined"!=typeof t.invert&amp;&amp;e.extend(!0,t.main,t.invert),"undefined"!=typeof t.invertTiles&amp;&amp;e.extend(t.tiles,t.invertTiles)),n.prototype.setup.call(this,t),t.tiles.cropOuter&amp;&amp;this.container.css("overflow","hidden")},r.prototype.renderTile=function(t,i,s,n,r,a){n.tiles.crop&amp;&amp;t.css("overflow","hidden");var o=e("&lt;div&gt;&lt;/div&gt;").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:n.main.zIndex}).append(this.clonedCurrent().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})).appendTo(t),l=e("&lt;div&gt;&lt;/div&gt;").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:1}).append(this.clonedNext().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})).appendTo(t);return n.main.real3D&amp;&amp;(NextendTween.set(t.get(0),{transformStyle:"preserve-3d"}),NextendTween.set(o.get(0),{transformStyle:"preserve-3d"}),NextendTween.set(l.get(0),{transformStyle:"preserve-3d"})),{current:o,next:l}},r.prototype.transform=function(e,t,i){var s=e.main;"current"!=s.type&amp;&amp;"both"!=s.type||this.timeline.to(t.current,s.duration*this.durationMultiplier,s.current,i),"next"!=s.type&amp;&amp;"both"!=s.type||this.timeline.from(t.next,s.duration*this.durationMultiplier,s.next,i)},t.NextendSmartSliderBackgroundAnimationFlat=r,a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.prototype.setup=function(){var t=e.extend(!0,{columns:1,rows:1,fullCube:!0,tiles:{delay:.2,sequence:"Parallel"},depth:50,main:{side:"Left",duration:.5,ease:"easeInOutCubic",direction:"horizontal",real3D:!0},pre:[],post:[]},this.animationProperties);t.fullCube=!0,this.reversed&amp;&amp;("undefined"!=typeof t.invert&amp;&amp;e.extend(!0,t.main,t.invert),"undefined"!=typeof t.invertTiles&amp;&amp;e.extend(t.tiles,t.invertTiles)),n.prototype.setup.call(this,t)},a.prototype.renderTile=function(t,i,s,n,r,a){var o=n.depth;switch(o){case"width":o=i;break;case"height":o=s}switch(n.main.side){case"Top":case"Bottom":o=s;break;case"Left":case"Right":o=i}n.main.real3D&amp;&amp;NextendTween.set(t.get(0),{transformStyle:"preserve-3d"});var l=e('&lt;div class="cuboid"&gt;&lt;/div&gt;').css({position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}).appendTo(t);NextendTween.set(l.get(0),{transformStyle:"preserve-3d",z:-o/2});var d=0;"horizontal"==n.main.direction&amp;&amp;(d=180);var h=this.getSide(l,i,s,0,0,-o/2,180,0,d),p={Back:h,BackInvert:h};return(n.fullCube||"vertical"==n.main.direction)&amp;&amp;(p.Bottom=this.getSide(l,i,o,0,s-o/2,0,-90,0,0),p.Top=this.getSide(l,i,o,0,-o/2,0,90,0,0)),p.Front=this.getSide(l,i,s,0,0,o/2,0,0,0),(n.fullCube||"horizontal"==n.main.direction)&amp;&amp;(p.Left=this.getSide(l,o,s,-o/2,0,0,0,-90,0),p.Right=this.getSide(l,o,s,i-o/2,0,0,0,90,0)),p.Front.append(this.clonedCurrent().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})),p[n.main.side].append(this.clonedNext().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})),l},a.prototype.getSide=function(t,i,s,n,r,a,o,l,d){var h=e('&lt;div class="n2-3d-side"&gt;&lt;/div&gt;').css({width:i,height:s}).appendTo(t);return NextendTween.set(h.get(0),{x:n,y:r,z:a,rotationX:o,rotationY:l,rotationZ:d,backfaceVisibility:"hidden"}),h},a.prototype.addAnimation=function(e,t){var i=e.duration;delete e.duration,this.timeline.to(t,i*this.durationMultiplier,e)},a.prototype.transform=function(e,t,i){for(var s=0;s&lt;e.pre.length;s++){var n=e.pre[s],r=n.duration*this.durationMultiplier;this.timeline.to(t,r,n,i),i+=r}this["transform"+e.main.side](e.main,t,i),i+=e.main.duration;for(var s=0;s&lt;e.post.length;s++){var n=e.post[s],r=n.duration*this.durationMultiplier;this.timeline.to(t,r,n,i),i+=r}},a.prototype.transformLeft=function(e,t,i){this._transform(e,t,i,0,90,0)},a.prototype.transformRight=function(e,t,i){this._transform(e,t,i,0,-90,0)},a.prototype.transformTop=function(e,t,i){this._transform(e,t,i,-90,0,0)},a.prototype.transformBottom=function(e,t,i){this._transform(e,t,i,90,0,0)},a.prototype.transformBack=function(e,t,i){"horizontal"==e.direction?this._transform(e,t,i,0,180,0):this._transform(e,t,i,180,0,0)},a.prototype.transformBackInvert=function(e,t,i){"horizontal"==e.direction?this._transform(e,t,i,0,-180,0):this._transform(e,t,i,-180,0,0)},a.prototype._transform=function(e,t,i,s,n,r){this.timeline.to(t,e.duration*this.durationMultiplier,{rotationX:s,rotationY:n,rotationZ:r,ease:e.ease},i)},t.NextendSmartSliderBackgroundAnimationCubic=a,o.prototype=Object.create(s.prototype),o.prototype.constructor=o,o.prototype.getExtraDelay=function(){return 0},t.NextendSmartSliderBackgroundAnimationTurn=o,l.prototype=Object.create(n.prototype),l.prototype.constructor=l,l.prototype.setup=function(){var t=e.extend(!0,{columns:1,rows:1,reverse:!1,tiles:{delay:0,sequence:"Parallel"},main:{duration:.5,zIndex:2,current:{ease:"easeInOutCubic"}}},this.animationProperties);this.placeNextImage(),this.clonedImages.nextImage.css({overflow:"hidden",width:"100%",height:"100%"}),n.prototype.setup.call(this,t)},l.prototype.renderTile=function(t,i,s,n,r,a){var o=e("&lt;div&gt;&lt;/div&gt;").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:n.main.zIndex}).append(this.clonedCurrent().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})).appendTo(t);return NextendTween.set(t.get(0),{transformPerspective:1e3,transformStyle:"preserve-3d"}),{current:o,tile:t}},l.prototype.transform=function(t,i,s){var n=e.extend(!0,{},t.main.current);n.rotationX=90*(3*Math.random()-1),n.rotationY=90*(3*Math.random()-1),n.rotationZ=90*(3*Math.random()-1),this.timeline.to(i.tile,t.main.duration*this.durationMultiplier,n,s)},t.NextendSmartSliderBackgroundAnimationExplode=l,d.prototype=Object.create(n.prototype),d.prototype.constructor=d,d.prototype.setup=function(){var t=e.extend(!0,{columns:1,rows:1,reverse:!1,tiles:{delay:0,sequence:"Parallel"},main:{duration:.5,zIndex:2,current:{ease:"easeInOutCubic"}}},this.animationProperties);this.placeCurrentImage(),this.clonedImages.currentImage.css({overflow:"hidden",width:"100%",height:"100%"}),n.prototype.setup.call(this,t)},d.prototype.renderTile=function(t,i,s,n,r,a){var o=e("&lt;div&gt;&lt;/div&gt;").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:n.main.zIndex}).append(this.clonedNext().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})).appendTo(t);return NextendTween.set(t.get(0),{transformPerspective:1e3,transformStyle:"preserve-3d"}),{next:o,tile:t}},d.prototype.transform=function(t,i,s){var n=e.extend(!0,{},t.main.current);n.rotationX=90*(3*Math.random()-1),n.rotationY=90*(3*Math.random()-1),n.rotationZ=30*(3*Math.random()-1),this.timeline.from(i.tile,t.main.duration*this.durationMultiplier,n,s)},t.NextendSmartSliderBackgroundAnimationExplodeReversed=d,h.prototype=Object.create(n.prototype),h.prototype.constructor=h,h.prototype.setup=function(){var t=e.extend(!0,{columns:2,rows:2,main:{duration:2,zIndex:2}},this.animationProperties);this.placeNextImage(),this.clonedImages.nextImage.css({overflow:"hidden",width:"100%",height:"100%"}),n.prototype.setup.call(this,t)},h.prototype.renderTile=function(t,i,s,n,r,a){this.container.css("overflow","hidden");var o=e("&lt;div&gt;&lt;/div&gt;").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:n.main.zIndex}).append(this.clonedCurrent().clone().css({position:"absolute",top:-a+"px",left:-r+"px"})).appendTo(t);return NextendTween.set(t.get(0),{transformPerspective:1e3,transformStyle:"preserve-3d"}),{current:o,tile:t}},h.prototype.animate=function(t,i,s){this.timeline.to(s[0][0].tile,t.main.duration*this.durationMultiplier,{left:"-50%",ease:"easeInOutCubic"},0),this.timeline.to(s[0][1].tile,t.main.duration*this.durationMultiplier,{left:"-50%",ease:"easeInOutCubic"},.3),this.timeline.to(s[1][0].tile,t.main.duration*this.durationMultiplier,{left:"100%",ease:"easeInOutCubic"},.15),this.timeline.to(s[1][1].tile,t.main.duration*this.durationMultiplier,{left:"100%",ease:"easeInOutCubic"},.45),e("&lt;div /&gt;").css({position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden"}).prependTo(this.clonedImages.nextImage.parent()).append(this.clonedImages.nextImage),this.timeline.fromTo(this.clonedImages.nextImage,t.main.duration*this.durationMultiplier,{scale:1.3},{scale:1},.45)},t.NextendSmartSliderBackgroundAnimationSlixes=h}(n2,window),function(e,t,i){function s(t,i){this.state="ended",this.isTouch=!1,this.isReverseAllowed=!0,this.isReverseEnabled=!1,this.reverseSlideIndex=-1,this.slider=t,this.parameters=e.extend({duration:1500,ease:"easeInOutQuint"},i),this.parameters.duration/=1e3,this.sliderElement=t.sliderElement,this.timeline=new NextendTimeline({paused:!0}),this.sliderElement.on("mainAnimationStart",e.proxy(function(e,t,i,s){this.currentSlideIndex=i,this.nextSlideIndex=s},this))}s.prototype.enableReverseMode=function(){this.isReverseEnabled=!0,this.reverseTimeline=new NextendTimeline({paused:!0}),this.sliderElement.triggerHandler("reverseModeEnabled",this.reverseSlideIndex)},s.prototype.disableReverseMode=function(){this.isReverseEnabled=!1},s.prototype.setTouch=function(e){this.isTouch=e},s.prototype.setTouchProgress=function(e){this.isReverseEnabled?this._setTouchProgressWithReverse(e):this._setTouchProgress(e)},s.prototype._setTouchProgress=function(e){"ended"!=this.state&amp;&amp;(0&gt;=e?this.timeline.progress(Math.max(e,1e-6),!1):e&gt;=0&amp;&amp;1&gt;=e&amp;&amp;this.timeline.progress(e))},s.prototype._setTouchProgressWithReverse=function(e){0==e?(this.reverseTimeline.progress(0),this.timeline.progress(e,!1)):e&gt;=0&amp;&amp;1&gt;=e?(this.reverseTimeline.progress(0),this.timeline.progress(e)):0&gt;e&amp;&amp;e&gt;=-1&amp;&amp;(this.timeline.progress(0),this.reverseTimeline.progress(Math.abs(e)))},s.prototype.setTouchEnd=function(e,t,i){"ended"!=this.state&amp;&amp;(this.isReverseEnabled?this._setTouchEndWithReverse(e,t,i):this._setTouchEnd(e,t,i))},s.prototype._setTouchEnd=function(e,t,i){e&amp;&amp;t&gt;0?(this.fixTouchDuration(this.timeline,t,i),this.timeline.play()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-t,i),this.timeline.reverse(),this.willRevertTo(this.currentSlideIndex,this.nextSlideIndex))},s.prototype._setTouchEndWithReverse=function(e,t,i){e?0&gt;t&amp;&amp;this.reverseTimeline.totalDuration()&gt;0?(this.fixTouchDuration(this.reverseTimeline,t,i),this.reverseTimeline.play(),this.willRevertTo(this.reverseSlideIndex,this.nextSlideIndex)):(this.willCleanSlideIndex(this.reverseSlideIndex),this.fixTouchDuration(this.timeline,t,i),this.timeline.play()):(0&gt;t?(this.revertCB(this.reverseTimeline),this.fixTouchDuration(this.reverseTimeline,1-t,i),this.reverseTimeline.reverse()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-t,i),this.timeline.reverse()),this.willCleanSlideIndex(this.reverseSlideIndex),this.willRevertTo(this.currentSlideIndex,this.nextSlideIndex))},s.prototype.fixTouchDuration=function(e,t,i){var s=e.totalDuration(),n=Math.max(s/3,Math.min(s,i/Math.abs(t)/1e3));n!=s&amp;&amp;e.totalDuration(n)},s.prototype.getState=function(){return this.state},s.prototype.timeScale=function(){return arguments.length&gt;0?(this.timeline.timeScale(arguments[0]),this):this.timeline.timeScale()},s.prototype.preChangeToPlay=function(e,t,i){var s={handled:!1};this.sliderElement.trigger("preChangeToPlay",[e,s,t,i]),s.handled||e.resolve()},s.prototype.changeTo=function(t,i,s,n,r,a){if(this._initAnimation(t,i,s,n,r),this.state="initAnimation",this.timeline.paused(!0),this.timeline.eventCallback("onStart",this.onChangeToStart,[t,s,a],this),this.timeline.eventCallback("onComplete",this.onChangeToComplete,[t,s,a],this),this.timeline.eventCallback("onReverseComplete",null),this.revertCB=e.proxy(function(e){e.eventCallback("onReverseComplete",this.onReverseChangeToComplete,[s,t,a],this)},this),this.slider.parameters.dynamicHeight){var o=new NextendTimeline;this.slider.responsive.doResize(!1,o,s,.6),this.timeline.add(o)}if(this.isTouch)this.slider.callOnSlide(i,"onOutAnimationsPlayed");else{var l=e.Deferred();l.done(e.proxy(function(){this.play()},this.timeline)),this.preChangeToPlay(l,i,n)}},s.prototype.willRevertTo=function(t,i){this.sliderElement.triggerHandler("mainAnimationWillRevertTo",[t,i]),this.sliderElement.one("mainAnimationComplete",e.proxy(this.revertTo,this,t,i))},s.prototype.revertTo=function(e,t){this.slider.revertTo(e,t),this.slider.slides.eq(t).triggerHandler("mainAnimationStartInCancel")},s.prototype.willCleanSlideIndex=function(t){this.sliderElement.one("mainAnimationComplete",e.proxy(this.cleanSlideIndex,this,t))},s.prototype.cleanSlideIndex=function(){},s.prototype._initAnimation=function(e,t,i,s,n){},s.prototype.onChangeToStart=function(e,t,i){this.state="playing";var s=[this,e,t,i];this.sliderElement.trigger("mainAnimationStart",s),this.slider.slides.eq(e).trigger("mainAnimationStartOut",s),this.slider.slides.eq(t).trigger("mainAnimationStartIn",s)},s.prototype.onChangeToComplete=function(e,t,i){var s=[this,e,t,i];this.clearTimelines(),this.disableReverseMode(),this.slider.slides.eq(e).trigger("mainAnimationCompleteOut",s),this.slider.slides.eq(t).trigger("mainAnimationCompleteIn",s),this.state="ended",this.sliderElement.trigger("mainAnimationComplete",s)},s.prototype.onReverseChangeToComplete=function(e,t,i){s.prototype.onChangeToComplete.apply(this,arguments)},s.prototype.clearTimelines=function(){this.revertCB=function(){},this.timeline.clear(),this.timeline.timeScale(1)},s.prototype.getEase=function(){return this.isTouch?"linear":this.parameters.ease},t.NextendSmartSliderMainAnimationAbstract=s}(n2,window),function(e,t,i){function s(t,i){this._paused=!0,this._wait=!1,this._disabled=!1,this._currentCount=0,this._progressEnabled=!1,this.timeline=null,this.deferredsMediaPlaying=null,this.deferredMouseLeave=null,this.deferredMouseEnter=null,this.mainAnimationDeferred=!0,this.autoplayDeferred=null,this.slider=t,this.parameters=e.extend({enabled:0,start:1,duration:8e3,autoplayToSlide:0,autoplayToSlideIndex:-1,allowReStart:0,pause:{mouse:"enter",click:!0,mediaStarted:!0},resume:{click:0,mouse:0,mediaEnded:!0}},i),this.parameters.enabled?(this.parameters.duration/=1e3,t.controls.autoplay=this,this.deferredsExtraPlaying={},this.slider.visible(e.proxy(this.onReady,this))):this.disable(),t.controls.autoplay=this}var n=!1;s.prototype.onReady=function(){this.autoplayDeferred=e.Deferred();var t={_progress:0};this.timeline=NextendTween.to(t,this.getSlideDuration(this.slider.currentSlideIndex),{_progress:1,paused:!0,onComplete:e.proxy(this.next,this)}),this._progressEnabled&amp;&amp;this.enableProgress();var i=this.slider.sliderElement;if(this.parameters.start?this.continueAutoplay():this.pauseAutoplayExtraPlaying(null,"autoplayButton"),i.on("mainAnimationStart.autoplay",e.proxy(this.onMainAnimationStart,this)),"0"!=this.parameters.pause.mouse)switch(i.on("touchend.autoplay",function(){n=!0,setTimeout(function(){n=!1},300)}),this.parameters.pause.mouse){case"enter":i.on("mouseenter.autoplay",e.proxy(this.pauseAutoplayMouseEnter,this)),i.on("mouseleave.autoplay",e.proxy(this.pauseAutoplayMouseEnterEnded,this));break;case"leave":i.on("mouseleave.autoplay",e.proxy(this.pauseAutoplayMouseLeave,this)),i.on("mouseenter.autoplay",e.proxy(this.pauseAutoplayMouseLeaveEnded,this))}if(this.parameters.pause.click&amp;&amp;!this.parameters.resume.click?i.on("universalclick.autoplay",e.proxy(this.pauseAutoplayUniversal,this)):!this.parameters.pause.click&amp;&amp;this.parameters.resume.click?i.on("universalclick.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},this)):this.parameters.pause.click&amp;&amp;this.parameters.resume.click&amp;&amp;i.on("universalclick.autoplay",e.proxy(function(e){this._paused?this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton"):this.pauseAutoplayUniversal(e)},this)),this.parameters.pause.mediaStarted&amp;&amp;(this.deferredsMediaPlaying={},i.on("mediaStarted.autoplay",e.proxy(this.pauseAutoplayMediaPlaying,this)),i.on("mediaEnded.autoplay",e.proxy(this.pauseAutoplayMediaPlayingEnded,this))),"0"!=this.parameters.resume.mouse)switch(this.parameters.resume.mouse){case"enter":"0"==this.parameters.pause.mouse?i.on("mouseenter.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},this)):i.on("mouseenter.autoplay",e.proxy(this.continueAutoplay,this));break;case"leave":"0"==this.parameters.pause.mouse?i.on("mouseleave.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},this)):i.on("mouseleave.autoplay",e.proxy(this.continueAutoplay,this))}this.parameters.resume.mediaEnded&amp;&amp;i.on("mediaEnded.autoplay",e.proxy(this.continueAutoplay,this)),i.on("autoplayExtraWait.autoplay",e.proxy(this.pauseAutoplayExtraPlaying,this)),i.on("autoplayExtraContinue.autoplay",e.proxy(this.pauseAutoplayExtraPlayingEnded,this)),this.slider.sliderElement.on("mainAnimationComplete.autoplay",e.proxy(this.onMainAnimationComplete,this))},s.prototype.enableProgress=function(){this.timeline&amp;&amp;this.timeline.eventCallback("onUpdate",e.proxy(this.onUpdate,this)),this._progressEnabled=!0},s.prototype.onMainAnimationStart=function(t,i,s,n,r){this.mainAnimationDeferred=e.Deferred(),this.deActivate(0,"wait");for(var a in this.deferredsMediaPlaying)this.deferredsMediaPlaying[a].resolve()},s.prototype.onMainAnimationComplete=function(e,t,i,s){this.parameters.autoplayToSlideIndex&gt;=0&amp;&amp;this.parameters.autoplayToSlideIndex==this.slider.currentSlideIndex+1&amp;&amp;this.limitAutoplay(),this.timeline.duration(this.getSlideDuration(s)),this.mainAnimationDeferred.resolve(),this.continueAutoplay()},s.prototype.getSlideDuration=function(e){var t=this.slider.realSlides.eq(this.slider.getRealIndex(e)).data("slide"),i=t.minimumSlideDuration;return.3&gt;i&amp;&amp;i&lt;this.parameters.duration&amp;&amp;(i=this.parameters.duration),i},s.prototype.continueAutoplay=function(t){"pending"==this.autoplayDeferred.state()&amp;&amp;this.autoplayDeferred.reject();var i=[];for(var s in this.deferredsExtraPlaying)i.push(this.deferredsExtraPlaying[s]);for(var s in this.deferredsMediaPlaying)i.push(this.deferredsMediaPlaying[s]);i.push(this.deferredMouseEnter),i.push(this.mainAnimationDeferred),this.autoplayDeferred=e.Deferred(),this.autoplayDeferred.done(e.proxy(this._continueAutoplay,this)),e.when.apply(e,i).done(e.proxy(function(){"pending"==this.autoplayDeferred.state()&amp;&amp;this.autoplayDeferred.resolve()},this))},s.prototype._continueAutoplay=function(){!this._paused&amp;&amp;!this._wait||this._disabled||(this._paused=!1,this._wait=!1,this.slider.sliderElement.triggerHandler("autoplayStarted"),1==this.timeline.progress()&amp;&amp;this.timeline.pause(0,!1),this.startTimeout(null))},s.prototype.pauseAutoplayUniversal=function(e){this.pauseAutoplayExtraPlaying(e,"autoplayButton"),this.deActivate(null,"pause")},s.prototype.pauseAutoplayMouseEnter=function(){n||(this.autoplayDeferred.reject(),this.deferredMouseEnter=e.Deferred(),this.deActivate(null,"leave"==this.parameters.resume.mouse?"wait":"pause"))},s.prototype.pauseAutoplayMouseEnterEnded=function(){this.deferredMouseEnter&amp;&amp;this.deferredMouseEnter.resolve()},s.prototype.pauseAutoplayMouseLeave=function(){this.autoplayDeferred.reject(),this.deferredMouseLeave=e.Deferred(),this.deActivate(null,"enter"==this.parameters.resume.mouse?"wait":"pause")},s.prototype.pauseAutoplayMouseLeaveEnded=function(){this.deferredMouseLeave&amp;&amp;this.deferredMouseLeave.resolve()},s.prototype.pauseAutoplayMediaPlaying=function(t,i){"undefined"!=typeof this.deferredsMediaPlaying[i]&amp;&amp;this.autoplayDeferred.reject(),this.deferredsMediaPlaying[i]=e.Deferred(),this.deActivate(null,"wait")},s.prototype.pauseAutoplayMediaPlayingEnded=function(e,t){"undefined"!=typeof this.deferredsMediaPlaying[t]&amp;&amp;(this.autoplayDeferred.reject(),
this.deferredsMediaPlaying[t].resolve(),delete this.deferredsMediaPlaying[t])},s.prototype.pauseAutoplayExtraPlaying=function(t,i){"undefined"!=typeof this.deferredsExtraPlaying[i]&amp;&amp;this.autoplayDeferred.reject(),this.deferredsExtraPlaying[i]=e.Deferred(),this.deActivate(null,"pause")},s.prototype.pauseAutoplayExtraPlayingEnded=function(e,t){"undefined"!=typeof this.deferredsExtraPlaying[t]&amp;&amp;(this.autoplayDeferred.reject(),this.deferredsExtraPlaying[t].resolve(),delete this.deferredsExtraPlaying[t]),this.continueAutoplay()},s.prototype.deActivate=function(e,t){"pause"==t?this._paused||(this._paused=!0,0!==e&amp;&amp;this.slider.sliderElement.triggerHandler("autoplayPaused")):"wait"==t&amp;&amp;(this._wait||(this._wait=!0,0!==e&amp;&amp;this.slider.sliderElement.triggerHandler("autoplayWait"))),this.timeline&amp;&amp;this.timeline.pause(e,!1)},s.prototype.disable=function(){this.deActivate(0,"pause"),this.slider.sliderElement.triggerHandler("autoplayPaused"),this.slider.sliderElement.triggerHandler("autoplayDisabled"),this.slider.sliderElement.off(".autoplay"),this._disabled=!0},s.prototype.startTimeout=function(e){this._paused||this._disabled||this.timeline.play(e)},s.prototype.next=function(){this.timeline.pause(),this._currentCount++,(this.parameters.autoplayToSlide&gt;0&amp;&amp;this._currentCount&gt;=this.parameters.autoplayToSlide||this.parameters.autoplayToSlideIndex&gt;=0&amp;&amp;this.parameters.autoplayToSlideIndex==this.slider.currentSlideIndex+2)&amp;&amp;this.limitAutoplay(),this.slider.nextCarousel(!0)},s.prototype.limitAutoplay=function(){this.parameters.allowReStart?(this._currentCount=0,this.slider.sliderElement.triggerHandler("autoplayExtraWait","autoplayButton")):this.disable()},s.prototype.onUpdate=function(){this.slider.sliderElement.triggerHandler("autoplay",this.timeline.progress())},t.NextendSmartSliderControlAutoplay=s}(n2,window),function(e,t,i){"use strict";function s(t,i,n){this.slider=t,this.parameters=e.extend({},n),"vertical"==i?this.parseEvent=s.prototype.parseEventVertical:this.parseEvent=s.prototype.parseEventHorizontal,e(document).on("keydown",e.proxy(this.onKeyDown,this)),t.controls.keyboard=this}s.prototype.isSliderOnScreen=function(){var t=this.slider.sliderElement.offset(),i=e(window).scrollTop(),s=this.slider.sliderElement.height();return t.top+.5*s&gt;=i&amp;&amp;t.top-.5*s&lt;=i+e(window).height()},s.prototype.onKeyDown=function(e){e.target.tagName.match(/BODY|DIV|IMG/)&amp;&amp;this.isSliderOnScreen()&amp;&amp;(e=e||window.event,this.parseEvent.call(this,e)&amp;&amp;(e.preventDefault(),e.stopImmediatePropagation()))},s.prototype.parseEventHorizontal=function(e){switch(e.keyCode){case 39:return this.slider[nextend.rtl.next](),!0;case 37:return this.slider[nextend.rtl.previous](),!0;default:return!1}},s.prototype.parseEventVertical=function(e){switch(e.keyCode){case 40:return this.slider.next(),!0;case 38:return this.slider.previous(),!0;default:return!1}},t.NextendSmartSliderControlKeyboard=s}(n2,window),function(e,t,i){"use strict";function s(t){this.preventScroll=!1,this.slider=t,t.sliderElement.on("DOMMouseScroll mousewheel",e.proxy(this.onMouseWheel,this)),t.controls.scroll=this}s.prototype.onMouseWheel=function(t){if(this.preventScroll)t.preventDefault();else{var i=!1;t.originalEvent&amp;&amp;(t.originalEvent.wheelDelta&amp;&amp;(i=t.originalEvent.wheelDelta/-1&lt;0),t.originalEvent.deltaY&amp;&amp;(i=t.originalEvent.deltaY&lt;0),t.originalEvent.detail&amp;&amp;(i=t.originalEvent.detail&lt;0)),i?this.slider.previous()&amp;&amp;(this.preventScroll=!0,t.preventDefault()):this.slider.next()&amp;&amp;(this.preventScroll=!0,t.preventDefault()),setTimeout(e.proxy(function(){this.preventScroll=!1},this),1e3)}},t.NextendSmartSliderControlScroll=s}(n2,window),function(e,t,i){"use strict";function s(t,i){return"undefined"==typeof window.DeviceOrientationEvent||"undefined"==typeof window.orientation?"Not supported":(this.timeout=null,this.slider=t,this.parameters=e.extend({duration:2e3},i),this.orientationchange(),window.addEventListener("orientationchange",e.proxy(this.orientationchange,this)),window.addEventListener("deviceorientation",e.proxy(this.handleOrientation,this),!0),void(t.controls.tilt=this))}s.prototype.orientationchange=function(){switch(window.orientation){case-90:case 90:this.parseEvent=s.prototype.parseEventHorizontalLandscape;break;default:this.parseEvent=s.prototype.parseEventHorizontal}},s.prototype.clearTimeout=function(){this.timeout=null},s.prototype.handleOrientation=function(t){null==this.timeout&amp;&amp;this.parseEvent.call(this,t)&amp;&amp;(this.timeout=setTimeout(e.proxy(this.clearTimeout,this),this.parameters.duration),t.preventDefault())},s.prototype.parseEventHorizontal=function(e){return e.gamma&gt;10?(this.slider.next(),!0):e.gamma&lt;-10?(this.slider.previous(),!0):!1},s.prototype.parseEventHorizontalLandscape=function(e){return e.beta&lt;-10?(this.slider.next(),!0):e.beta&gt;10?(this.slider.previous(),!0):!1},t.NextendSmartSliderControlTilt=s}(n2,window),function(e,t,i){"use strict";function s(t,i,s){this.currentAnimation=null,this.slider=t,this._animation=t.mainAnimation,this.parameters=e.extend({fallbackToMouseEvents:!0},s),this.swipeElement=this.slider.sliderElement.find("&gt; div").eq(0),"vertical"==i?this.setVertical():"horizontal"==i&amp;&amp;this.setHorizontal();var n=e.proxy(function(){var e=this;N2EventBurrito(this.swipeElement.get(0),{mouse:this.parameters.fallbackToMouseEvents,axis:"horizontal"==i?"x":"y",start:function(e,t){r=!1},move:function(t,i,s,n,a){var o=e._direction.measure(s);if(!a&amp;&amp;"unknown"!=o&amp;&amp;null===e.currentAnimation){if("ended"!=e._animation.state)return!1;e.distance=[0],e.swipeElement.addClass("n2-grabbing"),e._animation.setTouch(e._direction.axis),e.currentAnimation={direction:o,percent:0};var l=e.slider[e._direction[o]](!1);if(!l)return e.currentAnimation=null,!1}if(e.currentAnimation){var d=e._direction.get(s,e.currentAnimation.direction);if(e.logDistance(d),e.currentAnimation.percent&lt;1){var h=Math.max(-.99999,Math.min(.99999,d/e.slider.dimensions.slider[e._property]));e.currentAnimation.percent=h,e._animation.setTouchProgress(h)}if((r||Math.abs(d)&gt;e._direction.minDistance)&amp;&amp;t.cancelable)return r=!0,!0}return!1},end:function(t,i,s,n,r){if(null!==e.currentAnimation){var a=r?0:e.measureRealDirection(),o=e._animation.timeline.progress();1!=o&amp;&amp;e._animation.setTouchEnd(a,e.currentAnimation.percent,s.time),e.swipeElement.removeClass("n2-grabbing"),e._animation.setTouch(!1),e.currentAnimation=null}Math.abs(s.x)&lt;10&amp;&amp;Math.abs(s.y)&lt;10?e.onTap(t):nextend.preventClick()}})},this);if(navigator.userAgent.toLowerCase().indexOf("android")&gt;-1){var a=this.swipeElement.parent();1!=a.css("opacity")?this.swipeElement.parent().one("transitionend",n):n()}else n();this.parameters.fallbackToMouseEvents||this.swipeElement.on("click",e.proxy(this.onTap,this)),this.parameters.fallbackToMouseEvents&amp;&amp;this.swipeElement.addClass("n2-grab"),t.controls.touch=this}var n=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,r=!1,a=!1;s.prototype.setHorizontal=function(){this._property="width",this._direction={left:nextend.rtl.next,right:nextend.rtl.previous,up:null,down:null,axis:"horizontal",minDistance:10,measure:function(e){return!r&amp;&amp;Math.abs(e.x)&lt;10||0==e.x||Math.abs(e.x)&lt;Math.abs(e.y)?"unknown":e.x&lt;0?"left":"right"},get:function(e,t){return"left"==t?-e.x:e.x}},n&amp;&amp;(this.swipeElement.css("-ms-touch-action","pan-y"),this.swipeElement.css("touch-action","pan-y"))},s.prototype.setVertical=function(){this._property="height",this._direction={left:null,right:null,up:"next",down:"previous",axis:"vertical",minDistance:1,measure:function(e){return!r&amp;&amp;Math.abs(e.y)&lt;1||0==e.y||Math.abs(e.y)&lt;Math.abs(e.x)?"unknown":e.y&lt;0?"up":"down"},get:function(e,t){return"up"==t?-e.y:e.y}},n&amp;&amp;(this.swipeElement.css("-ms-touch-action","pan-x"),this.swipeElement.css("touch-action","pan-x"))},s.prototype.logDistance=function(e){this.distance.length&gt;3&amp;&amp;this.distance.shift(),this.distance.push(e)},s.prototype.measureRealDirection=function(){var e=this.distance[0],t=this.distance[this.distance.length-1];return t&gt;=0&amp;&amp;e&gt;t||0&gt;t&amp;&amp;t&gt;e?0:1},s.prototype.onTap=function(t){a||(e(t.target).trigger("n2click"),a=!0,setTimeout(function(){a=!1},500))},t.NextendSmartSliderControlTouch=s}(n2,window),function(e,t,i){function s(e){return e.position()}function s(e){return{left:e.prop("offsetLeft"),top:e.prop("offsetTop")}}function n(t,i,s,n){"undefined"==typeof n&amp;&amp;(n=!1),this.isStaticSlide=n,this.status=a.NOT_INITIALIZED,this.slider=t,this.slider.isFirstSlide=!0,this.$slideElement=i,i.data("slide",this),t.parameters.admin?this.minimumSlideDuration=0:(this.minimumSlideDuration=i.data("slide-duration"),e.isNumeric(this.minimumSlideDuration)||(this.minimumSlideDuration=0)),this.findLayers(),this.slider.parameters.admin&amp;&amp;i.is(this.slider.adminGetCurrentSlideElement())||this.initResponsiveMode(),this.status=a.INITIALIZED,this.playOnce=!this.slider.isAdmin&amp;&amp;this.slider.parameters.layerMode.playOnce}function r(e,t,i,s){this.layerAnimations=[],this.slide=e,e.$slideElement.off(".n2-ss-animations");for(var n=0;n&lt;t.length;n++){var r=t.eq(n);this.layerAnimations.push(new SlideLayerAnimations(e,this,r,r.find(".n2-ss-layer-mask, .n2-ss-layer-parallax").addBack().last(),i,s))}}var a={NOT_INITIALIZED:-1,INITIALIZED:0,READY_TO_START:1,PLAYING:2,ENDED:3},o=["left","top","width","height"];/(MSIE\ [0-7]\.\d+)/.test(navigator.userAgent),n.prototype.isActive=function(){return this.$slideElement.hasClass("n2-ss-slide-active")},n.prototype.findLayers=function(){this.$groups=this.$slideElement.find(".n2-ss-layer-group"),this.$layers=this.$slideElement.find(".n2-ss-layer").each(e.proxy(function(t,i){for(var s=e(i),n=0;n&lt;o.length;n++){var r=o[n];s.data("desktop"+r,parseFloat(i.style[r]))}var a=this.getLayerProperty(s,"parentid");"undefined"!=typeof a&amp;&amp;a?(a=e("#"+a),a.length&gt;0&amp;&amp;s.data("parent",a)):s.data("parent",!1)},this)),this.$animatable=this.$groups.add(this.$layers).filter('[data-animations!=""]'),this.$parallax=this.$animatable.filter("[data-parallax]")},n.prototype.getLayerResponsiveProperty=function(e,t,i){var s=e.data(t+i);return"undefined"!=typeof s?s:"desktopportrait"!=t?e.data("desktopportrait"+i):0},n.prototype.getLayerProperty=function(e,t){return e.data(t)},n.prototype.initResponsiveMode=function(){this.slider.sliderElement.on("SliderDeviceOrientation",e.proxy(function(t,i){var s=i.device+i.orientation.toLowerCase();this.currentMode=s,this.$layers.each(e.proxy(function(t,i){var n=e(i),r=n.data(s);n.data("parent");"undefined"==typeof r||parseInt(r)?(this.getLayerProperty(n,"adaptivefont")?n.css("font-size",16*this.getLayerResponsiveProperty(n,this.currentMode,"fontsize")/100+"px"):n.css("font-size",this.getLayerResponsiveProperty(n,this.currentMode,"fontsize")+"%"),n.data("shows",1),n.css("display","block")):(n.data("shows",0),n.css("display","none"))},this))},this)).on("SliderResize",e.proxy(function(t,i,s){var n=s.responsiveDimensions;this.$layers.each(e.proxy(function(t,s){this.repositionLayer(e(s),i,n)},this))},this))},n.prototype.isDimensionPropertyAccepted=function(e){return!(!(e+"").match(/[0-9]+%/)&amp;&amp;"auto"!=e)},n.prototype.repositionLayer=function(e,t,i){var n=t.slideW,r=n,a=t.slideH,o=a;parseInt(this.getLayerProperty(e,"responsivesize"))||(r=o=1);var l=this.getLayerResponsiveProperty(e,this.currentMode,"width");e.css("width",this.isDimensionPropertyAccepted(l)?l:l*r+"px");var d=this.getLayerResponsiveProperty(e,this.currentMode,"height");e.css("height",this.isDimensionPropertyAccepted(d)?d:d*o+"px"),parseInt(this.getLayerProperty(e,"responsiveposition"))||(n=a=1);var h=this.getLayerResponsiveProperty(e,this.currentMode,"left")*n,p=this.getLayerResponsiveProperty(e,this.currentMode,"top")*a,c=this.getLayerResponsiveProperty(e,this.currentMode,"align"),m=this.getLayerResponsiveProperty(e,this.currentMode,"valign"),u={left:"auto",top:"auto",right:"auto",bottom:"auto"},f=this.getLayerProperty(e,"parent");if(f&amp;&amp;f.data("shows")){var y=s(f),g={left:0,top:0};switch(this.getLayerResponsiveProperty(e,this.currentMode,"parentalign")){case"right":g.left=y.left+f.width();break;case"center":g.left=y.left+f.width()/2;break;default:g.left=y.left}switch(c){case"right":u.right=e.parent().width()-g.left-h+"px";break;case"center":u.left=g.left+h-e.width()/2+"px";break;default:u.left=g.left+h+"px"}switch(this.getLayerResponsiveProperty(e,this.currentMode,"parentvalign")){case"bottom":g.top=y.top+f.height();break;case"middle":g.top=y.top+f.height()/2;break;default:g.top=y.top}switch(m){case"bottom":u.bottom=e.parent().height()-g.top-p+"px";break;case"middle":u.top=g.top+p-e.height()/2+"px";break;default:u.top=g.top+p+"px"}}else{switch(c){case"right":u.right=-h+"px";break;case"center":u.left=(this.isStaticSlide?e.parent().width():i.slide.width)/2+h-e.width()/2+"px";break;default:u.left=h+"px"}switch(m){case"bottom":u.bottom=-p+"px";break;case"middle":u.top=(this.isStaticSlide?e.parent().height():i.slide.height)/2+p-e.height()/2+"px";break;default:u.top=p+"px"}}e.css(u)},n.prototype.setZero=function(){this.$slideElement.trigger("layerSetZero",this)},n.prototype.setZeroAll=function(){this.$slideElement.trigger("layerSetZeroAll",this)},n.prototype.setStart=function(){this.status==a.INITIALIZED&amp;&amp;(this.$slideElement.trigger("layerAnimationSetStart"),this.status=a.READY_TO_START)},n.prototype.playIn=function(){this.status==a.READY_TO_START&amp;&amp;(this.status=a.PLAYING,this.$slideElement.trigger("layerAnimationPlayIn"))},n.prototype.playOut=function(){if(this.status==a.PLAYING){var t=[];this.$slideElement.triggerHandler("beforeMainSwitch",[t]),e.when.apply(e,t).done(e.proxy(function(){this.onOutAnimationsPlayed()},this))}else this.onOutAnimationsPlayed()},n.prototype.onOutAnimationsPlayed=function(){this.playOnce?this.status=a.ENDED:this.status=a.INITIALIZED,this.$slideElement.trigger("layerAnimationCompleteOut")},n.prototype.pause=function(){this.$slideElement.triggerHandler("layerPause")},n.prototype.reset=function(){this.$slideElement.triggerHandler("layerReset"),this.status=a.INITIALIZED},n.prototype.getTimeline=function(){return this.layers.getTimeline()},t.NextendSmartSliderSlide=n,r.prototype.refresh=function(e){for(var t=0;t&lt;this.layerAnimations.length;t++)this.layerAnimations[t].refresh(e)},r.prototype.getTimeline=function(){for(var e=new NextendTimeline({paused:1}),t=0;t&lt;this.layerAnimations.length;t++){var i=this.layerAnimations[t];e.add(i.linearTimeline,0),i.linearTimeline.paused(!1)}return e},t.NextendSmartSliderSlideAnimatables=r}(n2,window),function(e,t,i){function s(t,i){this.disableTransitions=!1,this.disableTransitionsTimeout=null,this.lastClientHeight=0,this.lastOrientation=0,t.isAdmin&amp;&amp;(this.doResize=NextendThrottle(this.doResize,50)),"undefined"==typeof nextend.fontsDeferred&amp;&amp;(this.triggerResize=this._triggerResize),this.fixedEditRatio=1,this.normalizeTimeout=null,this.delayedResizeAdded=!1,this.deviceMode=s.DeviceMode.UNKNOWN,this.orientationMode=s.OrientationMode.SCREEN,this.orientation=s.DeviceOrientation.UNKNOWN,this.lastRatios={ratio:-1},this.normalizedMode="unknownUnknown",t.responsive=this,this.widgetMargins={Top:[],Right:[],Bottom:[],Left:[]},this.staticSizes={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},this.enabledWidgetMargins=[],this.slider=t,this.sliderElement=t.sliderElement,this.alignElement=this.slider.sliderElement.closest(".n2-ss-align");var a=this.ready=e.Deferred();switch(this.sliderElement.triggerHandler("SliderResponsiveStarted"),this.sliderElement.one("SliderResize",function(){a.resolve()}),this.containerElementPadding=this.sliderElement.parent(),this.containerElement=this.containerElementPadding.parent(),this.parameters=e.extend({desktop:1,tablet:1,mobile:1,onResizeEnabled:!0,type:"auto",downscale:!0,upscale:!1,constrainRatio:!0,minimumHeight:0,maximumHeight:0,minimumHeightRatio:0,maximumHeightRatio:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},maximumSlideWidth:0,maximumSlideWidthLandscape:0,maximumSlideWidthRatio:-1,maximumSlideWidthTablet:0,maximumSlideWidthTabletLandscape:0,maximumSlideWidthMobile:0,maximumSlideWidthMobileLandscape:0,maximumSlideWidthConstrainHeight:0,forceFull:0,verticalOffsetSelectors:"",focusUser:0,focusAutoplay:0,deviceModes:{desktopLandscape:1,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},normalizedDeviceModes:{unknownUnknown:["unknown","Unknown"],desktopPortrait:["desktop","Portrait"]},verticalRatioModifiers:{unknownUnknown:1,desktopLandscape:1,desktopPortrait:1,mobileLandscape:1,mobilePortrait:1,tabletLandscape:1,tabletPortrait:1},minimumFontSizes:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},ratioToDevice:{Portrait:{tablet:0,mobile:0},Landscape:{tablet:0,mobile:0}},sliderWidthToDevice:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},basedOn:"combined",desktopPortraitScreenWidth:1200,tabletPortraitScreenWidth:800,mobilePortraitScreenWidth:440,tabletLandscapeScreenWidth:1024,mobileLandscapeScreenWidth:740,orientationMode:"width_and_height",scrollFix:0,overflowHiddenPage:0},i),!this.slider.isAdmin&amp;&amp;this.parameters.overflowHiddenPage&amp;&amp;e("html, body").css("overflow","hidden"),"width"==this.parameters.orientationMode&amp;&amp;(this.orientationMode=s.OrientationMode.SCREEN_WIDTH_ONLY),nextend.smallestZoom=Math.min(Math.max(i.sliderWidthToDevice.mobilePortrait,120),380),this.parameters.basedOn){case"screen":break;default:if(null==n){var o=new MobileDetect(window.navigator.userAgent,801);n=!!o.tablet(),r=!!o.phone()}}if(!(this.slider.isAdmin||this.parameters.desktop&amp;&amp;this.parameters.tablet&amp;&amp;this.parameters.mobile)){if(null==n){var o=new MobileDetect(window.navigator.userAgent,801);n=!!o.tablet(),r=!!o.phone()}if(!this.parameters.mobile&amp;&amp;r||!this.parameters.tablet&amp;&amp;n||!this.parameters.desktop&amp;&amp;!n&amp;&amp;!r)return void this.slider.kill()}if(this.verticalOffsetSelectors=e(this.parameters.verticalOffsetSelectors),this.storeDefaults(),this.parameters.minimumHeight&gt;0&amp;&amp;(this.parameters.minimumHeightRatio=this.parameters.minimumHeight/this.responsiveDimensions.startHeight),this.parameters.maximumHeight&gt;0&amp;&amp;this.parameters.maximumHeight&gt;=this.parameters.minimumHeight&amp;&amp;(this.parameters.maximumHeightRatio={desktopPortrait:this.parameters.maximumHeight/this.responsiveDimensions.startHeight},this.parameters.maximumHeightRatio.desktopLandscape=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.tabletPortrait=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.tabletLandscape=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.mobilePortrait=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.mobileLandscape=this.parameters.maximumHeightRatio.desktopPortrait),this.parameters.maximumSlideWidth&gt;0&amp;&amp;(this.parameters.maximumSlideWidthRatio={desktopPortrait:this.parameters.maximumSlideWidth/this.responsiveDimensions.startSlideWidth,desktopLandscape:this.parameters.maximumSlideWidthLandscape/this.responsiveDimensions.startSlideWidth,tabletPortrait:this.parameters.maximumSlideWidthTablet/this.responsiveDimensions.startSlideWidth,tabletLandscape:this.parameters.maximumSlideWidthTabletLandscape/this.responsiveDimensions.startSlideWidth,mobilePortrait:this.parameters.maximumSlideWidthMobile/this.responsiveDimensions.startSlideWidth,mobileLandscape:this.parameters.maximumSlideWidthMobileLandscape/this.responsiveDimensions.startSlideWidth},this.parameters.maximumSlideWidthConstrainHeight)){this.parameters.maximumHeightRatio=e.extend({},this.parameters.maximumSlideWidthRatio);for(var l in this.parameters.maximumHeightRatio)this.parameters.maximumHeightRatio[l]*=this.parameters.verticalRatioModifiers[l]}if("undefined"!=typeof nextend&amp;&amp;"undefined"!=typeof nextend.ssBeforeResponsive&amp;&amp;nextend.ssBeforeResponsive.call(this),this.onResize(),(this.parameters.onResizeEnabled||"adaptive"==this.parameters.type)&amp;&amp;(e(window).on("resize",e.proxy(this.onResize,this)),this.sliderElement.on("SliderInternalResize",e.proxy(this.onResize,this)),this.parameters.scrollFix))try{var d=this;e('&lt;iframe sandbox="allow-same-origin allow-scripts" style="height: 0; background-color: transparent; margin: 0; padding: 0; overflow: hidden; border-width: 0; position: absolute; width: 100%;"/&gt;').on("load",function(t){e(t.target.contentWindow?t.target.contentWindow:t.target.contentDocument.defaultView).on("resize",function(){d.sliderElement.triggerHandler("SliderInternalResize")})}).insertBefore(this.containerElement)}catch(h){}}var n=null,r=null;s.OrientationMode={SCREEN:0,ADMIN_LANDSCAPE:1,ADMIN_PORTRAIT:2,SCREEN_WIDTH_ONLY:3},s.DeviceOrientation={UNKNOWN:0,LANDSCAPE:1,PORTRAIT:2},s._DeviceOrientation={0:"Unknown",1:"Landscape",2:"Portrait"},s.DeviceMode={UNKNOWN:0,DESKTOP:1,TABLET:2,MOBILE:3},s._DeviceMode={0:"unknown",1:"desktop",2:"tablet",3:"mobile"},s.prototype.getOuterWidth=function(){var e=this.responsiveDimensions;return e.startSliderWidth+e.startSliderMarginLeft+e.startSliderMarginRight},s.prototype.storeDefaults=function(){this.responsiveDimensions={startWidth:this.sliderElement.outerWidth(!0),startHeight:this.sliderElement.outerHeight(!0)},this.responsiveElements=[],this.helperElements={},this.addResponsiveElements(),this.margins={top:this.responsiveDimensions.startSliderMarginTop,right:this.responsiveDimensions.startSliderMarginRight,bottom:this.responsiveDimensions.startSliderMarginBottom,left:this.responsiveDimensions.startSliderMarginLeft}},s.prototype.addResponsiveElements=function(){},s.prototype.addResponsiveElement=function(e,t,i,s){"undefined"!=typeof i&amp;&amp;i||(i="ratio");var n=new NextendSmartSliderResponsiveElement(this,i,e,t,s);return this.responsiveElements.push(n),n},s.prototype.addResponsiveElementBackgroundImage=function(e,t,i,s,n){"undefined"!=typeof s&amp;&amp;s||(s="ratio");var r=new NextendSmartSliderResponsiveElementBackgroundImage(this,t,s,e,i,n);return this.responsiveElements.push(r),r},s.prototype.addResponsiveElementAsSingle=function(e,t,i,s){for(var n=[],r=0;r&lt;e.length;r++)n.push(this.addResponsiveElement(e.eq(r),t.slice(0),i,s));return n},s.prototype.addResponsiveElementBackgroundImageAsSingle=function(e,t,i,s,n){for(var r=[],a=0;a&lt;e.length;a++)r.push(this.addResponsiveElementBackgroundImage(e.eq(a),t,i.slice(0),s,n));return r},s.prototype.resizeResponsiveElements=function(e,t,i){for(var s=0;s&lt;this.responsiveElements.length;s++){var n=this.responsiveElements[s];"undefined"==typeof e[n.group]&amp;&amp;console.log("error with "+n.group),n.resize(this.responsiveDimensions,e[n.group],t,i)}},s.prototype.getDeviceMode=function(){return s._DeviceMode[this.deviceMode]},s.prototype.getDeviceModeOrientation=function(){return s._DeviceMode[this.deviceMode]+s._DeviceOrientation[this.orientation]},s.prototype.onResize=function(){"ended"==this.slider.mainAnimation.getState()?this.doResize():this.delayedResizeAdded||(this.delayedResizeAdded=!0,this.sliderElement.on("mainAnimationComplete.responsive",e.proxy(this._doDelayedResize,this)))},s.prototype._doDelayedResize=function(){this.doResize(),this.delayedResizeAdded=!1},s.prototype.doNormalizedResize=function(){this.normalizeTimeout&amp;&amp;clearTimeout(this.normalizeTimeout),this.normalizeTimeout=setTimeout(e.proxy(this.doResize,this),10)},s.prototype._getOrientation=function(){return this.orientationMode==s.OrientationMode.SCREEN?window.innerHeight&lt;=window.innerWidth?s.DeviceOrientation.LANDSCAPE:s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_PORTRAIT?s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_LANDSCAPE?s.DeviceOrientation.LANDSCAPE:void 0},s.prototype._getDevice=function(){switch(this.parameters.basedOn){case"combined":return this._getDeviceDevice(this._getDeviceScreenWidth());case"device":return this._getDeviceDevice(s.DeviceMode.DESKTOP);case"screen":return this._getDeviceScreenWidth()}},s.prototype._getDeviceScreenWidth=function(){var e=window.innerWidth;if(this.orientation==s.DeviceOrientation.PORTRAIT){if(e&lt;this.parameters.mobilePortraitScreenWidth)return s.DeviceMode.MOBILE;if(e&lt;this.parameters.tabletPortraitScreenWidth)return s.DeviceMode.TABLET}else{if(e&lt;this.parameters.mobileLandscapeScreenWidth)return s.DeviceMode.MOBILE;if(e&lt;this.parameters.tabletLandscapeScreenWidth)return s.DeviceMode.TABLET}return s.DeviceMode.DESKTOP},s.prototype._getDeviceAndOrientationByScreenWidth=function(){var e=window.innerWidth;return e&lt;this.parameters.mobilePortraitScreenWidth?[s.DeviceMode.MOBILE,s.DeviceOrientation.PORTRAIT]:e&lt;this.parameters.mobileLandscapeScreenWidth?[s.DeviceMode.MOBILE,s.DeviceOrientation.LANDSCAPE]:e&lt;this.parameters.tabletPortraitScreenWidth?[s.DeviceMode.TABLET,s.DeviceOrientation.PORTRAIT]:e&lt;this.parameters.tabletLandscapeScreenWidth?[s.DeviceMode.TABLET,s.DeviceOrientation.LANDSCAPE]:e&lt;this.parameters.desktopPortraitScreenWidth?[s.DeviceMode.DESKTOP,s.DeviceOrientation.PORTRAIT]:[s.DeviceMode.DESKTOP,s.DeviceOrientation.LANDSCAPE]},s.prototype._getDeviceDevice=function(e){return r===!0?s.DeviceMode.MOBILE:n&amp;&amp;e!=s.DeviceMode.MOBILE?s.DeviceMode.TABLET:e},s.prototype._getDeviceZoom=function(e){var t;this.orientationMode==s.OrientationMode.ADMIN_PORTRAIT?t=s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_LANDSCAPE&amp;&amp;(t=s.DeviceOrientation.LANDSCAPE);var i=s.DeviceMode.DESKTOP;return e-this.parameters.ratioToDevice[s._DeviceOrientation[t]].mobile&lt;.001?i=s.DeviceMode.MOBILE:e-this.parameters.ratioToDevice[s._DeviceOrientation[t]].tablet&lt;.001&amp;&amp;(i=s.DeviceMode.TABLET),i},s.prototype.reTriggerSliderDeviceOrientation=function(){var e=this._normalizeMode(s._DeviceMode[this.deviceMode],s._DeviceOrientation[this.orientation]);this.sliderElement.trigger("SliderDeviceOrientation",{lastDevice:e[0],lastOrientation:e[1],device:e[0],orientation:e[1]})},s.prototype.doResize=function(t,i,n,r){if(this.disableTransitions||(this.disableTransitions=!0,this.sliderElement.addClass("n2notransition"),this.disableTransitionsTimeout&amp;&amp;clearTimeout(this.disableTransitionsTimeout),this.disableTransitionsTimeout=setTimeout(e.proxy(function(){this.sliderElement.removeClass("n2notransition"),this.disableTransitions=!1},this),500)),this.refreshMargin(),"center"==this.slider.parameters.align&amp;&amp;("fullpage"==this.parameters.type?this.alignElement.css("maxWidth","none"):this.alignElement.css("maxWidth",this.responsiveDimensions.startWidth)),!this.slider.isAdmin&amp;&amp;this.parameters.forceFull){e("body").css("overflow-x","hidden");var a=document.body.clientWidth||document.documentElement.clientWidth,o=this.containerElement.parent(),l=o.offset();nextend.isRTL&amp;&amp;(l.right=a-(l.left+o.outerWidth())),this.containerElement.css(nextend.rtl.marginLeft,-l[nextend.rtl.left]-parseInt(o.css("paddingLeft"))-parseInt(o.css("borderLeftWidth"))).width(a)}var d=this.containerElementPadding.width()/this.getOuterWidth(),h=!1,p=this.orientation,c=this.deviceMode,m=null,u=null;if(this.orientationMode==s.OrientationMode.SCREEN_WIDTH_ONLY){var f=this._getDeviceAndOrientationByScreenWidth();u=f[0],m=f[1]}else m=this._getOrientation();if(this.orientation!=m&amp;&amp;(this.orientation=m,h=!0,this.sliderElement.trigger("SliderOrientation",{lastOrientation:s._DeviceOrientation[p],orientation:s._DeviceOrientation[m]})),t||(this.orientationMode!=s.OrientationMode.SCREEN_WIDTH_ONLY&amp;&amp;(u=this._getDevice(d)),this.deviceMode!=u&amp;&amp;(this.deviceMode=u,this.sliderElement.removeClass("n2-ss-"+s._DeviceMode[c]).addClass("n2-ss-"+s._DeviceMode[u]),this.sliderElement.trigger("SliderDevice",{lastDevice:s._DeviceMode[c],device:s._DeviceMode[u]}),h=!0)),!this.slider.isAdmin&amp;&amp;"fullpage"==this.parameters.type){var y=0;if(/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||window.opera)){var g=!1;90==Math.abs(window.orientation)?(y=Math.min(screen.width,window.innerHeight),90!=this.lastOrientation&amp;&amp;(g=!0,this.lastOrientation=90)):(y=Math.min(screen.height,window.innerHeight),0!=this.lastOrientation&amp;&amp;(g=!0,this.lastOrientation=0)),!g&amp;&amp;Math.abs(y-this.lastClientHeight)&lt;100?y=this.lastClientHeight:this.lastClientHeight=y}else y=document.documentElement.clientHeight||document.body.clientHeight;this.parameters.maximumHeightRatio[this.getDeviceModeOrientation()]=this.parameters.minimumHeightRatio=(y-this.getVerticalOffsetHeight())/this.responsiveDimensions.startHeight}if(h){var v=this._normalizeMode(s._DeviceMode[c],s._DeviceOrientation[p]),x=this._normalizeMode(s._DeviceMode[this.deviceMode],s._DeviceOrientation[this.orientation]);v[0]==x[0]&amp;&amp;v[1]==x[1]||(this.normalizedMode=x[0]+x[1],this.sliderElement.trigger("SliderDeviceOrientation",{lastDevice:v[0],lastOrientation:v[1],device:x[0],orientation:x[1]}))}var S=this.parameters.sliderWidthToDevice[this.normalizedMode]/this.parameters.sliderWidthToDevice.desktopPortrait;!this.parameters.downscale&amp;&amp;S&gt;d?d=S:!this.parameters.upscale&amp;&amp;d&gt;S&amp;&amp;(d=S),this._doResize(d,i,n,r),"center"==this.slider.parameters.align&amp;&amp;this.alignElement.css("maxWidth",this.responsiveDimensions.slider.width)},s.prototype._normalizeMode=function(e,t){return this.parameters.normalizedDeviceModes[e+t]},s.prototype.getNormalizedModeString=function(){var e=this._normalizeMode(s._DeviceMode[this.deviceMode],s._DeviceOrientation[this.orientation]);return e.join("")},s.prototype.getModeString=function(){return s._DeviceMode[this.deviceMode]+s._DeviceOrientation[this.orientation]},s.prototype.isEnabled=function(e,t){return this.parameters.deviceModes[e+t]},s.prototype._doResize=function(e,t,i,s){var n={ratio:e,w:e,h:e,slideW:e,slideH:e,fontRatio:1};this._buildRatios(n,this.slider.parameters.dynamicHeight,i),n.fontRatio=n.slideW;var r=!1;for(var a in n)if(n[a]!=this.lastRatios[a]){r=!0;break}r&amp;&amp;(this.resizeResponsiveElements(n,t,s),this.lastRatios=n,t?(this.sliderElement.trigger("SliderAnimatedResize",[n,t,s]),t.eventCallback("onComplete",function(){this.triggerResize(n,t)},[],this)):this.triggerResize(n,t))},s.prototype.triggerResize=function(t,i){nextend.fontsDeferred.done(e.proxy(function(){this.triggerResize=this._triggerResize,this._triggerResize(t,i)},this))},s.prototype._triggerResize=function(e,t){this.sliderElement.trigger("SliderResize",[e,this,t])},s.prototype._buildRatios=function(e,t,i){var s=this.getDeviceModeOrientation();this.parameters.maximumSlideWidthRatio[s]&gt;0&amp;&amp;e.slideW&gt;this.parameters.maximumSlideWidthRatio[s]&amp;&amp;(e.slideW=this.parameters.maximumSlideWidthRatio[s]),e.slideW=e.slideH=Math.min(e.slideW,e.slideH);var n=this.parameters.verticalRatioModifiers[s];if(e.slideH*=n,"fullpage"==this.parameters.type)e.h*=n,this.parameters.minimumHeightRatio&gt;0&amp;&amp;(e.h=Math.max(e.h,this.parameters.minimumHeightRatio)),this.parameters.maximumHeightRatio[s]&gt;0&amp;&amp;(e.h=Math.min(e.h,this.parameters.maximumHeightRatio[s])),this.slider.isAdmin?this.parameters.constrainRatio?(e.slideH=Math.min(e.slideH,e.h),e.slideH=e.slideW=Math.min(e.slideW,e.slideH)):(e.w=e.slideW,e.h=e.slideH):this.parameters.constrainRatio?(e.slideH=Math.min(e.slideH,e.h),e.slideH=e.slideW=Math.min(e.slideW,e.slideH)):(e.slideW=e.w,this.parameters.maximumSlideWidthRatio[s]&gt;0&amp;&amp;e.slideW&gt;this.parameters.maximumSlideWidthRatio[s]&amp;&amp;(e.slideW=this.parameters.maximumSlideWidthRatio[s]),e.slideH=e.h);else if(e.h*=n,this.parameters.minimumHeightRatio&gt;0&amp;&amp;(e.h=Math.max(e.h,this.parameters.minimumHeightRatio)),this.parameters.maximumHeightRatio[s]&gt;0&amp;&amp;(e.h=Math.min(e.h,this.parameters.maximumHeightRatio[s])),e.slideH=Math.min(e.slideH,e.h),e.slideW=e.slideH/n,"showcase"==this.slider.type&amp;&amp;(e.slideW=Math.min(e.slideW,e.w),e.slideH=Math.min(e.slideW,e.slideH)),t){var r=this.slider.currentSlideIndex;"undefined"!=typeof i&amp;&amp;(r=i);var a=this.slider.backgroundImages.backgroundImages[r].responsiveElement.relativeRatio;-1!=a&amp;&amp;(e.slideH*=a,e.h*=a)}this.sliderElement.triggerHandler("responsiveBuildRatios",[e])},s.prototype.setOrientation=function(e){"portrait"==e?this.orientationMode=s.OrientationMode.ADMIN_PORTRAIT:"landscape"==e&amp;&amp;(this.orientationMode=s.OrientationMode.ADMIN_LANDSCAPE)},s.prototype.setMode=function(e,t){var i;if(this.orientationMode==s.OrientationMode.ADMIN_PORTRAIT?i=s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_LANDSCAPE&amp;&amp;(i=s.DeviceOrientation.LANDSCAPE),
this==t){var n=this.parameters.sliderWidthToDevice[e+s._DeviceOrientation[i]];if(n=nextend.smallestZoom+(this.parameters.sliderWidthToDevice.desktopPortrait-nextend.smallestZoom)/50*Math.floor((n-nextend.smallestZoom)/((this.parameters.sliderWidthToDevice.desktopPortrait-nextend.smallestZoom)/50)),"mobile"==e)switch(s._DeviceOrientation[i]){case"Portrait":n=Math.max(nextend.smallestZoom,380);break;case"Landscape":n=Math.max(nextend.smallestZoom,568)}this.setSize(n),this.containerElement.width()&gt;n&amp;&amp;(n=this.parameters.sliderWidthToDevice[e+s._DeviceOrientation[i]]-(this.parameters.sliderWidthToDevice.desktopPortrait-nextend.smallestZoom)/50,this.setSize(n))}},s.prototype.setSize=function(e){this.containerElement.width(e),this.doResize()},s.prototype.getCanvas=function(){return null},s.prototype.getVerticalOffsetHeight=function(){for(var e=0,t=0;t&lt;this.verticalOffsetSelectors.length;t++)e+=this.verticalOffsetSelectors.eq(t).outerHeight();return e},s.prototype.addMargin=function(e,t){this.widgetMargins[e].push(t),t.isVisible()&amp;&amp;(this._addMarginSize(e,t.getSize()),this.enabledWidgetMargins.push(t)),this.doNormalizedResize()},s.prototype.addStaticMargin=function(e,t){this.widgetStaticMargins||(this.widgetStaticMargins={Top:[],Right:[],Bottom:[],Left:[]}),this.widgetStaticMargins[e].push(t),this.doNormalizedResize()},s.prototype.refreshMargin=function(){for(var t in this.widgetMargins)for(var i=this.widgetMargins[t],s=i.length-1;s&gt;=0;s--){var n=i[s];if(n.isVisible())-1==e.inArray(n,this.enabledWidgetMargins)&amp;&amp;(this._addMarginSize(t,n.getSize()),this.enabledWidgetMargins.push(n));else{var r=e.inArray(n,this.enabledWidgetMargins);-1!=r&amp;&amp;(this._addMarginSize(t,-n.getSize()),this.enabledWidgetMargins.splice(r,1))}}this.refreshStaticSizes()},s.prototype.refreshStaticSizes=function(){if(this.widgetStaticMargins){var e={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0};for(var t in this.widgetStaticMargins)for(var i=this.widgetStaticMargins[t],s=i.length-1;s&gt;=0;s--){var n=i[s];n.isVisible()&amp;&amp;(e["padding"+t]+=n.getSize())}for(var r in e)this.containerElementPadding.css(e);this.staticSizes=e}},s.prototype._addMarginSize=function(e,t){var i=null;switch(e){case"Top":case"Bottom":i=this._sliderVertical;break;default:i=this._sliderHorizontal}i.data["margin"+e]+=t,this.responsiveDimensions["startSliderMargin"+e]+=t},t.NextendSmartSliderResponsive=s}(n2,window),function(e,t,i){function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function n(t,i,s,n,r){if(this.loadDefaults(),this._lastRatio=1,this.responsive=t,this.group=i,this.element=s,this.lazyload=this.responsive.slider.parameters.lazyload.enabled,this._readyDeferred=e.Deferred(),"undefined"!=typeof r?this.name=r:this.name=null,this.tagName=s.prop("tagName"),this.data={},this.helper={parent:null,parentProps:null,fontSize:!1,centered:!1},this.customLoad)this.customLoad(n);else switch(this.tagName){case"IMG":var a=s.parent();this.helper.parentProps={width:a.width(),height:a.height()},this.lazyload?s.on("lazyloaded",e.proxy(this._lateInitIMG,this,n)):s.n2imagesLoaded(e.proxy(this._lateInitIMG,this,n));break;default:this._lateInit(n)}}function r(e,t,i,s,r,a){this.ratio=-1,this.relativeRatio=1,this.x=50,this.y=50,this.backgroundImage=t,n.prototype.constructor.call(this,e,i,s,r,a),t.addResponsiveElement(this)}n.prototype.loadDefaults=function(){this.customLoad=!1,this.lazyload=!1},n.prototype._lateInit=function(t){this._cssProperties=t,this.reloadDefault(),-1!=e.inArray("fontSize",t)&amp;&amp;(this.data.fontSize=this.element.data("fontsize"),this.helper.fontSize={fontSize:this.element.data("fontsize"),desktopPortrait:this.element.data("minfontsizedesktopportrait"),desktopLandscape:this.element.data("minfontsizedesktoplandscape"),tabletPortrait:this.element.data("minfontsizetabletportrait"),tabletLandscape:this.element.data("minfontsizetabletlandscape"),mobilePortrait:this.element.data("minfontsizemobileportrait"),mobileLandscape:this.element.data("minfontsizemobilelandscape")},this.responsive.sliderElement.on("SliderDeviceOrientation",e.proxy(this.onModeChange,this))),this.resize=this._resize,this._readyDeferred.resolve()},n.prototype.reloadDefault=function(){for(var e=0;e&lt;this._cssProperties.length;e++){var t=this._cssProperties[e];this.data[t]=parseInt(this.element.css(t))}if(this.name){var i=this.responsive.responsiveDimensions;for(var n in this.data)i["start"+s(this.name)+s(n)]=this.data[n]}},n.prototype._lateInitIMG=function(t,i){var s=this.element.width(),n=this.element.height();n=parseInt(this.helper.parentProps.width/s*n),s=this.helper.parentProps.width;var r=e.inArray("width",t);-1!=r&amp;&amp;(t.splice(r,1),this.data.width=s);var a=e.inArray("height",t);-1!=a&amp;&amp;(t.splice(a,1),this.data.height=n),this._lateInit(t)},n.prototype.ready=function(e){this._readyDeferred.done(e)},n.prototype.resize=function(t,i){this.ready(e.proxy(this.resize,this,t,i)),this._lastRatio=i},n.prototype._resize=function(e,t,i,s){this.name&amp;&amp;"undefined"==typeof e[this.name]&amp;&amp;(e[this.name]={});var n={};for(var r in this.data){var a=this.data[r]*t;"function"==typeof this[r+"Prepare"]&amp;&amp;(a=this[r+"Prepare"](a)),this.name&amp;&amp;(e[this.name][r]=a),n[r]=a}i?i.to(this.element,s,n,0):(this.element.css(n),this.helper.centered&amp;&amp;(n2const.isIOS&amp;&amp;"IMG"==this.tagName&amp;&amp;(this.element.css({marginTop:1}),this.element.css(nextend.rtl.marginLeft,1)),this.element.css({marginTop:this.getVerticalMargin(parseInt((this.helper.parent.height()-this.element.height())/2))}),this.element.css(nextend.rtl.marginLeft,this.getHorizontalMargin(parseInt((this.helper.parent.width()-this.element.width())/2))))),this._lastRatio=t},n.prototype.getHorizontalMargin=function(e){return e},n.prototype.getVerticalMargin=function(e){return e},n.prototype._refreshResize=function(){this.responsive.ready.done(e.proxy(function(){this._resize(this.responsive.responsiveDimensions,this.responsive.lastRatios[this.group])},this))},n.prototype.widthPrepare=function(e){return Math.round(e)},n.prototype.heightPrepare=function(e){return Math.round(e)},n.prototype.marginLeftPrepare=function(e){return parseInt(e)},n.prototype.marginRightPrepare=function(e){return parseInt(e)},n.prototype.lineHeightPrepare=function(e){return e+"px"},n.prototype.fontSizePrepare=function(e){var t=this.responsive.getNormalizedModeString();return e&lt;this.helper.fontSize[t]?this.helper.fontSize[t]:e},n.prototype.setCentered=function(){this.helper.parent=this.element.parent(),this.helper.centered=!0},n.prototype.unsetCentered=function(){this.helper.centered=!1},n.prototype.onModeChange=function(){this.setFontSizeByMode()},n.prototype.setFontSizeByMode=function(){this.element.css("fontSize",this.fontSizePrepare(this.data.fontSize*this._lastRatio))},t.NextendSmartSliderResponsiveElement=n,r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.prototype.customLoad=function(t){var i=this.element.parent();this.helper.parentProps={width:i.width(),height:i.height()},this.backgroundImage.afterLoaded().done(e.proxy(function(){this._lateInitIMG(t)},this))},r.prototype._lateInitIMG=function(e,t){"fill"!=this.backgroundImage.mode&amp;&amp;"fit"!=this.backgroundImage.mode&amp;&amp;"simple"!=this.backgroundImage.mode||(this.refreshRatio(),this.responsive.slider.parameters.dynamicHeight||this.setCentered()),this._lateInit(e)},r.prototype.afterLoaded=function(){"fill"!=this.backgroundImage.mode&amp;&amp;"fit"!=this.backgroundImage.mode&amp;&amp;"simple"!=this.backgroundImage.mode||(this.refreshRatio(),this.responsive.slider.parameters.dynamicHeight||this.setCentered())},r.prototype._resize=function(e,t,i,s){if(this.responsive.slider.parameters.dynamicHeight)this.element.css({width:"100%",height:"100%"});else{var r=e.slideouter||e.slide,a=r.width/r.height;"fill"==this.backgroundImage.mode?a&gt;this.ratio?this.element.css({width:"100%",height:"auto"}):this.element.css({width:"auto",height:"100%"}):"fit"==this.backgroundImage.mode&amp;&amp;(a&lt;this.ratio?this.element.css({width:"100%",height:"auto"}):this.element.css({width:"auto",height:"100%"}))}n.prototype._resize.call(this,e,t,i,s)},r.prototype.refreshRatio=function(){var e=this.element.prop("naturalWidth"),t=this.element.prop("naturalHeight");this.ratio=e/t;var i=this.responsive.responsiveDimensions.startSlideWidth,s=this.responsive.responsiveDimensions.startSlideHeight;this.relativeRatio=i/s/this.ratio,this.x=parseInt(this.element.data("x")),isNaN(this.x)&amp;&amp;(this.x=50),this.y=parseInt(this.element.data("y")),isNaN(this.y)&amp;&amp;(this.y=50)},r.prototype.getHorizontalMargin=function(e){return e*(this.x/50)},r.prototype.getVerticalMargin=function(e){return e*(this.y/50)},t.NextendSmartSliderResponsiveElementBackgroundImage=r}(n2,window),function(e,t,i){function s(t,i,s,n,r){this.readyDeferred=e.Deferred(),this.slider=t,this.playerId=i,this.parameters=e.extend({vimeourl:"//vimeo.com/144598279",center:0,autoplay:"0",reset:"0",title:"1",byline:"1",portrait:"0",loop:"0",color:"00adef",volume:"-1"},n),navigator.userAgent.toLowerCase().indexOf("android")&gt;-1&amp;&amp;(this.parameters.autoplay=0),1==this.parameters.autoplay||!r||n2const.isMobile?this.ready(e.proxy(this.initVimeoPlayer,this)):e("#"+this.playerId).on("click.vimeo n2click.vimeo",e.proxy(function(t){e(t.currentTarget).off(".vimeo"),t.preventDefault(),t.stopPropagation(),this.ready(e.proxy(function(){this.readyDeferred.done(e.proxy(function(){this.play()},this)),this.initVimeoPlayer()},this))},this))}s.vimeoDeferred=null,s.prototype.ready=function(t){null===s.vimeoDeferred&amp;&amp;(s.vimeoDeferred=e.getScript("https://player.vimeo.com/api/player.js")),s.vimeoDeferred.done(t)},s.prototype.initVimeoPlayer=function(){var t=n2('&lt;iframe id="'+this.playerId+'_video" src="https://player.vimeo.com/video/'+this.parameters.vimeocode+"?autoplay=0&amp;_video&amp;title="+this.parameters.title+"&amp;byline="+this.parameters.byline+"&amp;background="+this.parameters.background+"&amp;portrait="+this.parameters.portrait+"&amp;color="+this.parameters.color+"&amp;loop="+this.parameters.loop+("-1"==this.parameters.quality?"":"&amp;quality="+this.parameters.quality)+'" style="position: absolute; top:0; left: 0; width: 100%; height: 100%;" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen&gt;&lt;/iframe&gt;');e("#"+this.playerId).append(t),this.isStatic=t.closest(".n2-ss-static-slide").length,this.playerElement=t,this.player=new Vimeo.Player(t[0]),this.player.ready().then(e.proxy(this.onReady,this))},s.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);t&gt;=0&amp;&amp;this.setVolume(t),this.slideIndex=this.slider.findSlideIndexByElement(this.playerElement),1==this.parameters.center&amp;&amp;(this.onResize(),this.slider.sliderElement.on("SliderResize",e.proxy(this.onResize,this)));var i=this.playerElement.parent().parent();this.player.on("play",e.proxy(function(){this.isStatic||this.slider.sliderElement.trigger("mediaStarted",this.playerId),i.triggerHandler("n2play")},this)),this.player.on("pause",e.proxy(function(){i.triggerHandler("n2pause")})),this.player.on("ended",e.proxy(function(){this.isStatic||this.slider.sliderElement.trigger("mediaEnded",this.playerId),i.triggerHandler("n2stop")},this)),this.isStatic||this.slider.sliderElement.on("mainAnimationStart",e.proxy(function(e,t,i,s,n){s!=this.slideIndex&amp;&amp;(parseInt(this.parameters.reset)?this.reset():this.pause())},this)),1==this.parameters.autoplay&amp;&amp;this.slider.visible(e.proxy(this.initAutoplay,this)),this.readyDeferred.resolve()},s.prototype.onResize=function(){var e=52,t=this.playerElement.parent(),i=t.width()+e,s=t.height()+e,n=16/9,r={width:i,height:s,marginTop:0};r[nextend.rtl.marginLeft]=0,i/s&gt;n?(r.height=i*n,r.marginTop=(s-r.height)/2):(r.width=s*n,r[nextend.rtl.marginLeft]=(i-r.width)/2),this.playerElement.css(r)},s.prototype.initAutoplay=function(){this.isStatic?this.play():(this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(e,t,i,s,n){s==this.slideIndex&amp;&amp;this.play()},this)),this.slider.currentSlideIndex==this.slideIndex&amp;&amp;this.play())},s.prototype.play=function(){this.slider.sliderElement.trigger("mediaStarted",this.playerId),this.player.play()},s.prototype.pause=function(){this.player.pause()},s.prototype.reset=function(){this.player.setCurrentTime(0)},s.prototype.setVolume=function(e){this.player.setVolume(e)},t.NextendSmartSliderVimeoItem=s}(n2,window),function(e,t,i){function s(t,i,s,n){this.readyDeferred=e.Deferred(),this.slider=t,this.playerId=i,this.parameters=e.extend({youtubeurl:"//www.youtube.com/watch?v=MKmIwHAFjSU",youtubecode:"MKmIwHAFjSU",center:0,autoplay:"1",theme:"dark",related:"1",vq:"default",volume:"-1",loop:0,reset:0,query:[]},s),navigator.userAgent.toLowerCase().indexOf("android")&gt;-1&amp;&amp;(this.parameters.autoplay=0),1==this.parameters.autoplay||!n||n2const.isMobile?this.ready(e.proxy(this.initYoutubePlayer,this)):e("#"+this.playerId).on("click.youtube n2click.youtube",e.proxy(function(t){e(t.currentTarget).off(".youtube"),t.preventDefault(),t.stopPropagation(),this.ready(e.proxy(function(){this.readyDeferred.done(e.proxy(function(){this.play()},this)),this.initYoutubePlayer()},this))},this))}s.YTDeferred=null,s.prototype.ready=function(t){if(null===s.YTDeferred)if(s.YTDeferred=e.Deferred(),"undefined"==typeof YT){var i=function(){};"function"==typeof window.onYouTubeIframeAPIReady&amp;&amp;(i=window.onYouTubeIframeAPIReady),window.onYouTubeIframeAPIReady=function(){s.YTDeferred.resolve(),i()},e.getScript("https://www.youtube.com/iframe_api")}else if(YT.loaded)s.YTDeferred.resolve();else var n=setInterval(function(){YT.loaded&amp;&amp;(s.YTDeferred.resolve(),clearInterval(n))},200);s.YTDeferred.done(t)},s.prototype.initYoutubePlayer=function(){var t=e("#"+this.playerId),i=t.closest(".n2-ss-layer");this.isStatic=t.closest(".n2-ss-static-slide").length;var s={enablejsapi:1,origin:window.location.protocol+"//"+window.location.host,theme:this.parameters.theme,modestbranding:1,wmode:"opaque",rel:this.parameters.related,vq:this.parameters.vq,start:this.parameters.start};1==this.parameters.center&amp;&amp;(s.controls=0,s.showinfo=0),1!=this.parameters.controls&amp;&amp;(s.autohide=1,s.controls=0,s.showinfo=0),+(navigator.platform.toUpperCase().indexOf("MAC")&gt;=0&amp;&amp;navigator.userAgent.search("Firefox")&gt;-1)&amp;&amp;(s.html5=1);for(var n in this.parameters.query)this.parameters.query.hasOwnProperty(n)&amp;&amp;(s[n]=this.parameters.query[n]);this.player=new YT.Player(this.playerId,{videoId:this.parameters.youtubecode,wmode:"opaque",playerVars:s,events:{onReady:e.proxy(this.onReady,this),onStateChange:e.proxy(function(e){switch(e.data){case YT.PlayerState.PLAYING:this.isStatic||this.slider.sliderElement.trigger("mediaStarted",this.playerId),i.triggerHandler("n2play");break;case YT.PlayerState.PAUSED:i.triggerHandler("n2pause");break;case YT.PlayerState.ENDED:1==this.parameters.loop?(this.player.seekTo(0),this.player.playVideo()):(this.isStatic||this.slider.sliderElement.trigger("mediaEnded",this.playerId),i.triggerHandler("n2stop"))}},this)}}),this.playerElement=e("#"+this.playerId),this.slideIndex=this.slider.findSlideIndexByElement(this.playerElement),1==this.parameters.center&amp;&amp;(this.playerElement.parent().css("overflow","hidden"),this.onResize(),this.slider.sliderElement.on("SliderResize",e.proxy(this.onResize,this)))},s.prototype.onReady=function(t){var i=parseFloat(this.parameters.volume);i&gt;=0&amp;&amp;this.setVolume(i),1==this.parameters.autoplay&amp;&amp;this.slider.visible(e.proxy(this.initAutoplay,this)),this.isStatic||(this.slider.sliderElement.on("mainAnimationStart",e.proxy(function(e,t,i,s,n){s!=this.slideIndex&amp;&amp;this.pause()},this)),parseInt(this.parameters.reset)&amp;&amp;this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(e,t,i,s,n){s!=this.slideIndex&amp;&amp;this.player.seekTo(0)},this))),this.readyDeferred.resolve()},s.prototype.onResize=function(){var e=100,t=this.playerElement.parent(),i=t.width(),s=t.height()+e,n=16/9,r={width:i,height:s,marginTop:0};r[nextend.rtl.marginLeft]=0,i/s&gt;n?(r.height=i*n,r.marginTop=(s-r.height)/2):(r.width=s*n,r[nextend.rtl.marginLeft]=(i-r.width)/2),this.playerElement.css(r)},s.prototype.initAutoplay=function(){this.isStatic?this.play():(this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(e,t,i,s,n){s==this.slideIndex&amp;&amp;this.play()},this)),this.slider.currentSlideIndex==this.slideIndex&amp;&amp;this.play())},s.prototype.play=function(){this.isStopped()&amp;&amp;(this.slider.sliderElement.trigger("mediaStarted",this.playerId),this.player.playVideo())},s.prototype.pause=function(){this.isStopped()||this.player.pauseVideo()},s.prototype.stop=function(){this.player.stopVideo()},s.prototype.isStopped=function(){var e=this.player.getPlayerState();switch(e){case-1:case 0:case 2:case 5:return!0;default:return!1}},s.prototype.setVolume=function(e){this.player.setVolume(100*e)},t.NextendSmartSliderYouTubeItem=s}(n2,window);</pre></body></html>