/* * Liquid Slider 2.3.12 * Copyright 2012 Kevin Batdorf * http://liquidslider.com * MIT license */ "function"!=typeof Object.create&&(Object.create=function(e){"use strict";function i(){}return i.prototype=e,new i}),function(n,i,e,t){"use strict";n.fn.liquidSlider=function(i){return this.each(function(){var e=Object.create(LiquidSlider);e.init(i,this),n.data(this,"liquidSlider",e)})},n.fn.liquidSlider.options={autoHeight:!0,minHeight:0,heightEaseDuration:1500,heightEaseFunction:"easeInOutExpo",slideEaseDuration:1500,slideEaseFunction:"easeInOutExpo",slideEaseFunctionFallback:"swing",animateIn:"bounceInRight",animateOut:"bounceOutRight",continuous:!0,fadeInDuration:500,fadeOutDuration:500,autoSlide:!1,autoSlideDirection:"right",autoSlideInterval:6e3,forceAutoSlide:!1,pauseOnHover:!1,dynamicArrows:!0,dynamicArrowsGraphical:!0,dynamicArrowLeftText:"« left",dynamicArrowRightText:"right »",hideSideArrows:!1,hideSideArrowsDuration:750,hoverArrows:!0,hoverArrowDuration:250,dynamicTabs:!0,dynamicTabsHtml:!0,includeTitle:!0,panelTitleSelector:".title01",dynamicTabsAlign:"left",dynamicTabsPosition:"top",navElementTag:"div",firstPanelToLoad:1,hashLinking:!1,hashTitleSelector:".title01",keyboardNavigation:!1,leftKey:39,rightKey:37,panelKeys:{1:49,2:50,3:51,4:52},responsive:!0,mobileNavigation:!0,mobileNavDefaultText:"Menu",mobileUIThreshold:0,hideArrowsWhenMobile:!0,hideArrowsThreshold:0,useCSSMaxWidth:3e3,preload:function(){var e=this;jQuery(i).bind("load",function(){e.finalize()})},onload:function(){},pretransition:function(){this.transition()},callback:function(){},preloader:!1,swipe:!0,swipeArgs:void 0}}(jQuery,window,document);var LiquidSlider={init:function(e,i){var n=this;n.elem=i,n.$elem=jQuery(i),jQuery(".no-js").removeClass("no-js"),n.sliderId="#"+n.$elem.attr("id"),n.$sliderId=jQuery(n.sliderId),n.options=jQuery.extend({},jQuery.fn.liquidSlider.options,e),n.pSign=n.options.responsive?"%":"px",n.determineAnimationType(),n.options.responsive||(n.options.mobileNavigation=!1,n.options.hideArrowsWhenMobile=!1),"animate.css"===n.options.slideEaseFunction&&(n.useCSS?(n.options.continuous=!1,n.animateCSS=!0):n.options.slideEaseFunction=n.options.slideEaseFunctionFallback),n.build(),n.events(),!n.options.responsive&&n.options.dynamicArrows&&n.$sliderWrap.width(n.$sliderId.outerWidth(!0)+n.leftArrow.outerWidth(!0)+n.rightArrow.outerWidth(!0)),n.loaded=!0,n.options.preload.call(n)},build:function(){var e,i=this;"ls-wrapper"!==i.$sliderId.parent().attr("class")&&i.$sliderId.wrap('
'),i.$sliderWrap=jQuery(i.sliderId+"-wrapper"),i.options.preloader&&i.addPreloader(),jQuery(i.sliderId).children().addClass(i.$elem.attr("id")+"-panel ls-panel"),i.panelClass=i.sliderId+" ."+i.$elem.attr("id")+"-panel:not(.clone)",i.$panelClass=jQuery(i.panelClass),i.$panelClass.wrapAll('
'),i.$panelClass.wrapInner('
'),i.panelContainer=i.$panelClass.parent(),i.$panelContainer=i.panelContainer,i.options.hashLinking&&i.buildHashTags(),"fade"===i.options.slideEaseFunction&&(i.$panelClass.addClass("fade"),i.options.continuous=!1,i.fade=!0),i.options.dynamicTabs?i.addNavigation():i.options.mobileNavigation=!1,i.options.dynamicArrows?i.addArrows():(i.options.hoverArrows=!1,i.options.hideSideArrows=!1,i.options.hideArrowsWhenMobile=!1),e=i.$leftArrow&&"absolute"===i.$leftArrow.css("position")?0:1,i.totalSliderWidth=i.$sliderId.outerWidth(!0)+jQuery(i.$leftArrow).outerWidth(!0)*e+jQuery(i.$rightArrow).outerWidth(!0)*e,jQuery(i.$sliderWrap).css("width",i.totalSliderWidth),i.options.dynamicTabs&&i.alignNavigation(),i.options.hideSideArrows&&(i.options.continuous=!1),i.options.continuous&&(i.$panelContainer.prepend(i.$panelContainer.children().last().clone().addClass("clone")),i.$panelContainer.append(i.$panelContainer.children().eq(1).clone().addClass("clone")));var n=i.options.continuous?2:0;i.panelCount=jQuery(i.panelClass).length,i.panelCountTotal=i.fade?1:i.panelCount+n,i.panelWidth=jQuery(i.panelClass).outerWidth(),i.totalWidth=i.panelCountTotal*i.panelWidth,jQuery(i.sliderId+" .panel-container").css("width",i.totalWidth),i.slideDistance=i.options.responsive?100:jQuery(i.sliderId).outerWidth(),i.useCSS&&i.options.responsive&&(i.totalWidth=100*i.panelCountTotal,i.slideDistance=100/i.panelCountTotal),i.options.responsive&&i.makeResponsive(),i.prepareTransition(i.getFirstPanel(),!0),i.updateClass()},determineAnimationType:function(){var e=this,i="Webkit Moz O ms Khtml".split(" "),n="",t=0;if(e.useCSS=!1,e.elem.style.animationName&&(e.useCSS=!0),!1===e.useCSS)for(t=0;te.options.useCSSMaxWidth&&(e.useCSS=!1)},configureCSSTransitions:function(e,i){var n,t,o,a,s=this;s.easing={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)"},o=s.easing[s.options.slideEaseFunction]||s.options.slideEaseFunction,a=s.easing[s.options.heightEaseFunction]||s.options.heightEaseFunction,s.useCSS&&(n="all "+(e||s.options.slideEaseDuration)+"ms "+o,t="all "+(i||s.options.heightEaseDuration)+"ms "+a,jQuery(s.panelContainer).css({"-webkit-transition":n,"-moz-transition":n,"-ms-transition":n,"-o-transition":n,transition:n}),s.options.autoHeight&&s.$sliderId.css({"-webkit-transition":t,"-moz-transition":t,"-ms-transition":t,"-o-transition":t,transition:t}))},transitionFade:function(){var e=this;jQuery(e.panelClass).eq(e.nextPanel).fadeTo(e.options.fadeInDuration,1).css("z-index",1),jQuery(e.panelClass).eq(e.prevPanel).fadeTo(e.options.fadeOutDuration,0).css("z-index",0),e.callback(e.options.callback,!0)},hover:function(){var e=this;e.$sliderWrap.hover(function(){e.options.hoverArrows&&e.hideShowArrows(e.options.fadeInDuration,!0,!0,!1),e.options.pauseOnHover&&clearTimeout(e.autoSlideTimeout)},function(){e.options.hoverArrows&&e.hideShowArrows(e.options.fadeOutnDuration,!0,!1,!0),e.options.pauseOnHover&&e.options.autoSlide&&e.startAutoSlide(!0)})},events:function(){var e=this;e.options.dynamicArrows&&e.registerArrows(),e.options.dynamicTabs&&e.registerNav(),e.options.swipe&&e.registerTouch(),e.options.keyboardNavigation&&e.registerKeyboard(),e.$sliderWrap.find("*").on("click",function(){e.options.forceAutoSlide?e.startAutoSlide(!0):e.options.autoSlide&&e.stopAutoSlide()}),e.hover()},setNextPanel:function(e){var i=this;e!==i.nextPanel&&(i.prevPanel=i.nextPanel,i.loaded&&("number"==typeof e?i.nextPanel=e:(i.nextPanel+=~~("right"===e)||-1,i.options.continuous||(i.nextPanel=i.nextPanel<0?i.panelCount-1:i.nextPanel%i.panelCount)),i.fade||i.animateCSS?i.prepareTransition(i.nextPanel):i.verifyPanel()))},getFirstPanel:function(){var e,i=this;return i.options.hashLinking&&-1===(e=jQuery.inArray(i.convertRegex(window.location.hash),i.hashLinks))&&(e=0),e||i.options.firstPanelToLoad-1},getFromPanel:function(e,i){return this.convertRegex(this.$panelClass.find(e).eq(i).text())},convertRegex:function(e){return jQuery.trim(e).replace(/[^\w -]+/g,"").replace(/ +/g,"-").toLowerCase()},updateClass:function(e){var i=this;i.options.dynamicTabs&&jQuery(i.$sliderWrap).find("> .ls-nav .tab"+i.sanitizeNumber(i.nextPanel)).addClass("current").siblings().removeClass("current"),i.$panelClass.eq(i.sanitizeNumber(i.nextPanel)-1).addClass("currentPanel").siblings().removeClass("currentPanel"),i.$clones=jQuery(i.sliderId+" .clone"),!i.options.continuous||-1!==i.nextPanel&&i.nextPanel!==i.panelCount?i.$clones.removeClass("currentPanel"):i.$clones.addClass("currentPanel"),e&&($(".ls-current").removeClass("ls-current"),e.addClass("ls-current"))},sanitizeNumber:function(e){switch(!0){case e>=this.panelCount:return 1;case e<=-1:return this.panelCount;default:return e+1}},finalize:function(){var e=this,i=e.options.autoHeight?e.getHeight():e.getHeighestPanel(e.nextPanel);e.options.autoHeight&&e.adjustHeight(!0,i),e.options.autoSlide&&e.autoSlide(),e.options.preloader&&e.removePreloader(),e.onload()},callback:function(e,i){var n=this;e&&n.loaded&&(n.useCSS&&void 0!==i?jQuery(".panel-container").one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){e.call(n)}):setTimeout(function(){e.call(n)},n.options.slideEaseDuration+50))},onload:function(){this.options.onload.call(this)},prepareTransition:function(e,i,n,t){var o=this;o.nextPanel=e||0,n||o.pretransition(o.options.pretransition),o.noAnimation=i,o.noPosttransition=t,!o.loaded||n?o.transition():o.options.pretransition.call(o)},pretransition:function(){var e=this;e.options.hashLinking&&e.updateHashTags(),e.options.mobileNavigation&&e.dropdownSelect.val("tab"+(e.nextPanel+1)),e.options.hideSideArrows&&e.hideShowArrows(),e.updateClass()},getTransitionMargin:function(){return-this.nextPanel*this.slideDistance-this.slideDistance*~~this.options.continuous},transition:function(){var e=this,i=e.getTransitionMargin();if(e.animateCSS&&e.loaded)return e.transitionOutAnimateCSS(),!1;if(i+e.pSign!==e.panelContainer.css("margin-left")||-100!==i)switch(e.options.autoHeight&&!e.animateCSS&&e.adjustHeight(!0,e.getHeight()),!0){case e.fade:e.transitionFade();break;case e.animateCSS:e.transitionInAnimateCSS(i);break;case e.useCSS:e.transitionCSS(i,e.noAnimation);break;default:e.transitionjQuery(i,e.noAnimation)}e.noPosttransition||e.callback(e.options.callback)},transitionOutAnimateCSS:function(){var e=this;jQuery(e.panelClass).removeClass(e.options.animateIn+" animated"),jQuery(e.panelClass).eq(e.prevPanel).addClass("animated "+e.options.animateOut),e.callback(e.transitionInAnimateCSS,void 0)},transitionInAnimateCSS:function(){var e=this;e.options.autoHeight&&e.adjustHeight(!1,e.getHeight()),e.transitionCSS(e.getTransitionMargin(),!e.loaded),jQuery(e.panelClass).removeClass(e.options.animateOut+" animated"),jQuery(e.panelClass).eq(e.nextPanel).addClass("animated "+e.options.animateIn),e.callback(e.options.callback,void 0)},transitionCSS:function(e,i){var n=this;i&&n.configureCSSTransitions("0","0"),n.panelContainer.css({"-webkit-transform":"translate3d("+e+n.pSign+", 0, 0)","-moz-transform":"translate3d("+e+n.pSign+", 0, 0)","-ms-transform":"translate3d("+e+n.pSign+", 0, 0)","-o-transform":"translate3d("+e+n.pSign+", 0, 0)",transform:"translate3d("+e+n.pSign+", 0, 0)"}),i?n.callback(function(){n.configureCSSTransitions()}):n.configureCSSTransitions()},transitionjQuery:function(e,i){var n=this;i?n.panelContainer.css("margin-left",e+n.pSign):n.panelContainer.animate({"margin-left":e+n.pSign},{easing:jQuery.easing.hasOwnProperty(n.options.slideEaseFunction)?n.options.slideEaseFunction:n.options.slideEaseFunctionFallback,duration:n.options.slideEaseDuration,queue:!1})},getHeight:function(e){var i=this;return e=(e=e||i.$panelClass.eq(i.sanitizeNumber(i.nextPanel)-1).outerHeight(!0))e.panelCount:e.nextPanel=e.panelCount,e.setNextPanel(e.panelCount);break;case e.nextPanel<-1:e.nextPanel=-1,e.setNextPanel(-1);break;case i||e.nextPanel===e.panelCount||-1===e.nextPanel:e.prepareTransition(e.nextPanel),e.updateClass(),clearTimeout(n);var n=setTimeout(function(){e.nextPanel===e.panelCount?e.prepareTransition(0,!0,!0,!0):-1===e.nextPanel&&e.prepareTransition(e.panelCount-1,!0,!0,!0)},e.options.slideEaseDuration+50);break;default:i=!0,e.prepareTransition(e.nextPanel)}else e.nextPanel===e.panelCount?e.nextPanel=0:-1===e.nextPanel&&(e.nextPanel=e.panelCount-1),e.prepareTransition(e.nextPanel)},addNavigation:function(i){var n=this,e="<"+n.options.navElementTag+' class="ls-nav">";if("bottom"===n.options.dynamicTabsPosition?n.$sliderId.after(e):n.$sliderId.before(e),n.options.mobileNavigation){var t=n.options.mobileNavDefaultText?'":null,o='
";n.navigation=jQuery(n.sliderId+"-nav-ul").before(o),n.dropdown=jQuery(n.sliderId+"-wrapper .ls-select-box"),n.dropdownSelect=jQuery(n.sliderId+"-nav-select"),jQuery.each(n.$elem.find(n.options.panelTitleSelector),function(e){jQuery(n.$sliderWrap).find(".ls-select-box select").append('")})}jQuery.each(n.$elem.find(n.options.panelTitleSelector),function(e){jQuery(n.$sliderWrap).find(".ls-nav ul").append('
  • '+n.getNavInsides(this)+"
  • "),n.options.includeTitle||jQuery(this).remove()})},getNavInsides:function(e){return this.options.dynamicTabsHtml?jQuery(e).html():jQuery(e).text()},alignNavigation:function(){var e=this,i=e.options.dynamicArrowsGraphical?"-arrow":"";"center"!==e.options.dynamicTabsAlign&&(e.options.responsive||jQuery(e.$sliderWrap).find(".ls-nav ul").css("margin-"+e.options.dynamicTabsAlign,jQuery(e.$sliderWrap).find(".ls-nav-"+e.options.dynamicTabsAlign+i).outerWidth(!0)+parseInt(e.$sliderId.css("margin-"+e.options.dynamicTabsAlign),10)),jQuery(e.$sliderWrap).find(".ls-nav ul").css("float",e.options.dynamicTabsAlign)),e.totalNavWidth=jQuery(e.$sliderWrap).find(".ls-nav ul").outerWidth(!0),"center"===e.options.dynamicTabsAlign&&(e.totalNavWidth=0,jQuery(e.$sliderWrap).find(".ls-nav li a").each(function(){e.totalNavWidth+=jQuery(this).outerWidth(!0)}),jQuery(e.$sliderWrap).find(".ls-nav ul").css("width",e.totalNavWidth+1))},registerNav:function(){var i=this;i.$sliderWrap.find("[class^=ls-nav] li").on("click",function(e){return e.preventDefault(),i.setNextPanel(parseInt(jQuery(this).attr("class").split("tab")[1],10)-1),!1})},addArrows:function(e){var i=this,n=i.options.dynamicArrowsGraphical?"-arrow ":" ";i.$sliderWrap.addClass("arrows"),i.options.dynamicArrowsGraphical&&(i.options.dynamicArrowLeftText="",i.options.dynamicArrowRightText=""),i.$sliderId.before('"),i.$sliderId.after('"),i.leftArrow=jQuery(i.sliderId+"-wrapper [class^=ls-nav-left]").css("visibility","hidden").addClass("ls-hidden"),i.rightArrow=jQuery(i.sliderId+"-wrapper [class^=ls-nav-right]").css("visibility","hidden").addClass("ls-hidden"),i.options.hoverArrows||i.hideShowArrows(void 0,!0,!0,!1)},hideShowArrows:function(e,i,n,t){var o=this,a=void 0!==e?e:o.options.fadeOutDuration,s=void 0!==e?e:o.options.fadeInDuration,r=i?"visible":"hidden";n||!t&&1!==o.sanitizeNumber(o.nextPanel)?(n||o.leftArrow.hasClass("ls-hidden"))&&o.leftArrow.stop().css("visibility","visible").fadeTo(s,1).removeClass("ls-hidden"):o.leftArrow.stop().fadeTo(a,0,function(){jQuery(this).css("visibility",r).addClass("ls-hidden")}),n||!t&&o.sanitizeNumber(o.nextPanel)!==o.panelCount?(n||o.rightArrow.hasClass("ls-hidden"))&&o.rightArrow.stop().css("visibility","visible").fadeTo(s,1).removeClass("ls-hidden"):o.rightArrow.stop().fadeTo(a,0,function(){jQuery(this).css("visibility",r).addClass("ls-hidden")})},registerArrows:function(){var i=this;jQuery(i.$sliderWrap.find("[class^=ls-nav-]")).on("click",function(e){e.preventDefault(),i.setNextPanel(jQuery(this).attr("class").split(" ")[0].split("-")[2])})},adjustHeight:function(e,i,n,t){var o=this;if(e||o.useCSS)return e&&o.configureCSSTransitions("0","0"),o.$sliderId.height(i),void(e&&o.configureCSSTransitions());o.$sliderId.animate({height:i+"px"},{easing:jQuery.easing.hasOwnProperty(n||o.options.heightEaseFunction)?n||o.options.heightEaseFunction:o.options.slideEaseFunctionFallback,duration:t||o.options.heightEaseDuration,queue:!1})},autoSlide:function(){var e=this;e.options.autoSlideIntervale.options.heightEaseDuration?e.options.slideEaseDuration:e.options.heightEaseDuration),e.autoSlideTimeout=document.hasFocus()?setTimeout(function(){e.setNextPanel(e.options.autoSlideDirection),e.autoSlide()},e.options.autoSlideInterval):void 0,jQuery(window).on("focus",function(){e.startAutoSlide(!0)}),jQuery(window).on("blur",function(){e.stopAutoSlide()})},stopAutoSlide:function(){this.options.autoSlide=!1,clearTimeout(this.autoSlideTimeout)},startAutoSlide:function(e){var i=this;i.options.autoSlide=!0,e||i.setNextPanel(i.options.autoSlideDirection),i.autoSlide(clearTimeout(i.autoSlideTimeout))},buildHashTags:function(){var e=this;e.hashLinks=[],jQuery(e.panelClass+" "+e.options.hashTitleSelector).each(function(){e.hashLinks.push(e.convertRegex(jQuery(this).text()))})},updateHashTags:function(){window.location.hash=this.hashLinks[this.sanitizeNumber(this.nextPanel)-1]},registerKeyboard:function(){var t=this;jQuery(document).keydown(function(e){var n=e.keyCode||e.which;"textarea"!==e.target.type&&"textbox"!==e.target.type&&(t.options.forceAutoSlide||jQuery(this).trigger("click"),n===t.options.leftKey&&t.setNextPanel("right"),n===t.options.rightKey&&t.setNextPanel("left"),jQuery.each(t.options.panelKeys,function(e,i){n===i&&t.setNextPanel(e-1)}))})},addPreloader:function(){jQuery(this.sliderId+"-wrapper").append('
    ')},removePreloader:function(){jQuery(this.sliderId+"-wrapper .ls-preloader").fadeTo("slow",0,function(){jQuery(this).remove()})},makeResponsive:function(){var i=this;jQuery(i.sliderId+"-wrapper").addClass("ls-responsive").css({"max-width":jQuery(i.sliderId+" .ls-panel:first-child").width(),width:"100%"}),jQuery(i.sliderId+" .panel-container").css("width",100*i.panelCountTotal+i.pSign),jQuery(i.sliderId+" .ls-panel").css("width",100/i.panelCountTotal+i.pSign),i.options.hideArrowsWhenMobile&&(i.leftWrapperPadding=jQuery(i.sliderId+"-wrapper").css("padding-left"),i.rightWrapperPadding=i.$sliderWrap.css("padding-right")),i.responsiveEvents(),jQuery(window).bind("resize orientationchange",function(){i.responsiveEvents(),clearTimeout(i.resizingTimeout),i.resizingTimeout=setTimeout(function(){var e=i.options.autoHeight?i.getHeight():i.getHeighestPanel(i.nextPanel);i.adjustHeight(!1,e)},500)})},responsiveEvents:function(){var e=this,i=e.options.hideArrowsThreshold||e.options.mobileUIThreshold||e.totalNavWidth+10;e.$sliderId.outerWidth()