jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u)==1?i+r:(e||(e=u*.3),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),-(o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e))+i)},easeOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u)==1?i+r:(e||(e=u*.3),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),o*Math.pow(2,-10*t)*Math.sin((t*u-f)*2*Math.PI/e)+r+i)},easeInOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u/2)==2?i+r:(e||(e=u*.3*1.5),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),t<1)?-.5*o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)+i:o*Math.pow(2,-10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}}),function(n,t){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=!!t.cyclePause;f&&u.paused?u.paused(t,u,i,r):!f&&u.resumed&&u.resumed(t,u,i,r)}function l(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"&&a(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):(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 o(t,i){if(!n.support.opacity&&i.cleartype&&t.style.filter)try{t.style.removeAttribute("filter")}catch(r){}}function a(t){t.next&&n(t.next).unbind(t.prevNextEvent);t.prev&&n(t.prev).unbind(t.prevNextEvent);(t.pager||t.pagerAnchorBuilder)&&n.each(t.pagerAnchors||[],function(){this.unbind().remove()});t.pagerAnchors=null;t.destroy&&t.destroy(t)}function v(r,s,c,l,a){var at,v=n.extend({},n.fn.cycle.defaults,l||{},n.metadata?r.metadata():n.meta?r.data():{}),vt=n.isFunction(r.data)?r.data(v.metaAttr):null,rt,ut,tt,p,yt,g,nt,ft,ht,ct,pt,lt,d;if(vt&&(v=n.extend(v,vt)),v.autostop&&(v.countdown=v.autostopCount||c.length),rt=r[0],r.data("cycle.opts",v),v.$cont=r,v.stopCount=rt.cycleStop,v.elements=c,v.before=v.before?[v.before]:[],v.after=v.after?[v.after]:[],!n.support.opacity&&v.cleartype&&v.after.push(function(){o(this,v)}),v.continuous&&v.after.push(function(){f(c,v,0,!v.backwards)}),y(v),n.support.opacity||!v.cleartype||v.cleartypeNoBg||h(s),r.css("position")=="static"&&r.css("position","relative"),v.width&&r.width(v.width),v.height&&v.height!="auto"&&r.height(v.height),v.startingSlide!=t?(v.startingSlide=parseInt(v.startingSlide,10),v.startingSlide>=c.length||v.startSlide<0?v.startingSlide=0:at=!0):v.startingSlide=v.backwards?c.length-1:0,v.random){for(v.randomMap=[],ut=0;ut<c.length;ut++)v.randomMap.push(ut);if(v.randomMap.sort(function(){return Math.random()-.5}),at)for(tt=0;tt<c.length;tt++)v.startingSlide==v.randomMap[tt]&&(v.randomIndex=tt);else v.randomIndex=1,v.startingSlide=v.randomMap[1]}else v.startingSlide>=c.length&&(v.startingSlide=0);if(v.currSlide=v.startingSlide||0,p=v.startingSlide,s.css({position:"absolute",top:0,left:0}).hide().each(function(t){var i;i=v.backwards?p?t<=p?c.length+(t-p):p-t:c.length-t:p?t>=p?c.length-(t-p):p-t:c.length-t;n(this).css("z-index",i)}),n(c[p]).css("opacity",1).show(),o(c[p],v),v.fit&&(v.aspect?s.each(function(){var t=n(this),i=v.aspect===!0?t.width()/t.height():v.aspect;v.width&&t.width()!=v.width&&(t.width(v.width),t.height(v.width/i));v.height&&t.height()<v.height&&(t.height(v.height),t.width(v.height*i))}):(v.width&&s.width(v.width),v.height&&v.height!="auto"&&s.height(v.height))),v.center&&(!v.fit||v.aspect)&&s.each(function(){var t=n(this);t.css({"margin-left":v.width?(v.width-t.width())/2+"px":0,"margin-top":v.height?(v.height-t.height())/2+"px":0})}),!v.center||v.fit||v.slideResize||s.each(function(){var t=n(this);t.css({"margin-left":v.width?(v.width-t.width())/2+"px":0,"margin-top":v.height?(v.height-t.height())/2+"px":0})}),yt=v.containerResize&&!r.innerHeight(),yt){for(g=0,nt=0,ft=0;ft<c.length;ft++){var it=n(c[ft]),et=it[0],ot=it.outerWidth(),st=it.outerHeight();ot||(ot=et.offsetWidth||et.width||it.attr("width"));st||(st=et.offsetHeight||et.height||it.attr("height"));g=ot>g?ot:g;nt=st>nt?st:nt}g>0&&nt>0&&r.css({width:g+"px",height:nt+"px"})}if((ht=!1,v.pause&&r.hover(function(){ht=!0;this.cyclePause++;u(rt,!0)},function(){ht&&this.cyclePause--;u(rt,!0)}),w(v)===!1)||(ct=!1,l.requeueAttempts=l.requeueAttempts||0,s.each(function(){var t=n(this);if(this.cycleH=v.fit&&v.height?v.height:t.height()||this.offsetHeight||this.height||t.attr("height")||0,this.cycleW=v.fit&&v.width?v.width:t.width()||this.offsetWidth||this.width||t.attr("width")||0,t.is("img")){var r=n.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete,u=n.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete,f=n.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,e=this.cycleH==0&&this.cycleW==0&&!this.complete;if(r||u||f||e){if(a.s&&v.requeueOnImageNotLoaded&&++l.requeueAttempts<100)return i(l.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){n(a.s,a.c).cycle(l)},v.requeueTimeout),ct=!0,!1;i("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}return!0}),ct))return!1;if(v.cssBefore=v.cssBefore||{},v.cssAfter=v.cssAfter||{},v.cssFirst=v.cssFirst||{},v.animIn=v.animIn||{},v.animOut=v.animOut||{},s.not(":eq("+p+")").css(v.cssBefore),n(s[p]).css(v.cssFirst),v.timeout)for(v.timeout=parseInt(v.timeout,10),v.speed.constructor==String&&(v.speed=n.fx.speeds[v.speed]||parseInt(v.speed,10)),v.sync||(v.speed=v.speed/2),pt=v.fx=="none"?0:v.fx=="shuffle"?500:250;v.timeout-v.speed<pt;)v.timeout+=v.speed;if(v.easing&&(v.easeIn=v.easeOut=v.easing),v.speedIn||(v.speedIn=v.speed),v.speedOut||(v.speedOut=v.speed),v.slideCount=c.length,v.currSlide=v.lastSlide=p,v.random?(++v.randomIndex==c.length&&(v.randomIndex=0),v.nextSlide=v.randomMap[v.randomIndex]):v.nextSlide=v.backwards?v.startingSlide==0?c.length-1:v.startingSlide-1:v.startingSlide>=c.length-1?0:v.startingSlide+1,!v.multiFx)if(lt=n.fn.cycle.transitions[v.fx],n.isFunction(lt))lt(r,s,v);else if(v.fx!="custom"&&!v.multiFx)return i("unknown transition: "+v.fx,"; slideshow terminating"),!1;return d=s[p],v.skipInitializationCallbacks||(v.before.length&&v.before[0].apply(d,[d,d,v,!0]),v.after.length&&v.after[0].apply(d,[d,d,v,!0])),v.next&&n(v.next).bind(v.prevNextEvent,function(){return e(v,1)}),v.prev&&n(v.prev).bind(v.prevNextEvent,function(){return e(v,0)}),(v.pager||v.pagerAnchorBuilder)&&k(c,v),b(v,c),v}function y(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 w(t){var u,f,e=n.fn.cycle.transitions,o,s,h;if(t.fx.indexOf(",")>0){for(t.multiFx=!0,t.fxs=t.fx.replace(/\s*/g,"").split(","),u=0;u<t.fxs.length;u++)o=t.fxs[u],f=e[o],f&&e.hasOwnProperty(o)&&n.isFunction(f)||(i("discarding unknown transition: ",o),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(p in e)f=e[p],e.hasOwnProperty(p)&&n.isFunction(f)&&t.fxs.push(p)}if(t.multiFx&&t.randomizeEffects){for(s=Math.floor(Math.random()*20)+30,u=0;u<s;u++)h=Math.floor(Math.random()*t.fxs.length),t.fxs.push(t.fxs.splice(h,1)[0]);r("randomized fx sequence: ",t.fxs)}return!0}function b(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||h(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,o){function w(){var n=0,t=u.timeout;u.timeout&&!u.continuous?(n=s(i[u.currSlide],i[u.nextSlide],u,o),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 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),u.busy){r("transition active, ignoring new tx request");return}var l=u.$cont[0],c=i[u.currSlide],h=i[u.nextSlide];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&&(o&&(u.lastFx==t||++u.lastFx>=u.fxs.length)?u.lastFx=0:!o&&(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,o])}),p=function(){u.busy=0;n.each(u.after,function(n,t){l.cycleStop==u.stopCount&&t.apply(h,[c,h,u,o])});l.cycleStop||w()},r("tx firing("+v+"); currSlide: "+u.currSlide+"; nextSlide: "+u.nextSlide),u.busy=1,u.fxFn?u.fxFn(c,h,u,p,o,e&&u.fastOnEvent):n.isFunction(n.fn.cycle[u.fx])?n.fn.cycle[u.fx](c,h,u,p,o,e&&u.fastOnEvent):n.fn.cycle.custom(c,h,u,p,o,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 s(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 k(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 h(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 c="2.9998";n.support==t&&(n.support={opacity:!n.browser.msie});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=l(this,t,u),c;if(h!==!1){h.updateActivePagerLink=h.updateActivePagerLink||n.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var y=n(this),p=h.slideExpr?n(h.slideExpr,this):y.children(),a=p.get(),o=v(y,p,a,h,e);if(o!==!1){if(a.length<2){i("terminating; too few slides: "+a.length);return}c=o.continuous?10:s(a[o.currSlide],a[o.nextSlide],o,!o.backwards);c&&(c+=o.delay||0,c<10&&(c=10),r("first timeout: "+c),this.cycleTimeout=setTimeout(function(){f(a,o,0,!h.backwards)},c))}}})};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 i=n.lastSlide,r=n.currSlide;return 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 h=n(t),c=n(i),l=r.speedIn,o=r.speedOut,a=r.easeIn,v=r.easeOut,s;c.css(r.cssBefore);e&&(l=typeof e=="number"?o=e:o=1,a=v=null);s=function(){c.animate(r.animIn,l,a,function(){u()})};h.animate(r.animOut,o,v,function(){h.css(r.cssAfter);r.sync||s()});r.sync&&s()};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 c};n.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:!1,animIn:null,animOut:null,aspect:!1,autostop:0,autostopCount:0,backwards:!1,before:null,center:null,cleartype:!n.support.opacity,cleartypeNoBg:!1,containerResize:1,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:0,sync:1,timeout:4e3,timeoutFn:null,updateActivePagerLink:null,width:null}}(jQuery),function(n){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);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),function(n,t,i){n.fn.backstretch=function(r,u){return(r===i||0===r.length)&&n.error("No images were supplied for Backstretch"),0===n(t).scrollTop()&&t.scrollTo(0,0),this.each(function(){var i=n(this),t=i.data("backstretch");if(t){if("string"==typeof r&&"function"==typeof t[r]){t[r](u);return}u=n.extend(t.options,u);t.destroy(!0)}t=new c(this,r,u);i.data("backstretch",t)})};n.backstretch=function(t,i){return n("body").backstretch(t,i).data("backstretch")};n.expr[":"].backstretch=function(t){return n(t).data("backstretch")!==i};n.fn.backstretch.defaults={centeredX:!0,centeredY:!0,duration:5e3,fade:0};var l={left:0,top:0,overflow:"hidden",margin:0,padding:0,height:"100%",width:"100%",zIndex:-999999},a={position:"absolute",display:"none",margin:0,padding:0,border:"none",width:"auto",height:"auto",maxHeight:"none",maxWidth:"none",zIndex:-999999},c=function(i,r,u){this.options=n.extend({},n.fn.backstretch.defaults,u||{});this.images=n.isArray(r)?r:[r];n.each(this.images,function(){n("<img />")[0].src=this});this.isBody=i===document.body;this.$container=n(i);this.$root=this.isBody?o?n(t):n(document):this.$container;i=this.$container.children(".backstretch").first();this.$wrap=i.length?i:n('<div class="backstretch"><\/div>').css(l).appendTo(this.$container);this.isBody||(i=this.$container.css("position"),r=this.$container.css("zIndex"),this.$container.css({position:"static"===i?"relative":i,zIndex:"auto"===r?0:r,background:"none"}),this.$wrap.css({zIndex:-999998}));this.$wrap.css({position:this.isBody&&o?"fixed":"absolute"});this.index=0;this.show(this.index);n(t).on("resize.backstretch",n.proxy(this.resize,this)).on("orientationchange.backstretch",n.proxy(function(){this.isBody&&0===t.pageYOffset&&(t.scrollTo(0,1),this.resize())},this))};c.prototype={resize:function(){try{var f={left:0,top:0},e=this.isBody?this.$root.width():this.$root.innerWidth(),i=e,r=this.isBody?t.innerHeight?t.innerHeight:this.$root.height():this.$root.innerHeight(),n=i/this.$img.data("ratio"),u;n>=r?(u=(n-r)/2,this.options.centeredY&&(f.top="-"+u+"px")):(n=r,i=n*this.$img.data("ratio"),u=(i-e)/2,this.options.centeredX&&(f.left="-"+u+"px"));this.$wrap.css({width:e,height:r}).find("img:not(.deleteable)").css({width:i,height:n}).css(f)}catch(o){}return this},show:function(t){if(!(Math.abs(t)>this.images.length-1)){var i=this,u=i.$wrap.find("img").addClass("deleteable"),r={relatedTarget:i.$container[0]};return i.$container.trigger(n.Event("backstretch.before",r),[i,t]),this.index=t,clearInterval(i.interval),i.$img=n("<img />").css(a).bind("load",function(f){var e=this.width||n(f.target).width();f=this.height||n(f.target).height();n(this).data("ratio",e/f);n(this).fadeIn(i.options.speed||i.options.fade,function(){u.remove();i.paused||i.cycle();n(["after","show"]).each(function(){i.$container.trigger(n.Event("backstretch."+this,r),[i,t])})});i.resize()}).appendTo(i.$wrap),i.$img.attr("src",i.images[t]),i}},next:function(){return this.show(this.index<this.images.length-1?this.index+1:0)},prev:function(){return this.show(0===this.index?this.images.length-1:this.index-1)},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this.next(),this},cycle:function(){return 1<this.images.length&&(clearInterval(this.interval),this.interval=setInterval(n.proxy(function(){this.paused||this.next()},this),this.options.duration)),this},destroy:function(i){n(t).off("resize.backstretch orientationchange.backstretch");clearInterval(this.interval);i||this.$wrap.remove();this.$container.removeData("backstretch")}};var o,u=navigator.userAgent,s=navigator.platform,r=u.match(/AppleWebKit\/([0-9]+)/),r=!!r&&r[1],f=u.match(/Fennec\/([0-9]+)/),f=!!f&&f[1],h=u.match(/Opera Mobi\/([0-9]+)/),v=!!h&&h[1],e=u.match(/MSIE ([0-9]+)/),e=!!e&&e[1];o=!((-1<s.indexOf("iPhone")||-1<s.indexOf("iPad")||-1<s.indexOf("iPod"))&&r&&534>r||t.operamini&&"[object OperaMini]"==={}.toString.call(t.operamini)||h&&7458>v||-1<u.indexOf("Android")&&r&&533>r||f&&6>f||"palmGetResource"in t&&r&&534>r||-1<u.indexOf("MeeGo")&&-1<u.indexOf("NokiaBrowser/8.5.0")||e&&6>=e)}(jQuery,window),function(n,t,i,r){function u(t,i){var r,u;this.element=t;this.$context=n(t).data("api",this);this.$layers=this.$context.find(".layer");r={calibrateX:this.$context.data("calibrate-x")||null,calibrateY:this.$context.data("calibrate-y")||null,invertX:this.$context.data("invert-x")||null,invertY:this.$context.data("invert-y")||null,limitX:parseFloat(this.$context.data("limit-x"))||null,limitY:parseFloat(this.$context.data("limit-y"))||null,scalarX:parseFloat(this.$context.data("scalar-x"))||null,scalarY:parseFloat(this.$context.data("scalar-y"))||null,frictionX:parseFloat(this.$context.data("friction-x"))||null,frictionY:parseFloat(this.$context.data("friction-y"))||null};for(u in r)r[u]===null&&delete r[u];n.extend(this,s,i,r);this.calibrationTimer=null;this.calibrationFlag=!0;this.enabled=!1;this.depths=[];this.raf=null;this.ox=0;this.oy=0;this.ow=0;this.oh=0;this.cx=0;this.cy=0;this.ix=0;this.iy=0;this.mx=0;this.my=0;this.vx=0;this.vy=0;this.onMouseMove=this.onMouseMove.bind(this);this.onDeviceOrientation=this.onDeviceOrientation.bind(this);this.onOrientationTimer=this.onOrientationTimer.bind(this);this.onCalibrationTimer=this.onCalibrationTimer.bind(this);this.onAnimationFrame=this.onAnimationFrame.bind(this);this.onWindowResize=this.onWindowResize.bind(this);this.initialise()}var f="parallax",e=30,s={calibrationThreshold:100,calibrationDelay:500,supportDelay:500,calibrateX:!1,calibrateY:!0,invertX:!0,invertY:!0,limitX:!1,limitY:!1,scalarX:10,scalarY:10,frictionX:.1,frictionY:.1},o;u.prototype.transformSupport=function(n){for(var f=i.createElement("div"),s=!1,e=null,h=!1,c=null,o=null,u=0,l=this.vendors.length;u<l;u++)if(this.vendors[u]!==null?(c=this.vendors[u][0]+"transform",o=this.vendors[u][1]+"Transform"):(c="transform",o="transform"),f.style[o]!==r){s=!0;break}switch(n){case"2D":h=s;break;case"3D":s&&(i.body.appendChild(f),f.style[o]="translate3d(1px,1px,1px)",e=t.getComputedStyle(f).getPropertyValue(c),h=e!==r&&e.length>0&&e!=="none",i.body.removeChild(f))}return h};u.prototype.ww=null;u.prototype.wh=null;u.prototype.hw=null;u.prototype.hh=null;u.prototype.portrait=null;u.prototype.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i);u.prototype.vendors=[null,["-webkit-","webkit"],["-moz-","Moz"],["-o-","O"],["-ms-","ms"]];u.prototype.motionSupport=!!t.DeviceMotionEvent;u.prototype.orientationSupport=!!t.DeviceOrientationEvent;u.prototype.orientationStatus=0;u.prototype.transform2DSupport=u.prototype.transformSupport("2D");u.prototype.transform3DSupport=u.prototype.transformSupport("3D");u.prototype.initialise=function(){this.$context.css("position")==="static"&&this.$context.css({position:"relative"});this.$layers.css({position:"absolute",display:"block",height:"100%",width:"100%",left:0,top:0});this.$layers.first().css({position:"relative"});this.$layers.each(n.proxy(function(t,i){this.depths.push(n(i).data("depth")||0)},this));this.accelerate(this.$context);this.accelerate(this.$layers);this.updateDimensions();this.enable();this.queueCalibration(this.calibrationDelay)};u.prototype.updateDimensions=function(){this.ox=this.$context.offset().left;this.oy=this.$context.offset().top;this.ow=this.$context.width();this.oh=this.$context.height();this.ww=t.innerWidth;this.wh=t.innerHeight;this.hw=this.ww/2;this.hh=this.wh/2};u.prototype.queueCalibration=function(n){clearTimeout(this.calibrationTimer);this.calibrationTimer=setTimeout(this.onCalibrationTimer,n)};u.prototype.enable=function(){this.enabled||(this.enabled=!0,this.orientationSupport?(this.portrait=null,t.addEventListener("deviceorientation",this.onDeviceOrientation),setTimeout(this.onOrientationTimer,this.supportDelay)):(this.cx=0,this.cy=0,this.portrait=!1,t.addEventListener("mousemove",this.onMouseMove)),t.addEventListener("resize",this.onWindowResize),this.raf=requestAnimationFrame(this.onAnimationFrame))};u.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.orientationSupport?t.removeEventListener("deviceorientation",this.onDeviceOrientation):t.removeEventListener("mousemove",this.onMouseMove),t.removeEventListener("resize",this.onWindowResize),cancelAnimationFrame(this.raf))};u.prototype.calibrate=function(n,t){this.calibrateX=n===r?this.calibrateX:n;this.calibrateY=t===r?this.calibrateY:t};u.prototype.invert=function(n,t){this.invertX=n===r?this.invertX:n;this.invertY=t===r?this.invertY:t};u.prototype.friction=function(n,t){this.frictionX=n===r?this.frictionX:n;this.frictionY=t===r?this.frictionY:t};u.prototype.scalar=function(n,t){this.scalarX=n===r?this.scalarX:n;this.scalarY=t===r?this.scalarY:t};u.prototype.limit=function(n,t){this.limitX=n===r?this.limitX:n;this.limitY=t===r?this.limitY:t};u.prototype.clamp=function(n,t,i){return n=Math.max(n,t),Math.min(n,i)};u.prototype.css=function(t,i,u){for(var e=null,f=0,o=this.vendors.length;f<o;f++)if(e=this.vendors[f]!==null?n.camelCase(this.vendors[f][1]+"-"+i):i,t.style[e]!==r){t.style[e]=u;break}};u.prototype.accelerate=function(n){for(var i,t=0,r=n.length;t<r;t++)i=n[t],this.css(i,"transform","translate3d(0,0,0)"),this.css(i,"transform-style","preserve-3d"),this.css(i,"backface-visibility","hidden")};u.prototype.setPosition=function(n,t,i){t+="%";i+="%";this.transform3DSupport?this.css(n,"transform","translate3d("+t+","+i+",0)"):this.transform2DSupport?this.css(n,"transform","translate("+t+","+i+")"):(n.style.left=t,n.style.top=i)};u.prototype.onOrientationTimer=function(){this.orientationSupport&&this.orientationStatus===0&&(this.disable(),this.orientationSupport=!1,this.enable())};u.prototype.onCalibrationTimer=function(){this.calibrationFlag=!0};u.prototype.onWindowResize=function(){this.updateDimensions()};u.prototype.onAnimationFrame=function(){var t=this.ix-this.cx,i=this.iy-this.cy,n,r;for((Math.abs(t)>this.calibrationThreshold||Math.abs(i)>this.calibrationThreshold)&&this.queueCalibration(0),this.portrait?(this.mx=(this.calibrateX?i:this.iy)*this.scalarX,this.my=(this.calibrateY?t:this.ix)*this.scalarY):(this.mx=(this.calibrateX?t:this.ix)*this.scalarX,this.my=(this.calibrateY?i:this.iy)*this.scalarY),isNaN(parseFloat(this.limitX))||(this.mx=this.clamp(this.mx,-this.limitX,this.limitX)),isNaN(parseFloat(this.limitY))||(this.my=this.clamp(this.my,-this.limitY,this.limitY)),this.vx+=(this.mx-this.vx)*this.frictionX,this.vy+=(this.my-this.vy)*this.frictionY,n=0,r=this.$layers.length;n<r;n++){var u=this.depths[n],f=this.$layers[n],e=this.vx*u*(this.invertX?-1:1),o=this.vy*u*(this.invertY?-1:1);this.setPosition(f,e,o)}this.raf=requestAnimationFrame(this.onAnimationFrame)};u.prototype.onDeviceOrientation=function(n){if(!this.desktop&&n.beta!==null&&n.gamma!==null){this.orientationStatus=1;var i=(n.beta||0)/e,r=(n.gamma||0)/e,u=t.innerHeight>t.innerWidth;this.portrait!==u&&(this.portrait=u,this.calibrationFlag=!0);this.calibrationFlag&&(this.calibrationFlag=!1,this.cx=i,this.cy=r);this.ix=i;this.iy=r}};u.prototype.onMouseMove=function(n){this.ix=(n.pageX-this.hw)/this.hw;this.iy=(n.pageY-this.hh)/this.hh};o={enable:u.prototype.enable,disable:u.prototype.disable,calibrate:u.prototype.calibrate,friction:u.prototype.friction,invert:u.prototype.invert,scalar:u.prototype.scalar,limit:u.prototype.limit};n.fn[f]=function(t){var i=arguments;return this.each(function(){var e=n(this),r=e.data(f);r||(r=new u(this,t),e.data(f,r));o[t]&&r[t].apply(r,Array.prototype.slice.call(i,1))})}}(window.$||window.Zepto,window,document),function(n){"use strict";n.fn.maximage=function(t){function r(n){window.console&&window.console.log&&window.console.log(n)}var i;(typeof t=="object"||t===undefined)&&(i=n.extend(n.fn.maximage.defaults,t||{}));typeof t=="string"&&(i=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 u=n(this),s=0,v=[],h={setup:function(){var i,r,t;if(n.Slides.length>0){for(r=n.Slides.length,i=0;i<r;i++)t=n.Slides[i],u.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 r=n("<img/>");r.load(function(){if(s==0&&(l.setup(),i.onFirstImageLoaded()),s==n.Slides.length-1)i.onImagesLoaded(u);else s++,h.preload(s)});r[0].src=n.Slides[t].url;v.push(r[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);u.height(n.Window.data("h")).width(n.Window.data("w")).children().height(n.Window.data("h")).width(n.Window.data("w"));u.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 r,o,t,s=n.Slides.length;if(n.BrowserTests.msie&&!i.overrideMSIEStop&&document.execCommand("Stop",!1),u.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++)r=n.Slides[t].content.length==0?'<img src="'+n.Slides[t].url+'" />':n.Slides[t].content,o=n("<div>"+r+"<\/div>").attr("class","mc-image mc-image-n"+t+" "+n.Slides[t].theclass),u.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)u.css({visibility:"visible"}),i.onFirstImageLoaded();else if(t==n.Slides.length-1){l.setup();n(n.Scroll).removeClass("mc-hide-scrolls");i.onImagesLoaded(u);i.debug&&(r(" - Final Maximage - "),r(u))}},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);u.height(n.Window.data("h")).width(n.Window.data("w"));u.find(".mc-image").each(function(n){e.maximage(n)});var t=u.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 t;u.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&&i.cssTransitions?"easeForCSSTransition":"swing"},i.cycleOptions);u.cycle(t)}},o={center:function(t){i.verticalCenter&&t.css({marginTop:(t.height()-n.Window.data("h"))/-2});i.horizontalCenter&&t.css({marginLeft:(t.width()-n.Window.data("w"))/-2})},fill:function(t){var u=t.is("object")?t.parent().first():t;typeof i.backgroundSize=="function"?i.backgroundSize(t):i.backgroundSize=="cover"?n.Window.data("w")/n.Window.data("h")<u.data("ar")?t.height(n.Window.data("h")).width((n.Window.data("h")*u.data("ar")).toFixed(0)):t.height((n.Window.data("w")/u.data("ar")).toFixed(0)).width(n.Window.data("w")):i.backgroundSize=="contain"?n.Window.data("w")/n.Window.data("h")<u.data("ar")?t.height((n.Window.data("w")/u.data("ar")).toFixed(0)).width(n.Window.data("w")):t.height(n.Window.data("h")).width((n.Window.data("h")*u.data("ar")).toFixed(0)):r("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"],u="transition",t={cssTransitions:!1,cssBackgroundSize:"backgroundSize"in o.style&&i.cssBackgroundSize,html5Video:!1,msie:!1},e;if(i.cssTransitions)for(typeof o.style[u]=="string"&&(t.cssTransitions=!0),u=u.charAt(0).toUpperCase()+u.substr(1),e=0;e<s.length;e++)s[e]+u in o.style&&(t.cssTransitions=!0);return!document.createElement("video").canPlayType||(t.html5Video=!0),t.msie=f.msie()!==undefined,i.debug&&(r(" - Browser Test - "),r(t)),t},construct_slide_object:function(){var t={},f=[];return u.children().each(function(){var i=n(this).is("img")?n(this).clone():n(this).find("img").first().clone();t={};t.url=i.attr("src");t.title=i.attr("title")!=undefined?i.attr("title"):"";t.alt=i.attr("alt")!=undefined?i.attr("alt"):"";t.theclass=i.attr("class")!=undefined?i.attr("class"):"";t.styles=i.attr("style")!=undefined?i.attr("style"):"";t.orig=i.clone();t.datahref=i.attr("data-href")!=undefined?i.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());i[0].src="";n.BrowserTests.cssBackgroundSize&&n(this).remove();f.push(t)}),i.debug&&(r(" - Slide Object - "),r(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 r={h:0,w:0},t;return i.fillElement=="window"?(r.h=n.Window.height(),r.w=n.Window.width()):(t=u.parents(i.fillElement).first(),t.height()==0||t.data("windowHeight")==!0?(t.data("windowHeight",!0),r.h=n.Window.height()):r.h=t.height(),t.width()==0||t.data("windowWidth")==!0?(t.data("windowWidth",!0),r.w=n.Window.width()):r.w=t.width()),r}},c,a;n.BrowserTests=f.browser_tests();typeof t=="string"?(n.BrowserTests.html5Video||!u.is("video"))&&(a=u.is("object")?u.parent().first():u,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",u.height()).data("w",u.width()).data("ar",u.width()/u.height()),n.Window.bind(n.Events.RESIZE,function(){n.Window.data("h",f.sizes().h).data("w",f.sizes().w);c=u.data("resizer");clearTimeout(c);c=setTimeout(o[t](u),200);u.data("resizer",c)}),o[t](u)):(n.Slides=f.construct_slide_object(),n.BrowserTests.cssBackgroundSize?(i.debug&&r(" - Using Modern - "),h.setup()):(i.debug&&r(" - 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)