!function(b){"function"==typeof define&&define.amd?define(["jquery"],b):"object"==typeof exports?module.exports=b:b(jQuery)}(function(l){function m(a){var c=a||window.event,d=t.call(arguments,1),e=0,f=0,i=0,k=0,w=0,x=0;if(a=l.event.fix(c),a.type="mousewheel","detail" in c&&(i=-1*c.detail),"wheelDelta" in c&&(i=c.wheelDelta),"wheelDeltaY" in c&&(i=c.wheelDeltaY),"wheelDeltaX" in c&&(f=-1*c.wheelDeltaX),"axis" in c&&c.axis===c.HORIZONTAL_AXIS&&(f=-1*i,i=0),e=0===i?f:i,"deltaY" in c&&(i=-1*c.deltaY,e=i),"deltaX" in c&&(f=c.deltaX,0===i&&(e=-1*f)),0!==i||0!==f){if(1===c.deltaMode){var y=l.data(this,"mousewheel-line-height");e*=y,i*=y,f*=y}else{if(2===c.deltaMode){var z=l.data(this,"mousewheel-page-height");e*=z,i*=z,f*=z}}if(k=Math.max(Math.abs(i),Math.abs(f)),(!q||q>k)&&(q=k,o(c,k)&&(q/=40)),o(c,k)&&(e/=40,f/=40,i/=40),e=Math[e>=1?"floor":"ceil"](e/q),f=Math[f>=1?"floor":"ceil"](f/q),i=Math[i>=1?"floor":"ceil"](i/q),v.settings.normalizeOffset&&this.getBoundingClientRect){var A=this.getBoundingClientRect();w=a.clientX-A.left,x=a.clientY-A.top}return a.deltaX=f,a.deltaY=i,a.deltaFactor=q,a.offsetX=w,a.offsetY=x,a.deltaMode=0,d.unshift(a,e,f,i),p&&clearTimeout(p),p=setTimeout(n,200),(l.event.dispatch||l.event.handle).apply(this,d)}}function n(){q=null}function o(c,d){return v.settings.adjustOldDeltas&&"mousewheel"===c.type&&d%120===0}var p,q,r=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel" in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],t=Array.prototype.slice;if(l.event.fixHooks){for(var u=r.length;u;){l.event.fixHooks[r[--u]]=l.event.mouseHooks}}var v=l.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener){for(var a=s.length;a;){this.addEventListener(s[--a],m,!1)}}else{this.onmousewheel=m}l.data(this,"mousewheel-line-height",v.getLineHeight(this)),l.data(this,"mousewheel-page-height",v.getPageHeight(this))},teardown:function(){if(this.removeEventListener){for(var a=s.length;a;){this.removeEventListener(s[--a],m,!1)}}else{this.onmousewheel=null}l.removeData(this,"mousewheel-line-height"),l.removeData(this,"mousewheel-page-height")},getLineHeight:function(a){var e=l(a),f=e["offsetParent" in l.fn?"offsetParent":"parent"]();return f.length||(f=l("body")),parseInt(f.css("fontSize"),10)||parseInt(e.css("fontSize"),10)||16},getPageHeight:function(a){return l(a).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};l.fn.extend({mousewheel:function(b){return b?this.bind("mousewheel",b):this.trigger("mousewheel")},unmousewheel:function(b){return this.unbind("mousewheel",b)}})});!function(q,H){function C(a){q.fn.cycle.debug&&z(a)}function z(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function j(g,e,d){var a=q(g).data("cycle.opts");if(a){var f=!!g.cyclePause;f&&a.paused?a.paused(g,a,e,d):!f&&a.resumed&&a.resumed(g,a,e,d)}}function F(e,f,g){function c(m,i,a){if(!m&&i===!0){var l=q(a).data("cycle.opts");if(!l){return z("options not found, can not resume"),!1}a.cycleTimeout&&(clearTimeout(a.cycleTimeout),a.cycleTimeout=0),v(l.elements,l,1,!l.backwards)}}if(e.cycleStop===H&&(e.cycleStop=0),(f===H||null===f)&&(f={}),f.constructor==String){switch(f){case"destroy":case"stop":var d=q(e).data("cycle.opts");return d?(e.cycleStop++,e.cycleTimeout&&clearTimeout(e.cycleTimeout),e.cycleTimeout=0,d.elements&&q(d.elements).stop(),q(e).removeData("cycle.opts"),"destroy"==f&&D(e,d),!1):!1;case"toggle":return e.cyclePause=1===e.cyclePause?0:1,c(e.cyclePause,g,e),j(e),!1;case"pause":return e.cyclePause=1,j(e),!1;case"resume":return e.cyclePause=0,c(!1,g,e),j(e),!1;case"prev":case"next":return(d=q(e).data("cycle.opts"))?("string"==typeof g&&(d.oneTimeFx=g),q.fn.cycle[f](d),!1):(z('options not found, "prev/next" ignored'),!1);default:f={fx:f}}return f}if(f.constructor==Number){var h=f;return(f=q(e).data("cycle.opts"))?0>h||h>=f.elements.length?(z("invalid slide index: "+h),!1):(f.nextSlide=h,e.cycleTimeout&&(clearTimeout(e.cycleTimeout),e.cycleTimeout=0),"string"==typeof g&&(f.oneTimeFx=g),v(f.elements,f,1,h>=f.currSlide),!1):(z("options not found, can not advance slide"),!1)}return f}function G(d,c){if(!q.support.opacity&&c.cleartype&&d.style.filter){try{d.style.removeAttribute("filter")}catch(a){}}}function D(c,a){a.next&&q(a.next).unbind(a.prevNextEvent),a.prev&&q(a.prev).unbind(a.prevNextEvent),(a.pager||a.pagerAnchorBuilder)&&q.each(a.pagerAnchors||[],function(){this.unbind().remove()}),a.pagerAnchors=null,q(c).unbind("mouseenter.cycle mouseleave.cycle"),a.destroy&&a.destroy(a)}function b(K,U,L,c,m){var ab,aa=q.extend({},q.fn.cycle.defaults,c||{},q.metadata?K.metadata():q.meta?K.data():{}),Y=q.isFunction(K.data)?K.data(aa.metaAttr):null;Y&&(aa=q.extend(aa,Y)),aa.autostop&&(aa.countdown=aa.autostopCount||L.length);var W=K[0];if(K.data("cycle.opts",aa),aa.$cont=K,aa.stopCount=W.cycleStop,aa.elements=L,aa.before=aa.before?[aa.before]:[],aa.after=aa.after?[aa.after]:[],!q.support.opacity&&aa.cleartype&&aa.after.push(function(){G(this,aa)}),aa.continuous&&aa.after.push(function(){v(L,aa,0,!aa.backwards)}),A(aa),q.support.opacity||!aa.cleartype||aa.cleartypeNoBg||w(U),"static"==K.css("position")&&K.css("position","relative"),aa.width&&K.width(aa.width),aa.height&&"auto"!=aa.height&&K.height(aa.height),aa.startingSlide!==H?(aa.startingSlide=parseInt(aa.startingSlide,10),aa.startingSlide>=L.length||aa.startSlide<0?aa.startingSlide=0:ab=!0):aa.startingSlide=aa.backwards?L.length-1:0,aa.random){aa.randomMap=[];for(var Z=0;Z=L.length&&(aa.startingSlide=0)}aa.currSlide=aa.startingSlide||0;var s=aa.startingSlide;U.css({position:"absolute",top:0,left:0}).hide().each(function(h){var a;a=aa.backwards?s?s>=h?L.length+(h-s):s-h:L.length-h:s?h>=s?L.length-(h-s):s-h:L.length-h,q(this).css("z-index",a)}),q(L[s]).css("opacity",1).show(),G(L[s],aa),aa.fit&&(aa.aspect?U.each(function(){var h=q(this),a=aa.aspect===!0?h.width()/h.height():aa.aspect;aa.width&&h.width()!=aa.width&&(h.width(aa.width),h.height(aa.width/a)),aa.height&&h.height()d?Q:d,X=g>X?g:X}aa.containerResize&&d>0&&X>0&&K.css({width:d+"px",height:X+"px"}),aa.containerResizeHeight&&X>0&&K.css({height:X+"px"})}var p=!1;if(aa.pause&&K.bind("mouseenter.cycle",function(){p=!0,this.cyclePause++,j(W,!0)}).bind("mouseleave.cycle",function(){p&&this.cyclePause--,j(W,!0)}),I(aa)===!1){return !1}var ac=!1;if(c.requeueAttempts=c.requeueAttempts||0,U.each(function(){var h=q(this);if(this.cycleH=aa.fit&&aa.height?aa.height:h.height()||this.offsetHeight||this.height||h.attr("height")||0,this.cycleW=aa.fit&&aa.width?aa.width:h.width()||this.offsetWidth||this.width||h.attr("width")||0,h.is("img")){var a=0===this.cycleH&&0===this.cycleW&&!this.complete;if(a){if(m.s&&aa.requeueOnImageNotLoaded&&++c.requeueAttempts<100){return z(c.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){q(m.s,m.c).cycle(c)},aa.requeueTimeout),ac=!0,!1}z("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}return !0}),ac){return !1}if(aa.cssBefore=aa.cssBefore||{},aa.cssAfter=aa.cssAfter||{},aa.cssFirst=aa.cssFirst||{},aa.animIn=aa.animIn||{},aa.animOut=aa.animOut||{},U.not(":eq("+s+")").css(aa.cssBefore),q(U[s]).css(aa.cssFirst),aa.timeout){aa.timeout=parseInt(aa.timeout,10),aa.speed.constructor==String&&(aa.speed=q.fx.speeds[aa.speed]||parseInt(aa.speed,10)),aa.sync||(aa.speed=aa.speed/2);for(var i="none"==aa.fx?0:"shuffle"==aa.fx?500:250;aa.timeout-aa.speed=L.length-1?0:aa.startingSlide+1,!aa.multiFx){var u=q.fn.cycle.transitions[aa.fx];if(q.isFunction(u)){u(K,U,aa)}else{if("custom"!=aa.fx&&!aa.multiFx){return z("unknown transition: "+aa.fx,"; slideshow terminating"),!1}}}var V=U[s];return aa.skipInitializationCallbacks||(aa.before.length&&aa.before[0].apply(V,[V,V,aa,!0]),aa.after.length&&aa.after[0].apply(V,[V,V,aa,!0])),aa.next&&q(aa.next).bind(aa.prevNextEvent,function(){return E(aa,1)}),aa.prev&&q(aa.prev).bind(aa.prevNextEvent,function(){return E(aa,0)}),(aa.pager||aa.pagerAnchorBuilder)&&B(L,aa),k(aa,L),aa}function A(a){a.original={before:[],after:[]},a.original.cssBefore=q.extend({},a.cssBefore),a.original.cssAfter=q.extend({},a.cssAfter),a.original.animIn=q.extend({},a.animIn),a.original.animOut=q.extend({},a.animOut),q.each(a.before,function(){a.original.before.push(this)}),q.each(a.after,function(){a.original.after.push(this)})}function I(m){var e,h,i=q.fn.cycle.transitions;if(m.fx.indexOf(",")>0){for(m.multiFx=!0,m.fxs=m.fx.replace(/\s*/g,"").split(","),e=0;ee;e++){var n=Math.floor(Math.random()*m.fxs.length);m.fxs.push(m.fxs.splice(n,1)[0])}C("randomized fx sequence: ",m.fxs)}return !0}function k(c,a){c.addSlide=function(e,d){var f=q(e),g=f[0];c.autostopCount||c.countdown++,a[d?"unshift":"push"](g),c.els&&c.els[d?"unshift":"push"](g),c.slideCount=a.length,c.random&&(c.randomMap.push(c.slideCount-1),c.randomMap.sort(function(){return Math.random()-0.5})),f.css("position","absolute"),f[d?"prependTo":"appendTo"](c.$cont),d&&(c.currSlide++,c.nextSlide++),q.support.opacity||!c.cleartype||c.cleartypeNoBg||w(f),c.fit&&c.width&&f.width(c.width),c.fit&&c.height&&"auto"!=c.height&&f.height(c.height),g.cycleH=c.fit&&c.height?c.height:f.height(),g.cycleW=c.fit&&c.width?c.width:f.width(),f.css(c.cssBefore),(c.pager||c.pagerAnchorBuilder)&&q.fn.cycle.createPagerAnchor(a.length-1,g,q(c.pager),a,c),q.isFunction(c.onAddSlide)?c.onAddSlide(f):f.hide()}}function v(t,f,N,O){function L(){var a=0;f.timeout;f.timeout&&!f.continuous?(a=x(t[f.currSlide],t[f.nextSlide],f,O),"shuffle"==f.fx&&(a-=f.speedOut)):f.continuous&&e.cyclePause&&(a=10),a>0&&(e.cycleTimeout=setTimeout(function(){v(t,f,0,!f.backwards)},a))}var e=f.$cont[0],y=t[f.currSlide],P=t[f.nextSlide];if(N&&f.busy&&f.manualTrump&&(C("manualTrump in go(), stopping active transition"),q(t).stop(!0,!0),f.busy=0,clearTimeout(e.cycleTimeout)),f.busy){return void C("transition active, ignoring new tx request")}if(e.cycleStop==f.stopCount&&(0!==e.cycleTimeout||N)){if(!N&&!e.cyclePause&&!f.bounce&&(f.autostop&&--f.countdown<=0||f.nowrap&&!f.random&&f.nextSlide=f.fxs.length)?f.lastFx=0:!O&&(f.lastFx===H||--f.lastFx<0)&&(f.lastFx=f.fxs.length-1),M=f.fxs[f.lastFx]),f.oneTimeFx&&(M=f.oneTimeFx,f.oneTimeFx=null),q.fn.cycle.resetState(f,M),f.before.length&&q.each(f.before,function(a,c){e.cycleStop==f.stopCount&&c.apply(P,[y,P,f,O])});var K=function(){f.busy=0,q.each(f.after,function(a,c){e.cycleStop==f.stopCount&&c.apply(P,[y,P,f,O])}),e.cycleStop||L()};C("tx firing("+M+"); currSlide: "+f.currSlide+"; nextSlide: "+f.nextSlide),f.busy=1,f.fxFn?f.fxFn(y,P,f,K,O,N&&f.fastOnEvent):q.isFunction(q.fn.cycle[f.fx])?q.fn.cycle[f.fx](y,P,f,K,O,N&&f.fastOnEvent):q.fn.cycle.custom(y,P,f,K,O,N&&f.fastOnEvent)}if(h||f.nextSlide==f.currSlide){var n;f.lastSlide=f.currSlide,f.random?(f.currSlide=f.nextSlide,++f.randomIndex==t.length&&(f.randomIndex=0,f.randomMap.sort(function(){return Math.random()-0.5})),f.nextSlide=f.randomMap[f.randomIndex],f.nextSlide==f.currSlide&&(f.nextSlide=f.currSlide==f.slideCount-1?0:f.currSlide+1)):f.backwards?(n=f.nextSlide-1<0,n&&f.bounce?(f.backwards=!f.backwards,f.nextSlide=1,f.currSlide=0):(f.nextSlide=n?t.length-1:f.nextSlide-1,f.currSlide=n?0:f.nextSlide+1)):(n=f.nextSlide+1==t.length,n&&f.bounce?(f.backwards=!f.backwards,f.nextSlide=t.length-2,f.currSlide=t.length-1):(f.nextSlide=n?0:f.nextSlide+1,f.currSlide=n?t.length-1:f.nextSlide-1))}h&&f.pager&&f.updateActivePagerLink(f.pager,f.currSlide,f.activePagerClass)}}function x(d,h,f,a){if(f.timeoutFn){for(var g=f.timeoutFn.call(d,d,h,f,a);"none"!=f.fx&&g-f.speed<250;){g+=f.speed}if(C("calculated timeout: "+g+"; speed: "+f.speed),g!==!1){return g}}return f.timeout}function E(l,e){var d=e?1:-1,a=l.elements,g=l.$cont[0],h=g.cycleTimeout;if(h&&(clearTimeout(h),g.cycleTimeout=0),l.random&&0>d){l.randomIndex--,-2==--l.randomIndex?l.randomIndex=a.length-2:-1==l.randomIndex&&(l.randomIndex=a.length-1),l.nextSlide=l.randomMap[l.randomIndex]}else{if(l.random){l.nextSlide=l.randomMap[l.randomIndex]}else{if(l.nextSlide=l.currSlide+d,l.nextSlide<0){if(l.nowrap){return !1}l.nextSlide=a.length-1}else{if(l.nextSlide>=a.length){if(l.nowrap){return !1}l.nextSlide=0}}}}var f=l.onPrevNextEvent||l.prevNextClick;return q.isFunction(f)&&f(d>0,l.nextSlide,a[l.nextSlide]),v(a,l,1,e),!1}function B(d,c){var a=q(c.pager);q.each(d,function(e,f){q.fn.cycle.createPagerAnchor(e,f,a,d,c)}),c.updateActivePagerLink(c.pager,c.startingSlide,c.activePagerClass)}function w(e){function d(c){return c=parseInt(c,10).toString(16),c.length<2?"0"+c:c}function a(h){for(;h&&"html"!=h.nodeName.toLowerCase();h=h.parentNode){var g=q.css(h,"background-color");if(g&&g.indexOf("rgb")>=0){var f=g.match(/\d+/g);return"#"+d(f[0])+d(f[1])+d(f[2])}if(g&&"transparent"!=g){return g}}return"#ffffff"}C("applying clearType background-color hack"),e.each(function(){q(this).css("background-color",a(this))})}var J="3.0.3";q.expr[":"].paused=function(a){return a.cyclePause},q.fn.cycle=function(e,a){var d={s:this.selector,c:this.context};return 0===this.length&&"stop"!=e?!q.isReady&&d.s?(z("DOM not ready, queuing slideshow"),q(function(){q(d.s,d.c).cycle(e,a)}),this):(z("terminating; zero elements found by selector"+(q.isReady?"":" (DOM not ready)")),this):this.each(function(){var h=F(this,e,a);if(h!==!1){h.updateActivePagerLink=h.updateActivePagerLink||q.fn.cycle.updateActivePagerLink,this.cycleTimeout&&clearTimeout(this.cycleTimeout),this.cycleTimeout=this.cyclePause=0,this.cycleStop=0;var f=q(this),n=h.slideExpr?q(h.slideExpr,this):f.children(),c=n.get();if(c.length<2){return void z("terminating; too few slides: "+c.length)}var i=b(f,n,c,h,d);if(i!==!1){var g=i.continuous?10:x(c[i.currSlide],c[i.nextSlide],i,!i.backwards);g&&(g+=i.delay||0,10>g&&(g=10),C("first timeout: "+g),this.cycleTimeout=setTimeout(function(){v(c,i,0,!h.backwards)},g))}}})},q.fn.cycle.resetState=function(d,c){c=c||d.fx,d.before=[],d.after=[],d.cssBefore=q.extend({},d.original.cssBefore),d.cssAfter=q.extend({},d.original.cssAfter),d.animIn=q.extend({},d.original.animIn),d.animOut=q.extend({},d.original.animOut),d.fxFn=null,q.each(d.original.before,function(){d.before.push(this)}),q.each(d.original.after,function(){d.after.push(this)});var a=q.fn.cycle.transitions[c];q.isFunction(a)&&a(d.$cont,q(d.elements),d)},q.fn.cycle.updateActivePagerLink=function(d,c,a){q(d).each(function(){q(this).children().removeClass(a).eq(c).addClass(a)})},q.fn.cycle.next=function(a){E(a,1)},q.fn.cycle.prev=function(a){E(a,0)},q.fn.cycle.createPagerAnchor=function(M,g,K,L,n){var c;if(q.isFunction(n.pagerAnchorBuilder)?(c=n.pagerAnchorBuilder(M,g),C("pagerAnchorBuilder("+M+", el) returned: "+c)):c=''+(M+1)+"",c){var m=q(c);if(0===m.parents("body").length){var N=[];K.length>1?(K.each(function(){var a=m.clone(!0);q(this).append(a),N.push(a[0])}),m=q(N)):m.appendTo(K)}n.pagerAnchors=n.pagerAnchors||[],n.pagerAnchors.push(m);var e=function(h){h.preventDefault(),n.nextSlide=M;var d=n.$cont[0],a=d.cycleTimeout;a&&(clearTimeout(a),d.cycleTimeout=0);var l=n.onPagerEvent||n.pagerClick;q.isFunction(l)&&l(n.nextSlide,L[n.nextSlide]),v(L,n,1,n.currSlidef?a-f:d.slideCount-f:f>a?f-a:f+d.slideCount-a},q.fn.cycle.commonReset=function(h,e,d,a,f,g){q(d.elements).not(h).hide(),"undefined"==typeof d.cssBefore.opacity&&(d.cssBefore.opacity=1),d.cssBefore.display="block",d.slideResize&&a!==!1&&e.cycleW>0&&(d.cssBefore.width=e.cycleW),d.slideResize&&f!==!1&&e.cycleH>0&&(d.cssBefore.height=e.cycleH),d.cssAfter=d.cssAfter||{},d.cssAfter.display="none",q(h).css("zIndex",d.slideCount+(g===!0?1:0)),q(e).css("zIndex",d.slideCount+(g===!0?0:1))},q.fn.cycle.custom=function(U,P,M,g,S,T){var Q=q(U),e=q(P),N=M.speedIn,V=M.speedOut,y=M.easeIn,K=M.easeOut,L=M.animInDelay,R=M.animOutDelay;e.css(M.cssBefore),T&&(N=V="number"==typeof T?T:1,y=K=null);var O=function(){e.delay(L).animate(M.animIn,N,y,function(){g()})};Q.delay(R).animate(M.animOut,V,K,function(){Q.css(M.cssAfter),M.sync||O()}),M.sync&&O()},q.fn.cycle.transitions={fade:function(d,c,a){c.not(":eq("+a.currSlide+")").css("opacity",0),a.before.push(function(g,f,e){q.fn.cycle.commonReset(g,f,e),e.cssBefore.opacity=0}),a.animIn={opacity:1},a.animOut={opacity:0},a.cssBefore={top:0,left:0}}},q.fn.cycle.ver=function(){return J},q.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:!1,animIn:null,animInDelay:0,animOut:null,animOutDelay:0,aspect:!1,autostop:0,autostopCount:0,backwards:!1,before:null,center:null,cleartype:!q.support.opacity,cleartypeNoBg:!1,containerResize:1,containerResizeHeight:0,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:!0,metaAttr:"cycle",next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:!0,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:!1,slideExpr:null,slideResize:1,speed:1000,speedIn:null,speedOut:null,startingSlide:H,sync:1,timeout:4000,timeoutFn:null,updateActivePagerLink:null,width:null}}(jQuery),function(a){a.fn.cycle.transitions.none=function(d,c,b){b.fxFn=function(h,g,f,e){a(g).show(),a(h).hide(),e()}},a.fn.cycle.transitions.fadeout=function(d,c,b){c.not(":eq("+b.currSlide+")").css({display:"block",opacity:1}),b.before.push(function(k,g,f,e,h,j){a(k).css("zIndex",f.slideCount+(j!==!0?1:0)),a(g).css("zIndex",f.slideCount+(j!==!0?0:1))}),b.animIn.opacity=1,b.animOut.opacity=0,b.cssBefore.opacity=1,b.cssBefore.display="block",b.cssAfter.zIndex=0},a.fn.cycle.transitions.scrollUp=function(f,e,d){f.css("overflow","hidden"),d.before.push(a.fn.cycle.commonReset);var b=f.height();d.cssBefore.top=b,d.cssBefore.left=0,d.cssFirst.top=0,d.animIn.top=0,d.animOut.top=-b},a.fn.cycle.transitions.scrollDown=function(f,e,d){f.css("overflow","hidden"),d.before.push(a.fn.cycle.commonReset);var b=f.height();d.cssFirst.top=0,d.cssBefore.top=-b,d.cssBefore.left=0,d.animIn.top=0,d.animOut.top=b},a.fn.cycle.transitions.scrollLeft=function(f,e,d){f.css("overflow","hidden"),d.before.push(a.fn.cycle.commonReset);var b=f.width();d.cssFirst.left=0,d.cssBefore.left=b,d.cssBefore.top=0,d.animIn.left=0,d.animOut.left=0-b},a.fn.cycle.transitions.scrollRight=function(f,e,d){f.css("overflow","hidden"),d.before.push(a.fn.cycle.commonReset);var b=f.width();d.cssFirst.left=0,d.cssBefore.left=-b,d.cssBefore.top=0,d.animIn.left=0,d.animOut.left=b},a.fn.cycle.transitions.scrollHorz=function(d,c,b){d.css("overflow","hidden").width(),b.before.push(function(h,g,f,e){f.rev&&(e=!e),a.fn.cycle.commonReset(h,g,f),f.cssBefore.left=e?g.cycleW-1:1-g.cycleW,f.animOut.left=e?-h.cycleW:h.cycleW}),b.cssFirst.left=0,b.cssBefore.top=0,b.animIn.left=0,b.animOut.top=0},a.fn.cycle.transitions.scrollVert=function(d,c,b){d.css("overflow","hidden"),b.before.push(function(h,g,f,e){f.rev&&(e=!e),a.fn.cycle.commonReset(h,g,f),f.cssBefore.top=e?1-g.cycleH:g.cycleH-1,f.animOut.top=e?h.cycleH:-h.cycleH}),b.cssFirst.top=0,b.cssBefore.left=0,b.animIn.top=0,b.animOut.left=0}}(jQuery);!(function(a){a.fn.kenburns=function(P){function B(){var b=new Date;return b.getTime()-D}function X(b,g,d,f,c){return{x:b+(d-b)*c,y:g+(f-g)*c}}function j(b,g,d){var f=X(b[0],b[1],g[0],g[1],d);var c=X(b[2],b[3],g[2],g[3],d);return[f.x,f.y,c.x,c.y]}function V(b,l){var d=b[2]-b[0];var g=b[3]-b[1];var c=(b[2]+b[0])/2;var h=(b[3]+b[1])/2;var f=d*l;var m=g*l;return[c-f/2,h-m/2,c+f/2,h+m/2]}function z(c,v,h,m){var g=c/v;var p=h/m;var l=v*p;var w=v;if(l>c){var l=c;var w=c/p}var b=(c-l)/2;var d=(v-w)/2;return[b,d,b+l,d+w]}function O(b,f){var c=G[b];if(!c.initialized){var d=new Image;c.image=d;c.loaded=false;d.onload=function(){c.loaded=true;var r=d.width;var v=d.height;var g=z(r,v,M,J);var n=V(g,q);var s=Math.floor(Math.random()*3)-1;var m=Math.floor(Math.random()*3)-1;s/=2;m/=2;var o=n[0];n[0]+=o*s;n[2]+=o*s;var t=n[1];n[1]+=t*m;n[3]+=t*m;if(b%2){c.r1=g;c.r2=n}else{c.r1=n;c.r2=g}if(f){f()}};c.initialized=true;d.src=c.path}return c}function W(c,g,f){if(g>1){return}var d=O(c);if(d.loaded){var h=j(d.r1,d.r2,g);var b=Math.min(1,f);if(b>0){L.save();L.globalAlpha=Math.min(1,b);L.drawImage(d.image,h[0],h[1],h[2]-h[0],h[3]-h[1],0,0,M,J);L.restore()}}}function Q(){L.save();L.globalAlpha=1;L.fillStyle=U;L.fillRect(0,0,L.canvas.width,L.canvas.height);L.restore()}function I(){function v(c){return(c+G.length)%G.length}var d=B();var g=Math.floor(d/(e-A));var t=g*(e-A);var n=d-t;if(n ul li:has(ul)").on("mouseenter",function(){if(jQuery(window).width()>d){var e=jQuery(this);e.addClass("active-parent");e.find("> .children, > .sub-menu").stop(true).delay(150).slideDown(200)}}).on("mouseleave",function(){if(jQuery(window).width()>d){var e=jQuery(this);e.find("> .children, > .sub-menu").stop(true).delay(150).slideUp(150,function(){e.removeClass("active-parent")})}});jQuery("#header nav #menu-burger").on("click",function(){jQuery("#header nav #menu").toggleClass("menu-shown")});var b=jQuery(".kenburns-gallery.gallery");if(b.length>0){var c=[];b.find(".gallery-icon img").each(function(){c.push(jQuery(this).attr("src"))});jQuery("#kenburns").attr("width",jQuery(window).width());jQuery("#kenburns").attr("height",jQuery(window).height());jQuery("#kenburns").kenburns({images:c,frames_per_second:30,display_time:7500,fade_time:1000,zoom:1.4,background_color:"#F7F6F5"})}jQuery("body.home.loading").height(jQuery(window).height());jQuery("a:not(#gallery-filter a, #grid-changer a)").on("click",function(f){var g=a(this).attr("href");if(a(this).attr("target")!="_blank"&&g.indexOf(".jpg")<0&&g.indexOf(".jpeg")<0&&g.indexOf(".png")<0&&g.indexOf(".gif")<0&&g.indexOf("#")<0){a(".loadreveal").removeClass("reveal");setTimeout(function(){window.location.href=g},400);f.preventDefault()}});a(document).ready(function(){a(".flippy").flippy({interval:4,speed:500,stop:false,distance:"100px"})});a(document).ready(function(){a("#main-carousel").owlCarousel({autoPlay:3000,items:8,autoHeight:true,lazyLoad:true,navigation:false,itemsDesktop:[1199,6],itemsDesktopSmall:[979,4],itemsMobile:[479,2]})});jQuery(window).load(function(){jQuery(".loadreveal").addClass("reveal");jQuery("#loadscreen").stop().animate({opacity:0},200,function(){jQuery("body.home").removeClass("loading");jQuery(this).hide()})})})(jQuery);