/*!
Sequence.js (http://www.sequencejs.com)
Version: 1.0.1.2
Author: Ian Lunn @IanLunn
Author URL: http://www.ianlunn.co.uk/
Github: https://github.com/IanLunn/Sequence

This is a FREE script and is available under a MIT License:
http://www.opensource.org/licenses/mit-license.php

Sequence.js and its dependencies are (c) Ian Lunn Design 2012 unless otherwise stated.

Sequence also relies on the following open source scripts:

- jQuery imagesLoaded 2.1.0 (http://github.com/desandro/imagesloaded)
    Paul Irish et al
    Available under a MIT License: http://www.opensource.org/licenses/mit-license.php

- jQuery TouchWipe 1.1.1 (http://www.netcu.de/jquery-touchwipe-iphone-ipad-library)
    Andreas Waltl, netCU Internetagentur (http://www.netcu.de)
    Available under a MIT License: http://www.opensource.org/licenses/mit-license.php

- Modernizr 2.6.1 Custom Build (http://modernizr.com/) (Named Modernizr for Sequence to prevent conflicts)
    Copyright (c) Faruk Ates, Paul Irish, Alex Sexton
    Available under the BSD and MIT licenses: www.modernizr.com/license/
    */!function(e){function t(t,r,i){function s(){l.afterLoaded(),l.settings.hideFramesUntilPreloaded&&void 0!==l.settings.preloader&&l.settings.preloader!==!1&&l.frames.show(),void 0!==l.settings.preloader&&l.settings.preloader!==!1?l.settings.hidePreloaderUsingCSS&&l.transitionsSupported?(l.prependPreloadingCompleteTo=l.settings.prependPreloadingComplete===!0?l.settings.preloader:e(l.settings.prependPreloadingComplete),l.prependPreloadingCompleteTo.addClass("preloading-complete"),setTimeout(f,l.settings.hidePreloaderDelay)):l.settings.preloader.fadeOut(l.settings.hidePreloaderDelay,function(){clearInterval(l.defaultPreloader),f()}):f()}function o(t,n){var r=[];if(n)for(var i=t;i>0;i--)r.push(e("body").find('img[src="'+l.settings.preloadTheseImages[i-1]+'"]'));else for(var s=t;s>0;s--)l.frames.eq(l.settings.preloadTheseFrames[s-1]-1).find("img").each(function(){r.push(e(this)[0])});return r}function u(t,n){function r(){var t=e(h),r=e(p);u&&(p.length?u.reject(l,t,r):u.resolve(l)),e.isFunction(n)&&n.call(o,l,t,r)}function i(t,n){t.src!==s&&-1===e.inArray(t,c)&&(c.push(t),n?p.push(t):h.push(t),e.data(t,"imagesLoaded",{isBroken:n,src:t.src}),f&&u.notifyWith(e(t),[n,l,e(h),e(p)]),l.length===c.length&&(setTimeout(r),l.unbind(".imagesLoaded")))}var s="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",o=t,u=e.isFunction(e.Deferred)?e.Deferred():0,f=e.isFunction(u.notify),l=o.find("img").add(o.filter("img")),c=[],h=[],p=[];e.isPlainObject(n)&&e.each(n,function(e,t){"callback"===e?n=t:u&&u[e](t)}),l.length?l.bind("load.imagesLoaded error.imagesLoaded",function(e){i(e.target,"error"===e.type)}).each(function(t,n){var r=n.src,o=e.data(n,"imagesLoaded");return o&&o.src===r?void i(n,o.isBroken):n.complete&&void 0!==n.naturalWidth?void i(n,0===n.naturalWidth||0===n.naturalHeight):void ((n.readyState||n.complete)&&(n.src=s,n.src=r))}):r()}function f(){function t(e,t){var n,r;for(r in t)n="left"===r||"right"===r?s[r]:r,e===parseFloat(n)&&l._initCustomKeyEvent(t[r])}function n(){l.canvas.on("touchmove.sequence",r),o=null,f=!1}function r(e){if(l.settings.swipePreventsDefault&&e.preventDefault(),f){var t=e.originalEvent.touches[0].pageX,r=e.originalEvent.touches[0].pageY,i=o-t,s=u-r;Math.abs(i)>=l.settings.swipeThreshold?(n(),l._initCustomKeyEvent(i>0?l.settings.swipeEvents.left:l.settings.swipeEvents.right)):Math.abs(s)>=l.settings.swipeThreshold&&(n(),l._initCustomKeyEvent(s>0?l.settings.swipeEvents.down:l.settings.swipeEvents.up))}}function i(e){1===e.originalEvent.touches.length&&(o=e.originalEvent.touches[0].pageX,u=e.originalEvent.touches[0].pageY,f=!0,l.canvas.on("touchmove.sequence",r))}if(e(l.settings.preloader).remove(),l.nextButton=l._renderUiElements(l.settings.nextButton,".sequence-next"),l.prevButton=l._renderUiElements(l.settings.prevButton,".sequence-prev"),l.pauseButton=l._renderUiElements(l.settings.pauseButton,".sequence-pause"),l.pagination=l._renderUiElements(l.settings.pagination,".sequence-pagination"),void 0!==l.nextButton&&l.nextButton!==!1&&l.settings.showNextButtonOnInit===!0&&l.nextButton.show(),void 0!==l.prevButton&&l.prevButton!==!1&&l.settings.showPrevButtonOnInit===!0&&l.prevButton.show(),void 0!==l.pauseButton&&l.pauseButton!==!1&&l.settings.showPauseButtonOnInit===!0&&l.pauseButton.show(),l.settings.pauseIcon!==!1?(l.pauseIcon=l._renderUiElements(l.settings.pauseIcon,".sequence-pause-icon"),void 0!==l.pauseIcon&&l.pauseIcon.hide()):l.pauseIcon=void 0,void 0!==l.pagination&&l.pagination!==!1&&(l.paginationLinks=l.pagination.children(),l.paginationLinks.on("click.sequence",function(){var t=e(this).index()+1;l.goTo(t)}),l.settings.showPaginationOnInit===!0&&l.pagination.show()),l.nextFrameID=l.settings.startingFrameID,l.settings.hashTags===!0&&(l.frames.each(function(){l.frameHashID.push(e(this).prop(l.getHashTagFrom))}),l.currentHashTag=location.hash.replace("#",""),void 0===l.currentHashTag||""===l.currentHashTag?l.nextFrameID=l.settings.startingFrameID:(l.frameHashIndex=e.inArray(l.currentHashTag,l.frameHashID),l.nextFrameID=-1!==l.frameHashIndex?l.frameHashIndex+1:l.settings.startingFrameID)),l.nextFrame=l.frames.eq(l.nextFrameID-1),l.nextFrameChildren=l.nextFrame.children(),void 0!==l.pagination&&e(l.paginationLinks[l.settings.startingFrameID-1]).addClass("current"),l.transitionsSupported?l.settings.animateStartingFrameIn?l.settings.reverseAnimationsWhenNavigatingBackwards&&l.settings.autoPlayDirection-1&&l.settings.animateStartingFrameIn?(l._resetElements(l.transitionPrefix,l.nextFrameChildren,"0s"),l.nextFrame.addClass("animate-out"),l.goTo(l.nextFrameID,-1,!0)):l.goTo(l.nextFrameID,1,!0):(l.currentFrameID=l.nextFrameID,l.settings.moveActiveFrameToTop&&l.nextFrame.css("z-index",l.numberOfFrames),l._resetElements(l.transitionPrefix,l.nextFrameChildren,"0s"),l.nextFrame.addClass("animate-in"),l.settings.hashTags&&l.settings.hashChangesOnFirstFrame&&(l.currentHashTag=l.nextFrame.prop(l.getHashTagFrom),document.location.hash="#"+l.currentHashTag),setTimeout(function(){l._resetElements(l.transitionPrefix,l.nextFrameChildren,"")},100),l._resetAutoPlay(!0,l.settings.autoPlayDelay)):(l.container.addClass("sequence-fallback"),l.currentFrameID=l.nextFrameID,l.settings.hashTags&&l.settings.hashChangesOnFirstFrame&&(l.currentHashTag=l.nextFrame.prop(l.getHashTagFrom),document.location.hash="#"+l.currentHashTag),l.frames.addClass("animate-in"),l.frames.not(":eq("+(l.nextFrameID-1)+")").css({display:"none",opacity:0}),l._resetAutoPlay(!0,l.settings.autoPlayDelay)),void 0!==l.nextButton&&l.nextButton.bind("click.sequence",function(){l.next()}),void 0!==l.prevButton&&l.prevButton.bind("click.sequence",function(){l.prev()}),void 0!==l.pauseButton&&l.pauseButton.bind("click.sequence",function(){l.pause(!0)}),l.settings.keyNavigation){var s={left:37,right:39};e(document).bind("keydown.sequence",function(e){var n=String.fromCharCode(e.keyCode);n>0&&n<=l.numberOfFrames&&l.settings.numericKeysGoToFrames&&(l.nextFrameID=n,l.goTo(l.nextFrameID)),t(e.keyCode,l.settings.keyEvents),t(e.keyCode,l.settings.customKeyEvents)})}if(l.canvas.on({"mouseenter.sequence":function(){l.settings.pauseOnHover&&l.settings.autoPlay&&!l.hasTouch&&(l.isBeingHoveredOver=!0,l.isHardPaused||l.pause())},"mouseleave.sequence":function(){l.settings.pauseOnHover&&l.settings.autoPlay&&!l.hasTouch&&(l.isBeingHoveredOver=!1,l.isHardPaused||l.unpause())}}),l.settings.hashTags&&e(window).bind("hashchange.sequence",function(){var t=location.hash.replace("#","");l.currentHashTag!==t&&(l.currentHashTag=t,l.frameHashIndex=e.inArray(l.currentHashTag,l.frameHashID),-1!==l.frameHashIndex&&(l.nextFrameID=l.frameHashIndex+1,l.goTo(l.nextFrameID)))}),l.settings.swipeNavigation&&l.hasTouch){var o,u,f=!1;l.canvas.on("touchstart.sequence",i)}}var l=this;l.container=e(t),l.canvas=l.container.children(".sequence-canvas"),l.frames=l.canvas.children("li"),l._modernizrForSequence();var h={WebkitTransition:"-webkit-",WebkitAnimation:"-webkit-",MozTransition:"-moz-","MozAnimation ":"-moz-",OTransition:"-o-",OAnimation:"-o-",msTransition:"-ms-",msAnimation:"-ms-",transition:"",animation:""},p={WebkitTransition:"webkitTransitionEnd.sequence",WebkitAnimation:"webkitAnimationEnd.sequence",MozTransition:"transitionend.sequence",MozAnimation:"animationend.sequence",OTransition:"otransitionend.sequence",OAnimation:"oanimationend.sequence",msTransition:"MSTransitionEnd.sequence",msAnimation:"MSAnimationEnd.sequence",transition:"transitionend.sequence",animation:"animationend.sequence"};l.transitionPrefix=h[ModernizrForSequence.prefixed("transition")],l.animationPrefix=h[ModernizrForSequence.prefixed("animation")],l.transitionProperties={},l.transitionEnd=p[ModernizrForSequence.prefixed("transition")]+" "+p[ModernizrForSequence.prefixed("animation")],l.numberOfFrames=l.frames.length,l.transitionsSupported=void 0!==l.transitionPrefix?!0:!1,l.hasTouch="ontouchstart"in window?!0:!1,l.isPaused=!1,l.isBeingHoveredOver=!1,l.container.removeClass("sequence-destroyed"),l.paused=function(){},l.unpaused=function(){},l.beforeNextFrameAnimatesIn=function(){},l.afterNextFrameAnimatesIn=function(){},l.beforeCurrentFrameAnimatesOut=function(){},l.afterCurrentFrameAnimatesOut=function(){},l.afterLoaded=function(){},l.destroyed=function(){},l.settings=e.extend({},i,r),l.settings.preloader=l._renderUiElements(l.settings.preloader,".sequence-preloader"),l.isStartingFrame=l.settings.animateStartingFrameIn?!0:!1,l.settings.unpauseDelay=null===l.settings.unpauseDelay?l.settings.autoPlayDelay:l.settings.unpauseDelay,l.getHashTagFrom=l.settings.hashDataAttribute?"data-sequence-hashtag":"id",l.frameHashID=[],l.direction=l.settings.autoPlayDirection,l.settings.hideFramesUntilPreloaded&&void 0!==l.settings.preloader&&l.settings.preloader!==!1&&l.frames.hide(),"-o-"===l.transitionPrefix&&(l.transitionsSupported=l._operaTest()),l.frames.removeClass("animate-in");var d=l.settings.preloadTheseFrames.length,v=l.settings.preloadTheseImages.length;if(l.settings.windowLoaded===!0&&(n=l.settings.windowLoaded),void 0===l.settings.preloader||l.settings.preloader===!1||0===d&&0===v)n===!0?(s(),e(this).unbind("load.sequence")):e(window).bind("load.sequence",function(){s(),e(this).unbind("load.sequence")});else{var m=o(d),g=o(v,!0),y=e(m.concat(g));u(y,s)}}var n=!1;e(window).bind("load",function(){n=!0}),t.prototype={startAutoPlay:function(e){var t=this;e=void 0===e?t.settings.autoPlayDelay:e,t.unpause(),t._resetAutoPlay(),t.autoPlayTimer=setTimeout(function(){1===t.settings.autoPlayDirection?t.next():t.prev()},e)},stopAutoPlay:function(){var e=this;e.pause(!0),clearTimeout(e.autoPlayTimer)},pause:function(e){var t=this;t.isSoftPaused?t.unpause():(void 0!==t.pauseButton&&(t.pauseButton.addClass("paused"),void 0!==t.pauseIcon&&t.pauseIcon.show()),t.paused(),t.isSoftPaused=!0,t.isHardPaused=e?!0:!1,t.isPaused=!0,t._resetAutoPlay())},unpause:function(e){var t=this;void 0!==t.pauseButton&&(t.pauseButton.removeClass("paused"),void 0!==t.pauseIcon&&t.pauseIcon.hide()),t.isSoftPaused=!1,t.isHardPaused=!1,t.isPaused=!1,t.active?t.delayUnpause=!0:(e!==!1&&t.unpaused(),t._resetAutoPlay(!0,t.settings.unpauseDelay))},next:function(){var e=this;id=e.currentFrameID!==e.numberOfFrames?e.currentFrameID+1:1,e.active===!1||void 0===e.active?e.goTo(id,1):e.goTo(id,1,!0)},prev:function(){var e=this;id=1===e.currentFrameID?e.numberOfFrames:e.currentFrameID-1,e.active===!1||void 0===e.active?e.goTo(id,-1):e.goTo(id,-1,!0)},goTo:function(t,n,r){function i(){s._setHashTag(),s.active=!1,s._resetAutoPlay(!0,s.settings.autoPlayDelay)}var s=this;s.nextFrameID=parseFloat(t);var o=r===!0?0:s.settings.transitionThreshold;if(s.nextFrameID===s.currentFrameID||s.settings.navigationSkip&&s.navigationSkipThresholdActive||!s.settings.navigationSkip&&s.active||!s.transitionsSupported&&s.active||!s.settings.cycle&&1===n&&s.currentFrameID===s.numberOfFrames||!s.settings.cycle&&-1===n&&1===s.currentFrameID||s.settings.preventReverseSkipping&&s.direction!==n&&s.active)return!1;if(s.settings.navigationSkip&&s.active&&(s.navigationSkipThresholdActive=!0,s.settings.fadeFrameWhenSkipped&&s.nextFrame.stop().animate({opacity:0},s.settings.fadeFrameTime),clearTimeout(s.transitionThresholdTimer),setTimeout(function(){s.navigationSkipThresholdActive=!1},s.settings.navigationSkipThreshold)),!s.active||s.settings.navigationSkip){if(s.active=!0,s._resetAutoPlay(),s.direction=void 0===n?s.nextFrameID>s.currentFrameID?1:-1:n,s.currentFrame=s.canvas.children(".animate-in"),s.nextFrame=s.frames.eq(s.nextFrameID-1),s.currentFrameChildren=s.currentFrame.children(),s.nextFrameChildren=s.nextFrame.children(),void 0!==s.pagination&&(s.paginationLinks.removeClass("current"),e(s.paginationLinks[s.nextFrameID-1]).addClass("current")),s.transitionsSupported)void 0!==s.currentFrame.length?(s.beforeCurrentFrameAnimatesOut(),s.settings.moveActiveFrameToTop&&s.currentFrame.css("z-index",1),s._resetElements(s.transitionPrefix,s.nextFrameChildren,"0s"),s.settings.reverseAnimationsWhenNavigatingBackwards&&1!==s.direction?s.settings.reverseAnimationsWhenNavigatingBackwards&&-1===s.direction&&(s.nextFrame.addClass("animate-out"),s._reverseTransitionProperties()):(s.nextFrame.removeClass("animate-out"),s._resetElements(s.transitionPrefix,s.currentFrameChildren,""))):s.isStartingFrame=!1,s.active=!0,s.currentFrame.unbind(s.transitionEnd),s.nextFrame.unbind(s.transitionEnd),s.settings.fadeFrameWhenSkipped&&s.settings.navigationSkip&&s.nextFrame.css("opacity",1),s.beforeNextFrameAnimatesIn(),s.settings.moveActiveFrameToTop&&s.nextFrame.css("z-index",s.numberOfFrames),s.settings.reverseAnimationsWhenNavigatingBackwards&&1!==s.direction?s.settings.reverseAnimationsWhenNavigatingBackwards&&-1===s.direction&&(setTimeout(function(){s._resetElements(s.transitionPrefix,s.currentFrameChildren,""),s._resetElements(s.transitionPrefix,s.nextFrameChildren,""),s._reverseTransitionProperties(),s._waitForAnimationsToComplete(s.nextFrame,s.nextFrameChildren,"in"),("function () {}"!==s.afterCurrentFrameAnimatesOut||s.settings.transitionThreshold===!0&&r!==!0)&&s._waitForAnimationsToComplete(s.currentFrame,s.currentFrameChildren,"out",!0,-1)},50),setTimeout(function(){s.settings.transitionThreshold===!1||0===s.settings.transitionThreshold||r===!0?(s.currentFrame.removeClass("animate-in"),s.nextFrame.toggleClass("animate-out animate-in")):(s.currentFrame.removeClass("animate-in"),s.settings.transitionThreshold!==!0&&(s.transitionThresholdTimer=setTimeout(function(){s.nextFrame.toggleClass("animate-out animate-in")},o)))},50)):(setTimeout(function(){s._resetElements(s.transitionPrefix,s.nextFrameChildren,""),s._waitForAnimationsToComplete(s.nextFrame,s.nextFrameChildren,"in"),("function () {}"!==s.afterCurrentFrameAnimatesOut||s.settings.transitionThreshold===!0&&r!==!0)&&s._waitForAnimationsToComplete(s.currentFrame,s.currentFrameChildren,"out",!0,1)},50),setTimeout(function(){s.settings.transitionThreshold===!1||0===s.settings.transitionThreshold||r===!0?(s.currentFrame.toggleClass("animate-out animate-in"),s.nextFrame.addClass("animate-in")):(s.currentFrame.toggleClass("animate-out animate-in"),s.settings.transitionThreshold!==!0&&(s.transitionThresholdTimer=setTimeout(function(){s.nextFrame.addClass("animate-in")},o)))},50));else switch(s.settings.fallback.theme){case"fade":s.frames.css({position:"relative"}),s.beforeCurrentFrameAnimatesOut(),s.currentFrame=s.frames.eq(s.currentFrameID-1),s.currentFrame.animate({opacity:0},s.settings.fallback.speed,function(){s.currentFrame.css({display:"none","z-index":"1"}),s.afterCurrentFrameAnimatesOut(),s.beforeNextFrameAnimatesIn(),s.nextFrame.css({display:"block","z-index":s.numberOfFrames}).animate({opacity:1},500,function(){s.afterNextFrameAnimatesIn()}),i()}),s.frames.css({position:"relative"});break;case"slide":default:var u={},f={},l={};1===s.direction?(u.left="-100%",f.left="100%"):(u.left="100%",f.left="-100%"),l.left="0",l.opacity=1,s.currentFrame=s.frames.eq(s.currentFrameID-1),s.beforeCurrentFrameAnimatesOut(),s.currentFrame.animate(u,s.settings.fallback.speed,function(){s.currentFrame.css({display:"none","z-index":"1"}),s.afterCurrentFrameAnimatesOut()}),s.beforeNextFrameAnimatesIn(),s.nextFrame.show().css(f),s.nextFrame.css({display:"block","z-index":s.numberOfFrames}).animate(l,s.settings.fallback.speed,function(){i(),s.afterNextFrameAnimatesIn()})}s.currentFrameID=s.nextFrameID}},destroy:function(t){var n=this;n.container.addClass("sequence-destroyed"),void 0!==n.nextButton&&n.nextButton.unbind("click.sequence"),void 0!==n.prevButton&&n.prevButton.unbind("click.sequence"),void 0!==n.pauseButton&&n.pauseButton.unbind("click.sequence"),void 0!==n.pagination&&n.paginationLinks.unbind("click.sequence"),e(document).unbind("keydown.sequence"),n.canvas.unbind("mouseenter.sequence, mouseleave.sequence, touchstart.sequence, touchmove.sequence"),e(window).unbind("hashchange.sequence"),n.stopAutoPlay(),clearTimeout(n.transitionThresholdTimer),n.canvas.children("li").remove(),n.canvas.prepend(n.frames),n.frames.removeClass("animate-in animate-out").removeAttr("style"),n.frames.eq(n.currentFrameID-1).addClass("animate-in"),void 0!==n.nextButton&&n.nextButton!==!1&&n.nextButton.hide(),void 0!==n.prevButton&&n.prevButton!==!1&&n.prevButton.hide(),void 0!==n.pauseButton&&n.pauseButton!==!1&&n.pauseButton.hide(),void 0!==n.pauseIcon&&n.pauseIcon!==!1&&n.pauseIcon.hide(),void 0!==n.pagination&&n.pagination!==!1&&n.pagination.hide(),void 0!==t&&t(),n.destroyed(),n.container.removeData()},_initCustomKeyEvent:function(e){var t=this;switch(e){case"next":t.next();break;case"prev":t.prev();break;case"pause":t.pause(!0)}},_resetElements:function(e,t,n){var r=this;t.css(r._prefixCSS(e,{"transition-duration":n,"transition-delay":n,"transition-timing-function":""}))},_reverseTransitionProperties:function(){var t=this,n=[],r=[];t.currentFrameChildren.each(function(){n.push(parseFloat(e(this).css(t.transitionPrefix+"transition-duration").replace("s",""))+parseFloat(e(this).css(t.transitionPrefix+"transition-delay").replace("s","")))}),t.nextFrameChildren.each(function(){r.push(parseFloat(e(this).css(t.transitionPrefix+"transition-duration").replace("s",""))+parseFloat(e(this).css(t.transitionPrefix+"transition-delay").replace("s","")))});var i=Math.max.apply(Math,n),s=Math.max.apply(Math,r),o=i-s,u=0,f=0;0>o&&!t.settings.preventDelayWhenReversingAnimations?u=Math.abs(o):o>0&&(f=Math.abs(o));var l=function(n,r,i,s){function o(e){e=e.split(",")[0];var t={linear:"cubic-bezier(0.0,0.0,1.0,1.0)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1.0)","ease-in":"cubic-bezier(0.42, 0.0, 1.0, 1.0)","ease-in-out":"cubic-bezier(0.42, 0.0, 0.58, 1.0)","ease-out":"cubic-bezier(0.0, 0.0, 0.58, 1.0)"};return e.indexOf("cubic-bezier")<0&&(e=t[e]),e}r.each(function(){var r=parseFloat(e(this).css(t.transitionPrefix+"transition-duration").replace("s","")),u=parseFloat(e(this).css(t.transitionPrefix+"transition-delay").replace("s","")),f=e(this).css(t.transitionPrefix+"transition-timing-function");if(-1===f.indexOf("cubic"))var f=o(f);if(t.settings.reverseEaseWhenNavigatingBackwards){var l=f.replace("cubic-bezier(","").replace(")","").split(",");e.each(l,function(e,t){l[e]=parseFloat(t)});var h=[1-l[2],1-l[3],1-l[0],1-l[1]];f="cubic-bezier("+h+")"}var p=r+u;n["transition-duration"]=r+"s",n["transition-delay"]=i-p+s+"s",n["transition-timing-function"]=f,e(this).css(t._prefixCSS(t.transitionPrefix,n))})};l(t.transitionProperties,t.currentFrameChildren,i,u),l(t.transitionProperties,t.nextFrameChildren,s,f)},_prefixCSS:function(e,t){var n={};for(var r in t)n[e+r]=t[r];return n},_resetAutoPlay:function(e,t){var n=this;e===!0?n.settings.autoPlay&&!n.isSoftPaused&&(clearTimeout(n.autoPlayTimer),n.autoPlayTimer=setTimeout(function(){1===n.settings.autoPlayDirection?n.next():n.prev()},t)):clearTimeout(n.autoPlayTimer)},_renderUiElements:function(t,n){var r=this;switch(t){case!1:return void 0;case!0:return".sequence-preloader"===n&&r._defaultPreloader(r.container,r.transitionsSupported,r.animationPrefix),e(n,r.container);default:return e(t,r.container)}},_waitForAnimationsToComplete:function(t,n,r,i,s){var o=this;if("out"===r)var u=function(){o.afterCurrentFrameAnimatesOut(),o.settings.transitionThreshold===!0&&(1===s?o.nextFrame.addClass("animate-in"):-1===s&&o.nextFrame.toggleClass("animate-out animate-in"))};else if("in"===r)var u=function(){o.afterNextFrameAnimatesIn(),o._setHashTag(),o.active=!1,o.isHardPaused||o.isBeingHoveredOver||(o.delayUnpause?(o.delayUnpause=!1,o.unpause()):o.unpause(!1))};n.data("animationEnded",!1),t.bind(o.transitionEnd,function(r){e(r.target).data("animationEnded",!0);var i=!0;n.each(function(){return e(this).data("animationEnded")===!1?(i=!1,!1):void 0}),i&&(t.unbind(o.transitionEnd),u())})},_setHashTag:function(){var t=this;t.settings.hashTags&&(t.currentHashTag=t.nextFrame.prop(t.getHashTagFrom),t.frameHashIndex=e.inArray(t.currentHashTag,t.frameHashID),-1===t.frameHashIndex||!t.settings.hashChangesOnFirstFrame&&t.isStartingFrame&&t.transitionsSupported?(t.nextFrameID=t.settings.startingFrameID,t.isStartingFrame=!1):(t.nextFrameID=t.frameHashIndex+1,document.location.hash="#"+t.currentHashTag))},_modernizrForSequence:function(){window.ModernizrForSequence=function(e,t,n){function r(e){g.cssText=e}function i(e,t){return typeof e===t}function s(e,t){return!!~(""+e).indexOf(t)}function o(e,t){for(var r in e){var i=e[r];if(!s(i,"-")&&g[i]!==n)return"pfx"==t?i:!0}return!1}function u(e,t,r){for(var s in e){var o=t[e[s]];if(o!==n)return r===!1?e[s]:i(o,"function")?o.bind(r||t):o}return!1}function a(e,t,n){var r=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+b.join(r+" ")+r).split(" ");return i(t,"string")||i(t,"undefined")?o(s,t):(s=(e+" "+w.join(r+" ")+r).split(" "),u(s,t,n))}var f,l,c,h="2.6.1",p={},d=t.documentElement,v="modernizrForSequence",m=t.createElement(v),g=m.style,y=({}.toString,"Webkit Moz O ms"),b=y.split(" "),w=y.toLowerCase().split(" "),E={svg:"http://www.w3.org/2000/svg"},S={},x=[],T=x.slice,N={}.hasOwnProperty;c=i(N,"undefined")||i(N.call,"undefined")?function(e,t){return t in e&&i(e.constructor.prototype[t],"undefined")}:function(e,t){return N.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t=self;if("function"!=typeof t)throw new TypeError;var n=T.call(arguments,1),r=function(){if(self instanceof r){var i=function(){};i.prototype=t.prototype;var s=new i,o=t.apply(s,n.concat(T.call(arguments)));return Object(o)===o?o:s}return t.apply(e,n.concat(T.call(arguments)))};return r}),S.svg=function(){return!!t.createElementNS&&!!t.createElementNS(E.svg,"svg").createSVGRect};for(var C in S)c(S,C)&&(l=C.toLowerCase(),p[l]=S[C](),x.push((p[l]?"":"no-")+l));return p.addTest=function(e,t){if("object"==typeof e)for(var r in e)c(e,r)&&p.addTest(r,e[r]);else{if(e=e.toLowerCase(),p[e]!==n)return p;t="function"==typeof t?t():t,enableClasses&&(d.className+=" "+(t?"":"no-")+e),p[e]=t}return p},r(""),m=f=null,p._version=h,p._domPrefixes=w,p._cssomPrefixes=b,p.testProp=function(e){return o([e])},p.testAllProps=a,p.prefixed=function(e,t,n){return t?a(e,t,n):a(e,"pfx")},p}(self,self.document)},_defaultPreloader:function(t,n,r){var i='<div class="sequence-preloader"><svg class="preloading" xmlns="http://www.w3.org/2000/svg"><circle class="circle" cx="6" cy="6" r="6" /><circle class="circle" cx="22" cy="6" r="6" /><circle class="circle" cx="38" cy="6" r="6" /></svg></div>';e("head").append("<style>.sequence-preloader{height: 100%;position: absolute;width: 100%;z-index: 999999;}@"+r+"keyframes preload{0%{opacity: 1;}50%{opacity: 0;}100%{opacity: 1;}}.sequence-preloader .preloading .circle{fill: #ff9442;display: inline-block;height: 12px;position: relative;top: -50%;width: 12px;"+r+"animation: preload 1s infinite; animation: preload 1s infinite;}.preloading{display:block;height: 12px;margin: 0 auto;top: 50%;margin-top:-6px;position: relative;width: 48px;}.sequence-preloader .preloading .circle:nth-child(2){"+r+"animation-delay: .15s; animation-delay: .15s;}.sequence-preloader .preloading .circle:nth-child(3){"+r+"animation-delay: .3s; animation-delay: .3s;}.preloading-complete{opacity: 0;visibility: hidden;"+r+"transition-duration: 1s; transition-duration: 1s;}div.inline{background-color: #ff9442; margin-right: 4px; float: left;}</style>"),t.prepend(i),ModernizrForSequence.svg||n?n||setInterval(function(){e(".sequence-preloader").fadeToggle(500)},500):(e(".sequence-preloader").prepend('<div class="preloading"><div class="circle inline"></div><div class="circle inline"></div><div class="circle inline"></div></div>'),setInterval(function(){e(".sequence-preloader .circle").fadeToggle(500)},500))},_operaTest:function(){e("body").append('<span id="sequence-opera-test"></span>');var t=e("#sequence-opera-test");return t.css("-o-transition","1s"),"1s"!==t.css("-o-transition")?(t.remove(),!1):(t.remove(),!0)}};var r={startingFrameID:1,cycle:!0,animateStartingFrameIn:!1,transitionThreshold:!1,reverseAnimationsWhenNavigatingBackwards:!0,reverseEaseWhenNavigatingBackwards:!0,preventDelayWhenReversingAnimations:!1,moveActiveFrameToTop:!0,windowLoaded:!1,autoPlay:!1,autoPlayDirection:1,autoPlayDelay:5e3,navigationSkip:!0,navigationSkipThreshold:250,fadeFrameWhenSkipped:!0,fadeFrameTime:150,preventReverseSkipping:!1,nextButton:!1,showNextButtonOnInit:!0,prevButton:!1,showPrevButtonOnInit:!0,pauseButton:!1,unpauseDelay:null,pauseOnHover:!0,pauseIcon:!1,showPauseButtonOnInit:!0,pagination:!1,showPaginationOnInit:!0,preloader:!1,preloadTheseFrames:[1],preloadTheseImages:[],hideFramesUntilPreloaded:!0,prependPreloadingComplete:!0,hidePreloaderUsingCSS:!0,hidePreloaderDelay:0,keyNavigation:!0,numericKeysGoToFrames:!0,keyEvents:{left:"prev",right:"next"},customKeyEvents:{},swipeNavigation:!0,swipeThreshold:20,swipePreventsDefault:!1,swipeEvents:{left:"prev",right:"next",up:!1,down:!1},hashTags:!1,hashDataAttribute:!1,hashChangesOnFirstFrame:!1,fallback:{theme:"slide",speed:500}};e.fn.sequence=function(n){return this.each(function(){e.data(this,"sequence")||e.data(this,"sequence",new t(e(this),n,r))})}}(jQuery);jQuery(document).ready(function(e){function i(){var e=jQuery(window).height();jQuery(".kad-slider-wrapper .kad-slider").height(e);jQuery(".kad-slider-wrapper .kad-slider .kad-slider-canvas").height(e)}var t=e(".kad-slider-wrapper").attr("data-ktslider-auto-play"),n=e(".kad-slider-wrapper").attr("data-ktslider-pause-time"),r=e(".kad-slider-wrapper").attr("data-ktslider-height");if(r=="full"){i();var s;e(window).resize(function(){clearTimeout(s);s=setTimeout(i,100)})}if(e(".kad-slider").length>0){var o={animateStartingFrameIn:!1,autoPlay:t,autoPlayDelay:n,fadeFrameWhenSkipped:!0,fadeFrameTime:700,pagination:".kad-slider-pagination",nextButton:".kad-slider-next",prevButton:".kad-slider-prev"},u=jQuery(".kad-slider").sequence(o).data("sequence");u.afterLoaded=function(){jQuery(".kad-slider-wrapper .kad-slider").removeClass("kad-loading")}}});