(function(n){n.fn.cond=function(){for(var e,i=arguments,r=0,t,u,f;!t&&r<i.length;)t=i[r++],u=i[r++],t=n.isFunction(t)?t.call(this):t,f=u?t?u.call(this,t):e:t;return f!==e?f:this}})(jQuery),function(n,t,i){"use strict";var o=n.event,r,u,e;r=o.special.debouncedresize={setup:function(){n(this).on("resize",r.handler)},teardown:function(){n(this).off("resize",r.handler)},handler:function(n,t){var f=this,e=arguments,i=function(){n.type="debouncedresize";o.dispatch.apply(f,e)};u&&clearTimeout(u);t?i():u=setTimeout(i,r.threshold)},threshold:20};var s=n(t),h=n(document),f=t.Modernizr;n.Slitslider=function(t,i){this.$elWrapper=n(i);this._init(t)};n.Slitslider.defaults={speed:500,optOpacity:!1,translateFactor:230,maxAngle:25,maxScale:2,autoplay:!0,keyboard:!0,interval:6e3,onBeforeChange:function(){return!1},onAfterChange:function(){return!1}};n.Slitslider.prototype={_init:function(t){this.options=n.extend(!0,{},n.Slitslider.defaults,t);this.transEndEventNames={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"};this.transEndEventName=this.transEndEventNames[f.prefixed("transition")];this.support=f.csstransitions&&f.csstransforms3d;this.$el=this.$elWrapper.children(".sl-slider");this.$slides=this.$el.children(".sl-slide").hide();this.slidesCount=this.$slides.length;this.current=0;this.isAnimating=!1;this._getSize();this._layout();this._loadEvents();this.options.autoplay&&this._startSlideshow()},_getSize:function(){this.size={width:this.$elWrapper.outerWidth(!0),height:this.$elWrapper.outerHeight(!0)}},_layout:function(){this.$slideWrapper=n('<div class="sl-slides-wrapper" />');this.$slides.wrapAll(this.$slideWrapper).each(function(){var t=n(this),i=t.data("orientation");t.addClass("sl-slide-"+i).children().wrapAll('<div class="sl-content-wrapper" />').wrapAll('<div class="sl-content" />')});this._setSize();this.$slides.eq(this.current).show()},_navigate:function(t,r){var f,e,v;if(this.isAnimating||this.slidesCount<2)return!1;this.isAnimating=!0;f=this;e=this.$slides.eq(this.current);r!==i?this.current=r:t==="next"?this.current=this.current<this.slidesCount-1?++this.current:0:t==="prev"&&(this.current=this.current>0?--this.current:this.slidesCount-1);this.options.onBeforeChange(e,this.current);var s=this.$slides.eq(this.current),h=t==="next"?e:s,o=h.data(),u={};u.orientation=o.orientation||"horizontal";u.slice1angle=o.slice1Rotation||0;u.slice1scale=o.slice1Scale||1;u.slice2angle=o.slice2Rotation||0;u.slice2scale=o.slice2Scale||1;this._validateValues(u);var y=u.orientation==="horizontal"?{marginTop:-this.size.height/2}:{marginLeft:-this.size.width/2},a={"-webkit-transform":"translate(0%,0%) rotate(0deg) scale(1)","-moz-transform":"translate(0%,0%) rotate(0deg) scale(1)","-ms-transform":"translate(0%,0%) rotate(0deg) scale(1)",transform:"translate(0%,0%) rotate(0deg) scale(1)",opacity:1},c=u.orientation==="horizontal"?{"-webkit-transform":"translateY(-"+this.options.translateFactor+"%) rotate("+u.slice1angle+"deg) scale("+u.slice1scale+")","-moz-transform":"translateY(-"+this.options.translateFactor+"%) rotate("+u.slice1angle+"deg) scale("+u.slice1scale+")","-ms-transform":"translateY(-"+this.options.translateFactor+"%) rotate("+u.slice1angle+"deg) scale("+u.slice1scale+")",transform:"translateY(-"+this.options.translateFactor+"%) rotate("+u.slice1angle+"deg) scale("+u.slice1scale+")"}:{"-webkit-transform":"translateX(-"+this.options.translateFactor+"%) rotate("+u.slice1angle+"deg) scale("+u.slice1scale+")","-moz-transform":"translateX(-"+this.options.translateFactor+"%) rotate("+u.slice1angle+"deg) scale("+u.slice1scale+")","-ms-transform":"translateX(-"+this.options.translateFactor+"%) rotate("+u.slice1angle+"deg) scale("+u.slice1scale+")",transform:"translateX(-"+this.options.translateFactor+"%) rotate("+u.slice1angle+"deg) scale("+u.slice1scale+")"},l=u.orientation==="horizontal"?{"-webkit-transform":"translateY("+this.options.translateFactor+"%) rotate("+u.slice2angle+"deg) scale("+u.slice2scale+")","-moz-transform":"translateY("+this.options.translateFactor+"%) rotate("+u.slice2angle+"deg) scale("+u.slice2scale+")","-ms-transform":"translateY("+this.options.translateFactor+"%) rotate("+u.slice2angle+"deg) scale("+u.slice2scale+")",transform:"translateY("+this.options.translateFactor+"%) rotate("+u.slice2angle+"deg) scale("+u.slice2scale+")"}:{"-webkit-transform":"translateX("+this.options.translateFactor+"%) rotate("+u.slice2angle+"deg) scale("+u.slice2scale+")","-moz-transform":"translateX("+this.options.translateFactor+"%) rotate("+u.slice2angle+"deg) scale("+u.slice2scale+")","-ms-transform":"translateX("+this.options.translateFactor+"%) rotate("+u.slice2angle+"deg) scale("+u.slice2scale+")",transform:"translateX("+this.options.translateFactor+"%) rotate("+u.slice2angle+"deg) scale("+u.slice2scale+")"};this.options.optOpacity&&(c.opacity=0,l.opacity=0);e.removeClass("sl-trans-elems");v={transition:"all "+this.options.speed+"ms ease-in-out"};h.css("z-index",this.slidesCount).find("div.sl-content-wrapper").wrap(n('<div class="sl-content-slice" />').css(v)).parent().cond(t==="prev",function(){var n=this;this.css(c);setTimeout(function(){n.css(a)},50)},function(){var n=this;setTimeout(function(){n.css(c)},50)}).clone().appendTo(h).cond(t==="prev",function(){var n=this;this.css(l);setTimeout(function(){if(e.addClass("sl-trans-back-elems"),f.support)n.css(a).on(f.transEndEventName,function(){f._onEndNavigate(n,e,t)});else f._onEndNavigate(n,e,t)},50)},function(){var n=this;setTimeout(function(){if(s.addClass("sl-trans-elems"),f.support)n.css(l).on(f.transEndEventName,function(){f._onEndNavigate(n,e,t)});else f._onEndNavigate(n,e,t)},50)}).find("div.sl-content-wrapper").css(y);s.show()},_validateValues:function(n){(n.slice1angle>this.options.maxAngle||n.slice1angle<-this.options.maxAngle)&&(n.slice1angle=this.options.maxAngle);(n.slice2angle>this.options.maxAngle||n.slice2angle<-this.options.maxAngle)&&(n.slice2angle=this.options.maxAngle);(n.slice1scale>this.options.maxScale||n.slice1scale<=0)&&(n.slice1scale=this.options.maxScale);(n.slice2scale>this.options.maxScale||n.slice2scale<=0)&&(n.slice2scale=this.options.maxScale);n.orientation!=="vertical"&&n.orientation!=="horizontal"&&(n.orientation="horizontal")},_onEndNavigate:function(n,t){var i=n.parent(),r="sl-trans-elems sl-trans-back-elems";n.remove();i.css("z-index",1).find("div.sl-content-wrapper").unwrap();t.hide().removeClass(r);i.removeClass(r);this.isAnimating=!1;this.options.onAfterChange(i,this.current)},_setSize:function(){var n={width:this.size.width,height:this.size.height};this.$el.css(n).find("div.sl-content-wrapper").css(n)},_loadEvents:function(){var n=this;s.on("debouncedresize.slitslider",function(){n._getSize();n._setSize()});if(this.options.keyboard)h.on("keydown.slitslider",function(t){var r=t.keyCode||t.which,i={left:37,up:38,right:39,down:40};switch(r){case i.left:n._stopSlideshow();n._navigate("prev");break;case i.right:n._stopSlideshow();n._navigate("next")}})},_startSlideshow:function(){var n=this;this.slideshow=setTimeout(function(){n._navigate("next");n.options.autoplay&&n._startSlideshow()},this.options.interval)},_stopSlideshow:function(){this.options.autoplay&&(clearTimeout(this.slideshow),this.isPlaying=!1,this.options.autoplay=!1)},_destroy:function(t){this.$el.off(".slitslider").removeData("slitslider");s.off(".slitslider");h.off(".slitslider");this.$slides.each(function(){var t=n(this),i=t.find("div.sl-content").children();i.appendTo(t);t.children("div.sl-content-wrapper").remove()});this.$slides.unwrap(this.$slideWrapper).hide();this.$slides.eq(0).show();t&&t.call()},add:function(t,i){this.$slides=this.$slides.add(t);var r=this;t.each(function(){var t=n(this),i=t.data("orientation");t.hide().addClass("sl-slide-"+i).children().wrapAll('<div class="sl-content-wrapper" />').wrapAll('<div class="sl-content" />').end().appendTo(r.$el.find("div.sl-slides-wrapper"))});this._setSize();this.slidesCount=this.$slides.length;i&&i.call($items)},next:function(){this._stopSlideshow();this._navigate("next")},previous:function(){this._stopSlideshow();this._navigate("prev")},jump:function(n){if(n-=1,n===this.current||n>=this.slidesCount||n<0)return!1;this._stopSlideshow();this._navigate(n>this.current?"next":"prev",n)},play:function(){this.isPlaying||(this.isPlaying=!0,this._navigate("next"),this.options.autoplay=!0,this._startSlideshow())},pause:function(){this.isPlaying&&this._stopSlideshow()},isActive:function(){return this.isAnimating},destroy:function(n){this._destroy(n)}};e=function(n){t.console&&t.console.error(n)};n.fn.slitslider=function(t){var i=n.data(this,"slitslider"),r;return typeof t=="string"?(r=Array.prototype.slice.call(arguments,1),this.each(function(){if(!i){e("cannot call methods on slitslider prior to initialization; attempted to call method '"+t+"'");return}if(!n.isFunction(i[t])||t.charAt(0)==="_"){e("no such method '"+t+"' for slitslider self");return}i[t].apply(i,r)})):this.each(function(){i?i._init():i=n.data(this,"slitslider",new n.Slitslider(t,this))}),i}}(jQuery,window),function(n,t,i,r){function u(r,u){var f=this;if(f.options=n.extend({},o,u),f.parent=r,f.wrapper=f.parent.children(),f.slides=f.wrapper.children(),f.currentSlide=0,f.CSS3support=!0,f.options.beforeInit.call(f),f.init(),f.build(),f.play(),f.options.touchDistance&&f.swipe(),f.options.keyboard)n(i).on("keyup",function(n){n.keyCode===39&&f.slide(1);n.keyCode===37&&f.slide(-1)});if(f.options.hoverpause)f.parent.add(f.arrows).add(f.nav).on("mouseover mouseout",function(n){f.pause();n.type==="mouseout"&&f.play()});n(t).on("resize",function(){f.init();f.slide(0)});return f.options.afterInit.call(f),{current:function(){return-f.currentSlide+1},play:function(){f.play()},pause:function(){f.pause()},next:function(n){f.slide(1,!1,n)},prev:function(n){f.slide(-1,!1,n)},jump:function(n,t){f.slide(n-1,!0,t)},nav:function(n){f.navWrapper&&f.navWrapper.remove();f.options.nav=n?n:f.options.nav;f.navigation()},arrows:function(n){f.arrowsWrapper&&f.arrowsWrapper.remove();f.options.arrows=n?n:f.options.arrows;f.arrows()}}}function e(n){var u=!1,e="Khtml ms O Moz Webkit".split(" "),o=i.createElement("div"),s=null,f;if(n=n.toLowerCase(),o.style[n]!==r&&(u=!0),u===!1)for(s=n.charAt(0).toUpperCase()+n.substr(1),f=0;f<e.length;f++)if(o.style[e[f]+s]!==r){u=!0;break}return t.opera&&t.opera.version()<13&&(u=!1),u}var f="glide",o={autoplay:6e3,hoverpause:!0,animationTime:500,arrows:!1,arrowsWrapperClass:"slider-arrows",arrowMainClass:"slider-arrow",arrowRightClass:"slider-arrow--right",arrowRightText:"next",arrowLeftClass:"slider-arrow--left",arrowLeftText:"prev",nav:!0,navCenter:!0,navClass:"slider-nav",navItemClass:"slider-nav__item",navCurrentItemClass:"slider-nav__item--current",keyboard:!0,touchDistance:60,beforeInit:function(){},afterInit:function(){},beforeTransition:function(){},afterTransition:function(){}};u.prototype.build=function(){var n=this;n.options.arrows&&n.arrows();n.options.nav&&n.navigation()};u.prototype.navigation=function(){var t=this,r,e,i,o,u,f;if(t.slides.length>1){for(r=t.options,e=t.options.nav===!0?t.parent:t.options.nav,t.navWrapper=n("<div />",{"class":r.navClass}).appendTo(e),i=t.navWrapper,u=0;u<t.slides.length;u++)o=n("<a />",{href:"#","class":r.navItemClass,"data-distance":u}).appendTo(i),i[u+1]=o;f=i.children();f.eq(0).addClass(r.navCurrentItemClass);r.navCenter&&i.css({left:"50%",width:f.outerWidth(!0)*f.length,"margin-left":-i.outerWidth(!0)/2});f.on("click touchstart",function(i){i.preventDefault();t.slide(n(this).data("distance"),!0)})}};u.prototype.arrows=function(){var t=this,i,u,r;if(t.slides.length>1){i=t.options;u=t.options.arrows===!0?t.parent:t.options.arrows;t.arrowsWrapper=n("<div />",{"class":i.arrowsWrapperClass}).appendTo(u);r=t.arrowsWrapper;r.right=n("<a />",{href:"#","class":i.arrowMainClass+" "+i.arrowRightClass,"data-distance":"1",html:i.arrowRightText}).appendTo(r);r.left=n("<a />",{href:"#","class":i.arrowMainClass+" "+i.arrowLeftClass,"data-distance":"-1",html:i.arrowLeftText}).appendTo(r);r.children().on("click touchstart",function(i){i.preventDefault();t.slide(n(this).data("distance"),!1)})}};u.prototype.slide=function(n,t,i){var r=this,f;r.pause();r.options.beforeTransition.call(r);var u=t?0:r.currentSlide,e=-(r.slides.length-1),o=r.options.navCurrentItemClass,s=r.slides.spread;u=u===0&&n===-1?e:u===e&&n===1?0:u+-n;f=s*u+"px";r.CSS3support?r.wrapper.css({"-webkit-transform":"translate3d("+f+", 0px, 0px)","-moz-transform":"translate3d("+f+", 0px, 0px)","-ms-transform":"translate3d("+f+", 0px, 0px)","-o-transform":"translate3d("+f+", 0px, 0px)",transform:"translate3d("+f+", 0px, 0px)"}):r.wrapper.stop().animate({"margin-left":f},r.options.animationTime);r.options.nav&&r.navWrapper&&r.navWrapper.children().eq(-u).addClass(o).siblings().removeClass(o);r.currentSlide=u;r.options.afterTransition.call(r);i!=="undefined"&&typeof i=="function"&&i();r.play()};u.prototype.play=function(){var n=this;n.options.autoplay&&(n.auto=setInterval(function(){n.slide(1,!1)},n.options.autoplay))};u.prototype.pause=function(){var n=this;n.options.autoplay&&(n.auto=clearInterval(n.auto))};u.prototype.swipe=function(){var t=this,n,i,r,f,e,o,s,h,c,y=180/Math.PI,l,a,v,u;t.parent.on("touchstart",function(t){n=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0];r=n.pageX;f=n.pageY});t.parent.on("touchmove",function(t){n=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0];e=n.pageX;o=n.pageY;l=e-r;a=o-f;v=Math.abs(l<<2);u=Math.abs(a<<2);s=Math.sqrt(v+u);h=Math.sqrt(u);c=Math.asin(h/s);c*y<32&&t.preventDefault()});t.parent.on("touchend",function(u){n=u.originalEvent.touches[0]||u.originalEvent.changedTouches[0];i=n.pageX-r;i>t.options.touchDistance?t.slide(-1):i<-t.options.touchDistance&&t.slide(1)})};u.prototype.init=function(){var n=this,t=n.parent.width();n.slides.spread=t;n.wrapper.width(t*n.slides.length);n.slides.width(n.slides.spread);e("transition")&&e("transform")||(n.CSS3support=!1)};n.fn[f]=function(t){return this.each(function(){n.data(this,"api_"+f)||n.data(this,"api_"+f,new u(n(this),t))})}}(jQuery,window,document),function(){for(var n,u=function(){},t=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],i=t.length,r=window.console=window.console||{};i--;)n=t[i],r[n]||(r[n]=u)}()