/**handles:jquery-flexslider**/ !function(u){var a=!0;u.flexslider=function(g,e){var h=u(g);h.vars=u.extend({},u.flexslider.defaults,e);var r=h.vars.namespace,S=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,o=("ontouchstart"in window||S||window.DocumentTouch&&document instanceof DocumentTouch)&&h.vars.touch,s="click touchend MSPointerUp keyup",l="",t,y="vertical"===h.vars.direction,b=h.vars.reverse,x=0'),1":''+t+"";"thumbnails"!==h.vars.controlNav||!0!==h.vars.thumbCaptions||""!==(n=n.attr("data-thumbcaption"))&&void 0!==n&&(a+=''+n+""),h.controlNavScaffold.append("
  • "+a+"
  • "),t++}(h.controlsContainer?u(h.controlsContainer):h).append(h.controlNavScaffold),d.controlNav.set(),d.controlNav.active(),h.controlNavScaffold.delegate("a, img",s,function(e){var t,a;e.preventDefault(),""!==l&&l!==e.type||(t=u(this),a=h.controlNav.index(t),t.hasClass(r+"active")||(h.direction=a>h.currentSlide?"next":"prev",h.flexAnimate(a,h.vars.pauseOnAction))),""===l&&(l=e.type),d.setToClearWatchedEvent()})},setupManual:function(){h.controlNav=h.manualControls,d.controlNav.active(),h.controlNav.bind(s,function(e){var t,a;e.preventDefault(),""!==l&&l!==e.type||(t=u(this),a=h.controlNav.index(t),t.hasClass(r+"active")||(a>h.currentSlide?h.direction="next":h.direction="prev",h.flexAnimate(a,h.vars.pauseOnAction))),""===l&&(l=e.type),d.setToClearWatchedEvent()})},set:function(){var e="thumbnails"===h.vars.controlNav?"img":"a";h.controlNav=u("."+r+"control-nav li "+e,h.controlsContainer||h)},active:function(){h.controlNav.removeClass(r+"active").eq(h.animatingTo).addClass(r+"active")},update:function(e,t){1'+h.count+"")):(1===h.pagingCount?h.controlNavScaffold.find("li"):h.controlNav.eq(t).closest("li")).remove(),d.controlNav.set(),1
  • '+h.vars.prevText+'
  • '+h.vars.nextText+"
  • ");h.customDirectionNav?h.directionNav=h.customDirectionNav:h.controlsContainer?(u(h.controlsContainer).append(e),h.directionNav=u("."+r+"direction-nav li a",h.controlsContainer)):(h.append(e),h.directionNav=u("."+r+"direction-nav li a",h)),d.directionNav.update(),h.directionNav.bind(s,function(e){var t;e.preventDefault(),""!==l&&l!==e.type||(t=u(this).hasClass(r+"next")?h.getTarget("next"):h.getTarget("prev"),h.flexAnimate(t,h.vars.pauseOnAction)),""===l&&(l=e.type),d.setToClearWatchedEvent()})},update:function(){var e=r+"disabled";1===h.pagingCount?h.directionNav.addClass(e).attr("tabindex","-1"):h.vars.animationLoop?h.directionNav.removeClass(e).removeAttr("tabindex"):0===h.animatingTo?h.directionNav.removeClass(e).filter("."+r+"prev").addClass(e).attr("tabindex","-1"):h.animatingTo===h.last?h.directionNav.removeClass(e).filter("."+r+"next").addClass(e).attr("tabindex","-1"):h.directionNav.removeClass(e).removeAttr("tabindex")}},pausePlay:{setup:function(){var e=u('
    ');h.controlsContainer?(h.controlsContainer.append(e),h.pausePlay=u("."+r+"pauseplay a",h.controlsContainer)):(h.append(e),h.pausePlay=u("."+r+"pauseplay a",h)),d.pausePlay.update(h.vars.slideshow?r+"pause":r+"play"),h.pausePlay.bind(s,function(e){e.preventDefault(),""!==l&&l!==e.type||(u(this).hasClass(r+"pause")?(h.manualPause=!0,h.manualPlay=!1,h.pause()):(h.manualPause=!1,h.manualPlay=!0,h.play())),""===l&&(l=e.type),d.setToClearWatchedEvent()})},update:function(e){"play"===e?h.pausePlay.removeClass(r+"pause").addClass(r+"play").html(h.vars.playText):h.pausePlay.removeClass(r+"play").addClass(r+"pause").html(h.vars.pauseText)}},touch:function(){var n,i,s,r,o,l,e,c,d,u=!1,a=0,v=0,p=0;function t(e){e.stopPropagation(),h.animating?e.preventDefault():(h.pause(),g._gesture.addPointer(e.pointerId),p=0,r=y?h.h:h.w,l=Number(new Date),s=x&&b&&h.animatingTo===h.last?0:x&&b?h.limit-(h.itemW+h.vars.itemMargin)*h.move*h.animatingTo:x&&h.currentSlide===h.last?h.limit:x?(h.itemW+h.vars.itemMargin)*h.move*h.currentSlide:b?(h.last-h.currentSlide+h.cloneOffset)*r:(h.currentSlide+h.cloneOffset)*r)}function m(e){e.stopPropagation();var t=e.target._slider,a,n;t&&(a=-e.translationX,n=-e.translationY,o=p+=y?n:a,u=y?Math.abs(p)r/2)?t.flexAnimate(e,t.vars.pauseOnAction):T||t.flexAnimate(t.currentSlide,t.vars.pauseOnAction,!0)),s=o=i=n=null,p=0)}S?(g.style.msTouchAction="none",g._gesture=new MSGesture,(g._gesture.target=g).addEventListener("MSPointerDown",t,!1),g._slider=h,g.addEventListener("MSGestureChange",m,!1),g.addEventListener("MSGestureEnd",f,!1)):(e=function(e){h.animating?e.preventDefault():!window.navigator.msPointerEnabled&&1!==e.touches.length||(h.pause(),r=y?h.h:h.w,l=Number(new Date),a=e.touches[0].pageX,v=e.touches[0].pageY,s=x&&b&&h.animatingTo===h.last?0:x&&b?h.limit-(h.itemW+h.vars.itemMargin)*h.move*h.animatingTo:x&&h.currentSlide===h.last?h.limit:x?(h.itemW+h.vars.itemMargin)*h.move*h.currentSlide:b?(h.last-h.currentSlide+h.cloneOffset)*r:(h.currentSlide+h.cloneOffset)*r,n=y?v:a,i=y?a:v,g.addEventListener("touchmove",c,!1),g.addEventListener("touchend",d,!1))},d=function(e){var t,a;g.removeEventListener("touchmove",c,!1),h.animatingTo!==h.currentSlide||u||null===o||(a=0<(t=b?-o:o)?h.getTarget("next"):h.getTarget("prev"),h.canAdvance(a)&&(Number(new Date)-l<550&&50r/2)?h.flexAnimate(a,h.vars.pauseOnAction):T||h.flexAnimate(h.currentSlide,h.vars.pauseOnAction,!0)),g.removeEventListener("touchend",d,!1),s=o=i=n=null},g.addEventListener("touchstart",e,!(c=function(e){a=e.touches[0].pageX,v=e.touches[0].pageY,o=y?n-v:n-a;var t=500;(!(u=y?Math.abs(o)t)&&(e.preventDefault(),!T&&h.transitions&&(h.vars.animationLoop||(o/=0===h.currentSlide&&o<0||h.currentSlide===h.last&&0h.currentSlide?"next":"prev"),c&&1===h.pagingCount&&(h.direction=h.currentItemh.limit&&1!==h.visible?h.limit:i):0===h.currentSlide&&e===h.count-1&&h.vars.animationLoop&&"next"!==h.direction?b?(h.count+h.cloneOffset)*s:0:h.currentSlide===h.last&&0===e&&h.vars.animationLoop&&"prev"!==h.direction?b?0:(h.count+1)*s:b?(h.count-1-e+h.cloneOffset)*s:(e+h.cloneOffset)*s,h.setProps(e,"",h.vars.animationSpeed),h.transitions?(h.vars.animationLoop&&h.atEnd||(h.animating=!1,h.currentSlide=h.animatingTo),h.container.unbind("webkitTransitionEnd transitionend"),h.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(h.ensureAnimationEnd),h.wrapup(s)}),clearTimeout(h.ensureAnimationEnd),h.ensureAnimationEnd=setTimeout(function(){h.wrapup(s)},h.vars.animationSpeed+100)):h.container.animate(h.args,h.vars.animationSpeed,h.vars.easing,function(){h.wrapup(s)})),h.vars.smoothHeight&&d.smoothHeight(h.vars.animationSpeed)}},h.wrapup=function(e){T||x||(0===h.currentSlide&&h.animatingTo===h.last&&h.vars.animationLoop?h.setProps(e,"jumpEnd"):h.currentSlide===h.last&&0===h.animatingTo&&h.vars.animationLoop&&h.setProps(e,"jumpStart")),h.animating=!1,h.currentSlide=h.animatingTo,h.vars.after(h)},h.animateSlides=function(){!h.animating&&a&&h.flexAnimate(h.getTarget("next"))},h.pause=function(){clearInterval(h.animatedSlides),h.animatedSlides=null,h.playing=!1,h.vars.pausePlay&&d.pausePlay.update("play"),h.syncExists&&d.sync("pause")},h.play=function(){h.playing&&clearInterval(h.animatedSlides),h.animatedSlides=h.animatedSlides||setInterval(h.animateSlides,h.vars.slideshowSpeed),h.started=h.playing=!0,h.vars.pausePlay&&d.pausePlay.update("pause"),h.syncExists&&d.sync("play")},h.stop=function(){h.pause(),h.stopped=!0},h.canAdvance=function(e,t){var a=c?h.pagingCount-1:h.last;return!!t||(c&&h.currentItem===h.count-1&&0===e&&"prev"===h.direction||(!c||0!==h.currentItem||e!==h.pagingCount-1||"next"===h.direction)&&((e!==h.currentSlide||c)&&(!!h.vars.animationLoop||(!h.atEnd||0!==h.currentSlide||e!==a||"next"===h.direction)&&(!h.atEnd||h.currentSlide!==a||0!==e||"next"!==h.direction))))},h.getTarget=function(e){return"next"===(h.direction=e)?h.currentSlide===h.last?0:h.currentSlide+1:0===h.currentSlide?h.last:h.currentSlide-1},h.setProps=function(e,t,a){var n=(i=e||(h.itemW+h.vars.itemMargin)*h.move*h.animatingTo,-1*function(){if(x)return"setTouch"===t?e:b&&h.animatingTo===h.last?0:b?h.limit-(h.itemW+h.vars.itemMargin)*h.move*h.animatingTo:h.animatingTo===h.last?h.limit:i;switch(t){case"setTotal":return b?(h.count-1-h.currentSlide+h.cloneOffset)*e:(h.currentSlide+h.cloneOffset)*e;case"setTouch":return e;case"jumpEnd":return b?e:h.count*e;case"jumpStart":return b?h.count*e:e;default:return e}}()+"px"),i,s;h.transitions&&(n=y?"translate3d(0,"+n+",0)":"translate3d("+n+",0,0)",h.container.css("-"+h.pfx+"-transition-duration",a=void 0!==a?a/1e3+"s":"0s"),h.container.css("transition-duration",a)),h.args[h.prop]=n,!h.transitions&&void 0!==a||h.container.css(h.args),h.container.css("transform",n)},h.setup=function(e){var t,a;T?(h.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===e&&(o?h.slides.css({opacity:0,display:"none",webkitTransition:"opacity "+h.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(h.currentSlide).css({opacity:1,zIndex:2,display:"block"}):0==h.vars.fadeFirstSlide?h.slides.css({opacity:0,display:"none",zIndex:1}).eq(h.currentSlide).css({zIndex:2,display:"block"}).css({opacity:1}):h.slides.css({opacity:0,display:"none",zIndex:1}).eq(h.currentSlide).css({zIndex:2,display:"block"}).animate({opacity:1},h.vars.animationSpeed,h.vars.easing)),h.vars.smoothHeight&&d.smoothHeight()):("init"===e&&(h.viewport=u('
    ').css({overflow:"hidden",position:"relative"}).appendTo(h).append(h.container),h.cloneCount=0,h.cloneOffset=0,b&&(a=u.makeArray(h.slides).reverse(),h.slides=u(a),h.container.empty().append(h.slides))),h.vars.animationLoop&&!x&&(h.cloneCount=2,h.cloneOffset=1,"init"!==e&&h.container.find(".clone").remove(),h.container.append(d.uniqueID(h.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(d.uniqueID(h.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),h.newSlides=u(h.vars.selector,h),t=b?h.count-1-h.currentSlide+h.cloneOffset:h.currentSlide+h.cloneOffset,y&&!x?(h.container.height(200*(h.count+h.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){h.newSlides.css({display:"block"}),h.doMath(),h.viewport.height(h.h),h.setProps(t*h.h,"init")},"init"===e?100:0)):(h.container.width(200*(h.count+h.cloneCount)+"%"),h.setProps(t*h.computedW,"init"),setTimeout(function(){h.doMath(),h.newSlides.css({width:h.computedW,marginRight:h.computedM,float:"left",display:"block"}),h.vars.smoothHeight&&d.smoothHeight()},"init"===e?100:0))),x||h.slides.removeClass(r+"active-slide").eq(h.currentSlide).addClass(r+"active-slide"),h.vars.init(h)},h.doMath=function(){var e=h.slides.first(),t=h.vars.itemMargin,a=h.vars.minItems,n=h.vars.maxItems;h.w=(void 0===h.viewport?h:h.viewport).width(),h.h=e.height(),h.boxPadding=e.outerWidth()-e.width(),x?(h.itemT=h.vars.itemWidth+t,h.itemM=t,h.minW=a?a*h.itemT:h.w,h.maxW=n?n*h.itemT-t:h.w,h.itemW=h.minW>h.w?(h.w-t*(a-1))/a:h.maxWh.w?h.w:h.vars.itemWidth,h.visible=Math.floor(h.w/h.itemW),h.move=0h.w?h.itemW*(h.count-1)+t*(h.count-1):(h.itemW+t)*h.count-h.w-t):(h.itemW=h.w,h.itemM=t,h.pagingCount=h.count,h.last=h.count-1),h.computedW=h.itemW-h.boxPadding,h.computedM=h.itemM},h.update=function(e,t){h.doMath(),x||(eh.controlNav.length?d.controlNav.update("add"):("remove"===t&&!x||h.pagingCounth.last&&(--h.currentSlide,--h.animatingTo),d.controlNav.update("remove",h.last))),h.vars.directionNav&&d.directionNav.update()},h.addSlide=function(e,t){var e=u(e);h.count+=1,h.last=h.count-1,y&&b?void 0!==t?h.slides.eq(h.count-t).after(e):h.container.prepend(e):void 0!==t?h.slides.eq(t).before(e):h.container.append(e),h.update(t,"add"),h.slides=u(h.vars.selector+":not(.clone)",h),h.setup(),h.vars.added(h)},h.removeSlide=function(e){var t=isNaN(e)?h.slides.index(u(e)):e;--h.count,h.last=h.count-1,(isNaN(e)?u(e,h.slides):y&&b?h.slides.eq(h.last):h.slides.eq(e)).remove(),h.doMath(),h.update(t,"remove"),h.slides=u(h.vars.selector+":not(.clone)",h),h.setup(),h.vars.removed(h)},d.init()},u(window).blur(function(e){a=!1}).focus(function(e){a=!0}),u.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},u.fn.flexslider=function(a){if("object"==typeof(a=void 0===a?{}:a))return this.each(function(){var e=u(this),t=a.selector||".slides > li",t=e.find(t);1===t.length&&!1===a.allowOneSlide||0===t.length?(t.fadeIn(400),a.start&&a.start(e)):void 0===e.data("flexslider")&&new u.flexslider(this,a)});var e=u(this).data("flexslider");switch(a){case"play":e.play();break;case"pause":e.pause();break;case"stop":e.stop();break;case"next":e.flexAnimate(e.getTarget("next"),!0);break;case"prev":case"previous":e.flexAnimate(e.getTarget("prev"),!0);break;default:"number"==typeof a&&e.flexAnimate(a,!0)}}}(jQuery);