!function(e,i,t){e.tapHandling=!1;var s=function(t){return t.each(function(){function t(e){i(e.target).trigger("tap",[e,i(e.target).attr("href")]),e.stopImmediatePropagation()}function s(e){var i=e.originalEvent||e,t=i.touches||i.targetTouches;return t?[t[0].pageX,t[0].pageY]:null}function n(e){if(e.touches&&e.touches.length>1||e.targetTouches&&e.targetTouches.length>1)return!1;var i=s(e);c=i[0],r=i[1]}function a(e){if(!o){var i=s(e);i&&(Math.abs(r-i[1])>h||Math.abs(c-i[0])>h)&&(o=!0)}}function l(i){if(clearTimeout(d),d=setTimeout(function(){e.tapHandling=!1,o=!1},1e3),!(i.which&&i.which>1||i.shiftKey||i.altKey||i.metaKey||i.ctrlKey)){if(i.preventDefault(),o||e.tapHandling&&e.tapHandling!==i.type)return void(o=!1);e.tapHandling=i.type,t(i)}}var d,r,c,o,u=i(this),h=10;u.bind("touchstart.tappy MSPointerDown.tappy",n).bind("touchmove.tappy MSPointerMove.tappy",a).bind("touchend.tappy MSPointerUp.tappy",l).bind("click.tappy",l)})},n=function(e){return e.unbind(".tappy")};if(i.event&&i.event.special)i.event.special.tap={add:function(e){s(i(this))},remove:function(e){n(i(this))}};else{var a=i.fn.bind,l=i.fn.unbind;i.fn.bind=function(e){return/(^| )tap( |$)/.test(e)&&s(this),a.apply(this,arguments)},i.fn.unbind=function(e){return/(^| )tap( |$)/.test(e)&&n(this),l.apply(this,arguments)}}}(this,jQuery);var PageSetUp={settings:{pageName:$("body").attr("class")},init:function(){this.settings;Slideshow.init(6e3)}},Slideshow={settings:{slideshow:$(".slideshow"),slider:$(".slideshow__slider"),slides:$(".slideshow__slide"),slideBtn:$(".slideshow__btn"),numSlides:$(".slideshow__slide").length,currentSlide:0},init:function(e){var i=this.settings;i.timeInterval=e,Slideshow.setUp(i),Slideshow.loadSlideNav(i),Slideshow.bindUIActions(i),Slideshow.counter(i)},setUp:function(e){var i=100*e.numSlides;e.slider.css("width",i+"%"),e.slideWidth=100/e.numSlides,e.slides.css("width",e.slideWidth+"%")},loadSlideNav:function(e){var i='
",e.slideshow.append(i),$(".slideshow__nav li").css("width",100/e.numSlides+"%"),e.slideNav=$(".slideshow__nav a"),e.slides.eq(0).removeClass("-active").addClass("-active"),e.slideNav.eq(0).add(e.slides.eq(0)).addClass("-active")},bindUIActions:function(e){e.slideNav.click(function(i){return i.preventDefault(),$(this).hasClass("-active")?!1:(e.slideNav.removeClass("-active"),clearTimeout(e.timer),Slideshow.goToSlide(e,$(this).attr("href").split("#")[1]),$(this).addClass("-active"),Slideshow.counter(e),void 0)}),e.slideBtn.click(function(i){i.preventDefault(),$(this).hasClass("-next")?e.currentSlide==e.numSlides-1?e.slideNav.eq(0).click():e.slideNav.eq(parseInt(e.currentSlide)+1).click():0==e.currentSlide?e.slideNav.eq(e.numSlides-1).click():e.slideNav.eq(parseInt(e.currentSlide)-1).click()})},counter:function(e){e.timer=setTimeout(function(){e.currentSlide==e.numSlides-1?e.slideNav.eq(0).click():e.slideNav.eq(parseInt(e.currentSlide)+1).click()},e.timeInterval)},goToSlide:function(e,i){var t=e.slideWidth*i;e.slides.removeClass("-active").eq(i).addClass("-active"),e.slider.css({transform:"translateX(-"+t+"%)"}),e.slider.css({transform:"translate3d(-"+t+"%, 0, 0)"}),e.currentSlide=i}};!function(){PageSetUp.init()}();