function sliderMake(n){var t,i;for(totalNumberOfSlides=n.SliderHP.length,$(".main-swiper").attr("data-total-number-of-slides",totalNumberOfSlides),i=0;i<n.SliderHP.length;i++)t='<div class="swiper-slide slide-'+n.SliderHP[i].Uid+" "+n.SliderHP[i].IDStickyBanner+'" data-sticky="'+n.SliderHP[i].Uid+'"> ',typeof isCustomerApp!="undefined"&&isCustomerApp()==="True"?(t+='\t<div class="slide-background-container hidden-xs">',t+="\t<\/div>"):(t+='\t<div class="slide-background-container hidden-xs">',t+='\t\t<img src="'+n.SliderHP[i].URLProductImage+'" alt="Polizza auto">',t+="\t<\/div>"),t+='\t<div class="mobile-slide visible-xs">',t+='\t\t\t<img src="'+n.SliderHP[i].URLBackgroundImageMobile+'"  alt="Logo moto" class="mobileSlider_'+n.SliderHP[i].IDStickyBanner.trim()+'">',t+='\t\t<div class="slide-dim h1 visible-xs">',t+="\t\t\t<h1>"+n.SliderHP[i].CarouselLabel+"<\/h1>",t+="\t\t<\/div>",t+="\t<\/div>",t+="<\/div>",$(".swiper-wrapper").append(t)}function startCustomSpinner(n){var t,i;stopCustomSpinner();t="";typeof isCustomerApp!="undefined"&&isCustomerApp()==="True"&&(t="whiteBackground");$("body").append($('<div class="modal-layer spinnerBaloons '+t+'">').append('<div class="wrapper spinner generalSpinner hide"><div id="spinner-loader" tabindex="10001" z-index="1001"><img src="Images/loader2.gif"><\/div><div id="spinnerText">Un attimo ancora, caricamento in corso...<\/div><div class="clear"><\/div><\/div>'));typeof n!="undefined"&&$("#spinnerText").html(n);$("body div.wrapper.spinner.generalSpinner div#spinner-loader").focus();$("html body div.wrapper.spinner.generalSpinner").removeClass("hide");$("html body div.wrapper.spinner.generalSpinner").show();i=$(window).width()/2-$("html body div.wrapper.spinner.generalSpinner").outerWidth()/2;$("html body div.wrapper.spinner.generalSpinner").offset({top:"25%",left:i})}function stopCustomSpinner(n){n==null?$(".modal-layer").remove():setTimeout(function(){$(".modal-layer").remove()},n*1e3)}function setSticky(){}function sliderReceiveAndConfig(n){var t=$.ajax(n);t.done(function(n){sliderMake(n)});t.error(function(){alert("error")})}function calculateTransition(n){if(!isBreakpoint("xs")){resized=!1;var t="16.6%";n.activeIndex==1&&(t="16.6%");n.activeIndex==0&&(t="-20px");resized===!0&&(t="24.5%");BrowserDetect.browser=="Explorer"&&BrowserDetect.version<9&&$(".main-swiper .swiper-wrapper").css("margin-left",t);$(".main-swiper .swiper-wrapper").css("left")!=t?($(".main-swiper .swiper-wrapper").addClass("noTransition"),$(".main-swiper .swiper-wrapper").css("left",t),$(".main-swiper .swiper-wrapper").removeClass("noTransition")):$(".main-swiper .swiper-wrapper").removeClass("noTransition");$(".main-swiper .swiper-slide").removeClass("veryVisible").removeClass("isAfter").removeClass("isBefore").removeClass("isLast");$(".main-swiper .swiper-slide.swiper-slide-visible.swiper-slide-active").addClass("veryVisible");$(".main-swiper .swiper-slide.swiper-slide-visible.swiper-slide-active + .swiper-slide + .swiper-slide").addClass("veryVisible").addClass("isAfter").addClass("isLast");$(".main-swiper .swiper-slide.swiper-slide-visible.swiper-slide-active + .swiper-slide").addClass("veryVisible").addClass("isAfter");$(".main-swiper .swiper-slide.swiper-slide-visible.swiper-slide-active").prev().addClass("veryVisible").addClass("isBefore")}}var totalNumberOfSlides,BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"Other";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"Unknown"},searchString:function(n){for(var i,t=0;t<n.length;t++)if(i=n[t].string,this.versionSearchString=n[t].subString,i.indexOf(n[t].subString)!==-1)return n[t].identity},searchVersion:function(n){var i=n.indexOf(this.versionSearchString),t;if(i!==-1)return t=n.indexOf("rv:"),this.versionSearchString==="Trident"&&t!==-1?parseFloat(n.substring(t+3)):parseFloat(n.substring(i+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer"},{string:navigator.userAgent,subString:"Trident",identity:"Explorer"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.userAgent,subString:"Safari",identity:"Safari"},{string:navigator.userAgent,subString:"Opera",identity:"Opera"}]},slidesTiming=[],resized=!1,lastWidth,Swiper;$(document).ready(function(){function u(){$(".ticker.ticker-slide-active + .row.ticker.ticker-slide").length>0?$(".ticker.ticker-slide-active").fadeOut(300,function(){$(".ticker.ticker-slide-active + .row.ticker.ticker-slide").fadeIn(300);var n=$(".ticker.ticker-slide-active + .row.ticker.ticker-slide").index();$(".ticker.ticker-slide-active + .row.ticker.ticker-slide").addClass("ticker-slide-active");$(this).removeClass("ticker-slide-active");$(".ticker-navigation li.active").removeClass("active");$(".ticker-navigation li").eq(n).addClass("active")}):$(".ticker.ticker-slide-active").fadeOut(300,function(){$(".row.ticker.ticker-slide-1").fadeIn(300);$(".row.ticker.ticker-slide-1").addClass("ticker-slide-active");$(this).removeClass("ticker-slide-active");$(".ticker-navigation li.active").removeClass("active");$(".ticker-navigation li").eq(0).addClass("active")})}var r;BrowserDetect.init();var t,i,o=function(){(t!=="undefined"||t!==null)&&clearTimeout(t);(i!=="undefined"||i!==null)&&clearTimeout(i)},n=$("#sticky-banner"),f=$("[data-sticky-start]").offset().top+$("[data-sticky-start]").outerHeight(!0),e=$(window).scrollTop();isBreakpoint("xs")?n.css("top","0px"):e<f||(n.css("position","fixed"),n.css("top","0px"));$(window).scroll(function(){var t=$("[data-sticky-start]").offset().top+$("[data-sticky-start]").outerHeight(),i=$(window).scrollTop();isBreakpoint("xs")||(i<t?n.css("position","relative"):(n.css("position","fixed"),n.css("top","0px")))});$(window).resize(function(){var t=$("[data-sticky-start]").offset().top+$("[data-sticky-start]").outerHeight(),i=$(window).scrollTop();isBreakpoint("xs")||(i<t?n.css("position","relative"):(n.css("position","fixed"),n.css("top","0px")))});r=setInterval(function(){u()},5e3);$(".ticker-container").css("height","190px");$(".link.noArrow.with-modal").on("click",function(){$($(this).attr("data-modal-target")).modal("show")});$(".ticker-navigation li").click(function(){clearInterval(r);var n=$(this).index();$(".ticker.ticker-slide-active").fadeOut(200,function(){$(".ticker.ticker-slide-active").removeClass("ticker-slide-active");$(".ticker-slide").eq(n).fadeIn(200);$(".ticker-slide").eq(n).addClass("ticker-slide-active")});$(".ticker-navigation li.active").removeClass("active");$(this).addClass("active");r=setInterval(function(){u()},5e3)})});Swiper=function(n,t){function h(n,t){return document.querySelectorAll?(t||document).querySelectorAll(n):jQuery(n,t)}function oi(n){"use strict";return Object.prototype.toString.apply(n)==="[object Array]"?!0:!1}function f(){var n=v-u;return t.freeMode&&(n=v-u),t.slidesPerView>i.slides.length&&(n=0),n<0&&(n=0),n}function si(){function f(n){var r=new Image;r.onload=function(){i.imagesLoaded++;i.imagesLoaded==i.imagesToLoad.length&&(i.reInit(),t.onImagesReady&&i.fireCallback(t.onImagesReady,i))};r.src=n}var n=i.h.addEventListener,r=t.eventTarget=="wrapper"?i.wrapper:i.container,u;if(i.browser.ie10||i.browser.ie11?(n(r,i.touchEvents.touchStart,w),n(document,i.touchEvents.touchMove,b),n(document,i.touchEvents.touchEnd,k)):(i.support.touch&&(n(r,"touchstart",w),n(r,"touchmove",b),n(r,"touchend",k)),t.simulateTouch&&(n(r,"mousedown",w),n(document,"mousemove",b),n(document,"mouseup",k))),t.autoResize&&n(window,"resize",i.resizeFix),wt(),i._wheelEvent=!1,t.mousewheelControl){document.onmousewheel!==undefined&&(i._wheelEvent="mousewheel");try{WheelEvent("wheel");i._wheelEvent="wheel"}catch(e){}i._wheelEvent||(i._wheelEvent="DOMMouseScroll");i._wheelEvent&&n(i.container,i._wheelEvent,dt)}if(t.keyboardControl&&n(document,"keydown",kt),t.updateOnImagesReady)for(i.imagesToLoad=h("img",i.container),u=0;u<i.imagesToLoad.length;u++)f(i.imagesToLoad[u].getAttribute("src"))}function wt(){var r=i.h.addEventListener,n,u,f;if(t.preventLinks)for(u=h("a",i.container),n=0;n<u.length;n++)r(u[n],"click",ii);if(t.releaseFormElements)for(f=h("input, textarea, select",i.container),n=0;n<f.length;n++)r(f[n],i.touchEvents.touchStart,ri,!0);if(t.onSlideClick)for(n=0;n<i.slides.length;n++)r(i.slides[n],"click",gt);if(t.onSlideTouch)for(n=0;n<i.slides.length;n++)r(i.slides[n],i.touchEvents.touchStart,ni)}function bt(){var r=i.h.removeEventListener,n,u,f;if(t.onSlideClick)for(n=0;n<i.slides.length;n++)r(i.slides[n],"click",gt);if(t.onSlideTouch)for(n=0;n<i.slides.length;n++)r(i.slides[n],i.touchEvents.touchStart,ni);if(t.releaseFormElements)for(u=h("input, textarea, select",i.container),n=0;n<u.length;n++)r(u[n],i.touchEvents.touchStart,ri,!0);if(t.preventLinks)for(f=h("a",i.container),n=0;n<f.length;n++)r(f[n],"click",ii)}function kt(n){var t=n.keyCode||n.charCode,e,f;if(t==37||t==39||t==38||t==40){var o=!1,u=i.h.getOffset(i.container),s=i.h.windowScroll().left,h=i.h.windowScroll().top,l=i.h.windowWidth(),a=i.h.windowHeight(),c=[[u.left,u.top],[u.left+i.width,u.top],[u.left,u.top+i.height],[u.left+i.width,u.top+i.height]];for(e=0;e<c.length;e++)f=c[e],f[0]>=s&&f[0]<=s+l&&f[1]>=h&&f[1]<=h+a&&(o=!0);if(!o)return}r?((t==37||t==39)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),t==39&&i.swipeNext(),t==37&&i.swipePrev()):((t==38||t==40)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),t==40&&i.swipeNext(),t==38&&i.swipePrev())}function dt(n){var o=i._wheelEvent,u=0,e;if(n.detail)u=-n.detail;else if(o=="mousewheel")if(t.mousewheelControlForceToAxis)if(r)if(Math.abs(n.wheelDeltaX)>Math.abs(n.wheelDeltaY))u=n.wheelDeltaX;else return;else if(Math.abs(n.wheelDeltaY)>Math.abs(n.wheelDeltaX))u=n.wheelDeltaY;else return;else u=n.wheelDelta;else if(o=="DOMMouseScroll")u=-n.detail;else if(o=="wheel")if(t.mousewheelControlForceToAxis)if(r)if(Math.abs(n.deltaX)>Math.abs(n.deltaY))u=-n.deltaX;else return;else if(Math.abs(n.deltaY)>Math.abs(n.deltaX))u=-n.deltaY;else return;else u=Math.abs(n.deltaX)>Math.abs(n.deltaY)?-n.deltaX:-n.deltaY;if(t.freeMode){if(e=i.getWrapperTranslate()+u,e>0&&(e=0),e<-f()&&(e=-f()),i.setWrapperTransition(0),i.setWrapperTranslate(e),i.updateActiveSlide(e),e==0||e==-f())return}else(new Date).getTime()-yt>60&&(u<0?i.swipeNext():i.swipePrev()),yt=(new Date).getTime();return t.autoplay&&i.stopAutoplay(!0),n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function gt(n){i.allowSlideClick&&(ti(n),i.fireCallback(t.onSlideClick,i,n))}function ni(n){ti(n);i.fireCallback(t.onSlideTouch,i,n)}function ti(n){if(n.currentTarget)i.clickedSlide=n.currentTarget;else{var r=n.srcElement;do if(r.className.indexOf(t.slideClass)>-1)break;while(r=r.parentNode);i.clickedSlide=r}i.clickedSlideIndex=i.slides.indexOf(i.clickedSlide);i.clickedSlideLoopIndex=i.clickedSlideIndex-(i.loopedSlides||0)}function ii(n){if(!i.allowLinks)return n.preventDefault?n.preventDefault():n.returnValue=!1,t.preventLinksPropagation&&"stopPropagation"in n&&n.stopPropagation(),!1}function ri(n){return n.stopPropagation?n.stopPropagation():n.returnValue=!1,!1}function w(n){if((t.preventLinks&&(i.allowLinks=!0),i.isTouched||t.onlyExternal)||t.noSwiping&&(n.target||n.srcElement)&&hi(n.target||n.srcElement))return!1;if(it=!1,thresholdFirstMove=!1,i.isTouched=!0,l=n.type=="touchstart",!l||n.targetTouches.length==1){i.callPlugins("onTouchStartBegin");l||i.isAndroid||(n.preventDefault?n.preventDefault():n.returnValue=!1);var u=l?n.targetTouches[0].pageX:n.pageX||n.clientX,f=l?n.targetTouches[0].pageY:n.pageY||n.clientY;i.touches.startX=i.touches.currentX=u;i.touches.startY=i.touches.currentY=f;i.touches.start=i.touches.current=r?u:f;i.setWrapperTransition(0);i.positions.start=i.positions.current=i.getWrapperTranslate();i.setWrapperTranslate(i.positions.start);i.times.start=(new Date).getTime();a=undefined;t.moveStartThreshold>0&&(st=!1);t.onTouchStart&&i.fireCallback(t.onTouchStart,i);i.callPlugins("onTouchStartEnd")}}function b(n){var o,s,e;if(i.isTouched&&!t.onlyExternal&&(!l||n.type!="mousemove")){if(o=l?n.targetTouches[0].pageX:n.pageX||n.clientX,s=l?n.targetTouches[0].pageY:n.pageY||n.clientY,typeof a=="undefined"&&r&&(a=!!(a||Math.abs(s-i.touches.startY)>Math.abs(o-i.touches.startX))),typeof a!="undefined"||r||(a=!!(a||Math.abs(s-i.touches.startY)<Math.abs(o-i.touches.startX))),a){i.isTouched=!1;return}if(n.assignedToSwiper){i.isTouched=!1;return}if(n.assignedToSwiper=!0,t.preventLinks&&(i.allowLinks=!1),t.onSlideClick&&(i.allowSlideClick=!1),t.autoplay&&i.stopAutoplay(!0),!l||n.touches.length==1){if(i.isMoved||(i.callPlugins("onTouchMoveStart"),t.loop&&(i.fixLoop(),i.positions.start=i.getWrapperTranslate()),t.onTouchMoveStart&&i.fireCallback(t.onTouchMoveStart,i)),i.isMoved=!0,n.preventDefault?n.preventDefault():n.returnValue=!1,i.touches.current=r?o:s,i.positions.current=(i.touches.current-i.touches.start)*t.touchRatio+i.positions.start,i.positions.current>0&&t.onResistanceBefore&&i.fireCallback(t.onResistanceBefore,i,i.positions.current),i.positions.current<-f()&&t.onResistanceAfter&&i.fireCallback(t.onResistanceAfter,i,Math.abs(i.positions.current+f())),t.resistance&&t.resistance!="100%"&&(i.positions.current>0&&(e=1-i.positions.current/u/2,i.positions.current=e<.5?u/2:i.positions.current*e),i.positions.current<-f())){var h=(i.touches.current-i.touches.start)*t.touchRatio+(f()+i.positions.start),e=(u+h)/u,c=i.positions.current-h*(1-e)/2,v=-f()-u/2;i.positions.current=c<v||e<=0?v:c}if(t.resistance&&t.resistance=="100%"&&(i.positions.current>0&&!(t.freeMode&&!t.freeModeFluid)&&(i.positions.current=0),i.positions.current<-f()&&!(t.freeMode&&!t.freeModeFluid)&&(i.positions.current=-f())),!t.followFinger)return;if(t.moveStartThreshold)if(Math.abs(i.touches.current-i.touches.start)>t.moveStartThreshold||st){if(!st){st=!0;i.touches.start=i.touches.current;return}i.setWrapperTranslate(i.positions.current)}else i.positions.current=i.positions.start;else i.setWrapperTranslate(i.positions.current);return(t.freeMode||t.watchActiveIndex)&&i.updateActiveSlide(i.positions.current),t.grabCursor&&(i.container.style.cursor="move",i.container.style.cursor="grabbing",i.container.style.cursor="-moz-grabbin",i.container.style.cursor="-webkit-grabbing"),rt||(rt=i.touches.current),ht||(ht=(new Date).getTime()),i.velocity=(i.touches.current-rt)/((new Date).getTime()-ht)/2,Math.abs(i.touches.current-rt)<2&&(i.velocity=0),rt=i.touches.current,ht=(new Date).getTime(),i.callPlugins("onTouchMoveEnd"),t.onTouchMove&&i.fireCallback(t.onTouchMove,i),!1}}}function k(){var o,s,g,b,k,l;if(a&&i.swipeReset(),!t.onlyExternal&&i.isTouched){i.isTouched=!1;t.grabCursor&&(i.container.style.cursor="move",i.container.style.cursor="grab",i.container.style.cursor="-moz-grab",i.container.style.cursor="-webkit-grab");i.positions.current||i.positions.current===0||(i.positions.current=i.positions.start);t.followFinger&&i.setWrapperTranslate(i.positions.current);i.times.end=(new Date).getTime();i.touches.diff=i.touches.current-i.touches.start;i.touches.abs=Math.abs(i.touches.diff);i.positions.diff=i.positions.current-i.positions.start;i.positions.abs=Math.abs(i.positions.diff);var nt=i.positions.diff,h=i.positions.abs,c=i.times.end-i.times.start;if(h<5&&c<300&&i.allowLinks==!1&&(t.freeMode||h==0||i.swipeReset(),t.preventLinks&&(i.allowLinks=!0),t.onSlideClick&&(i.allowSlideClick=!0)),setTimeout(function(){t.preventLinks&&(i.allowLinks=!0);t.onSlideClick&&(i.allowSlideClick=!0)},100),o=f(),!i.isMoved&&t.freeMode){i.isMoved=!1;t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i);i.callPlugins("onTouchEnd");return}if(!i.isMoved||i.positions.current>0||i.positions.current<-o){i.swipeReset();t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i);i.callPlugins("onTouchEnd");return}if(i.isMoved=!1,t.freeMode){if(t.freeModeFluid){var y=1e3*t.momentumRatio,tt=i.velocity*y,n=i.positions.current+tt,p=!1,w,v=Math.abs(i.velocity)*20*t.momentumBounceRatio;n<-o&&(t.momentumBounce&&i.support.transitions?(n+o<-v&&(n=-o-v),w=-o,p=!0,it=!0):n=-o);n>0&&(t.momentumBounce&&i.support.transitions?(n>v&&(n=v),w=0,p=!0,it=!0):n=0);i.velocity!=0&&(y=Math.abs((n-i.positions.current)/i.velocity));i.setWrapperTranslate(n);i.setWrapperTransition(y);t.momentumBounce&&p&&i.wrapperTransitionEnd(function(){it&&(t.onMomentumBounce&&i.fireCallback(t.onMomentumBounce,i),i.callPlugins("onMomentumBounce"),i.setWrapperTranslate(w),i.setWrapperTransition(300))});i.updateActiveSlide(n)}(!t.freeModeFluid||c>=300)&&i.updateActiveSlide(i.positions.current);t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i);i.callPlugins("onTouchEnd");return}if(d=nt<0?"toNext":"toPrev",d=="toNext"&&c<=300&&(h<30||!t.shortSwipes?i.swipeReset():i.swipeNext(!0)),d=="toPrev"&&c<=300&&(h<30||!t.shortSwipes?i.swipeReset():i.swipePrev(!0)),s=0,t.slidesPerView=="auto"){for(g=Math.abs(i.getWrapperTranslate()),b=0,l=0;l<i.slides.length;l++)if(k=r?i.slides[l].getWidth(!0):i.slides[l].getHeight(!0),b+=k,b>g){s=k;break}s>u&&(s=u)}else s=e*t.slidesPerView;d=="toNext"&&c>300&&(h>=s*t.longSwipesRatio?i.swipeNext(!0):i.swipeReset());d=="toPrev"&&c>300&&(h>=s*t.longSwipesRatio?i.swipePrev(!0):i.swipeReset());t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i);i.callPlugins("onTouchEnd")}}function hi(n){var i=!1;do n.className.indexOf(t.noSwipingClass)>-1&&(i=!0),n=n.parentElement;while(!i&&n.parentElement&&n.className.indexOf(t.wrapperClass)==-1);return!i&&n.className.indexOf(t.wrapperClass)>-1&&n.className.indexOf(t.noSwipingClass)>-1&&(i=!0),i}function ui(n,t){var r=document.createElement("div"),i;return r.innerHTML=t,i=r.firstChild,i.className+=" "+n,i.outerHTML}function ct(n,r,u){function h(){var r=+new Date,u=r-c;f+=l*u/(1e3/60);s=o=="toNext"?f>n:f<n;s?(i.setWrapperTranslate(Math.round(f)),i._DOMAnimating=!0,window.setTimeout(function(){h()},1e3/60)):(t.onSlideChangeEnd&&i.fireCallback(t.onSlideChangeEnd,i),i.setWrapperTranslate(n),i._DOMAnimating=!1)}var e=r=="to"&&u.speed>=0?u.speed:t.speed,c=+new Date;if(i.support.transitions||!t.DOMAnimation)i.setWrapperTranslate(n),i.setWrapperTransition(e);else{var f=i.getWrapperTranslate(),l=Math.ceil((n-f)/e*(1e3/60)),o=f>n?"toNext":"toPrev",s=o=="toNext"?f>n:f<n;if(i._DOMAnimating)return;h()}i.updateActiveSlide(n);t.onSlideNext&&r=="next"&&i.fireCallback(t.onSlideNext,i,n);t.onSlidePrev&&r=="prev"&&i.fireCallback(t.onSlidePrev,i,n);t.onSlideReset&&r=="reset"&&i.fireCallback(t.onSlideReset,i,n);(r=="next"||r=="prev"||r=="to"&&u.runCallbacks==!0)&&ci(r)}function ci(n){if(i.callPlugins("onSlideChangeStart"),t.onSlideChangeStart)if(t.queueStartCallbacks&&i.support.transitions){if(i._queueStartCallbacks)return;i._queueStartCallbacks=!0;i.fireCallback(t.onSlideChangeStart,i,n);i.wrapperTransitionEnd(function(){i._queueStartCallbacks=!1})}else i.fireCallback(t.onSlideChangeStart,i,n);if(t.onSlideChangeEnd)if(i.support.transitions)if(t.queueEndCallbacks){if(i._queueEndCallbacks)return;i._queueEndCallbacks=!0;i.wrapperTransitionEnd(function(r){i.fireCallback(t.onSlideChangeEnd,r,n)})}else i.wrapperTransitionEnd(function(r){i.fireCallback(t.onSlideChangeEnd,r,n)});else t.DOMAnimation||setTimeout(function(){i.fireCallback(t.onSlideChangeEnd,i,n)},10)}function fi(){for(var t=i.paginationButtons,n=0;n<t.length;n++)i.h.removeEventListener(t[n],"click",ei)}function li(){for(var t=i.paginationButtons,n=0;n<t.length;n++)i.h.addEventListener(t[n],"click",ei)}function ei(n){for(var r,f=n.target||n.srcElement,u=i.paginationButtons,t=0;t<u.length;t++)f===u[t]&&(r=t);i.swipeTo(r)}function pt(){o=setTimeout(function(){t.loop?(i.fixLoop(),i.swipeNext(!0)):i.swipeNext(!0)||(t.autoplayStopOnLast?(clearTimeout(o),o=undefined):i.swipeTo(0));i.wrapperTransitionEnd(function(){typeof o!="undefined"&&pt()})},t.autoplay)}function ai(){i.calcSlides();t.loader.slides.length>0&&i.slides.length==0&&i.loadSlides();t.loop&&i.createLoop();i.init();si();t.pagination&&i.createPagination(!0);t.loop||t.initialSlide>0?i.swipeTo(t.initialSlide,0,!1):i.updateActiveSlide(0);t.autoplay&&i.startAutoplay();i.centerIndex=i.activeIndex;t.onSwiperCreated&&i.fireCallback(t.onSwiperCreated,i);i.callPlugins("onSwiperCreated")}var lt,i,ut,e,v,d,a,u,g,c,ft,r,y,p,at,et,nt,ot,vt,yt,tt,l,st,it,rt,ht,o,s;if((document.body.__defineGetter__&&HTMLElement&&(lt=HTMLElement.prototype,lt.__defineGetter__&&lt.__defineGetter__("outerHTML",function(){return(new XMLSerializer).serializeToString(this)})),window.getComputedStyle||(window.getComputedStyle=function(n){return this.el=n,this.getPropertyValue=function(t){var i=/(\-([a-z]){1})/g;return t==="float"&&(t="styleFloat"),i.test(t)&&(t=t.replace(i,function(){return arguments[2].toUpperCase()})),n.currentStyle[t]?n.currentStyle[t]:null},this}),Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){for(var i=t||0,r=this.length;i<r;i++)if(this[i]===n)return i;return-1}),document.querySelectorAll||window.jQuery)&&typeof n!="undefined"&&(n.nodeType||h(n).length!==0)){i=this;i.touches={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,diff:0,abs:0};i.positions={start:0,abs:0,diff:0,current:0};i.times={start:0,end:0};i.id=(new Date).getTime();i.container=n.nodeType?n:h(n)[0];i.isTouched=!1;i.isMoved=!1;i.activeIndex=0;i.centerIndex=0;i.activeLoaderIndex=0;i.activeLoopIndex=0;i.previousIndex=null;i.velocity=0;i.snapGrid=[];i.slidesGrid=[];i.imagesToLoad=[];i.imagesLoaded=0;i.wrapperLeft=0;i.wrapperRight=0;i.wrapperTop=0;i.wrapperBottom=0;i.isAndroid=navigator.userAgent.toLowerCase().indexOf("android")>=0;g={eventTarget:"wrapper",mode:"horizontal",touchRatio:1,speed:300,freeMode:!1,freeModeFluid:!1,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,slidesPerView:1,slidesPerGroup:1,simulateTouch:!0,followFinger:!0,shortSwipes:!0,longSwipesRatio:.5,moveStartThreshold:!1,onlyExternal:!1,createPagination:!0,pagination:!1,paginationElement:"span",paginationClickable:!1,paginationAsRange:!0,resistance:!0,scrollContainer:!1,preventLinks:!0,preventLinksPropagation:!1,noSwiping:!1,noSwipingClass:"swiper-no-swiping",initialSlide:0,keyboardControl:!1,mousewheelControl:!1,mousewheelControlForceToAxis:!1,useCSS3Transforms:!0,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:!1,loop:!1,loopAdditionalSlides:0,calculateHeight:!1,cssWidthAndHeight:!1,updateOnImagesReady:!0,releaseFormElements:!0,watchActiveIndex:!1,visibilityFullFit:!1,offsetPxBefore:0,offsetPxAfter:0,offsetSlidesBefore:0,offsetSlidesAfter:0,centeredSlides:!1,queueStartCallbacks:!1,queueEndCallbacks:!1,autoResize:!0,resizeReInit:!1,DOMAnimation:!0,loader:{slides:[],slidesHTMLType:"inner",surroundGroups:1,logic:"reload",loadAllSlides:!1},slideElement:"div",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",wrapperClass:"swiper-wrapper",paginationElementClass:"swiper-pagination-switch",paginationActiveClass:"swiper-active-switch",paginationVisibleClass:"swiper-visible-switch"};t=t||{};for(c in g)if(c in t&&typeof t[c]=="object")for(ft in g[c])ft in t[c]||(t[c][ft]=g[c][ft]);else c in t||(t[c]=g[c]);for(i.params=t,t.scrollContainer&&(t.freeMode=!0,t.freeModeFluid=!0),t.loop&&(t.resistance="100%"),r=t.mode==="horizontal",y=["mousedown","mousemove","mouseup"],i.browser.ie10&&(y=["MSPointerDown","MSPointerMove","MSPointerUp"]),i.browser.ie11&&(y=["pointerdown","pointermove","pointerup"]),i.touchEvents={touchStart:i.support.touch||!t.simulateTouch?"touchstart":y[0],touchMove:i.support.touch||!t.simulateTouch?"touchmove":y[1],touchEnd:i.support.touch||!t.simulateTouch?"touchend":y[2]},p=i.container.childNodes.length-1;p>=0;p--)if(i.container.childNodes[p].className)for(at=i.container.childNodes[p].className.split(" "),et=0;et<at.length;et++)at[et]===t.wrapperClass&&(ut=i.container.childNodes[p]);i.wrapper=ut;i._extendSwiperSlide=function(n){return n.append=function(){return t.loop?n.insertAfter(i.slides.length-i.loopedSlides):(i.wrapper.appendChild(n),i.reInit()),n},n.prepend=function(){return t.loop?(i.wrapper.insertBefore(n,i.slides[i.loopedSlides]),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):i.wrapper.insertBefore(n,i.wrapper.firstChild),i.reInit(),n},n.insertAfter=function(r){if(typeof r=="undefined")return!1;var u;return t.loop?(u=i.slides[r+1+i.loopedSlides],u?i.wrapper.insertBefore(n,u):i.wrapper.appendChild(n),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):(u=i.slides[r+1],i.wrapper.insertBefore(n,u)),i.reInit(),n},n.clone=function(){return i._extendSwiperSlide(n.cloneNode(!0))},n.remove=function(){i.wrapper.removeChild(n);i.reInit()},n.html=function(t){return typeof t=="undefined"?n.innerHTML:(n.innerHTML=t,n)},n.index=function(){for(var r,t=i.slides.length-1;t>=0;t--)n===i.slides[t]&&(r=t);return r},n.isActive=function(){return n.index()===i.activeIndex?!0:!1},n.swiperSlideDataStorage||(n.swiperSlideDataStorage={}),n.getData=function(t){return n.swiperSlideDataStorage[t]},n.setData=function(t,i){return n.swiperSlideDataStorage[t]=i,n},n.data=function(t,i){return i?(n.setAttribute("data-"+t,i),n):n.getAttribute("data-"+t)},n.getWidth=function(t){return i.h.getWidth(n,t)},n.getHeight=function(t){return i.h.getHeight(n,t)},n.getOffset=function(){return i.h.getOffset(n)},n};i.calcSlides=function(n){var e=i.slides?i.slides.length:!1,r,o,f,u;for(i.slides=[],i.displaySlides=[],r=0;r<i.wrapper.childNodes.length;r++)if(i.wrapper.childNodes[r].className)for(o=i.wrapper.childNodes[r].className,f=o.split(" "),u=0;u<f.length;u++)f[u]===t.slideClass&&i.slides.push(i.wrapper.childNodes[r]);for(r=i.slides.length-1;r>=0;r--)i._extendSwiperSlide(i.slides[r]);e!==!1&&(e!==i.slides.length||n)&&(bt(),wt(),i.updateActiveSlide(),i.params.pagination&&i.createPagination(),i.callPlugins("numberOfSlidesChanged"))};i.createSlide=function(n,r,u){var r=r||i.params.slideClass,u=u||t.slideElement,f=document.createElement(u);return f.innerHTML=n||"",f.className=r,i._extendSwiperSlide(f)};i.appendSlide=function(n,t,r){if(n)return n.nodeType?i._extendSwiperSlide(n).append():i.createSlide(n,t,r).append()};i.prependSlide=function(n,t,r){if(n)return n.nodeType?i._extendSwiperSlide(n).prepend():i.createSlide(n,t,r).prepend()};i.insertSlideAfter=function(n,t,r,u){return typeof n=="undefined"?!1:t.nodeType?i._extendSwiperSlide(t).insertAfter(n):i.createSlide(t,r,u).insertAfter(n)};i.removeSlide=function(n){if(i.slides[n]){if(t.loop){if(!i.slides[n+i.loopedSlides])return!1;i.slides[n+i.loopedSlides].remove();i.removeLoopedSlides();i.calcSlides();i.createLoop()}else i.slides[n].remove();return!0}return!1};i.removeLastSlide=function(){return i.slides.length>0?(t.loop?(i.slides[i.slides.length-1-i.loopedSlides].remove(),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):i.slides[i.slides.length-1].remove(),!0):!1};i.removeAllSlides=function(){for(var n=i.slides.length-1;n>=0;n--)i.slides[n].remove()};i.getSlide=function(n){return i.slides[n]};i.getLastSlide=function(){return i.slides[i.slides.length-1]};i.getFirstSlide=function(){return i.slides[0]};i.activeSlide=function(){return i.slides[i.activeIndex]};i.fireCallback=function(){var n=arguments[0],r;if(Object.prototype.toString.call(n)==="[object Array]")for(r=0;r<n.length;r++)typeof n[r]=="function"&&n[r](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);else Object.prototype.toString.call(n)==="[object String]"?t["on"+n]&&i.fireCallback(t["on"+n]):n(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])};i.addCallback=function(n,t){"use strict";var r=this,i;if(r.params["on"+n]){if(oi(this.params["on"+n]))return this.params["on"+n].push(t);if(typeof this.params["on"+n]=="function")return i=this.params["on"+n],this.params["on"+n]=[],this.params["on"+n].push(i),this.params["on"+n].push(t)}else return this.params["on"+n]=[],this.params["on"+n].push(t)};i.removeCallbacks=function(n){if(i.params["on"+n])return i.params["on"+n]=null};nt=[];for(ot in i.plugins)t[ot]&&(vt=i.plugins[ot](i,t[ot]),vt&&nt.push(vt));i.callPlugins=function(n,t){t||(t={});for(var i=0;i<nt.length;i++)n in nt[i]&&nt[i][n](t)};(i.browser.ie10||i.browser.ie11)&&!t.onlyExternal&&i.wrapper.classList.add("swiper-wp8-"+(r?"horizontal":"vertical"));t.freeMode&&(i.container.className+=" swiper-free-mode");i.initialized=!1;i.init=function(n,f){var nt=i.h.getWidth(i.container),tt=i.h.getHeight(i.container),o,k,d,g,b,a,y,h,l,p,w,c,s;if(nt!==i.width||tt!==i.height||n){if(i.width=nt,i.height=tt,u=r?nt:tt,o=i.wrapper,n&&i.calcSlides(f),t.slidesPerView==="auto"){for(k=0,d=0,t.slidesOffset>0&&(o.style.paddingLeft="",o.style.paddingRight="",o.style.paddingTop="",o.style.paddingBottom=""),o.style.width="",o.style.height="",t.offsetPxBefore>0&&(r?i.wrapperLeft=t.offsetPxBefore:i.wrapperTop=t.offsetPxBefore),t.offsetPxAfter>0&&(r?i.wrapperRight=t.offsetPxAfter:i.wrapperBottom=t.offsetPxAfter),t.centeredSlides&&(r?(i.wrapperLeft=(u-this.slides[0].getWidth(!0))/2,i.wrapperRight=(u-i.slides[i.slides.length-1].getWidth(!0))/2):(i.wrapperTop=(u-i.slides[0].getHeight(!0))/2,i.wrapperBottom=(u-i.slides[i.slides.length-1].getHeight(!0))/2)),r?(i.wrapperLeft>=0&&(o.style.paddingLeft=i.wrapperLeft+"px"),i.wrapperRight>=0&&(o.style.paddingRight=i.wrapperRight+"px")):(i.wrapperTop>=0&&(o.style.paddingTop=i.wrapperTop+"px"),i.wrapperBottom>=0&&(o.style.paddingBottom=i.wrapperBottom+"px")),c=0,g=0,i.snapGrid=[],i.slidesGrid=[],y=0,s=0;s<i.slides.length;s++){if(p=i.slides[s].getWidth(!0),h=i.slides[s].getHeight(!0),t.calculateHeight&&(y=Math.max(y,h)),b=r?p:h,t.centeredSlides){var it=s===i.slides.length-1?0:i.slides[s+1].getWidth(!0),rt=s===i.slides.length-1?0:i.slides[s+1].getHeight(!0),ut=r?it:rt;if(b>u){for(a=0;a<=Math.floor(b/(u+i.wrapperLeft));a++)a===0?i.snapGrid.push(c+i.wrapperLeft):i.snapGrid.push(c+i.wrapperLeft+u*a);i.slidesGrid.push(c+i.wrapperLeft)}else i.snapGrid.push(g),i.slidesGrid.push(g);g+=b/2+ut/2}else{if(b>u)for(a=0;a<=Math.floor(b/u);a++)i.snapGrid.push(c+u*a);else i.snapGrid.push(c);i.slidesGrid.push(c)}c+=b;k+=p;d+=h}t.calculateHeight&&(i.height=y);r?(v=k+i.wrapperRight+i.wrapperLeft,o.style.width=k+"px",o.style.height=i.height+"px"):(v=d+i.wrapperTop+i.wrapperBottom,o.style.width=i.width+"px",o.style.height=d+"px")}else if(t.scrollContainer)o.style.width="",o.style.height="",w=i.slides[0].getWidth(!0),l=i.slides[0].getHeight(!0),v=r?w:l,o.style.width=w+"px",o.style.height=l+"px",e=r?w:l;else{if(t.calculateHeight){for(y=0,l=0,r||(i.container.style.height=""),o.style.height="",s=0;s<i.slides.length;s++)i.slides[s].style.height="",y=Math.max(i.slides[s].getHeight(!0),y),r||(l+=i.slides[s].getHeight(!0));h=y;i.height=h;r?l=h:(u=h,i.container.style.height=u+"px")}else h=r?i.height:i.height/t.slidesPerView,l=r?i.height:i.slides.length*h;for(p=r?i.width/t.slidesPerView:i.width,w=r?i.slides.length*p:i.width,e=r?p:h,t.offsetSlidesBefore>0&&(r?i.wrapperLeft=e*t.offsetSlidesBefore:i.wrapperTop=e*t.offsetSlidesBefore),t.offsetSlidesAfter>0&&(r?i.wrapperRight=e*t.offsetSlidesAfter:i.wrapperBottom=e*t.offsetSlidesAfter),t.offsetPxBefore>0&&(r?i.wrapperLeft=t.offsetPxBefore:i.wrapperTop=t.offsetPxBefore),t.offsetPxAfter>0&&(r?i.wrapperRight=t.offsetPxAfter:i.wrapperBottom=t.offsetPxAfter),t.centeredSlides&&(r?(i.wrapperLeft=(u-e)/2,i.wrapperRight=(u-e)/2):(i.wrapperTop=(u-e)/2,i.wrapperBottom=(u-e)/2)),r?(i.wrapperLeft>0&&(o.style.paddingLeft=i.wrapperLeft+"px"),i.wrapperRight>0&&(o.style.paddingRight=i.wrapperRight+"px")):(i.wrapperTop>0&&(o.style.paddingTop=i.wrapperTop+"px"),i.wrapperBottom>0&&(o.style.paddingBottom=i.wrapperBottom+"px")),v=r?w+i.wrapperRight+i.wrapperLeft:l+i.wrapperTop+i.wrapperBottom,t.cssWidthAndHeight||(parseFloat(w)>0&&(o.style.width=w+"px"),parseFloat(l)>0&&(o.style.height=l+"px")),c=0,i.snapGrid=[],i.slidesGrid=[],s=0;s<i.slides.length;s++)i.snapGrid.push(c),i.slidesGrid.push(c),c+=e,t.cssWidthAndHeight||(parseFloat(p)>0&&(i.slides[s].style.width=p+"px"),parseFloat(h)>0&&(i.slides[s].style.height=h+"px"))}i.initialized?(i.callPlugins("onInit"),t.onInit&&i.fireCallback(t.onInit,i)):(i.callPlugins("onFirstInit"),t.onFirstInit&&i.fireCallback(t.onFirstInit,i));i.initialized=!0}};i.reInit=function(n){i.init(!0,n)};i.resizeFix=function(n){i.callPlugins("beforeResizeFix");i.init(t.resizeReInit||n);t.freeMode?i.getWrapperTranslate()<-f()&&(i.setWrapperTransition(0),i.setWrapperTranslate(-f())):(i.swipeTo(t.loop?i.activeLoopIndex:i.activeIndex,0,!1),t.autoplay&&(i.support.transitions&&typeof o!="undefined"?typeof o!="undefined"&&(clearTimeout(o),o=undefined,i.startAutoplay()):typeof s!="undefined"&&(clearInterval(s),s=undefined,i.startAutoplay())));i.callPlugins("afterResizeFix")};i.destroy=function(){var n=i.h.removeEventListener,r=t.eventTarget=="wrapper"?i.wrapper:i.container;i.browser.ie10||i.browser.ie11?(n(r,i.touchEvents.touchStart,w),n(document,i.touchEvents.touchMove,b),n(document,i.touchEvents.touchEnd,k)):(i.support.touch&&(n(r,"touchstart",w),n(r,"touchmove",b),n(r,"touchend",k)),t.simulateTouch&&(n(r,"mousedown",w),n(document,"mousemove",b),n(document,"mouseup",k)));t.autoResize&&n(window,"resize",i.resizeFix);bt();t.paginationClickable&&fi();t.mousewheelControl&&i._wheelEvent&&n(i.container,i._wheelEvent,dt);t.keyboardControl&&n(document,"keydown",kt);t.autoplay&&i.stopAutoplay();i.callPlugins("onDestroy");i=null};yt=(new Date).getTime();t.grabCursor&&(tt=i.container.style,tt.cursor="move",tt.cursor="grab",tt.cursor="-moz-grab",tt.cursor="-webkit-grab");i.allowSlideClick=!0;i.allowLinks=!0;l=!1;it=!0;i.swipeNext=function(n){var u,r,o,s;if(!n&&t.loop&&i.fixLoop(),!n&&t.autoplay&&i.stopAutoplay(!0),i.callPlugins("onSwipeNext"),u=i.getWrapperTranslate(),r=u,t.slidesPerView=="auto"){for(o=0;o<i.snapGrid.length;o++)if(-u>=i.snapGrid[o]&&-u<i.snapGrid[o+1]){r=-i.snapGrid[o+1];break}}else s=e*t.slidesPerGroup,r=-(Math.floor(Math.abs(u)/Math.floor(s))*s+s);return(r<-f()&&(r=-f()),r==u)?!1:(ct(r,"next"),!0)};i.swipePrev=function(n){var f,r,u,o;if(!n&&t.loop&&i.fixLoop(),!n&&t.autoplay&&i.stopAutoplay(!0),i.callPlugins("onSwipePrev"),f=Math.ceil(i.getWrapperTranslate()),t.slidesPerView=="auto")for(r=0,u=1;u<i.snapGrid.length;u++){if(-f==i.snapGrid[u]){r=-i.snapGrid[u-1];break}if(-f>i.snapGrid[u]&&-f<i.snapGrid[u+1]){r=-i.snapGrid[u];break}}else o=e*t.slidesPerGroup,r=-(Math.ceil(-f/o)-1)*o;return(r>0&&(r=0),r==f)?!1:(ct(r,"prev"),!0)};i.swipeReset=function(){var o;i.callPlugins("onSwipeReset");var r=i.getWrapperTranslate(),s=e*t.slidesPerGroup,n,h=-f();if(t.slidesPerView=="auto"){for(n=0,o=0;o<i.snapGrid.length;o++){if(-r===i.snapGrid[o])return;if(-r>=i.snapGrid[o]&&-r<i.snapGrid[o+1]){n=i.positions.diff>0?-i.snapGrid[o+1]:-i.snapGrid[o];break}}-r>=i.snapGrid[i.snapGrid.length-1]&&(n=-i.snapGrid[i.snapGrid.length-1]);r<=-f()&&(n=-f())}else n=r<0?Math.round(r/s)*s:0;return(t.scrollContainer&&(n=r<0?r:0),n<-f()&&(n=-f()),t.scrollContainer&&u>e&&(n=0),n==r)?!1:(ct(n,"reset"),!0)};i.swipeTo=function(n,r,u){var s,o;if(n=parseInt(n,10),i.callPlugins("onSwipeTo",{index:n,speed:r}),t.loop&&(n=n+i.loopedSlides),s=i.getWrapperTranslate(),!(n>i.slides.length-1)&&!(n<0))return(o=t.slidesPerView=="auto"?-i.slidesGrid[n]:-n*e,o<-f()&&(o=-f()),o==s)?!1:(u=u===!1?!1:!0,ct(o,"to",{index:n,speed:r,runCallbacks:u}),!0)};i._queueStartCallbacks=!1;i._queueEndCallbacks=!1;i.updateActiveSlide=function(n){var c,f,o,s,h,r,u;if(i.initialized&&i.slides.length!=0){if(i.previousIndex=i.activeIndex,typeof n=="undefined"&&(n=i.getWrapperTranslate()),n>0&&(n=0),t.slidesPerView=="auto"){if(c=0,i.activeIndex=i.slidesGrid.indexOf(-n),i.activeIndex<0){for(r=0;r<i.slidesGrid.length-1;r++)if(-n>i.slidesGrid[r]&&-n<i.slidesGrid[r+1])break;f=Math.abs(i.slidesGrid[r]+n);o=Math.abs(i.slidesGrid[r+1]+n);i.activeIndex=f<=o?r:r+1}}else i.activeIndex=Math[t.visibilityFullFit?"ceil":"round"](-n/e);if(i.activeIndex==i.slides.length&&(i.activeIndex=i.slides.length-1),i.activeIndex<0&&(i.activeIndex=0),i.slides[i.activeIndex]){for(i.calcVisibleSlides(n),s=new RegExp("\\s*"+t.slideActiveClass),h=new RegExp("\\s*"+t.slideVisibleClass),r=0;r<i.slides.length;r++)i.slides[r].className=i.slides[r].className.replace(s,"").replace(h,""),i.visibleSlides.indexOf(i.slides[r])>=0&&(i.slides[r].className+=" "+t.slideVisibleClass);i.slides[i.activeIndex].className+=" "+t.slideActiveClass;t.loop?(u=i.loopedSlides,i.activeLoopIndex=i.activeIndex-u,i.activeLoopIndex>=i.slides.length-u*2&&(i.activeLoopIndex=i.slides.length-u*2-i.activeLoopIndex),i.activeLoopIndex<0&&(i.activeLoopIndex=i.slides.length-u*2+i.activeLoopIndex),i.activeLoopIndex<0&&(i.activeLoopIndex=0)):i.activeLoopIndex=i.activeIndex;t.pagination&&i.updatePagination(n)}}};i.createPagination=function(n){var r;if(t.paginationClickable&&i.paginationButtons&&fi(),i.paginationContainer=t.pagination.nodeType?t.pagination:h(t.pagination)[0],t.createPagination){var u="",e=i.slides.length,f=e;for(t.loop&&(f-=i.loopedSlides*2),r=0;r<f;r++)u+="<"+t.paginationElement+' class="'+t.paginationElementClass+'"><\/'+t.paginationElement+">";i.paginationContainer.innerHTML=u}i.paginationButtons=h("."+t.paginationElementClass,i.paginationContainer);n||i.updatePagination();i.callPlugins("onCreatePagination");t.paginationClickable&&li()};i.updatePagination=function(n){var o,u,s,e,r,f;if(t.pagination&&!(i.slides.length<1)&&(o=h("."+t.paginationActiveClass,i.paginationContainer),o)&&(u=i.paginationButtons,u.length!=0)){for(r=0;r<u.length;r++)u[r].className=t.paginationElementClass;if(s=t.loop?i.loopedSlides:0,t.paginationAsRange){for(i.visibleSlides||i.calcVisibleSlides(n),e=[],r=0;r<i.visibleSlides.length;r++)f=i.slides.indexOf(i.visibleSlides[r])-s,t.loop&&f<0&&(f=i.slides.length-i.loopedSlides*2+f),t.loop&&f>=i.slides.length-i.loopedSlides*2&&(f=i.slides.length-i.loopedSlides*2-f,f=Math.abs(f)),e.push(f);for(r=0;r<e.length;r++)u[e[r]]&&(u[e[r]].className+=" "+t.paginationVisibleClass);t.loop?u[i.activeLoopIndex].className+=" "+t.paginationActiveClass:u[i.activeIndex].className+=" "+t.paginationActiveClass}else t.loop?u[i.activeLoopIndex]&&(u[i.activeLoopIndex].className+=" "+t.paginationActiveClass+" "+t.paginationVisibleClass):u[i.activeIndex].className+=" "+t.paginationActiveClass+" "+t.paginationVisibleClass}};i.calcVisibleSlides=function(n){var c=[],f=0,l=0,s=0,h,o;for(r&&i.wrapperLeft>0&&(n=n+i.wrapperLeft),!r&&i.wrapperTop>0&&(n=n+i.wrapperTop),h=0;h<i.slides.length;h++)f+=l,l=t.slidesPerView=="auto"?r?i.h.getWidth(i.slides[h],!0):i.h.getHeight(i.slides[h],!0):e,s=f+l,o=!1,t.visibilityFullFit?(f>=-n&&s<=-n+u&&(o=!0),f<=-n&&s>=-n+u&&(o=!0)):(s>-n&&s<=-n+u&&(o=!0),f>=-n&&f<-n+u&&(o=!0),f<-n&&s>-n+u&&(o=!0)),o&&c.push(i.slides[h]);c.length==0&&(c=[i.slides[i.activeIndex]]);i.visibleSlides=c};o=undefined;s=undefined;i.startAutoplay=function(){if(i.support.transitions){if(typeof o!="undefined")return!1;if(!t.autoplay)return;i.callPlugins("onAutoplayStart");pt()}else{if(typeof s!="undefined")return!1;if(!t.autoplay)return;i.callPlugins("onAutoplayStart");s=setInterval(function(){t.loop?(i.fixLoop(),i.swipeNext(!0)):i.swipeNext(!0)||(t.autoplayStopOnLast?(clearInterval(s),s=undefined):i.swipeTo(0))},t.autoplay)}};i.stopAutoplay=function(n){if(i.support.transitions){if(!o)return;o&&clearTimeout(o);o=undefined;n&&!t.autoplayDisableOnInteraction&&i.wrapperTransitionEnd(function(){pt()});i.callPlugins("onAutoplayStop")}else s&&clearInterval(s),s=undefined,i.callPlugins("onAutoplayStop")};i.loopCreated=!1;i.removeLoopedSlides=function(){if(i.loopCreated)for(var n=0;n<i.slides.length;n++)i.slides[n].getData("looped")===!0&&i.wrapper.removeChild(i.slides[n])};i.createLoop=function(){var f,h,c;if(i.slides.length!=0){i.loopedSlides=t.slidesPerView=="auto"?t.loopedSlides||1:t.slidesPerView+t.loopAdditionalSlides;i.loopedSlides>i.slides.length&&(i.loopedSlides=i.slides.length);for(var e="",o="",u="",r=i.slides.length,l=Math.floor(i.loopedSlides/r),s=i.loopedSlides%r,n=0;n<l*r;n++)f=n,n>=r&&(h=Math.floor(n/r),f=n-r*h),u+=i.slides[f].outerHTML;for(n=0;n<s;n++)o+=ui(t.slideDuplicateClass,i.slides[n].outerHTML);for(n=r-s;n<r;n++)e+=ui(t.slideDuplicateClass,i.slides[n].outerHTML);for(c=e+u+ut.innerHTML+u+o,ut.innerHTML=c,i.loopCreated=!0,i.calcSlides(),n=0;n<i.slides.length;n++)(n<i.loopedSlides||n>=i.slides.length-i.loopedSlides)&&i.slides[n].setData("looped",!0);i.callPlugins("onCreateLoop")}};i.fixLoop=function(){var n;i.activeIndex<i.loopedSlides?(n=i.slides.length-i.loopedSlides*3+i.activeIndex,i.swipeTo(n,0,!1)):(t.slidesPerView=="auto"&&i.activeIndex>=i.loopedSlides*2||i.activeIndex>i.slides.length-t.slidesPerView*2)&&(n=-i.slides.length+i.activeIndex+i.loopedSlides,i.swipeTo(n,0,!1))};i.loadSlides=function(){var u="",r,f,n;for(i.activeLoaderIndex=0,r=t.loader.slides,f=t.loader.loadAllSlides?r.length:t.slidesPerView*(1+t.loader.surroundGroups),n=0;n<f;n++)u+=t.loader.slidesHTMLType=="outer"?r[n]:"<"+t.slideElement+' class="'+t.slideClass+'" data-swiperindex="'+n+'">'+r[n]+"<\/"+t.slideElement+">";i.wrapper.innerHTML=u;i.calcSlides(!0);t.loader.loadAllSlides||i.wrapperTransitionEnd(i.reloadSlides,!0)};i.reloadSlides=function(){var f=t.loader.slides,u=parseInt(i.activeSlide().data("swiperindex"),10),o,h,v,a,c,l,s,n,r;if(!(u<0)&&!(u>f.length-1)){if(i.activeLoaderIndex=u,o=Math.max(0,u-t.slidesPerView*t.loader.surroundGroups),h=Math.min(u+t.slidesPerView*(1+t.loader.surroundGroups)-1,f.length-1),u>0&&(v=-e*(u-o),i.setWrapperTranslate(v),i.setWrapperTransition(0)),t.loader.logic==="reload"){for(i.wrapper.innerHTML="",a="",n=o;n<=h;n++)a+=t.loader.slidesHTMLType=="outer"?f[n]:"<"+t.slideElement+' class="'+t.slideClass+'" data-swiperindex="'+n+'">'+f[n]+"<\/"+t.slideElement+">";i.wrapper.innerHTML=a}else{for(c=1e3,l=0,n=0;n<i.slides.length;n++)s=i.slides[n].data("swiperindex"),s<o||s>h?i.wrapper.removeChild(i.slides[n]):(c=Math.min(s,c),l=Math.max(s,l));for(n=o;n<=h;n++)n<c&&(r=document.createElement(t.slideElement),r.className=t.slideClass,r.setAttribute("data-swiperindex",n),r.innerHTML=f[n],i.wrapper.insertBefore(r,i.wrapper.firstChild)),n>l&&(r=document.createElement(t.slideElement),r.className=t.slideClass,r.setAttribute("data-swiperindex",n),r.innerHTML=f[n],i.wrapper.appendChild(r))}i.reInit(!0)}};ai()}};Swiper.prototype={plugins:{},wrapperTransitionEnd:function(n,t){function e(){if(n(r),r.params.queueEndCallbacks&&(r._queueEndCallbacks=!1),!t)for(i=0;i<u.length;i++)r.h.removeEventListener(f,u[i],e)}var r=this,f=r.wrapper,u=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],i;if(n)for(i=0;i<u.length;i++)r.h.addEventListener(f,u[i],e)},getWrapperTranslate:function(n){var f=this.wrapper,i,r,t,u;return typeof n=="undefined"&&(n=this.params.mode=="horizontal"?"x":"y"),this.support.transforms&&this.params.useCSS3Transforms?(t=window.getComputedStyle(f,null),window.WebKitCSSMatrix?u=new WebKitCSSMatrix(t.webkitTransform):(u=t.MozTransform||t.OTransform||t.MsTransform||t.msTransform||t.transform||t.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=u.toString().split(",")),n=="x"&&(r=window.WebKitCSSMatrix?u.m41:i.length==16?parseFloat(i[12]):parseFloat(i[4])),n=="y"&&(r=window.WebKitCSSMatrix?u.m42:i.length==16?parseFloat(i[13]):parseFloat(i[5]))):(n=="x"&&(r=parseFloat(f.style.left,10)||0),n=="y"&&(r=parseFloat(f.style.top,10)||0)),r||0},setWrapperTranslate:function(n,t,i){var u=this.wrapper.style,r={x:0,y:0,z:0},f;arguments.length==3?(r.x=n,r.y=t,r.z=i):(typeof t=="undefined"&&(t=this.params.mode=="horizontal"?"x":"y"),r[t]=n);this.support.transforms&&this.params.useCSS3Transforms?(f=this.support.transforms3d?"translate3d("+r.x+"px, "+r.y+"px, "+r.z+"px)":"translate("+r.x+"px, "+r.y+"px)",u.webkitTransform=u.MsTransform=u.msTransform=u.MozTransform=u.OTransform=u.transform=f):(u.left=r.x+"px",u.top=r.y+"px");this.callPlugins("onSetWrapperTransform",r);this.params.onSetWrapperTransform&&this.fireCallback(this.params.onSetWrapperTransform,this,r)},setWrapperTransition:function(n){var t=this.wrapper.style;t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=n/1e3+"s";this.callPlugins("onSetWrapperTransition",{duration:n});this.params.onSetWrapperTransition&&this.fireCallback(this.params.onSetWrapperTransition,this,n)},h:{getWidth:function(n,t){var r=window.getComputedStyle(n,null).getPropertyValue("width"),i=parseFloat(r);return(isNaN(i)||r.indexOf("%")>0)&&(i=n.offsetWidth-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-left"))-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-right"))),t&&(i+=parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-left"))+parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-right"))),i},getHeight:function(n,t){if(t)return n.offsetHeight;var r=window.getComputedStyle(n,null).getPropertyValue("height"),i=parseFloat(r);return(isNaN(i)||r.indexOf("%")>0)&&(i=n.offsetHeight-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-top"))-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-bottom"))),t&&(i+=parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-top"))+parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-bottom"))),i},getOffset:function(n){var t=n.getBoundingClientRect(),i=document.body,f=n.clientTop||i.clientTop||0,e=n.clientLeft||i.clientLeft||0,r=window.pageYOffset||n.scrollTop,u=window.pageXOffset||n.scrollLeft;return document.documentElement&&!window.pageYOffset&&(r=document.documentElement.scrollTop,u=document.documentElement.scrollLeft),{top:t.top+r-f,left:t.left+u-e}},windowWidth:function(){return window.innerWidth?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:void 0},windowHeight:function(){return window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:void 0},windowScroll:function(){return typeof pageYOffset!="undefined"?{left:window.pageXOffset,top:window.pageYOffset}:document.documentElement?{left:document.documentElement.scrollLeft,top:document.documentElement.scrollTop}:void 0},addEventListener:function(n,t,i,r){typeof r=="undefined"&&(r=!1);n.addEventListener?n.addEventListener(t,i,r):n.attachEvent&&n.attachEvent("on"+t,i)},removeEventListener:function(n,t,i,r){typeof r=="undefined"&&(r=!1);n.removeEventListener?n.removeEventListener(t,i,r):n.detachEvent&&n.detachEvent("on"+t,i)}},setTransform:function(n,t){var i=n.style;i.webkitTransform=i.MsTransform=i.msTransform=i.MozTransform=i.OTransform=i.transform=t},setTranslate:function(n,t){var i=n.style,r={x:t.x||0,y:t.y||0,z:t.z||0},u=this.support.transforms3d?"translate3d("+r.x+"px,"+r.y+"px,"+r.z+"px)":"translate("+r.x+"px,"+r.y+"px)";i.webkitTransform=i.MsTransform=i.msTransform=i.MozTransform=i.OTransform=i.transform=u;this.support.transforms||(i.left=r.x+"px",i.top=r.y+"px")},setTransition:function(n,t){var i=n.style;i.webkitTransitionDuration=i.MsTransitionDuration=i.msTransitionDuration=i.MozTransitionDuration=i.OTransitionDuration=i.transitionDuration=t+"ms"},support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var n=document.createElement("div").style;return"webkitPerspective"in n||"MozPerspective"in n||"OPerspective"in n||"MsPerspective"in n||"perspective"in n}(),transforms:window.Modernizr&&Modernizr.csstransforms===!0||function(){var n=document.createElement("div").style;return"transform"in n||"WebkitTransform"in n||"MozTransform"in n||"msTransform"in n||"MsTransform"in n||"OTransform"in n}(),transitions:window.Modernizr&&Modernizr.csstransitions===!0||function(){var n=document.createElement("div").style;return"transition"in n||"WebkitTransition"in n||"MozTransition"in n||"msTransition"in n||"MsTransition"in n||"OTransition"in n}()},browser:{ie8:function(){var n=-1,t,i;return navigator.appName=="Microsoft Internet Explorer"&&(t=navigator.userAgent,i=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"),i.exec(t)!=null&&(n=parseFloat(RegExp.$1))),n!=-1&&n<9}(),ie10:window.navigator.msPointerEnabled,ie11:window.navigator.pointerEnabled}};(window.jQuery||window.Zepto)&&function(n){n.fn.swiper=function(t){var i=new Swiper(n(this)[0],t);return n(this).data("swiper",i),i}}(window.jQuery||window.Zepto);typeof module!="undefined"&&(module.exports=Swiper)