function submitNewsletter(n){var t,i;try{t=$(n).parent().parent().find("input").val(),t=$.trim(t),t=t.replace(/<\/?[^>]+>/gi,""),t!=""&&(i="/newsletter?"+jQuery.param({e:t}),location.href=i)}catch(r){}}function onNewsletterBoxKeyPress(n){var t=n.which?n.which:event.keyCode;if(t==13)return $(".newsletterBox .buttons a").length>0&&$(".newsletterBox .buttons a").click(),!1}function onNewsletterFooterKeyPress(n){var t=n.which?n.which:event.keyCode;if(t==13)return $(".footer .newsletter .buttons a").length>0&&$(".footer .newsletter .buttons a").click(),!1}function onSearchboxKeyPress(n){var t=n.which?n.which:event.keyCode;if(t==13)return $(".searchModal a").length>0&&$(".searchModal a").click(),!1}function facebookShareOver(n){$(n).attr("src","/sitefiles/images/facebook_icon_on.png")}function facebookShareOut(n){$(n).attr("src","/sitefiles/images/facebook_icon_off.png")}function twitterShareOver(n){$(n).attr("src","/sitefiles/images/twitter_icon_on.png")}function twitterShareOut(n){$(n).attr("src","/sitefiles/images/twitter_icon_off.png")}function pinterestShareOver(n){$(n).attr("src","/sitefiles/images/pinterest_icon_on.png")}function pinterestShareOut(n){$(n).attr("src","/sitefiles/images/pinterest_icon_off.png")}function setShareIcons(n,t,i){var r="",u;try{u=t,u.indexOf("http://")==-1&&(u="http://"+document.domain+u),r+="<div class='shareIcons default addthis_toolbox' addthis:url='"+u+"' addthis:title='"+i+"'>",r+="<div class='item commentsShare'><a href='"+t+"#comments'><img src='/sitefiles/images/comments_icon.png' alt='Share your thoughts on this article' /><\/a><span>"+n+"<\/span><\/div>",r+="<div class='item emailShare'><a class='addthis_button_email' title='Email this article to a friend'><img src='/sitefiles/images/email_icon.png' alt='Email this article to a friend' /><\/a><\/div>",r+="<div class='item twitterShare'><a class='addthis_button_twitter' title='Tweet this on Twitter'><img src='/sitefiles/images/twitter_icon_off.png' alt='Tweet this on Twitter' onmouseover='twitterShareOver(this);' onmouseout='twitterShareOut(this);' /><\/a><\/div>",r+="<div class='item facebookShare'><a class='addthis_button_facebook' title='Share this on Facebook'><img src='/sitefiles/images/facebook_icon_off.png' alt='Share this on Facebook' onmouseover='facebookShareOver(this);' onmouseout='facebookShareOut(this);' /><\/a><\/div>",r+="<div class='item pinterestShare'><a class='addthis_button_pinterest_share' title='Pin this on Pinterest'><img src='/sitefiles/images/pinterest_icon_off.png' alt='Pin this on Pinterest' onmouseover='pinterestShareOver(this);' onmouseout='pinterestShareOut(this);' /><\/a><\/div>",r+="<div class='clear'><\/div><\/div>"}catch(f){}return r}function SetNavHover(n,t){var u,r,i;if($(document).width()>960)for($(n).find("a").addClass("selected"),$(t).show(),u=$(n).attr("id"),r=$(n).parent().find("li"),i=0;i<r.length;i++)i>0&&u==$(r[i]).attr("id")&&$(r[i-1]).find("a").addClass("last")}function ClearNavHover(n,t){$(n).find("a").removeClass("selected"),$(t).hide()}function OpenURLButton(n){window.open(n)}function OpenSubscriptionButton(n){var i={},t=null,r;window.location.search.replace(new RegExp("([^?=&]+)(=([^&]*))?","g"),function(n,t,r,u){i[t]=u}),t=i.cid,t==null&&(t=n),r="https://secure.kalmbach.com/offer/default.aspx?c="+t,window.open(r)}var contentWellWidthInterval,contentWellWidth=0,dateFormat,Swiper;$(document).ready(function(){if($(document).width()>800){var n;$("a[rev='colorbox']").colorbox({transition:"none",scrolling:!1})}$(".navbar .search a").click(function(){var n="500px",t="200px";$(document).width()<=500&&(n="100%"),$.colorbox({transition:"none",inline:!0,href:$(".searchModal"),width:n,height:t})}),$(".searchModal a").click(function(){var n=$(this).parent().parent().find("input").val(),t;n=$.trim(n),n=n.replace(/<\/?[^>]+>/gi,""),n!=""&&(t="/search?"+jQuery.param({q:n}),location.href=t)})}),function(n,t,i){window.Wishpond=window.Wishpond||{},Wishpond.merchantId="1314312",Wishpond.writeKey="a36ba4f05a02";var r,u=n.getElementsByTagName(t)[0];n.getElementById(i)||(r=n.createElement(t),r.id=i,r.src="//cdn.wishpond.net/connect.js",u.parentNode.insertBefore(r,u))}(document,"script","wishpond-connect"),$(document).ready(function(){$(".navbar .primary li#navmagazine").hover(function(){SetNavHover(this,$(".navhover.magazineSwatch"))},function(){ClearNavHover(this,$(".navhover.magazineSwatch"))}),$(".navbar .primary li#navshop").hover(function(){SetNavHover(this,$(".navhover.shopSwatch"))},function(){ClearNavHover(this,$(".navhover.shopSwatch"))}),$(".navbar .primary li#navvideos").hover(function(){SetNavHover(this,$(".navhover.videosSwatch"))},function(){ClearNavHover(this,$(".navhover.videosSwatch"))}),$(".navbar .primary li#navhowto").hover(function(){SetNavHover(this,$(".navhover.howtoSwatch"))},function(){ClearNavHover(this,$(".navhover.howtoSwatch"))}),$(".navbar .primary li#navproductinfo").hover(function(){SetNavHover(this,$(".navhover.reviewsSwatch"))},function(){ClearNavHover(this,$(".navhover.reviewsSwatch"))}),$(".navbar .primary li#navgalleries").hover(function(){SetNavHover(this,$(".navhover.gallerySwatch"))},function(){ClearNavHover(this,$(".navhover.gallerySwatch"))}),$(".navbar .primary li#navcommunity").hover(function(){SetNavHover(this,$(".navhover.communitySwatch"))},function(){ClearNavHover(this,$(".navhover.communitySwatch"))}),$(".navhover.magazineSwatch").hover(function(){SetNavHover($(".navbar .primary li#navmagazine"),this)},function(){ClearNavHover($(".navbar .primary li#navmagazine"),this)}),$(".navhover.shopSwatch").hover(function(){SetNavHover($(".navbar .primary li#navshop"),this)},function(){ClearNavHover($(".navbar .primary li#navshop"),this)}),$(".navhover.videosSwatch").hover(function(){SetNavHover($(".navbar .primary li#navvideos"),this)},function(){ClearNavHover($(".navbar .primary li#navvideos"),this)}),$(".navhover.howtoSwatch").hover(function(){SetNavHover($(".navbar .primary li#navhowto"),this)},function(){ClearNavHover($(".navbar .primary li#navhowto"),this)}),$(".navhover.reviewsSwatch").hover(function(){SetNavHover($(".navbar .primary li#navproductinfo"),this)},function(){ClearNavHover($(".navbar .primary li#navproductinfo"),this)}),$(".navhover.gallerySwatch").hover(function(){SetNavHover($(".navbar .primary li#navgalleries"),this)},function(){ClearNavHover($(".navbar .primary li#navgalleries"),this)}),$(".navhover.communitySwatch").hover(function(){SetNavHover($(".navbar .primary li#navcommunity"),this)},function(){ClearNavHover($(".navbar .primary li#navcommunity"),this)}),$(".navbar .mobile .menu a").click(function(){$(".mobileMenu").is(":visible")?$(".mobileMenu").slideUp("fast"):$(".mobileMenu").slideDown("fast")}),$(".mobileMenu ul li.red a").click(function(){$(this).parent().find("ul").is(":visible")?($(this).find("span").css("background","url(/sitefiles/images/mobile_arrow_down.png) center center no-repeat"),$(this).parent().find("ul").slideUp("fast")):($(this).find("span").css("background","url(/sitefiles/images/mobile_arrow_up.png) center center no-repeat"),$(this).parent().find("ul").slideDown("fast"))})}),dateFormat=function(){var t=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,i=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,r=/[^-+\dA-Z]/g,n=function(n,t){for(n=String(n),t=t||2;n.length<t;)n="0"+n;return n};return function(u,f,e){var h=dateFormat;if(arguments.length!=1||Object.prototype.toString.call(u)!="[object String]"||/\d/.test(u)||(f=u,u=undefined),u=u?new Date(u):new Date,isNaN(u))throw SyntaxError("invalid date");f=String(h.masks[f]||f||h.masks["default"]),f.slice(0,4)=="UTC:"&&(f=f.slice(4),e=!0);var o=e?"getUTC":"get",c=u[o+"Date"](),y=u[o+"Day"](),l=u[o+"Month"](),p=u[o+"FullYear"](),s=u[o+"Hours"](),w=u[o+"Minutes"](),b=u[o+"Seconds"](),a=u[o+"Milliseconds"](),v=e?0:u.getTimezoneOffset(),k={d:c,dd:n(c),ddd:h.i18n.dayNames[y],dddd:h.i18n.dayNames[y+7],m:l+1,mm:n(l+1),mmm:h.i18n.monthNames[l],mmmm:h.i18n.monthNames[l+12],yy:String(p).slice(2),yyyy:p,h:s%12||12,hh:n(s%12||12),H:s,HH:n(s),M:w,MM:n(w),s:b,ss:n(b),l:n(a,3),L:n(a>99?Math.round(a/10):a),t:s<12?"a":"p",tt:s<12?"am":"pm",T:s<12?"A":"P",TT:s<12?"AM":"PM",Z:e?"UTC":(String(u).match(i)||[""]).pop().replace(r,""),o:(v>0?"-":"+")+n(Math.floor(Math.abs(v)/60)*100+Math.abs(v)%60,4),S:["th","st","nd","rd"][c%10>3?0:(c%100-c%10!=10)*c%10]};return f.replace(t,function(n){return n in k?k[n]:n.slice(1,n.length-1)})}}(),dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"},dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},Date.prototype.format=function(n,t){return dateFormat(this,n,t)},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 Array]"===Object.prototype.toString.apply(n)?!0:!1}function f(){var n=w-u;return t.freeMode&&(n=w-u),t.slidesPerView>i.slides.length&&!t.centeredSlides&&(n=0),0>n&&(n=0),n}function si(){function f(n){var r=new Image;r.onload=function(){i&&void 0!==i.imagesLoaded&&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="wrapper"===t.eventTarget?i.wrapper:i.container,u;if(i.browser.ie10||i.browser.ie11?(n(r,i.touchEvents.touchStart,v),n(document,i.touchEvents.touchMove,y),n(document,i.touchEvents.touchEnd,p)):(i.support.touch&&(n(r,"touchstart",v),n(r,"touchmove",y),n(r,"touchend",p)),t.simulateTouch&&(n(r,"mousedown",v),n(document,"mousemove",y),n(document,"mouseup",p))),t.autoResize&&n(window,"resize",i.resizeFix),bt(),i._wheelEvent=!1,t.mousewheelControl){if(void 0!==document.onmousewheel&&(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,dt)}if(t.keyboardControl&&n(document,"keydown",ut),t.updateOnImagesReady)for(i.imagesToLoad=s("img",i.container),u=0;u<i.imagesToLoad.length;u++)f(i.imagesToLoad[u].getAttribute("src"))}function bt(){var n,r=i.h.addEventListener,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 kt(){var n,r=i.h.removeEventListener,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 ut(n){var t=n.keyCode||n.charCode,f;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey)){if(37===t||39===t||38===t||40===t){for(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]],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?((37===t||39===t)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),39===t&&i.swipeNext(),37===t&&i.swipePrev()):((38===t||40===t)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),40===t&&i.swipeNext(),38===t&&i.swipePrev())}}function dt(n){var o=i._wheelEvent,u=0,e;if(n.detail)u=-n.detail;else if("mousewheel"===o)if(t.mousewheelControlForceToAxis)if(r){if(!(Math.abs(n.wheelDeltaX)>Math.abs(n.wheelDeltaY)))return;u=n.wheelDeltaX}else{if(!(Math.abs(n.wheelDeltaY)>Math.abs(n.wheelDeltaX)))return;u=n.wheelDeltaY}else u=n.wheelDelta;else if("DOMMouseScroll"===o)u=-n.detail;else if("wheel"===o)if(t.mousewheelControlForceToAxis)if(r){if(!(Math.abs(n.deltaX)>Math.abs(n.deltaY)))return;u=-n.deltaX}else{if(!(Math.abs(n.deltaY)>Math.abs(n.deltaX)))return;u=-n.deltaY}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),0===e||e===-f())return}else+new Date-wt>60&&(0>u?i.swipeNext():i.swipePrev()),wt=+new Date;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 v(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(rt=!1,i.isTouched=!0,c="touchstart"===n.type,!c||1===n.targetTouches.length){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,a=void 0,t.moveStartThreshold>0&&(ct=!1),t.onTouchStart&&i.fireCallback(t.onTouchStart,i),i.callPlugins("onTouchStartEnd")}}function y(n){var o,s,e,h,l,v;if(i.isTouched&&!t.onlyExternal&&(!c||"mousemove"!==n.type)){if((o=c?n.targetTouches[0].pageX:n.pageX||n.clientX,s=c?n.targetTouches[0].pageY:n.pageY||n.clientY,"undefined"==typeof a&&r&&(a=!!(a||Math.abs(s-i.touches.startY)>Math.abs(o-i.touches.startX))),"undefined"!=typeof a||r||(a=!!(a||Math.abs(s-i.touches.startY)<Math.abs(o-i.touches.startX))),a)||n.assignedToSwiper)return void(i.isTouched=!1);if(n.assignedToSwiper=!0,t.preventLinks&&(i.allowLinks=!1),t.onSlideClick&&(i.allowSlideClick=!1),t.autoplay&&i.stopAutoplay(!0),!c||1===n.touches.length){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&&"100%"!==t.resistance)&&(i.positions.current>0&&(e=1-i.positions.current/u/2,i.positions.current=.5>e?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=v>l||0>=e?v:l),t.resistance&&"100%"===t.resistance&&(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)return ct=!0,void(i.touches.start=i.touches.current);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"),it||(it=i.touches.current),lt||(lt=+new Date),i.velocity=(i.touches.current-it)/(+new Date-lt)/2,Math.abs(i.touches.current-it)<2&&(i.velocity=0),it=i.touches.current,lt=+new Date,i.callPlugins("onTouchMoveEnd"),t.onTouchMove&&i.fireCallback(t.onTouchMove,i),!1}}}function p(){var o,s;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||0===i.positions.current||(i.positions.current=i.positions.start),t.followFinger&&i.setWrapperTranslate(i.positions.current),i.times.end=+new Date,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 g=i.positions.diff,h=i.positions.abs,c=i.times.end-i.times.start;if(5>h&&300>c&&i.allowLinks===!1&&(t.freeMode||0===h||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)return i.isMoved=!1,t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i),void i.callPlugins("onTouchEnd");if(!i.isMoved||i.positions.current>0||i.positions.current<-o)return i.swipeReset(),t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i),void i.callPlugins("onTouchEnd");if(i.isMoved=!1,t.freeMode){if(t.freeModeFluid){var y,p=1e3*t.momentumRatio,nt=i.velocity*p,n=i.positions.current+nt,w=!1,l=20*Math.abs(i.velocity)*t.momentumBounceRatio;-o>n&&(t.momentumBounce&&i.support.transitions?(-l>n+o&&(n=-o-l),y=-o,w=!0,rt=!0):n=-o),n>0&&(t.momentumBounce&&i.support.transitions?(n>l&&(n=l),y=0,w=!0,rt=!0):n=0),0!==i.velocity&&(p=Math.abs((n-i.positions.current)/i.velocity)),i.setWrapperTranslate(n),i.setWrapperTransition(p),t.momentumBounce&&w&&i.wrapperTransitionEnd(function(){rt&&(t.onMomentumBounce&&i.fireCallback(t.onMomentumBounce,i),i.callPlugins("onMomentumBounce"),i.setWrapperTranslate(y),i.setWrapperTransition(300))}),i.updateActiveSlide(n)}return(!t.freeModeFluid||c>=300)&&i.updateActiveSlide(i.positions.current),t.onTouchEnd&&i.fireCallback(t.onTouchEnd,i),void i.callPlugins("onTouchEnd")}if(d=0>g?"toNext":"toPrev","toNext"===d&&300>=c&&(30>h||!t.shortSwipes?i.swipeReset():i.swipeNext(!0)),"toPrev"===d&&300>=c&&(30>h||!t.shortSwipes?i.swipeReset():i.swipePrev(!0)),s=0,"auto"===t.slidesPerView){for(var b,tt=Math.abs(i.getWrapperTranslate()),k=0,v=0;v<i.slides.length;v++)if(b=r?i.slides[v].getWidth(!0,t.roundLengths):i.slides[v].getHeight(!0,t.roundLengths),k+=b,k>tt){s=b;break}s>u&&(s=u)}else s=e*t.slidesPerView;"toNext"===d&&c>300&&(h>=s*t.longSwipesRatio?i.swipeNext(!0):i.swipeReset()),"toPrev"===d&&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&&-1===n.className.indexOf(t.wrapperClass));return!i&&n.className.indexOf(t.wrapperClass)>-1&&n.className.indexOf(t.noSwipingClass)>-1&&(i=!0),i}function ui(n,t){var i,r=document.createElement("div");return r.innerHTML=t,i=r.firstChild,i.className+=" "+n,i.outerHTML}function ft(n,r,u){function e(){var o=+new Date,a=o-c;f+=l*a/(1e3/60),h="toNext"===s?f>n:n>f,h?(i.setWrapperTranslate(Math.round(f)),i._DOMAnimating=!0,window.setTimeout(function(){e()},1e3/60)):(t.onSlideChangeEnd&&("to"===r?u.runCallbacks===!0&&i.fireCallback(t.onSlideChangeEnd,i):i.fireCallback(t.onSlideChangeEnd,i)),i.setWrapperTranslate(n),i._DOMAnimating=!1)}var o="to"===r&&u.speed>=0?u.speed:t.speed,c=+new Date;if(i.support.transitions||!t.DOMAnimation)i.setWrapperTranslate(n),i.setWrapperTransition(o);else{var f=i.getWrapperTranslate(),l=Math.ceil((n-f)/o*(1e3/60)),s=f>n?"toNext":"toPrev",h="toNext"===s?f>n:n>f;if(i._DOMAnimating)return;e()}i.updateActiveSlide(n),t.onSlideNext&&"next"===r&&i.fireCallback(t.onSlideNext,i,n),t.onSlidePrev&&"prev"===r&&i.fireCallback(t.onSlidePrev,i,n),t.onSlideReset&&"reset"===r&&i.fireCallback(t.onSlideReset,i,n),("next"===r||"prev"===r||"to"===r&&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 at(){o=setTimeout(function(){t.loop?(i.fixLoop(),i.swipeNext(!0)):i.swipeNext(!0)||(t.autoplayStopOnLast?(clearTimeout(o),o=void 0):i.swipeTo(0)),i.wrapperTransitionEnd(function(){"undefined"!=typeof o&&at()})},t.autoplay)}function ai(){i.calcSlides(),t.loader.slides.length>0&&0===i.slides.length&&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,et,e,w,d,a,u,g,h,ot,r,b,k,yt,st,nt,ht,pt,wt,tt,ct,it,lt,c,rt,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"float"===t&&(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;r>i;i++)if(this[i]===n)return i;return-1}),(document.querySelectorAll||window.jQuery)&&"undefined"!=typeof n&&(n.nodeType||0!==s(n).length)){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,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",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&&"object"==typeof t[h])for(ot in g[h])ot in t[h]||(t[h][ot]=g[h][ot]);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="horizontal"===t.mode,b=["mousedown","mousemove","mouseup"],i.browser.ie10&&(b=["MSPointerDown","MSPointerMove","MSPointerUp"]),i.browser.ie11&&(b=["pointerdown","pointermove","pointerup"]),i.touchEvents={touchStart:i.support.touch||!t.simulateTouch?"touchstart":b[0],touchMove:i.support.touch||!t.simulateTouch?"touchmove":b[1],touchEnd:i.support.touch||!t.simulateTouch?"touchend":b[2]},k=i.container.childNodes.length-1;k>=0;k--)if(i.container.childNodes[k].className)for(yt=i.container.childNodes[k].className.split(/\s+/),st=0;st<yt.length;st++)yt[st]===t.wrapperClass&&(et=i.container.childNodes[k]);i.wrapper=et,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("undefined"==typeof r)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"undefined"==typeof t?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"undefined"==typeof i?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 f=i.slides?i.slides.length:!1,r;for(i.slides=[],i.displaySlides=[],r=0;r<i.wrapper.childNodes.length;r++)if(i.wrapper.childNodes[r].className)for(var o=i.wrapper.childNodes[r].className,e=o.split(/\s+/),u=0;u<e.length;u++)e[u]===t.slideClass&&i.slides.push(i.wrapper.childNodes[r]);for(r=i.slides.length-1;r>=0;r--)i._extendSwiperSlide(i.slides[r]);f!==!1&&(f!==i.slides.length||n)&&(kt(),bt(),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"undefined"==typeof n?!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 Array]"===Object.prototype.toString.call(n))for(r=0;r<n.length;r++)"function"==typeof n[r]&&n[r](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);else"[object String]"===Object.prototype.toString.call(n)?t["on"+n]&&i.fireCallback(t["on"+n]):n(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},i.addCallback=function(n,t){var i,r=this;return r.params["on"+n]?oi(this.params["on"+n])?this.params["on"+n].push(t):"function"==typeof this.params["on"+n]?(i=this.params["on"+n],this.params["on"+n]=[],this.params["on"+n].push(i),this.params["on"+n].push(t)):void 0:(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(ht in i.plugins)t[ht]&&(pt=i.plugins[ht](i,t[ht]),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,y,p,l,h,s,o,k,d,g,v,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),"auto"===t.slidesPerView){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=[],y=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&&(y=Math.max(y,c)),v=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(v>u){if(t.slidesPerViewFit)i.snapGrid.push(h+i.wrapperLeft),i.snapGrid.push(h+v-u+i.wrapperLeft);else for(b=0;b<=Math.floor(v/(u+i.wrapperLeft));b++)i.snapGrid.push(0===b?h+i.wrapperLeft:h+i.wrapperLeft+u*b);i.slidesGrid.push(h+i.wrapperLeft)}else i.snapGrid.push(g),i.slidesGrid.push(g);g+=v/2+ft/2}else{if(v>u)if(t.slidesPerViewFit)i.snapGrid.push(h),i.snapGrid.push(h+v-u);else if(0!==u)for(nt=0;nt<=Math.floor(v/u);nt++)i.snapGrid.push(h+u*nt);else i.snapGrid.push(h);else i.snapGrid.push(h);i.slidesGrid.push(h)}h+=v,k+=a,d+=c}t.calculateHeight&&(i.height=y),r?(w=k+i.wrapperRight+i.wrapperLeft,o.style.width=k+"px",o.style.height=i.height+"px"):(w=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="",p=i.slides[0].getWidth(!0,t.roundLengths),l=i.slides[0].getHeight(!0,t.roundLengths),w=r?p:l,o.style.width=p+"px",o.style.height=l+"px",e=r?p: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));c=y,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)),p=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")),w=r?p+i.wrapperRight+i.wrapperLeft:l+i.wrapperTop+i.wrapperBottom,t.cssWidthAndHeight||(parseFloat(p)>0&&(o.style.width=p+"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&&"undefined"!=typeof o?"undefined"!=typeof o&&(clearTimeout(o),o=void 0,i.startAutoplay()):"undefined"!=typeof l&&(clearInterval(l),l=void 0,i.startAutoplay()))),i.callPlugins("afterResizeFix")},i.destroy=function(){var n=i.h.removeEventListener,r="wrapper"===t.eventTarget?i.wrapper:i.container;i.browser.ie10||i.browser.ie11?(n(r,i.touchEvents.touchStart,v),n(document,i.touchEvents.touchMove,y),n(document,i.touchEvents.touchEnd,p)):(i.support.touch&&(n(r,"touchstart",v),n(r,"touchmove",y),n(r,"touchend",p)),t.simulateTouch&&(n(r,"mousedown",v),n(document,"mousemove",y),n(document,"mouseup",p))),t.autoResize&&n(window,"resize",i.resizeFix),kt(),t.paginationClickable&&fi(),t.mousewheelControl&&i._wheelEvent&&n(i.container,i._wheelEvent,dt),t.keyboardControl&&n(document,"keydown",ut),t.autoplay&&i.stopAutoplay(),i.callPlugins("onDestroy"),i=null},i.disableKeyboardControl=function(){t.keyboardControl=!1,i.h.removeEventListener(document,"keydown",ut)},i.enableKeyboardControl=function(){t.keyboardControl=!0,i.h.addEventListener(document,"keydown",ut)},wt=+new Date,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,rt=!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,"auto"===t.slidesPerView){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:(ft(r,"next"),!0)},i.swipePrev=function(n){var r,f,u,o;if(!n&&t.loop&&i.fixLoop(),!n&&t.autoplay&&i.stopAutoplay(!0),i.callPlugins("onSwipePrev"),f=Math.ceil(i.getWrapperTranslate()),"auto"===t.slidesPerView)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:(ft(r,"prev"),!0)},i.swipeReset=function(){var n,r,s,o;if(i.callPlugins("onSwipeReset"),r=i.getWrapperTranslate(),s=e*t.slidesPerGroup,-f(),"auto"===t.slidesPerView){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=0>r?Math.round(r/s)*s:0;return t.scrollContainer&&(n=0>r?r:0),n<-f()&&(n=-f()),t.scrollContainer&&u>e&&(n=0),n===r?!1:(ft(n,"reset"),!0)},i.swipeTo=function(n,r,u){var s,o;return n=parseInt(n,10),i.callPlugins("onSwipeTo",{index:n,speed:r}),t.loop&&(n+=i.loopedSlides),s=i.getWrapperTranslate(),n>i.slides.length-1||0>n?void 0:(o="auto"===t.slidesPerView?-i.slidesGrid[n]:-n*e,o<-f()&&(o=-f()),o===s?!1:(u=u===!1?!1:!0,ft(o,"to",{index:n,speed:r,runCallbacks:u}),!0))},i._queueStartCallbacks=!1,i._queueEndCallbacks=!1,i.updateActiveSlide=function(n){var r,o,s,u,h,c,f;if(i.initialized&&0!==i.slides.length){if(i.previousIndex=i.activeIndex,"undefined"==typeof n&&(n=i.getWrapperTranslate()),n>0&&(n=0),"auto"===t.slidesPerView){if(i.activeIndex=i.slidesGrid.indexOf(-n),i.activeIndex<0){for(r=0;r<i.slidesGrid.length-1&&!(-n>i.slidesGrid[r]&&-n<i.slidesGrid[r+1]);r++);o=Math.abs(i.slidesGrid[r]+n),s=Math.abs(i.slidesGrid[r+1]+n),i.activeIndex=s>=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]){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)>=0?u.classList.add(t.slideVisibleClass):u.classList.remove(t.slideVisibleClass);i.slides[i.activeIndex].classList.add(t.slideActiveClass)}else{for(h=new RegExp("\\s*"+t.slideActiveClass),c=new RegExp("\\s*"+t.slideVisibleClass),r=0;r<i.slides.length;r++)i.slides[r].className=i.slides[r].className.replace(h,"").replace(c,""),i.visibleSlides.indexOf(i.slides[r])>=0&&(i.slides[r].className+=" "+t.slideVisibleClass);i.slides[i.activeIndex].className+=" "+t.slideActiveClass}t.loop?(f=i.loopedSlides,i.activeLoopIndex=i.activeIndex-f,i.activeLoopIndex>=i.slides.length-2*f&&(i.activeLoopIndex=i.slides.length-2*f-i.activeLoopIndex),i.activeLoopIndex<0&&(i.activeLoopIndex=i.slides.length-2*f+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-=2*i.loopedSlides),r=0;f>r;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,f,e,u;if(t.pagination&&!(i.slides.length<1)&&(h=s("."+t.paginationActiveClass,i.paginationContainer),h&&(r=i.paginationButtons,0!==r.length))){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&&0>u&&(u=i.slides.length-2*i.loopedSlides+u),t.loop&&u>=i.slides.length-2*i.loopedSlides&&(u=i.slides.length-2*i.loopedSlides-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?void 0!==r[i.activeLoopIndex]&&(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+=i.wrapperLeft),!r&&i.wrapperTop>0&&(n+=i.wrapperTop),h=0;h<i.slides.length;h++)f+=l,l="auto"===t.slidesPerView?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&&-n+u>=s&&(o=!0),-n>=f&&s>=-n+u&&(o=!0)):(s>-n&&-n+u>=s&&(o=!0),f>=-n&&-n+u>f&&(o=!0),-n>f&&s>-n+u&&(o=!0)),o&&c.push(i.slides[h]);0===c.length&&(c=[i.slides[i.activeIndex]]),i.visibleSlides=c},i.startAutoplay=function(){if(i.support.transitions){if("undefined"!=typeof o)return!1;if(!t.autoplay)return;i.callPlugins("onAutoplayStart"),t.onAutoplayStart&&i.fireCallback(t.onAutoplayStart,i),at()}else{if("undefined"!=typeof l)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=void 0):i.swipeTo(0))},t.autoplay)}},i.stopAutoplay=function(n){if(i.support.transitions){if(!o)return;o&&clearTimeout(o),o=void 0,n&&!t.autoplayDisableOnInteraction&&i.wrapperTransitionEnd(function(){at()}),i.callPlugins("onAutoplayStop"),t.onAutoplayStop&&i.fireCallback(t.onAutoplayStop,i)}else l&&clearInterval(l),l=void 0,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(0!==i.slides.length){i.loopedSlides="auto"===t.slidesPerView?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;l*r>n;n++)f=n,n>=r&&(h=Math.floor(n/r),f=n-r*h),u+=i.slides[f].outerHTML;for(n=0;s>n;n++)o+=ui(t.slideDuplicateClass,i.slides[n].outerHTML);for(n=r-s;r>n;n++)e+=ui(t.slideDuplicateClass,i.slides[n].outerHTML);for(c=e+u+et.innerHTML+u+o,et.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-3*i.loopedSlides+i.activeIndex,i.swipeTo(n,0,!1)):("auto"===t.slidesPerView&&i.activeIndex>=2*i.loopedSlides||i.activeIndex>i.slides.length-2*t.slidesPerView)&&(n=-i.slides.length+i.activeIndex+i.loopedSlides,i.swipeTo(n,0,!1))},i.loadSlides=function(){var u="";i.activeLoaderIndex=0;for(var r=t.loader.slides,f=t.loader.loadAllSlides?r.length:t.slidesPerView*(1+t.loader.surroundGroups),n=0;f>n;n++)u+="outer"===t.loader.slidesHTMLType?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(!(0>u||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)),"reload"===t.loader.logic){for(i.wrapper.innerHTML="",a="",n=o;h>=n;n++)a+="outer"===t.loader.slidesHTMLType?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"),o>s||s>h?i.wrapper.removeChild(i.slides[n]):(c=Math.min(s,c),l=Math.max(s,l));for(n=o;h>=n;n++)c>n&&(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 f(){if(n(r),r.params.queueEndCallbacks&&(r._queueEndCallbacks=!1),!t)for(i=0;i<u.length;i++)r.h.removeEventListener(e,u[i],f)}var i,r=this,e=r.wrapper,u=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"];if(n)for(i=0;i<u.length;i++)r.h.addEventListener(e,u[i],f)},getWrapperTranslate:function(n){"use strict";var i,r,t,u,f=this.wrapper;return"undefined"==typeof n&&(n="horizontal"===this.params.mode?"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(",")),"x"===n&&(r=window.WebKitCSSMatrix?u.m41:parseFloat(16===i.length?i[12]:i[4])),"y"===n&&(r=window.WebKitCSSMatrix?u.m42:parseFloat(16===i.length?i[13]:i[5]))):("x"===n&&(r=parseFloat(f.style.left,10)||0),"y"===n&&(r=parseFloat(f.style.top,10)||0)),r||0},setWrapperTranslate:function(n,t,i){"use strict";var f,u=this.wrapper.style,r={x:0,y:0,z:0};3===arguments.length?(r.x=n,r.y=t,r.z=i):("undefined"==typeof t&&(t="horizontal"===this.params.mode?"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"undefined"!=typeof pageYOffset?{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";"undefined"==typeof r&&(r=!1),n.addEventListener?n.addEventListener(t,i,r):n.attachEvent&&n.attachEvent("on"+t,i)},removeEventListener:function(n,t,i,r){"use strict";"undefined"==typeof r&&(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"Microsoft Internet Explorer"===navigator.appName&&(t=navigator.userAgent,i=new RegExp(/MSIE ([0-9]{1,}[\.0-9]{0,})/),null!==i.exec(t)&&(n=parseFloat(RegExp.$1))),-1!==n&&9>n}(),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),"undefined"!=typeof module&&(module.exports=Swiper),"function"==typeof define&&define.amd&&define([],function(){"use strict";return Swiper})