(function(n){"use strict";function r(n){var t=!1,i=["Webkit","Moz","O","ms"],r=document.createElement("div"),u,f;if(typeof r.style[n]=="string")t=n;else{u=n.charAt(0).toUpperCase()+n.substr(1);for(f in i)if(typeof r.style[i[f]+u]=="string"){t=i[f]+u;break}}return r=null,t}function s(){var n={WebkitTransition:"-webkit-",MozTransition:"-moz-",msTransition:"-ms-",OTransition:"-o-",transition:""};return/(Safari|Chrome)/.test(navigator.userAgent)?n.WebkitTransition:n[r("transition")]}function h(){var t=!1,n=document.createElement("div"),i=r("transform");return n.style[i]="rotateY(45deg)",n.style[i]!==""&&(t=!0),n=null,t}function e(n,t){var f=r("transform"),u={left:0,top:0},i;return f&&t?(i=n.css(f),i.indexOf("matrix")===0&&(i=i.split("(")[1].split(")")[0].split(/,\s*/),u.left=parseInt(i[4],10),u.top=parseInt(i[5],10))):u=n.position(),u}function i(n,t,i){if(typeof i=="object"){var r=c+"transform";u(n,r,i.duration,i.easing,i.delay,i.complete);t===e(n,!0).left&&i.complete.call(n,r)}l?n.css(o,"translate3d("+parseInt(t,10)+"px, 0px, 0px)"):n.css(o,"translate("+parseInt(t,10)+"px, 0px)")}function u(t,i,r,u,e,o){var c={linear:"linear",swing:"cubic-bezier(.02,.01,.47,1)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"},l,h,s;for(i=i.split(/\s+/),r=(parseInt(r,10)/1e3||0)+"s",u=c[u]||c.swing,typeof e=="function"&&(o=e,e=0),e=(parseInt(e,10)/1e3||0)+"s",o=o||n.noop,l=t.css(f),t.bind({transition:"transitionend",OTransition:"oTransitionEnd otransitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend"}[f],function(i){var r=i.originalEvent;r.target===this&&(o.call(t,r.propertyName),n(this).css(f,l).unbind(i));i.stopPropagation()}),h="",s=0;s<i.length;s++)h+=i[s]+" "+r+" "+u+" "+e+", ";t.css(f,h.slice(0,-2))}function t(t,u){var f,o,s,h,e;if(this.offset=0,this.visible=0,this.lock=!1,this.timer=0,this.api={},this.settings=u,this.container=n(t),this.list=this.container.find("ul.es-slides"),this.total=this.list.children("li").length,this.slide=this.list.children("li:first-child"),this.cssok=r("transition")&&this.settings.useCSS,f=this,this.total===0)return null;this.settings.moveSlides=this.settings.moveSlides==="auto"?9999:parseInt(this.settings.moveSlides,10)||1;this.settings.itemWidth=parseInt(this.settings.itemWidth,10)||0;this.settings.itemWidth>0&&this.list.children().css("width",this.settings.itemWidth);this.settings.itemHeight=parseInt(this.settings.itemHeight,10)||0;this.settings.itemHeight>0&&this.list.children().css("height",this.settings.itemHeight);this.settings.itemMargin!==!1&&this.list.children().css("margin-right",parseInt(this.settings.itemMargin,10)||0);this.settings.itemKeepRatio||this.list.children().css({height:"auto"});this.slide_width=this.slide.width();this.slide_margin=parseInt(this.slide.css("margin-right"),10)||0;this.slide_ratio=this.slide.height()/this.slide.width();this.settings.maxVisible>0?(o=this.settings.maxVisible*(this.slide_width+this.slide_margin)-this.slide_margin,this.container.css("max-width",o)):this.container.css("max-width",this.settings.maxWidth);this.settings.mode==="carousel"&&(s=this.list.children().clone(!0),h=this.list.children().clone(!0),this.list.prepend(document.createComment(" END CLONED ")).prepend(s).prepend(document.createComment(" BEGIN CLONED ")),this.list.append(document.createComment(" BEGIN CLONED ")).append(h).append(document.createComment(" END CLONED ")),this.offset=this.total,this.total=this.total*3,e=this.offset*(this.slide_width+this.slide_margin),this.cssok?i(this.list,-e):this.list.css("left",-e));this.settings.ticker&&this.settings.mode!=="normal"&&this.enableTicker();this.settings.navigation&&(this.container.append(['<div class="es-navigation">','<a href="" class="es-prev">'+this.settings.prevNav+"<\/a>",'<a href="" class="es-next">'+this.settings.nextNav+"<\/a>","<\/div>"].join("\n")),this.updateNavigation(this.offset),this.container.find(".es-prev").click(function(n){f.slidePrevious();n.preventDefault()}).end().find(".es-next").click(function(n){f.slideNext();n.preventDefault()}).end());this.settings.pagination&&this.settings.mode!=="carousel"&&this.container.append('<div class="es-pagination"><\/div>');this.settings.touchSwipe&&this.enableTouchSwipe();this.settings.mouseWheel&&this.enableMouseWheel();this.settings.keyboard&&this.enableKeyboard();n(window).bind("resize",function(){window.clearTimeout(f.timer);f.timer=window.setTimeout(function(){f.resizeSlides()},f.settings.fitDelay)}).trigger("resize");n.extend(this.api,{slideNext:function(){f.slideNext()},slidePrevious:function(){f.slidePrevious()},slideTo:function(n){f.slideTo(n)},isSliding:function(){return f.isSliding()},getVisibleSlides:function(){return f.getVisibleSlides()},tickerPause:function(){"tickerPause"in f&&f.tickerPause()},tickerPlay:function(){"tickerPlay"in f&&f.tickerPlay()}});this.container.data("everslider",this.api);this.container.bind("everslider",function(n,t,i){return t in f.api&&f.api[t](i),!1});window.setTimeout(function(){f.container.addClass("es-slides-ready");f.getVisibleSlides().addClass("es-after-slide");typeof f.settings.slidesReady=="function"&&f.settings.slidesReady.call(f.container.get(0),f.api)},parseInt(this.settings.fitDelay,10)+parseInt(this.settings.fitDuration,10))}var f=r("transition"),o=r("transform"),c=s(),l=h();t.prototype.slideNext=function(){this.lock||this.slideOffset(this.getOffset("next"))};t.prototype.slidePrevious=function(){this.lock||this.slideOffset(this.getOffset("prev"))};t.prototype.slideTo=function(n){var t,r;this.settings.mode==="carousel"&&(n=this.total/3+Math.min(n,this.total/3-this.visible));var i=n-this.offset,u=i>0?"next":"prev",f=this.offset;for(t=0;t<Math.abs(i);t++)this.offset=this.getOffset(u);r=this.offset;this.offset=f;this.slideOffset(r)};t.prototype.isSliding=function(){return this.lock};t.prototype.getVisibleSlides=function(){return this.list.children().slice(this.offset,this.offset+this.visible)};t.prototype.getOffset=function(n){var t=Math.min(this.settings.moveSlides,this.visible),u,r;return n==="prev"?this.settings.mode==="carousel"&&this.offset===0?(r=this.total/3*(this.slide.width()+this.slide_margin),this.cssok?this.settings.effect!=="fade"&&i(this.list,-r):this.settings.effect!=="fade"&&this.list.css("left",-r),this.total/3-t):this.settings.mode==="circular"&&this.offset===0?this.total-this.visible:this.offset-(this.offset>t?t:this.offset):n==="next"?(u=this.total-(this.offset+this.visible),this.settings.mode==="carousel"&&u===0?(r=(this.offset-this.total/3)*(this.slide.width()+this.slide_margin),this.cssok?this.settings.effect!=="fade"&&i(this.list,-r):this.settings.effect!=="fade"&&this.list.css("left",-r),this.offset-this.total/3+t):this.settings.mode==="circular"&&u===0?0:this.offset+(u>t?t:u)):void 0};t.prototype.slideOffset=function(t,r){var f,s,c,l,h,o,e;(r||t!==this.offset)&&(f=this,s=function(){f.lock=!1;f.offset=t;r||(f.syncContainerHeight(),f.list.children(".es-after-slide").removeClass("es-after-slide"),f.getVisibleSlides().removeClass("es-before-slide").addClass("es-after-slide").trigger("es-after-slide"),typeof f.settings.afterSlide=="function"&&f.settings.afterSlide.call(f.container.get(0),f.getVisibleSlides()))},this.lock=!0,r||(this.list.children().slice(t,t+this.visible).not(".es-after-slide").addClass("es-before-slide").trigger("es-before-slide"),typeof this.settings.beforeSlide=="function"&&this.settings.beforeSlide.call(this.container.get(0),this.getVisibleSlides())),this.settings.pagination&&this.settings.mode!=="carousel"&&(c=Math.min(this.settings.moveSlides,this.visible),l=Math.ceil(t/c),this.container.find(".es-pagination a:eq("+l+")").addClass("es-active").siblings().removeClass("es-active")),this.updateNavigation(t),h=t*(this.slide.width()+this.slide_margin),this.cssok?this.settings.effect==="fade"?(o=this.getVisibleSlides(),e=this.list.children().slice(t,t+this.visible),this.settings.fadeDirection*t>this.offset*this.settings.fadeDirection&&(e=Array.prototype.reverse.call(e),o=Array.prototype.reverse.call(o)),n.each(o,function(t){u(n(this),"opacity",f.settings.fadeDuration,f.settings.fadeEasing,f.settings.fadeDelay*t,function(){t<f.visible-1||(e.css("opacity",0),i(f.list,-h,{duration:0,easing:"linear",delay:15,complete:function(){n.each(e,function(t){u(n(this),"opacity",f.settings.fadeDuration,f.settings.fadeEasing,f.settings.fadeDelay*t,function(){t<f.visible-1||(o.add(e).css("opacity",""),s())});n(this).css("opacity",1)})}}))});n(this).css("opacity",0)})):i(this.list,-h,{duration:this.settings.slideDuration,easing:this.settings.slideEasing,delay:this.settings.slideDelay,complete:s}):this.settings.effect==="fade"?(o=this.getVisibleSlides(),e=this.list.children().slice(t,t+this.visible),this.settings.fadeDirection*t>this.offset*this.settings.fadeDirection&&(e=Array.prototype.reverse.call(e),o=Array.prototype.reverse.call(o)),n.each(o,function(t){n(this).stop().delay(f.settings.fadeDelay*t).animate({opacity:0},f.settings.fadeDuration,f.settings.fadeEasing,function(){t<f.visible-1||(e.css("opacity",0),f.list.delay(10).queue(function(){n(this).css("left",-h).dequeue();n.each(e,function(t){n(this).stop().delay(f.settings.fadeDelay*t).animate({opacity:1},f.settings.fadeDuration,f.settings.fadeEasing,function(){t<f.visible-1||(o.add(e).css("opacity",""),s())})})}))})})):this.list.stop().delay(this.settings.slideDelay).animate({left:-h},this.settings.slideDuration,this.settings.slideEasing,s))};t.prototype.resizeSlides=function(){var f;this.lock=!0;this.visible=this.container.width()/(this.slide_width+this.slide_margin);(this.visible%1==0||this.visible%1<.5)&&(this.visible=Math.ceil(this.visible));var t=(this.container.width()+this.slide_margin)/this.visible-this.slide_margin,c=this.slide_ratio*t,r={width:Math.round(t)};this.settings.itemKeepRatio&&(r.height=Math.round(c));this.offset>0&&(this.offset+this.visible>this.total&&(this.offset=this.total-this.visible),f=this.offset*(t+this.slide_margin),this.cssok?i(this.list,-f):this.list.css("left",-f));var e=this,s=this.settings.fitDuration,h=this.settings.fitEasing,o=function(){e.lock=!1;e.syncContainerHeight()};this.list.children().each(function(){e.cssok?n(this).width()===Math.round(t)?o():(u(n(this),"width height",s,h,o),n(this).css(r)):n(this).stop().animate(r,s,h,o)});this.updatePagination()};t.prototype.syncContainerHeight=function(){var t,i,r;this.settings.syncHeight&&!this.settings.itemKeepRatio&&(t=0,n.each(this.getVisibleSlides(),function(){n(this).height()>t&&(t=n(this).height())}),i=this.settings.syncHeightDuration,r=this.settings.syncHeightEasing,this.cssok?(u(this.container,"height",i,r),this.container.css("height",t)):this.container.stop().animate({height:t},i,r))};t.prototype.updatePagination=function(){var t,f;if(this.settings.pagination&&this.settings.mode!=="carousel"){var i=this,r=Math.min(this.settings.moveSlides,this.visible),e=Math.ceil(this.total*2/(r+this.visible)),u=this.container.find(".es-pagination").empty();for(t=0;t<e;t++)n('<a href="#">'+t+"<\/a>").click(function(n){return function(t){if(!i.lock){var u=Math.min(n*r,i.total-i.visible);i.slideOffset(u);t.preventDefault()}}}(t)).appendTo(u);f=Math.ceil(this.offset/r);u.find("a:eq("+f+")").addClass("es-active").siblings().removeClass("es-active")}};t.prototype.updateNavigation=function(n){if(this.settings.navigation&&this.settings.mode==="normal"){var t=this.container.find(".es-navigation a");t.removeClass("es-first es-last");n===0&&t.filter(".es-prev").addClass("es-first");n===this.total-this.visible&&t.filter(".es-next").addClass("es-last")}};t.prototype.enableTouchSwipe=function(){var t=this,u=!1,o=0,s=0,r=0,h=function(n){var i=n;n.type.indexOf("touch")===0&&(i=n.originalEvent.changedTouches[0]);t.lock||(u=!0,o=i.pageX,s=i.pageY,r=e(t.list,t.cssok).left,t.container.bind("mousemove touchmove",f),t.container.addClass("es-swipe-grab"))},f=function(n){var e=n,u,l,h,c;n.type.indexOf("touch")===0&&(e=n.originalEvent.changedTouches[0]);u=e.pageX-o;l=e.pageY-s;Math.abs(u)<t.settings.swipeThreshold?t.settings.effect==="slide"&&(t.cssok?i(t.list,r+u):t.list.css("left",r+u)):(h=u>0?"prev":"next",c=t.getOffset(h),t.slideOffset(c),t.container.unbind("mousemove touchmove",f));t.settings.swipePage||n.preventDefault()},c=function(){u&&(t.lock||r===e(t.list,t.cssok).left||t.slideOffset(t.offset,!0),t.container.unbind("mousemove touchmove",f),u=!1,t.container.removeClass("es-swipe-grab"))};this.container.bind("mousedown touchstart",h);n("body").bind("mouseup touchend touchcancel",c);this.container.bind("dragstart",function(n){n.preventDefault()})};t.prototype.enableMouseWheel=function(){if(typeof n.fn.mousewheel=="function"){var t=this;this.container.bind("mousewheel",function(n,i){i>0?t.slidePrevious():t.slideNext();n.preventDefault()})}};t.prototype.enableKeyboard=function(){var t=this;n(document).bind("keydown",function(n){n.which===39?t.slideNext():n.which===37&&t.slidePrevious()})};t.prototype.enableTicker=function(){var t=this,r=!0,o,u,f=0,e=0,s=parseInt(this.settings.tickerTimeout,10),i;this.settings.effect==="fade"?(f=parseInt(this.settings.fadeDelay,10),e=parseInt(this.settings.fadeDuration,10)):(f=parseInt(this.settings.slideDelay,10),e=parseInt(this.settings.slideDuration,10));this.tickerPlay=function(){this.container.find(".es-ticker a").hide().filter(".es-pause").show();u=r?s:t.settings.effect==="fade"?(t.visible-1)*f+t.visible*e+s:f+e+s;window.clearInterval(o);o=window.setInterval(function(){t.slideNext();r&&(r=!1,t.tickerPlay())},u)};this.tickerPause=function(){this.container.find(".es-ticker a").hide().filter(".es-play").show();window.clearInterval(o);r=!0};this.container.append('<div class="es-ticker"><\/div>');n('<a href="#" class="es-play">'+this.settings.tickerPlay+"<\/a>").click(function(n){t.tickerPlay();n.preventDefault()}).appendTo(this.container.find(".es-ticker"));n('<a href="#" class="es-pause">'+this.settings.tickerPause+"<\/a>").click(function(n){t.tickerPause();n.preventDefault()}).appendTo(this.container.find(".es-ticker"));this.settings.tickerHover&&(i=0,this.container.hover(function(){window.clearTimeout(i);i=window.setTimeout(function(){t.tickerPause()},t.settings.tickerHoverDelay)},function(){window.clearTimeout(i);i=window.setTimeout(function(){t.tickerPlay()},t.settings.tickerHoverDelay)}));this.tickerPause();this.settings.tickerAutoStart&&this.tickerPlay()};n.fn.everslider=function(i){var r=n.extend({mode:"normal",effect:"slide",useCSS:!0,itemWidth:!1,itemHeight:!1,itemMargin:!1,itemKeepRatio:!0,maxWidth:"100%",maxVisible:0,moveSlides:1,slideDelay:0,slideDuration:500,slideEasing:"swing",fadeDelay:200,fadeDuration:500,fadeEasing:"swing",fadeDirection:1,fitDelay:300,fitDuration:200,fitEasing:"swing",syncHeight:!1,syncHeightDuration:200,syncHeightEasing:"swing",navigation:!0,nextNav:"<span>Next<\/span>",prevNav:"<span>Previous<\/span>",pagination:!0,touchSwipe:!0,swipeThreshold:50,swipePage:!1,mouseWheel:!1,keyboard:!1,ticker:!1,tickerTimeout:2e3,tickerAutoStart:!0,tickerPlay:"<span>Play<\/span>",tickerPause:"<span>Pause<\/span>",tickerHover:!1,tickerHoverDelay:300,slidesReady:function(){},beforeSlide:function(){},afterSlide:function(){}},i);return this.each(function(){new t(this,r)})}})(jQuery),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?module.exports=n:n(jQuery)}(function(n){function f(i){var u=i||window.event,l=[].slice.call(arguments,1),f=0,e=0,o=0,h=0,c=0,s;return i=n.event.fix(u),i.type="mousewheel",u.wheelDelta&&(f=u.wheelDelta),u.detail&&(f=u.detail*-1),u.deltaY&&(o=u.deltaY*-1,f=o),u.deltaX&&(e=u.deltaX,f=e*-1),u.wheelDeltaY!==undefined&&(o=u.wheelDeltaY),u.wheelDeltaX!==undefined&&(e=u.wheelDeltaX*-1),h=Math.abs(f),(!r||h<r)&&(r=h),c=Math.max(Math.abs(o),Math.abs(e)),(!t||c<t)&&(t=c),s=f>0?"floor":"ceil",f=Math[s](f/r),e=Math[s](e/t),o=Math[s](o/t),l.unshift(i,f,e,o),(n.event.dispatch||n.event.handle).apply(this,l)}var e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],i="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],r,t,u;if(n.event.fixHooks)for(u=e.length;u;)n.event.fixHooks[e[--u]]=n.event.mouseHooks;n.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var n=i.length;n;)this.addEventListener(i[--n],f,!1);else this.onmousewheel=f},teardown:function(){if(this.removeEventListener)for(var n=i.length;n;)this.removeEventListener(i[--n],f,!1);else this.onmousewheel=null}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})})