(function(n){"use strict";n.fn.maximage=function(t){function u(n){window.console&&window.console.log&&window.console.log(n)}var r;(typeof t=="object"||t===undefined)&&(r=n.extend(n.fn.maximage.defaults,t||{})),typeof t=="string"&&(r=n.fn.maximage.defaults),n.Body=n("body"),n.Window=n(window),n.Scroll=n("html, body"),n.Events={RESIZE:"resize"},this.each(function(){var i=n(this),s=0,v=[],h={setup:function(){var r,u,t;if(n.Slides.length>0){for(u=n.Slides.length,r=0;r<u;r++)t=n.Slides[r],i.append('<div class="mc-image '+t.theclass+'" title="'+t.alt+'" style="background-image:url(\''+t.url+"');"+t.style+'" data-href="'+t.datahref+'">'+t.content+"</div>");h.preload(0),h.resize()}},preload:function(t){var u=n("<img/>");u.load(function(){if(s==0&&(l.setup(),r.onFirstImageLoaded()),s==n.Slides.length-1)r.onImagesLoaded(i);else s++,h.preload(s)}),u[0].src=n.Slides[t].url,v.push(u[0])},resize:function(){n.Window.bind(n.Events.RESIZE,function(){n.Scroll.addClass("mc-hide-scrolls"),n.Window.data("h",f.sizes().h).data("w",f.sizes().w),i.height(n.Window.data("h")).width(n.Window.data("w")).children().height(n.Window.data("h")).width(n.Window.data("w")),i.children().each(function(){this.cycleH=n.Window.data("h"),this.cycleW=n.Window.data("w")}),n(n.Scroll).removeClass("mc-hide-scrolls")})}},e={setup:function(){var u,h,o,t,s=n.Slides.length;if(n.BrowserTests.msie&&!r.overrideMSIEStop&&document.execCommand("Stop",!1),i.html(""),n.Body.addClass("mc-old-browser"),n.Slides.length>0){for(n.Scroll.addClass("mc-hide-scrolls"),n.Window.data("h",f.sizes().h).data("w",f.sizes().w),n("body").append(n("<div></div>").attr("class","mc-loader").css({position:"absolute",left:"-9999px"})),t=0;t<s;t++)u=n.Slides[t].content.length==0?'<img src="'+n.Slides[t].url+'" />':n.Slides[t].content,o=n("<div>"+u+"</div>").attr("class","mc-image mc-image-n"+t+" "+n.Slides[t].theclass),i.append(o),n(".mc-image-n"+t).children("img").length==0||n("div.mc-loader").append(n(".mc-image-n"+t).children("img").first().clone().addClass("not-loaded"));e.preload(),e.windowResize()}},preload:function(){var t=setInterval(function(){n(".mc-loader").children("img").each(function(t){var i=n(this),r;if(i.hasClass("not-loaded")&&i.height()>0){n(this).removeClass("not-loaded"),r=n("div.mc-image-n"+t).children("img").first(),r.data("h",i.height()).data("w",i.width()).data("ar",i.width()/i.height());e.onceLoaded(t)}}),n(".not-loaded").length==0&&(n(".mc-loader").remove(),clearInterval(t))},1e3)},onceLoaded:function(t){if(e.maximage(t),t==0)i.css({visibility:"visible"}),r.onFirstImageLoaded();else if(t==n.Slides.length-1){l.setup(),n(n.Scroll).removeClass("mc-hide-scrolls");r.onImagesLoaded(i);r.debug&&(u(" - Final Maximage - "),u(i))}},maximage:function(t){n("div.mc-image-n"+t).height(n.Window.data("h")).width(n.Window.data("w")).children("img").first().each(function(){o.maxcover(n(this))})},windowResize:function(){n.Window.bind(n.Events.RESIZE,function(){clearTimeout(this.id),n(".mc-image").length>=1&&(this.id=setTimeout(e.doneResizing,200))})},doneResizing:function(){n(n.Scroll).addClass("mc-hide-scrolls"),n.Window.data("h",f.sizes().h).data("w",f.sizes().w),i.height(n.Window.data("h")).width(n.Window.data("w")),i.find(".mc-image").each(function(n){e.maximage(n)});var t=i.data("cycle.opts");t!=undefined&&(t.height=n.Window.data("h"),t.width=n.Window.data("w"),jQuery.each(t.elements,function(t,i){i.cycleW=n.Window.data("w"),i.cycleH=n.Window.data("h")})),n(n.Scroll).removeClass("mc-hide-scrolls")}},l={setup:function(){var e,u,t;i.addClass("mc-cycle"),n.Window.data("h",f.sizes().h).data("w",f.sizes().w),jQuery.easing.easeForCSSTransition=function(n,t,i,r){return i+r},t=n.extend({fit:1,containerResize:0,height:n.Window.data("h"),width:n.Window.data("w"),slideResize:!1,easing:n.BrowserTests.cssTransitions&&r.cssTransitions?"easeForCSSTransition":"swing"},r.cycleOptions),i.cycle(t)}},o={center:function(t){r.verticalCenter&&t.css({marginTop:(t.height()-n.Window.data("h"))/-2}),r.horizontalCenter&&t.css({marginLeft:(t.width()-n.Window.data("w"))/-2})},fill:function(t){var i=t.is("object")?t.parent().first():t;typeof r.backgroundSize=="function"?r.backgroundSize(t):r.backgroundSize=="cover"?n.Window.data("w")/n.Window.data("h")<i.data("ar")?t.height(n.Window.data("h")).width((n.Window.data("h")*i.data("ar")).toFixed(0)):t.height((n.Window.data("w")/i.data("ar")).toFixed(0)).width(n.Window.data("w")):r.backgroundSize=="contain"?n.Window.data("w")/n.Window.data("h")<i.data("ar")?t.height((n.Window.data("w")/i.data("ar")).toFixed(0)).width(n.Window.data("w")):t.height(n.Window.data("h")).width((n.Window.data("h")*i.data("ar")).toFixed(0)):u("The backgroundSize option was not recognized for older browsers.")},maxcover:function(n){o.fill(n),o.center(n)},maxcontain:function(n){o.fill(n),o.center(n)}},f={browser_tests:function(){var o=n("<div />")[0],s=["Moz","Webkit","Khtml","O","ms"],i="transition",t={cssTransitions:!1,cssBackgroundSize:"backgroundSize"in o.style&&r.cssBackgroundSize,html5Video:!1,msie:!1},e;if(r.cssTransitions)for(typeof o.style[i]=="string"&&(t.cssTransitions=!0),i=i.charAt(0).toUpperCase()+i.substr(1),e=0;e<s.length;e++)s[e]+i in o.style&&(t.cssTransitions=!0);return!document.createElement("video").canPlayType||(t.html5Video=!0),t.msie=f.msie()!==undefined,r.debug&&(u(" - Browser Test - "),u(t)),t},construct_slide_object:function(){var t={},f=[],e="";return i.children().each(function(){var r=n(this).is("img")?n(this).clone():n(this).find("img").first().clone();t={},t.url=r.attr("src"),t.title=r.attr("title")!=undefined?r.attr("title"):"",t.alt=r.attr("alt")!=undefined?r.attr("alt"):"",t.theclass=r.attr("class")!=undefined?r.attr("class"):"",t.styles=r.attr("style")!=undefined?r.attr("style"):"",t.orig=r.clone(),t.datahref=r.attr("data-href")!=undefined?r.attr("data-href"):"",t.content="",n(this).find("img").length>0&&(n.BrowserTests.cssBackgroundSize&&n(this).find("img").first().remove(),t.content=n(this).html()),r[0].src="",n.BrowserTests.cssBackgroundSize&&n(this).remove(),f.push(t)}),r.debug&&(u(" - Slide Object - "),u(f)),f},msie:function(){for(var i,n=3,t=document.createElement("div"),r=t.getElementsByTagName("i");t.innerHTML="<!--[if gt IE "+ ++n+"]><i></i><![endif]-->",r[0];);return n>4?n:i},sizes:function(){var u={h:0,w:0},t;return r.fillElement=="window"?(u.h=n.Window.height(),u.w=n.Window.width()):(t=i.parents(r.fillElement).first(),t.height()==0||t.data("windowHeight")==!0?(t.data("windowHeight",!0),u.h=n.Window.height()):u.h=t.height(),t.width()==0||t.data("windowWidth")==!0?(t.data("windowWidth",!0),u.w=n.Window.width()):u.w=t.width()),u}},c,a;n.BrowserTests=f.browser_tests(),typeof t=="string"?(n.BrowserTests.html5Video||!i.is("video"))&&(a=i.is("object")?i.parent().first():i,n.Body.hasClass("mc-old-browser")||n.Body.addClass("mc-old-browser"),n.Window.data("h",f.sizes().h).data("w",f.sizes().w),a.data("h",i.height()).data("w",i.width()).data("ar",i.width()/i.height()),n.Window.bind(n.Events.RESIZE,function(){n.Window.data("h",f.sizes().h).data("w",f.sizes().w),c=i.data("resizer"),clearTimeout(c),c=setTimeout(o[t](i),200),i.data("resizer",c)}),o[t](i)):(n.Slides=f.construct_slide_object(),n.BrowserTests.cssBackgroundSize?(r.debug&&u(" - Using Modern - "),h.setup()):(r.debug&&u(" - Using Old - "),e.setup()))})},n.fn.maximage.defaults={debug:!1,cssBackgroundSize:!0,cssTransitions:!0,verticalCenter:!0,horizontalCenter:!0,scaleInterval:20,backgroundSize:"cover",fillElement:"window",overrideMSIEStop:!1,onFirstImageLoaded:function(){},onImagesLoaded:function(){}}})(jQuery),function(n,t){"use strict";function r(t){n.fn.cycle.debug&&i(t)}function i(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function u(t,i,r){var u=n(t).data("cycle.opts"),f;u&&(f=!!t.cyclePause,f&&u.paused?u.paused(t,u,i,r):!f&&u.resumed&&u.resumed(t,u,i,r))}function y(r,e,o){function c(t,r,u){if(!t&&r===!0){var e=n(u).data("cycle.opts");if(!e)return i("options not found, can not resume"),!1;u.cycleTimeout&&(clearTimeout(u.cycleTimeout),u.cycleTimeout=0),f(e.elements,e,1,!e.backwards)}}var s,h;if(r.cycleStop===t&&(r.cycleStop=0),(e===t||e===null)&&(e={}),e.constructor==String){switch(e){case"destroy":case"stop":return(s=n(r).data("cycle.opts"),!s)?!1:(r.cycleStop++,r.cycleTimeout&&clearTimeout(r.cycleTimeout),r.cycleTimeout=0,s.elements&&n(s.elements).stop(),n(r).removeData("cycle.opts"),e=="destroy"&&b(r,s),!1);case"toggle":return r.cyclePause=r.cyclePause===1?0:1,c(r.cyclePause,o,r),u(r),!1;case"pause":return r.cyclePause=1,u(r),!1;case"resume":return r.cyclePause=0,c(!1,o,r),u(r),!1;case"prev":case"next":return(s=n(r).data("cycle.opts"),!s)?(i('options not found, "prev/next" ignored'),!1):(typeof o=="string"&&(s.oneTimeFx=o),n.fn.cycle[e](s),!1);default:e={fx:e}}return e}return e.constructor==Number?(h=e,e=n(r).data("cycle.opts"),!e)?(i("options not found, can not advance slide"),!1):h<0||h>=e.elements.length?(i("invalid slide index: "+h),!1):(e.nextSlide=h,r.cycleTimeout&&(clearTimeout(r.cycleTimeout),r.cycleTimeout=0),typeof o=="string"&&(e.oneTimeFx=o),f(e.elements,e,1,h>=e.currSlide),!1):e}function h(t,i){if(!n.support.opacity&&i.cleartype&&t.style.filter)try{t.style.removeAttribute("filter")}catch(r){}}function b(t,i){i.next&&n(i.next).unbind(i.prevNextEvent),i.prev&&n(i.prev).unbind(i.prevNextEvent),(i.pager||i.pagerAnchorBuilder)&&n.each(i.pagerAnchors||[],function(){this.unbind().remove()}),i.pagerAnchors=null,n(t).unbind("mouseenter.cycle mouseleave.cycle"),i.destroy&&i.destroy(i)}function c(r,o,c,y,p){var vt,b=n.extend({},n.fn.cycle.defaults,y||{},n.metadata?r.metadata():n.meta?r.data():{}),at=n.isFunction(r.data)?r.data(b.metaAttr):null,st,rt,tt,k,pt,nt,d,ut,ct,lt,yt,ht,g;if(at&&(b=n.extend(b,at)),b.autostop&&(b.countdown=b.autostopCount||c.length),st=r[0],r.data("cycle.opts",b),b.$cont=r,b.stopCount=st.cycleStop,b.elements=c,b.before=b.before?[b.before]:[],b.after=b.after?[b.after]:[],!n.support.opacity&&b.cleartype&&b.after.push(function(){h(this,b)}),b.continuous&&b.after.push(function(){f(c,b,0,!b.backwards)}),l(b),n.support.opacity||!b.cleartype||b.cleartypeNoBg||s(o),r.css("position")=="static"&&r.css("position","relative"),b.width&&r.width(b.width),b.height&&b.height!="auto"&&r.height(b.height),b.startingSlide!==t?(b.startingSlide=parseInt(b.startingSlide,10),b.startingSlide>=c.length||b.startSlide<0?b.startingSlide=0:vt=!0):b.startingSlide=b.backwards?c.length-1:0,b.random){for(b.randomMap=[],rt=0;rt<c.length;rt++)b.randomMap.push(rt);if(b.randomMap.sort(function(){return Math.random()-.5}),vt)for(tt=0;tt<c.length;tt++)b.startingSlide==b.randomMap[tt]&&(b.randomIndex=tt);else b.randomIndex=1,b.startingSlide=b.randomMap[1]}else b.startingSlide>=c.length&&(b.startingSlide=0);if(b.currSlide=b.startingSlide||0,k=b.startingSlide,o.css({position:"absolute",top:0,left:0}).hide().each(function(t){var i;i=b.backwards?k?t<=k?c.length+(t-k):k-t:c.length-t:k?t>=k?c.length-(t-k):k-t:c.length-t,n(this).css("z-index",i)}),n(c[k]).css("opacity",1).show(),h(c[k],b),b.fit&&(b.aspect?o.each(function(){var t=n(this),i=b.aspect===!0?t.width()/t.height():b.aspect;b.width&&t.width()!=b.width&&(t.width(b.width),t.height(b.width/i)),b.height&&t.height()<b.height&&(t.height(b.height),t.width(b.height*i))}):(b.width&&o.width(b.width),b.height&&b.height!="auto"&&o.height(b.height))),b.center&&(!b.fit||b.aspect)&&o.each(function(){var t=n(this);t.css({"margin-left":b.width?(b.width-t.width())/2+"px":0,"margin-top":b.height?(b.height-t.height())/2+"px":0})}),!b.center||b.fit||b.slideResize||o.each(function(){var t=n(this);t.css({"margin-left":b.width?(b.width-t.width())/2+"px":0,"margin-top":b.height?(b.height-t.height())/2+"px":0})}),pt=(b.containerResize||b.containerResizeHeight)&&r.innerHeight()<1,pt){for(nt=0,d=0,ut=0;ut<c.length;ut++){var it=n(c[ut]),ft=it[0],et=it.outerWidth(),ot=it.outerHeight();et||(et=ft.offsetWidth||ft.width||it.attr("width")),ot||(ot=ft.offsetHeight||ft.height||it.attr("height")),nt=et>nt?et:nt,d=ot>d?ot:d}b.containerResize&&nt>0&&d>0&&r.css({width:nt+"px",height:d+"px"}),b.containerResizeHeight&&d>0&&r.css({height:d+"px"})}if((ct=!1,b.pause&&r.bind("mouseenter.cycle",function(){ct=!0,this.cyclePause++,u(st,!0)}).bind("mouseleave.cycle",function(){ct&&this.cyclePause--,u(st,!0)}),a(b)===!1)||(lt=!1,y.requeueAttempts=y.requeueAttempts||0,o.each(function(){var t=n(this),r;if(this.cycleH=b.fit&&b.height?b.height:t.height()||this.offsetHeight||this.height||t.attr("height")||0,this.cycleW=b.fit&&b.width?b.width:t.width()||this.offsetWidth||this.width||t.attr("width")||0,t.is("img")&&(r=this.cycleH===0&&this.cycleW===0&&!this.complete,r)){if(p.s&&b.requeueOnImageNotLoaded&&++y.requeueAttempts<100)return i(y.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){n(p.s,p.c).cycle(y)},b.requeueTimeout),lt=!0,!1;i("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return!0}),lt))return!1;if(b.cssBefore=b.cssBefore||{},b.cssAfter=b.cssAfter||{},b.cssFirst=b.cssFirst||{},b.animIn=b.animIn||{},b.animOut=b.animOut||{},o.not(":eq("+k+")").css(b.cssBefore),n(o[k]).css(b.cssFirst),b.timeout)for(b.timeout=parseInt(b.timeout,10),b.speed.constructor==String&&(b.speed=n.fx.speeds[b.speed]||parseInt(b.speed,10)),b.sync||(b.speed=b.speed/2),yt=b.fx=="none"?0:b.fx=="shuffle"?500:250;b.timeout-b.speed<yt;)b.timeout+=b.speed;if(b.easing&&(b.easeIn=b.easeOut=b.easing),b.speedIn||(b.speedIn=b.speed),b.speedOut||(b.speedOut=b.speed),b.slideCount=c.length,b.currSlide=b.lastSlide=k,b.random?(++b.randomIndex==c.length&&(b.randomIndex=0),b.nextSlide=b.randomMap[b.randomIndex]):b.nextSlide=b.backwards?b.startingSlide===0?c.length-1:b.startingSlide-1:b.startingSlide>=c.length-1?0:b.startingSlide+1,!b.multiFx)if(ht=n.fn.cycle.transitions[b.fx],n.isFunction(ht))ht(r,o,b);else if(b.fx!="custom"&&!b.multiFx)return i("unknown transition: "+b.fx,"; slideshow terminating"),!1;return g=o[k],b.skipInitializationCallbacks||(b.before.length&&b.before[0].apply(g,[g,g,b,!0]),b.after.length&&b.after[0].apply(g,[g,g,b,!0])),b.next&&n(b.next).bind(b.prevNextEvent,function(){return e(b,1)}),b.prev&&n(b.prev).bind(b.prevNextEvent,function(){return e(b,0)}),(b.pager||b.pagerAnchorBuilder)&&w(c,b),v(b,c),b}function l(t){t.original={before:[],after:[]},t.original.cssBefore=n.extend({},t.cssBefore),t.original.cssAfter=n.extend({},t.cssAfter),t.original.animIn=n.extend({},t.animIn),t.original.animOut=n.extend({},t.animOut),n.each(t.before,function(){t.original.before.push(this)}),n.each(t.after,function(){t.original.after.push(this)})}function a(t){var u,e,f=n.fn.cycle.transitions,s,o,h,c;if(t.fx.indexOf(",")>0){for(t.multiFx=!0,t.fxs=t.fx.replace(/\s*/g,"").split(","),u=0;u<t.fxs.length;u++)s=t.fxs[u],e=f[s],e&&f.hasOwnProperty(s)&&n.isFunction(e)||(i("discarding unknown transition: ",s),t.fxs.splice(u,1),u--);if(!t.fxs.length)return i("No valid transitions named; slideshow terminating."),!1}else if(t.fx=="all"){t.multiFx=!0,t.fxs=[];for(o in f)f.hasOwnProperty(o)&&(e=f[o],f.hasOwnProperty(o)&&n.isFunction(e)&&t.fxs.push(o))}if(t.multiFx&&t.randomizeEffects){for(h=Math.floor(Math.random()*20)+30,u=0;u<h;u++)c=Math.floor(Math.random()*t.fxs.length),t.fxs.push(t.fxs.splice(c,1)[0]);r("randomized fx sequence: ",t.fxs)}return!0}function v(t,i){t.addSlide=function(r,u){var f=n(r),e=f[0];if(t.autostopCount||t.countdown++,i[u?"unshift":"push"](e),t.els&&t.els[u?"unshift":"push"](e),t.slideCount=i.length,t.random&&(t.randomMap.push(t.slideCount-1),t.randomMap.sort(function(){return Math.random()-.5})),f.css("position","absolute"),f[u?"prependTo":"appendTo"](t.$cont),u&&(t.currSlide++,t.nextSlide++),n.support.opacity||!t.cleartype||t.cleartypeNoBg||s(f),t.fit&&t.width&&f.width(t.width),t.fit&&t.height&&t.height!="auto"&&f.height(t.height),e.cycleH=t.fit&&t.height?t.height:f.height(),e.cycleW=t.fit&&t.width?t.width:f.width(),f.css(t.cssBefore),(t.pager||t.pagerAnchorBuilder)&&n.fn.cycle.createPagerAnchor(i.length-1,e,n(t.pager),i,t),n.isFunction(t.onAddSlide))t.onAddSlide(f);else f.hide()}}function f(i,u,e,s){function w(){var n=0,t=u.timeout;u.timeout&&!u.continuous?(n=o(i[u.currSlide],i[u.nextSlide],u,s),u.fx=="shuffle"&&(n-=u.speedOut)):u.continuous&&l.cyclePause&&(n=10),n>0&&(l.cycleTimeout=setTimeout(function(){f(i,u,0,!u.backwards)},n))}var l=u.$cont[0],c=i[u.currSlide],h=i[u.nextSlide],y,v,p,a;if(e&&u.busy&&u.manualTrump&&(r("manualTrump in go(), stopping active transition"),n(i).stop(!0,!0),u.busy=0,clearTimeout(l.cycleTimeout)),u.busy){r("transition active, ignoring new tx request");return}if(l.cycleStop==u.stopCount&&(l.cycleTimeout!==0||e)){if(!e&&!l.cyclePause&&!u.bounce&&(u.autostop&&--u.countdown<=0||u.nowrap&&!u.random&&u.nextSlide<u.currSlide)){u.end&&u.end(u);return}y=!1,(e||!l.cyclePause)&&u.nextSlide!=u.currSlide?(y=!0,v=u.fx,c.cycleH=c.cycleH||n(c).height(),c.cycleW=c.cycleW||n(c).width(),h.cycleH=h.cycleH||n(h).height(),h.cycleW=h.cycleW||n(h).width(),u.multiFx&&(s&&(u.lastFx===t||++u.lastFx>=u.fxs.length)?u.lastFx=0:!s&&(u.lastFx===t||--u.lastFx<0)&&(u.lastFx=u.fxs.length-1),v=u.fxs[u.lastFx]),u.oneTimeFx&&(v=u.oneTimeFx,u.oneTimeFx=null),n.fn.cycle.resetState(u,v),u.before.length&&n.each(u.before,function(n,t){l.cycleStop==u.stopCount&&t.apply(h,[c,h,u,s])}),p=function(){u.busy=0,n.each(u.after,function(n,t){l.cycleStop==u.stopCount&&t.apply(h,[c,h,u,s])}),l.cycleStop||w()},r("tx firing("+v+"); currSlide: "+u.currSlide+"; nextSlide: "+u.nextSlide),u.busy=1,u.fxFn?u.fxFn(c,h,u,p,s,e&&u.fastOnEvent):n.isFunction(n.fn.cycle[u.fx])?n.fn.cycle[u.fx](c,h,u,p,s,e&&u.fastOnEvent):n.fn.cycle.custom(c,h,u,p,s,e&&u.fastOnEvent)):w(),(y||u.nextSlide==u.currSlide)&&(u.lastSlide=u.currSlide,u.random?(u.currSlide=u.nextSlide,++u.randomIndex==i.length&&(u.randomIndex=0,u.randomMap.sort(function(){return Math.random()-.5})),u.nextSlide=u.randomMap[u.randomIndex],u.nextSlide==u.currSlide&&(u.nextSlide=u.currSlide==u.slideCount-1?0:u.currSlide+1)):u.backwards?(a=u.nextSlide-1<0,a&&u.bounce?(u.backwards=!u.backwards,u.nextSlide=1,u.currSlide=0):(u.nextSlide=a?i.length-1:u.nextSlide-1,u.currSlide=a?0:u.nextSlide+1)):(a=u.nextSlide+1==i.length,a&&u.bounce?(u.backwards=!u.backwards,u.nextSlide=i.length-2,u.currSlide=i.length-1):(u.nextSlide=a?0:u.nextSlide+1,u.currSlide=a?i.length-1:u.nextSlide-1))),y&&u.pager&&u.updateActivePagerLink(u.pager,u.currSlide,u.activePagerClass)}}function o(n,t,i,u){if(i.timeoutFn){for(var f=i.timeoutFn.call(n,n,t,i,u);i.fx!="none"&&f-i.speed<250;)f+=i.speed;if(r("calculated timeout: "+f+"; speed: "+i.speed),f!==!1)return f}return i.timeout}function e(t,i){var u=i?1:-1,r=t.elements,o=t.$cont[0],s=o.cycleTimeout,e;if(s&&(clearTimeout(s),o.cycleTimeout=0),t.random&&u<0)t.randomIndex--,--t.randomIndex==-2?t.randomIndex=r.length-2:t.randomIndex==-1&&(t.randomIndex=r.length-1),t.nextSlide=t.randomMap[t.randomIndex];else if(t.random)t.nextSlide=t.randomMap[t.randomIndex];else if(t.nextSlide=t.currSlide+u,t.nextSlide<0){if(t.nowrap)return!1;t.nextSlide=r.length-1}else if(t.nextSlide>=r.length){if(t.nowrap)return!1;t.nextSlide=0}return e=t.onPrevNextEvent||t.prevNextClick,n.isFunction(e)&&e(u>0,t.nextSlide,r[t.nextSlide]),f(r,t,1,i),!1}function w(t,i){var r=n(i.pager);n.each(t,function(u,f){n.fn.cycle.createPagerAnchor(u,f,r,t,i)}),i.updateActivePagerLink(i.pager,i.startingSlide,i.activePagerClass)}function s(t){function i(n){return n=parseInt(n,10).toString(16),n.length<2?"0"+n:n}function u(t){for(var r,u;t&&t.nodeName.toLowerCase()!="html";t=t.parentNode){if(r=n.css(t,"background-color"),r&&r.indexOf("rgb")>=0)return u=r.match(/\d+/g),"#"+i(u[0])+i(u[1])+i(u[2]);if(r&&r!="transparent")return r}return"#ffffff"}r("applying clearType background-color hack"),t.each(function(){n(this).css("background-color",u(this))})}var p="3.0.3";n.expr[":"].paused=function(n){return n.cyclePause},n.fn.cycle=function(t,u){var e={s:this.selector,c:this.context};return this.length===0&&t!="stop"?!n.isReady&&e.s?(i("DOM not ready, queuing slideshow"),n(function(){n(e.s,e.c).cycle(t,u)}),this):(i("terminating; zero elements found by selector"+(n.isReady?"":" (DOM not ready)")),this):this.each(function(){var h=y(this,t,u),s,l;if(h!==!1){h.updateActivePagerLink=h.updateActivePagerLink||n.fn.cycle.updateActivePagerLink,this.cycleTimeout&&clearTimeout(this.cycleTimeout),this.cycleTimeout=this.cyclePause=0,this.cycleStop=0;var v=n(this),p=h.slideExpr?n(h.slideExpr,this):v.children(),a=p.get();if(a.length<2){i("terminating; too few slides: "+a.length);return}(s=c(v,p,a,h,e),s!==!1)&&(l=s.continuous?10:o(a[s.currSlide],a[s.nextSlide],s,!s.backwards),l&&(l+=s.delay||0,l<10&&(l=10),r("first timeout: "+l),this.cycleTimeout=setTimeout(function(){f(a,s,0,!h.backwards)},l)))}})},n.fn.cycle.resetState=function(t,i){i=i||t.fx,t.before=[],t.after=[],t.cssBefore=n.extend({},t.original.cssBefore),t.cssAfter=n.extend({},t.original.cssAfter),t.animIn=n.extend({},t.original.animIn),t.animOut=n.extend({},t.original.animOut),t.fxFn=null,n.each(t.original.before,function(){t.before.push(this)}),n.each(t.original.after,function(){t.after.push(this)});var r=n.fn.cycle.transitions[i];n.isFunction(r)&&r(t.$cont,n(t.elements),t)},n.fn.cycle.updateActivePagerLink=function(t,i,r){n(t).each(function(){n(this).children().removeClass(r).eq(i).addClass(r)})},n.fn.cycle.next=function(n){e(n,1)},n.fn.cycle.prev=function(n){e(n,0)},n.fn.cycle.createPagerAnchor=function(t,i,e,o,s){var c,h,a,v,l,y;(n.isFunction(s.pagerAnchorBuilder)?(c=s.pagerAnchorBuilder(t,i),r("pagerAnchorBuilder("+t+", el) returned: "+c)):c='<a href="#">'+(t+1)+"</a>",c)&&(h=n(c),h.parents("body").length===0&&(a=[],e.length>1?(e.each(function(){var t=h.clone(!0);n(this).append(t),a.push(t[0])}),h=n(a)):h.appendTo(e)),s.pagerAnchors=s.pagerAnchors||[],s.pagerAnchors.push(h),v=function(i){var r,u,e;i.preventDefault(),s.nextSlide=t,r=s.$cont[0],u=r.cycleTimeout,u&&(clearTimeout(u),r.cycleTimeout=0),e=s.onPagerEvent||s.pagerClick,n.isFunction(e)&&e(s.nextSlide,o[s.nextSlide]),f(o,s,1,s.currSlide<t)},/mouseenter|mouseover/i.test(s.pagerEvent)?h.hover(v,function(){}):h.bind(s.pagerEvent,v),/^click/.test(s.pagerEvent)||s.allowPagerClickBubble||h.bind("click.cycle",function(){return!1}),l=s.$cont[0],y=!1,s.pauseOnPagerHover&&h.hover(function(){y=!0,l.cyclePause++,u(l,!0,!0)},function(){y&&l.cyclePause--,u(l,!0,!0)}))},n.fn.cycle.hopsFromLast=function(n,t){var u,i=n.lastSlide,r=n.currSlide;return u=t?r>i?r-i:n.slideCount-i:r<i?i-r:i+n.slideCount-r},n.fn.cycle.commonReset=function(t,i,r,u,f,e){n(r.elements).not(t).hide(),typeof r.cssBefore.opacity=="undefined"&&(r.cssBefore.opacity=1),r.cssBefore.display="block",r.slideResize&&u!==!1&&i.cycleW>0&&(r.cssBefore.width=i.cycleW),r.slideResize&&f!==!1&&i.cycleH>0&&(r.cssBefore.height=i.cycleH),r.cssAfter=r.cssAfter||{},r.cssAfter.display="none",n(t).css("zIndex",r.slideCount+(e===!0?1:0)),n(i).css("zIndex",r.slideCount+(e===!0?0:1))},n.fn.cycle.custom=function(t,i,r,u,f,e){var c=n(t),l=n(i),o=r.speedIn,s=r.speedOut,a=r.easeIn,v=r.easeOut,y=r.animInDelay,p=r.animOutDelay,h;l.css(r.cssBefore),e&&(o=typeof e=="number"?s=e:s=1,a=v=null),h=function(){l.delay(y).animate(r.animIn,o,a,function(){u()})},c.delay(p).animate(r.animOut,s,v,function(){c.css(r.cssAfter),r.sync||h()}),r.sync&&h()},n.fn.cycle.transitions={fade:function(t,i,r){i.not(":eq("+r.currSlide+")").css("opacity",0),r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r),r.cssBefore.opacity=0}),r.animIn={opacity:1},r.animOut={opacity:0},r.cssBefore={top:0,left:0}}},n.fn.cycle.ver=function(){return p},n.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:!n.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:1e3,speedIn:null,speedOut:null,startingSlide:t,sync:1,timeout:4e3,timeoutFn:null,updateActivePagerLink:null,width:null}}(jQuery),function(n){"use strict";n.fn.cycle.transitions.none=function(t,i,r){r.fxFn=function(t,i,r,u){n(i).show(),n(t).hide(),u()}},n.fn.cycle.transitions.fadeout=function(t,i,r){i.not(":eq("+r.currSlide+")").css({display:"block",opacity:1}),r.before.push(function(t,i,r,u,f,e){n(t).css("zIndex",r.slideCount+(e!==!0?1:0)),n(i).css("zIndex",r.slideCount+(e!==!0?0:1))}),r.animIn.opacity=1,r.animOut.opacity=0,r.cssBefore.opacity=1,r.cssBefore.display="block",r.cssAfter.zIndex=0},n.fn.cycle.transitions.scrollUp=function(t,i,r){t.css("overflow","hidden"),r.before.push(n.fn.cycle.commonReset);var u=t.height();r.cssBefore.top=u,r.cssBefore.left=0,r.cssFirst.top=0,r.animIn.top=0,r.animOut.top=-u},n.fn.cycle.transitions.scrollDown=function(t,i,r){t.css("overflow","hidden"),r.before.push(n.fn.cycle.commonReset);var u=t.height();r.cssFirst.top=0,r.cssBefore.top=-u,r.cssBefore.left=0,r.animIn.top=0,r.animOut.top=u},n.fn.cycle.transitions.scrollLeft=function(t,i,r){t.css("overflow","hidden"),r.before.push(n.fn.cycle.commonReset);var u=t.width();r.cssFirst.left=0,r.cssBefore.left=u,r.cssBefore.top=0,r.animIn.left=0,r.animOut.left=0-u},n.fn.cycle.transitions.scrollRight=function(t,i,r){t.css("overflow","hidden"),r.before.push(n.fn.cycle.commonReset);var u=t.width();r.cssFirst.left=0,r.cssBefore.left=-u,r.cssBefore.top=0,r.animIn.left=0,r.animOut.left=u},n.fn.cycle.transitions.scrollHorz=function(t,i,r){t.css("overflow","hidden").width(),r.before.push(function(t,i,r,u){r.rev&&(u=!u),n.fn.cycle.commonReset(t,i,r),r.cssBefore.left=u?i.cycleW-1:1-i.cycleW,r.animOut.left=u?-t.cycleW:t.cycleW}),r.cssFirst.left=0,r.cssBefore.top=0,r.animIn.left=0,r.animOut.top=0},n.fn.cycle.transitions.scrollVert=function(t,i,r){t.css("overflow","hidden"),r.before.push(function(t,i,r,u){r.rev&&(u=!u),n.fn.cycle.commonReset(t,i,r),r.cssBefore.top=u?1-i.cycleH:i.cycleH-1,r.animOut.top=u?t.cycleH:-t.cycleH}),r.cssFirst.top=0,r.cssBefore.left=0,r.animIn.top=0,r.animOut.left=0},n.fn.cycle.transitions.slideX=function(t,i,r){r.before.push(function(t,i,r){n(r.elements).not(t).hide(),n.fn.cycle.commonReset(t,i,r,!1,!0),r.animIn.width=i.cycleW}),r.cssBefore.left=0,r.cssBefore.top=0,r.cssBefore.width=0,r.animIn.width="show",r.animOut.width=0},n.fn.cycle.transitions.slideY=function(t,i,r){r.before.push(function(t,i,r){n(r.elements).not(t).hide(),n.fn.cycle.commonReset(t,i,r,!0,!1),r.animIn.height=i.cycleH}),r.cssBefore.left=0,r.cssBefore.top=0,r.cssBefore.height=0,r.animIn.height="show",r.animOut.height=0},n.fn.cycle.transitions.shuffle=function(t,i,r){var u,f=t.css("overflow","visible").width();for(i.css({left:0,top:0}),r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0)}),r.speedAdjusted||(r.speed=r.speed/2,r.speedAdjusted=!0),r.random=0,r.shuffle=r.shuffle||{left:-f,top:15},r.els=[],u=0;u<i.length;u++)r.els.push(i[u]);for(u=0;u<r.currSlide;u++)r.els.push(r.els.shift());r.fxFn=function(t,i,r,u,f){var e,o;r.rev&&(f=!f),e=f?n(t):n(i),n(i).css(r.cssBefore),o=r.slideCount,e.animate(r.shuffle,r.speedIn,r.easeIn,function(){for(var l=n.fn.cycle.hopsFromLast(r,f),i,h,c,s=0;s<l;s++)f?r.els.push(r.els.shift()):r.els.unshift(r.els.pop());if(f)for(i=0,h=r.els.length;i<h;i++)n(r.els[i]).css("z-index",h-i+o);else c=n(t).css("z-index"),e.css("z-index",parseInt(c,10)+1+o);e.animate({left:0,top:0},r.speedOut,r.easeOut,function(){n(f?this:t).hide(),u&&u()})})},n.extend(r.cssBefore,{display:"block",opacity:1,top:0,left:0})},n.fn.cycle.transitions.turnUp=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1),r.cssBefore.top=i.cycleH,r.animIn.height=i.cycleH,r.animOut.width=i.cycleW}),r.cssFirst.top=0,r.cssBefore.left=0,r.cssBefore.height=0,r.animIn.top=0,r.animOut.height=0},n.fn.cycle.transitions.turnDown=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1),r.animIn.height=i.cycleH,r.animOut.top=t.cycleH}),r.cssFirst.top=0,r.cssBefore.left=0,r.cssBefore.top=0,r.cssBefore.height=0,r.animOut.height=0},n.fn.cycle.transitions.turnLeft=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0),r.cssBefore.left=i.cycleW,r.animIn.width=i.cycleW}),r.cssBefore.top=0,r.cssBefore.width=0,r.animIn.left=0,r.animOut.width=0},n.fn.cycle.transitions.turnRight=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0),r.animIn.width=i.cycleW,r.animOut.left=t.cycleW}),n.extend(r.cssBefore,{top:0,left:0,width:0}),r.animIn.left=0,r.animOut.width=0},n.fn.cycle.transitions.zoom=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!1,!0),r.cssBefore.top=i.cycleH/2,r.cssBefore.left=i.cycleW/2,n.extend(r.animIn,{top:0,left:0,width:i.cycleW,height:i.cycleH}),n.extend(r.animOut,{width:0,height:0,top:t.cycleH/2,left:t.cycleW/2})}),r.cssFirst.top=0,r.cssFirst.left=0,r.cssBefore.width=0,r.cssBefore.height=0},n.fn.cycle.transitions.fadeZoom=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!1),r.cssBefore.left=i.cycleW/2,r.cssBefore.top=i.cycleH/2,n.extend(r.animIn,{top:0,left:0,width:i.cycleW,height:i.cycleH})}),r.cssBefore.width=0,r.cssBefore.height=0,r.animOut.opacity=0},n.fn.cycle.transitions.blindX=function(t,i,r){var u=t.css("overflow","hidden").width();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r),r.animIn.width=i.cycleW,r.animOut.left=t.cycleW}),r.cssBefore.left=u,r.cssBefore.top=0,r.animIn.left=0,r.animOut.left=u},n.fn.cycle.transitions.blindY=function(t,i,r){var u=t.css("overflow","hidden").height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r),r.animIn.height=i.cycleH,r.animOut.top=t.cycleH}),r.cssBefore.top=u,r.cssBefore.left=0,r.animIn.top=0,r.animOut.top=u},n.fn.cycle.transitions.blindZ=function(t,i,r){var u=t.css("overflow","hidden").height(),f=t.width();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r),r.animIn.height=i.cycleH,r.animOut.top=t.cycleH}),r.cssBefore.top=u,r.cssBefore.left=f,r.animIn.top=0,r.animIn.left=0,r.animOut.top=u,r.animOut.left=f},n.fn.cycle.transitions.growX=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0),r.cssBefore.left=this.cycleW/2,r.animIn.left=0,r.animIn.width=this.cycleW,r.animOut.left=0}),r.cssBefore.top=0,r.cssBefore.width=0},n.fn.cycle.transitions.growY=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1),r.cssBefore.top=this.cycleH/2,r.animIn.top=0,r.animIn.height=this.cycleH,r.animOut.top=0}),r.cssBefore.height=0,r.cssBefore.left=0},n.fn.cycle.transitions.curtainX=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0,!0),r.cssBefore.left=i.cycleW/2,r.animIn.left=0,r.animIn.width=this.cycleW,r.animOut.left=t.cycleW/2,r.animOut.width=0}),r.cssBefore.top=0,r.cssBefore.width=0},n.fn.cycle.transitions.curtainY=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1,!0),r.cssBefore.top=i.cycleH/2,r.animIn.top=0,r.animIn.height=i.cycleH,r.animOut.top=t.cycleH/2,r.animOut.height=0}),r.cssBefore.height=0,r.cssBefore.left=0},n.fn.cycle.transitions.cover=function(t,i,r){var u=r.direction||"left",f=t.css("overflow","hidden").width(),e=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r),r.cssAfter.display="",u=="right"?r.cssBefore.left=-f:u=="up"?r.cssBefore.top=e:u=="down"?r.cssBefore.top=-e:r.cssBefore.left=f}),r.animIn.left=0,r.animIn.top=0,r.cssBefore.top=0,r.cssBefore.left=0},n.fn.cycle.transitions.uncover=function(t,i,r){var u=r.direction||"left",f=t.css("overflow","hidden").width(),e=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0),u=="right"?r.animOut.left=f:u=="up"?r.animOut.top=-e:u=="down"?r.animOut.top=e:r.animOut.left=-f}),r.animIn.left=0,r.animIn.top=0,r.cssBefore.top=0,r.cssBefore.left=0},n.fn.cycle.transitions.toss=function(t,i,r){var u=t.css("overflow","visible").width(),f=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0),r.animOut.left||r.animOut.top?r.animOut.opacity=0:n.extend(r.animOut,{left:u*2,top:-f/2,opacity:0})}),r.cssBefore.left=0,r.cssBefore.top=0,r.animIn.left=0},n.fn.cycle.transitions.wipe=function(t,i,r){var u=t.css("overflow","hidden").width(),f=t.height(),e,s,h;r.cssBefore=r.cssBefore||{},r.clip&&(/l2r/.test(r.clip)?e="rect(0px 0px "+f+"px 0px)":/r2l/.test(r.clip)?e="rect(0px "+u+"px "+f+"px "+u+"px)":/t2b/.test(r.clip)?e="rect(0px "+u+"px 0px 0px)":/b2t/.test(r.clip)?e="rect("+f+"px "+u+"px "+f+"px 0px)":/zoom/.test(r.clip)&&(s=parseInt(f/2,10),h=parseInt(u/2,10),e="rect("+s+"px "+h+"px "+s+"px "+h+"px)")),r.cssBefore.clip=r.cssBefore.clip||e||"rect(0px 0px 0px 0px)";var o=r.cssBefore.clip.match(/(\d+)/g),c=parseInt(o[0],10),l=parseInt(o[1],10),a=parseInt(o[2],10),v=parseInt(o[3],10);r.before.push(function(t,i,r){var s,h,e,o;t!=i&&(s=n(t),h=n(i),n.fn.cycle.commonReset(t,i,r,!0,!0,!1),r.cssAfter.display="block",e=1,o=parseInt(r.speedIn/13,10)-1,function y(){var n=c?c-parseInt(e*(c/o),10):0,t=v?v-parseInt(e*(v/o),10):0,i=a<f?a+parseInt(e*((f-a)/o||1),10):f,r=l<u?l+parseInt(e*((u-l)/o||1),10):u;h.css({clip:"rect("+n+"px "+r+"px "+i+"px "+t+"px)"}),e++<=o?setTimeout(y,13):s.css("display","none")}())}),n.extend(r.cssBefore,{display:"block",opacity:1,top:0,left:0}),r.animIn={left:0},r.animOut={left:0}}}(jQuery)