function CalcPayment(n,t){var i=n*(1-d)+f;return i<0?0:i*(r/12)/(1-Math.pow(1+r/12,-t))*12/52}function RecalcFinAmt(n,t,i,r){var u=document.getElementById(t);u!=null&&$.ajax({cache:!1,type:"POST",contentType:"application/json",beforeSend:function(){},complete:function(){},url:"../../vehicleservice.asmx/CalculateFinance",data:"{'inputAmount':'"+n+"','inputTerm':'"+u.value+"','inputOnRoadCosts':'"+r+"'}",success:function(n){var t=$("[id$="+i+"]"),r;t.empty();n.d[0]!=""&&(r=JSON.parse(n.d[0]),t.append(r))},dataType:"json",error:function(){}})}function RecalcFinAmtDisplay(n,t,i,r){RecalcFinAmtDisplay(n,t,"",i,r)}function RecalcFinAmtDisplay(n,t,i,r,u){var f=document.getElementById(t);f!=null&&$.ajax({cache:!1,type:"POST",contentType:"application/json",beforeSend:function(){},complete:function(){},url:"../../vehicleservice.asmx/CalculateFinanceDisplay",data:"{'inputAmount':'"+n+"','inputTerm':'"+f.value+"','inputFrequency':'"+i+"','inputOnRoadCosts':'"+u+"'}",success:function(n){var t=$("[id$="+r+"]"),i;t.empty();n.d[0]!=""&&(i=JSON.parse(n.d[0]),t.append(i))},dataType:"json",error:function(n){alert(n.statusText)}})}function validationSubmitHandler(n){var t=$(this).find("[data-invalid]"),i=t.length==0;i?($(n.targetButton).attr("disabled","disabled"),window.location=n.targetButton.href):$(n.targetButton).closest("[data-reveal]").length==0&&$("body").scrollTo("#"+t.first().attr("id"),200,{offset:-70})}function setMapAddress(n,t,i,r,u,f,e,o,s){var c=new google.maps.Geocoder,h=null;r=="Black"&&(h=[{featureType:"all",stylers:[{saturation:-100},{lightness:-40},{hue:"#000000"}]}]);c.geocode({address:n},function(n,r){if(r==google.maps.GeocoderStatus.OK)var c=n[0].geometry.location,l={zoom:o,center:c,mapTypeId:google.maps.MapTypeId.ROADMAP,styles:h,scrollwheel:u,disableDefaultUI:f,draggable:s},a=new google.maps.Map(document.getElementById(t),l),v=new google.maps.Marker({map:a,position:n[0].geometry.location,icon:i,title:e})})}function getParameterByName(n){return getParameterFromUrl(n,window.location.search)}function getParameterFromUrl(n,t){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var r="[\\?&]"+n+"=([^&#]*)",u=new RegExp(r),i=u.exec(t);return i==null?"":decodeURIComponent(i[1].replace(/\+/g," "))}function getResponsiveScreenDisplay(){return window.getComputedStyle($("#responsiveTell")[0],":after").getPropertyValue("content").replace(/"/g,"")}function ShowCommonPopup(n,t){$(function(){var i=$("#dlg-common");i.find(".common-modal-title").empty().append(n);i.find(".common-modal-content").empty().append(t);i.foundation("reveal","open")})}function ResetControls(n){var t=$("[id$="+n+"]").children();return t.find("input,textarea").each(function(){$(this).val("")}),t.find("select").each(function(){$(this)[0].selectedIndex=0}),!1}var d=0,f=523,r=.159,screenSize,Motorcentral=function(){},mc=new Motorcentral,Swiper;$(document).ready(function(){mc.screenSize=getResponsiveScreenDisplay();screenSize=getResponsiveScreenDisplay();var n=$("[data-mcsubmit]").each(function(){$(this).on("click",function(n){n.stopPropagation();n.preventDefault();var t=$(this).data("mcsubmit");return t==""&&(t="frmDefault"),Foundation.libs.abide.validate($("#"+t).find("input, select, textarea"),{type:""}),$.event.trigger({type:"mcAbideValidationSubmit",targetButton:n.target}),!1})})});$(window).smartresize(function(){var n=getResponsiveScreenDisplay();mc.screenSize=n;$.event.trigger({type:"screenResized",screenSize:mc.screenSize})});$(document).on("mcAbideValidationSubmit",validationSubmitHandler);(function(n){n.fn.toggleDisabled=function(){return this.each(function(){this.disabled=!this.disabled})}})(jQuery),function(n){n.fn.mcEnable=function(){return this.each(function(){this.disabled=!1})}}(jQuery),function(n){n.fn.mcDisable=function(){return this.each(function(){this.disabled=!0})}}(jQuery);Swiper=function(n,t){"use strict";function s(n,t){return document.querySelectorAll?(t||document).querySelectorAll(n):jQuery(n,t)}function oi(n){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&&!t.centeredSlides&&(n=0),n<0&&(n=0),n}function si(){function f(n){var r=new Image;r.onload=function(){i&&i.imagesLoaded!==undefined&&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),kt(),i._wheelEvent=!1,t.mousewheelControl){if(document.onmousewheel!==undefined&&(i._wheelEvent="mousewheel"),!i._wheelEvent)try{new WheelEvent("wheel");i._wheelEvent="wheel"}catch(e){}i._wheelEvent||(i._wheelEvent="DOMMouseScroll");i._wheelEvent&&n(i.container,i._wheelEvent,ht)}if(t.keyboardControl&&n(document,"keydown",st),t.updateOnImagesReady)for(i.imagesToLoad=s("img",i.container),u=0;u<i.imagesToLoad.length;u++)f(i.imagesToLoad[u].getAttribute("src"))}function kt(){var r=i.h.addEventListener,n,u,f;if(t.preventLinks)for(u=s("a",i.container),n=0;n<u.length;n++)r(u[n],"click",ii);if(t.releaseFormElements)for(f=s("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 dt(){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=s("input, textarea, select",i.container),n=0;n<u.length;n++)r(u[n],i.touchEvents.touchStart,ri,!0);if(t.preventLinks)for(f=s("a",i.container),n=0;n<f.length;n++)r(f[n],"click",ii)}function st(n){var t=n.keyCode||n.charCode,e,f;if(!n.shiftKey&&!n.altKey&&!n.ctrlKey&&!n.metaKey){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 ht(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()-wt>60&&(u<0?i.swipeNext():i.swipePrev()),wt=(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;r=r.parentNode}while(r);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,i.isTouched=!0,c=n.type==="touchstart",!c||n.targetTouches.length===1){i.callPlugins("onTouchStartBegin");c||i.isAndroid||(n.preventDefault?n.preventDefault():n.returnValue=!1);var u=c?n.targetTouches[0].pageX:n.pageX||n.clientX,f=c?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&&(ct=!1);t.onTouchStart&&i.fireCallback(t.onTouchStart,i,n);i.callPlugins("onTouchStartEnd")}}function b(n){var o,s,e,h,l,v;if(i.isTouched&&!t.onlyExternal&&(!c||n.type!=="mousemove")){if(o=c?n.targetTouches[0].pageX:n.pageX||n.clientX,s=c?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),!c||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()&&(h=(i.touches.current-i.touches.start)*t.touchRatio+(f()+i.positions.start),e=(u+h)/u,l=i.positions.current-h*(1-e)/2,v=-f()-u/2,i.positions.current=l<v||e<=0?v:l)),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||ct){if(!ct){ct=!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),lt||(lt=(new Date).getTime()),i.velocity=(i.touches.current-rt)/((new Date).getTime()-lt)/2,Math.abs(i.touches.current-rt)<2&&(i.velocity=0),rt=i.touches.current,lt=(new Date).getTime(),i.callPlugins("onTouchMoveEnd"),t.onTouchMove&&i.fireCallback(t.onTouchMove,i,n),!1}}}function k(n){var s,h,nt,k,g,v;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 tt=i.positions.diff,c=i.positions.abs,l=i.times.end-i.times.start;if(c<5&&l<300&&i.allowLinks===!1&&(t.freeMode||c===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),s=f(),!i.isMoved&&t.freeMode){i.isMoved=!1;t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i,n);i.callPlugins("onTouchEnd");return}if(!i.isMoved||i.positions.current>0||i.positions.current<-s){i.swipeReset();t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i,n);i.callPlugins("onTouchEnd");return}if(i.isMoved=!1,t.freeMode){if(t.freeModeFluid){var p=1e3*t.momentumRatio,rt=i.velocity*p,o=i.positions.current+rt,w=!1,b,y=Math.abs(i.velocity)*20*t.momentumBounceRatio;o<-s&&(t.momentumBounce&&i.support.transitions?(o+s<-y&&(o=-s-y),b=-s,w=!0,it=!0):o=-s);o>0&&(t.momentumBounce&&i.support.transitions?(o>y&&(o=y),b=0,w=!0,it=!0):o=0);i.velocity!==0&&(p=Math.abs((o-i.positions.current)/i.velocity));i.setWrapperTranslate(o);i.setWrapperTransition(p);t.momentumBounce&&w&&i.wrapperTransitionEnd(function(){it&&(t.onMomentumBounce&&i.fireCallback(t.onMomentumBounce,i),i.callPlugins("onMomentumBounce"),i.setWrapperTranslate(b),i.setWrapperTransition(300))});i.updateActiveSlide(o)}(!t.freeModeFluid||l>=300)&&i.updateActiveSlide(i.positions.current);t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i,n);i.callPlugins("onTouchEnd");return}if(d=tt<0?"toNext":"toPrev",d==="toNext"&&l<=300&&(c<30||!t.shortSwipes?i.swipeReset():i.swipeNext(!0)),d==="toPrev"&&l<=300&&(c<30||!t.shortSwipes?i.swipeReset():i.swipePrev(!0)),h=0,t.slidesPerView==="auto"){for(nt=Math.abs(i.getWrapperTranslate()),k=0,v=0;v<i.slides.length;v++)if(g=r?i.slides[v].getWidth(!0,t.roundLengths):i.slides[v].getHeight(!0,t.roundLengths),k+=g,k>nt){h=g;break}h>u&&(h=u)}else h=e*t.slidesPerView;d==="toNext"&&l>300&&(c>=h*t.longSwipesRatio?i.swipeNext(!0):i.swipeReset());d==="toPrev"&&l>300&&(c>=h*t.longSwipesRatio?i.swipePrev(!0):i.swipeReset());t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i,n);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 at(n,r,u){function o(){var e=+new Date,a=e-c;f+=l*a/(1e3/60);h=s==="toNext"?f>n:f<n;h?(i.setWrapperTranslate(Math.round(f)),i._DOMAnimating=!0,window.setTimeout(function(){o()},1e3/60)):(t.onSlideChangeEnd&&(r==="to"?u.runCallbacks===!0&&i.fireCallback(t.onSlideChangeEnd,i):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)),s=f>n?"toNext":"toPrev",h=s==="toNext"?f>n:f<n;if(i._DOMAnimating)return;o()}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(){var t=i.paginationButtons,n;if(t)for(n=0;n<t.length;n++)i.h.removeEventListener(t[n],"click",ei)}function li(){var t=i.paginationButtons,n;if(t)for(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 bt(){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"&&bt()})},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 vt,i,ut,e,v,d,a,u,g,h,ft,r,y,p,yt,et,nt,ot,pt,wt,tt,c,ct,it,rt,lt,o,l;if((document.body.__defineGetter__&&HTMLElement&&(vt=HTMLElement.prototype,vt.__defineGetter__&&vt.__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||s(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:s(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,slidesPerViewFit:!0,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,roundLengths:!1,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",slideVisibleClass2:"swiper-slide-visible2",slideDuplicateClass:"swiper-slide-duplicate",wrapperClass:"swiper-wrapper",paginationElementClass:"swiper-pagination-switch",paginationActiveClass:"swiper-active-switch",paginationVisibleClass:"swiper-visible-switch"};t=t||{};for(h in g)if(h in t&&typeof t[h]=="object")for(ft in g[h])ft in t[h]||(t[h][ft]=g[h][ft]);else h in t||(t[h]=g[h]);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(yt=i.container.childNodes[p].className.split(/\s+/),et=0;et<yt.length;et++)yt[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 typeof i=="undefined"?n.getAttribute("data-"+t):(n.setAttribute("data-"+t,i),n)},n.getWidth=function(t,r){return i.h.getWidth(n,t,r)},n.getHeight=function(t,r){return i.h.getHeight(n,t,r)},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(/\s+/),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)&&(dt(),kt(),i.updateActiveSlide(),i.params.pagination&&i.createPagination(),i.callPlugins("numberOfSlidesChanged"))};i.createSlide=function(n,r,u){r=r||i.params.slideClass;u=u||t.slideElement;var 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],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]):n(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])};i.addCallback=function(n,t){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){i.params["on"+n]&&(i.params["on"+n]=null)};nt=[];for(ot in i.plugins)t[ot]&&(pt=i.plugins[ot](i,t[ot]),pt&&nt.push(pt));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 tt=i.h.getWidth(i.container,!1,t.roundLengths),it=i.h.getHeight(i.container,!1,t.roundLengths),a,c,p,w,l,h,s,o,k,d,g,y,b,nt;if(tt!==i.width||it!==i.height||n){if(i.width=tt,i.height=it,u=r?tt:it,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,t.roundLengths))/2,i.wrapperRight=(u-i.slides[i.slides.length-1].getWidth(!0,t.roundLengths))/2):(i.wrapperTop=(u-i.slides[0].getHeight(!0,t.roundLengths))/2,i.wrapperBottom=(u-i.slides[i.slides.length-1].getHeight(!0,t.roundLengths))/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")),h=0,g=0,i.snapGrid=[],i.slidesGrid=[],p=0,s=0;s<i.slides.length;s++){if(a=i.slides[s].getWidth(!0,t.roundLengths),c=i.slides[s].getHeight(!0,t.roundLengths),t.calculateHeight&&(p=Math.max(p,c)),y=r?a:c,t.centeredSlides){var rt=s===i.slides.length-1?0:i.slides[s+1].getWidth(!0,t.roundLengths),ut=s===i.slides.length-1?0:i.slides[s+1].getHeight(!0,t.roundLengths),ft=r?rt:ut;if(y>u){if(t.slidesPerViewFit)i.snapGrid.push(h+i.wrapperLeft),i.snapGrid.push(h+y-u+i.wrapperLeft);else for(b=0;b<=Math.floor(y/(u+i.wrapperLeft));b++)b===0?i.snapGrid.push(h+i.wrapperLeft):i.snapGrid.push(h+i.wrapperLeft+u*b);i.slidesGrid.push(h+i.wrapperLeft)}else i.snapGrid.push(g),i.slidesGrid.push(g);g+=y/2+ft/2}else{if(y>u)if(t.slidesPerViewFit)i.snapGrid.push(h),i.snapGrid.push(h+y-u);else if(u!==0)for(nt=0;nt<=Math.floor(y/u);nt++)i.snapGrid.push(h+u*nt);else i.snapGrid.push(h);else i.snapGrid.push(h);i.slidesGrid.push(h)}h+=y;k+=a;d+=c}t.calculateHeight&&(i.height=p);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,t.roundLengths),l=i.slides[0].getHeight(!0,t.roundLengths),v=r?w:l,o.style.width=w+"px",o.style.height=l+"px",e=r?w:l;else{if(t.calculateHeight){for(p=0,l=0,r||(i.container.style.height=""),o.style.height="",s=0;s<i.slides.length;s++)i.slides[s].style.height="",p=Math.max(i.slides[s].getHeight(!0),p),r||(l+=i.slides[s].getHeight(!0));c=p;i.height=c;r?l=c:(u=c,i.container.style.height=u+"px")}else c=r?i.height:i.height/t.slidesPerView,t.roundLengths&&(c=Math.round(c)),l=r?i.height:i.slides.length*c;for(a=r?i.width/t.slidesPerView:i.width,t.roundLengths&&(a=Math.round(a)),w=r?i.slides.length*a:i.width,e=r?a:c,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")),h=0,i.snapGrid=[],i.slidesGrid=[],s=0;s<i.slides.length;s++)i.snapGrid.push(h),i.slidesGrid.push(h),h+=e,t.cssWidthAndHeight||(parseFloat(a)>0&&(i.slides[s].style.width=a+"px"),parseFloat(c)>0&&(i.slides[s].style.height=c+"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 l!="undefined"&&(clearInterval(l),l=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);dt();t.paginationClickable&&fi();t.mousewheelControl&&i._wheelEvent&&n(i.container,i._wheelEvent,ht);t.keyboardControl&&n(document,"keydown",st);t.autoplay&&i.stopAutoplay();i.callPlugins("onDestroy");i=null};i.disableKeyboardControl=function(){t.keyboardControl=!1;i.h.removeEventListener(document,"keydown",st)};i.enableKeyboardControl=function(){t.keyboardControl=!0;i.h.addEventListener(document,"keydown",st)};wt=(new Date).getTime();i.disableMousewheelControl=function(){return i._wheelEvent?(t.mousewheelControl=!1,i.h.removeEventListener(i.container,i._wheelEvent,ht),!0):!1};i.enableMousewheelControl=function(){return i._wheelEvent?(t.mousewheelControl=!0,i.h.addEventListener(i.container,i._wheelEvent,ht),!0):!1};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;c=!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:(at(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:(at(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:(at(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,at(o,"to",{index:n,speed:r,runCallbacks:u}),!0)};i._queueStartCallbacks=!1;i._queueEndCallbacks=!1;i.updateActiveSlide=function(n){var r,h,o,s,u,f;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(h=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;o=Math.abs(i.slidesGrid[r]+n);s=Math.abs(i.slidesGrid[r+1]+n);i.activeIndex=o<=s?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]){if(i.calcVisibleSlides(n),i.support.classList){for(r=0;r<i.slides.length;r++)u=i.slides[r],u.classList.remove(t.slideActiveClass),i.visibleSlides.indexOf(u)>=1?u.classList.add(t.slideVisibleClass2):i.visibleSlides.indexOf(u)>=0?u.classList.add(t.slideVisibleClass):(u.classList.remove(t.slideVisibleClass),u.classList.remove(t.slideVisibleClass2));i.slides[i.activeIndex].classList.add(t.slideActiveClass)}else{var c=new RegExp("\\s*"+t.slideActiveClass),l=new RegExp("\\s*"+t.slideVisibleClass),a=new RegExp("\\s*"+t.slideVisibleClass2);for(r=0;r<i.slides.length;r++)i.slides[r].className=i.slides[r].className.replace(c,"").replace(a,"").replace(l,""),i.visibleSlides.indexOf(i.slides[r])>=0&&(i.slides[r].className+=" "+t.slideVisibleClass);i.slides[i.activeIndex].className+=" "+t.slideActiveClass;try{i.slides[i.activeIndex+1].className+=" "+t.slideVisibleClass2}catch(v){}try{i.slides[i.activeIndex-1].className+=" "+t.slideVisibleClass2}catch(v){}}t.loop?(f=i.loopedSlides,i.activeLoopIndex=i.activeIndex-f,i.activeLoopIndex>=i.slides.length-f*2&&(i.activeLoopIndex=i.slides.length-f*2-i.activeLoopIndex),i.activeLoopIndex<0&&(i.activeLoopIndex=i.slides.length-f*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:s(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=s("."+t.paginationElementClass,i.paginationContainer);n||i.updatePagination();i.callPlugins("onCreatePagination");t.paginationClickable&&li()};i.updatePagination=function(n){var h,r,o,c,e,f,u;if(t.pagination&&!(i.slides.length<1)&&(h=s("."+t.paginationActiveClass,i.paginationContainer),h)&&(r=i.paginationButtons,r.length!==0)){for(o=0;o<r.length;o++)r[o].className=t.paginationElementClass;if(c=t.loop?i.loopedSlides:0,t.paginationAsRange){for(i.visibleSlides||i.calcVisibleSlides(n),e=[],f=0;f<i.visibleSlides.length;f++)u=i.slides.indexOf(i.visibleSlides[f])-c,t.loop&&u<0&&(u=i.slides.length-i.loopedSlides*2+u),t.loop&&u>=i.slides.length-i.loopedSlides*2&&(u=i.slides.length-i.loopedSlides*2-u,u=Math.abs(u)),e.push(u);for(f=0;f<e.length;f++)r[e[f]]&&(r[e[f]].className+=" "+t.paginationVisibleClass);t.loop?r[i.activeLoopIndex]!==undefined&&(r[i.activeLoopIndex].className+=" "+t.paginationActiveClass):r[i.activeIndex].className+=" "+t.paginationActiveClass}else t.loop?r[i.activeLoopIndex]&&(r[i.activeLoopIndex].className+=" "+t.paginationActiveClass+" "+t.paginationVisibleClass):r[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,t.roundLengths):i.h.getHeight(i.slides[h],!0,t.roundLengths):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};i.startAutoplay=function(){if(i.support.transitions){if(typeof o!="undefined")return!1;if(!t.autoplay)return;i.callPlugins("onAutoplayStart");t.onAutoplayStart&&i.fireCallback(t.onAutoplayStart,i);bt()}else{if(typeof l!="undefined")return!1;if(!t.autoplay)return;i.callPlugins("onAutoplayStart");t.onAutoplayStart&&i.fireCallback(t.onAutoplayStart,i);l=setInterval(function(){t.loop?(i.fixLoop(),i.swipeNext(!0)):i.swipeNext(!0)||(t.autoplayStopOnLast?(clearInterval(l),l=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(){bt()});i.callPlugins("onAutoplayStop");t.onAutoplayStop&&i.fireCallback(t.onAutoplayStop,i)}else l&&clearInterval(l),l=undefined,i.callPlugins("onAutoplayStop"),t.onAutoplayStop&&i.fireCallback(t.onAutoplayStop,i)};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,n,a,c,l,s,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){"use strict";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){"use strict";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==="none"?"":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){"use strict";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){"use strict";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,i){"use strict";var u=window.getComputedStyle(n,null).getPropertyValue("width"),r=parseFloat(u);return(isNaN(r)||u.indexOf("%")>0)&&(r=n.offsetWidth-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-left"))-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-right"))),t&&(r+=parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-left"))+parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-right"))),i?Math.round(r):r},getHeight:function(n,t,i){"use strict";if(t)return n.offsetHeight;var u=window.getComputedStyle(n,null).getPropertyValue("height"),r=parseFloat(u);return(isNaN(r)||u.indexOf("%")>0)&&(r=n.offsetHeight-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-top"))-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-bottom"))),t&&(r+=parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-top"))+parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-bottom"))),i?Math.round(r):r},getOffset:function(n){"use strict";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(){"use strict";return window.innerWidth?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:void 0},windowHeight:function(){"use strict";return window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:void 0},windowScroll:function(){"use strict";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){"use strict";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){"use strict";typeof r=="undefined"&&(r=!1);n.removeEventListener?n.removeEventListener(t,i,r):n.detachEvent&&n.detachEvent("on"+t,i)}},setTransform:function(n,t){"use strict";var i=n.style;i.webkitTransform=i.MsTransform=i.msTransform=i.MozTransform=i.OTransform=i.transform=t},setTranslate:function(n,t){"use strict";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){"use strict";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(){"use strict";return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){"use strict";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(){"use strict";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(){"use strict";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}(),classList:function(){"use strict";var n=document.createElement("div").style;return"classList"in n}()},browser:{ie8:function(){"use strict";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){"use strict";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);typeof define=="function"&&define.amd&&define([],function(){"use strict";return Swiper})