jQuery.extend(jQuery.easing,{easeIn:function(e,f,a,h,g){return jQuery.easing.easeInQuad(e,f,a,h,g)},easeOut:function(e,f,a,h,g){return jQuery.easing.easeOutQuad(e,f,a,h,g)},easeInOut:function(e,f,a,h,g){return jQuery.easing.easeInOutQuad(e,f,a,h,g)},expoin:function(e,f,a,h,g){return jQuery.easing.easeInExpo(e,f,a,h,g)},expoout:function(e,f,a,h,g){return jQuery.easing.easeOutExpo(e,f,a,h,g)},expoinout:function(e,f,a,h,g){return jQuery.easing.easeInOutExpo(e,f,a,h,g)},bouncein:function(e,f,a,h,g){return jQuery.easing.easeInBounce(e,f,a,h,g)},bounceout:function(e,f,a,h,g){return jQuery.easing.easeOutBounce(e,f,a,h,g)},bounceinout:function(e,f,a,h,g){return jQuery.easing.easeInOutBounce(e,f,a,h,g)},elasin:function(e,f,a,h,g){return jQuery.easing.easeInElastic(e,f,a,h,g)},elasout:function(e,f,a,h,g){return jQuery.easing.easeOutElastic(e,f,a,h,g)},elasinout:function(e,f,a,h,g){return jQuery.easing.easeInOutElastic(e,f,a,h,g)},backin:function(e,f,a,h,g){return jQuery.easing.easeInBack(e,f,a,h,g)},backout:function(e,f,a,h,g){return jQuery.easing.easeOutBack(e,f,a,h,g)},backinout:function(e,f,a,h,g){return jQuery.easing.easeInOutBack(e,f,a,h,g)}});
/*
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2009 M. Alsup
 * Version: 2.72 (09-SEP-2009)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Requires: jQuery v1.2.6 or later
 *
 * Originally based on the work of:
 *	1) Matt Oakes
 *	2) Torsten Baldes (http://medienfreunde.com/lab/innerfade/)
 *	3) Benjamin Sterling (http://www.benjaminsterling.com/experiments/jqShuffle/)
 */
(function(k){var n="2.72";if(k.support==undefined){k.support={opacity:!(k.browser.msie)}}function a(t){if(k.fn.cycle.debug){f(t)}}function f(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}}k.fn.cycle=function(t,s){var u={s:this.selector,c:this.context};if(this.length===0&&t!="stop"){if(!k.isReady&&u.s){f("DOM not ready, queuing slideshow");k(function(){k(u.s,u.c).cycle(t,s)});return this}f("terminating; zero elements found by selector"+(k.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var y=o(this,t,s);if(y===false){return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var z=k(this);var A=y.slideExpr?k(y.slideExpr,this):z.children();var w=A.get();if(w.length<2){f("terminating; too few slides: "+w.length);return}var v=m(z,A,w,y,u);if(v===false){return}var x=v.continuous?10:h(v.currSlide,v.nextSlide,v,!v.rev);if(x){x+=(v.delay||0);if(x<10){x=10}a("first timeout: "+x);this.cycleTimeout=setTimeout(function(){e(w,v,0,!v.rev)},x)}})};function o(s,v,t){if(s.cycleStop==undefined){s.cycleStop=0}if(v===undefined||v===null){v={}}if(v.constructor==String){switch(v){case"stop":s.cycleStop++;if(s.cycleTimeout){clearTimeout(s.cycleTimeout)}s.cycleTimeout=0;k(s).removeData("cycle.opts");return false;case"pause":s.cyclePause=1;return false;case"resume":s.cyclePause=0;if(t===true){v=k(s).data("cycle.opts");if(!v){f("options not found, can not resume");return false}if(s.cycleTimeout){clearTimeout(s.cycleTimeout);s.cycleTimeout=0}e(v.elements,v,1,1)}return false;case"prev":case"next":var w=k(s).data("cycle.opts");if(!w){f('options not found, "prev/next" ignored');return false}k.fn.cycle[v](w);return false;default:v={fx:v}}return v}else{if(v.constructor==Number){var u=v;v=k(s).data("cycle.opts");if(!v){f("options not found, can not advance slide");return false}if(u<0||u>=v.elements.length){f("invalid slide index: "+u);return false}v.nextSlide=u;if(s.cycleTimeout){clearTimeout(s.cycleTimeout);s.cycleTimeout=0}if(typeof t=="string"){v.oneTimeFx=t}e(v.elements,v,1,u>=v.currSlide);return false}}return v}function b(s,t){if(!k.support.opacity&&t.cleartype&&s.style.filter){try{s.style.removeAttribute("filter")}catch(u){}}}function m(A,L,x,v,G){var E=k.extend({},k.fn.cycle.defaults,v||{},k.metadata?A.metadata():k.meta?A.data():{});if(E.autostop){E.countdown=E.autostopCount||x.length}var t=A[0];A.data("cycle.opts",E);E.$cont=A;E.stopCount=t.cycleStop;E.elements=x;E.before=E.before?[E.before]:[];E.after=E.after?[E.after]:[];E.after.unshift(function(){E.busy=0});if(!k.support.opacity&&E.cleartype){E.after.push(function(){b(this,E)})}if(E.continuous){E.after.push(function(){e(x,E,0,!E.rev)})}q(E);if(!k.support.opacity&&E.cleartype&&!E.cleartypeNoBg){g(L)}if(A.css("position")=="static"){A.css("position","relative")}if(E.width){A.width(E.width)}if(E.height&&E.height!="auto"){A.height(E.height)}if(E.startingSlide){E.startingSlide=parseInt(E.startingSlide)}if(E.random){E.randomMap=[];for(var J=0;J<x.length;J++){E.randomMap.push(J)}E.randomMap.sort(function(N,w){return Math.random()-0.5});E.randomIndex=0;E.startingSlide=E.randomMap[0]}else{if(E.startingSlide>=x.length){E.startingSlide=0}}E.currSlide=E.startingSlide=E.startingSlide||0;var z=E.startingSlide;L.css({position:"absolute",top:0,left:0}).hide().each(function(w){var N=z?w>=z?x.length-(w-z):z-w:x.length-w;k(this).css("z-index",N)});k(x[z]).css("opacity",1).show();b(x[z],E);if(E.fit&&E.width){L.width(E.width)}if(E.fit&&E.height&&E.height!="auto"){L.height(E.height)}var F=E.containerResize&&!A.innerHeight();if(F){var y=0,D=0;for(var H=0;H<x.length;H++){var s=k(x[H]),M=s[0],C=s.outerWidth(),K=s.outerHeight();if(!C){C=M.offsetWidth}if(!K){K=M.offsetHeight}y=C>y?C:y;D=K>D?K:D}if(y>0&&D>0){A.css({width:y+"px",height:D+"px"})}}if(E.pause){A.hover(function(){this.cyclePause++},function(){this.cyclePause--})}if(c(E)===false){return false}var u=false;v.requeueAttempts=v.requeueAttempts||0;L.each(function(){var P=k(this);this.cycleH=(E.fit&&E.height)?E.height:P.height();this.cycleW=(E.fit&&E.width)?E.width:P.width();if(P.is("img")){var N=(k.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var Q=(k.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var O=(k.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var w=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(N||Q||O||w){if(G.s&&E.requeueOnImageNotLoaded&&++v.requeueAttempts<100){f(v.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){k(G.s,G.c).cycle(v)},E.requeueTimeout);u=true;return false}else{f("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(u){return false}E.cssBefore=E.cssBefore||{};E.animIn=E.animIn||{};E.animOut=E.animOut||{};L.not(":eq("+z+")").css(E.cssBefore);if(E.cssFirst){k(L[z]).css(E.cssFirst)}if(E.timeout){E.timeout=parseInt(E.timeout);if(E.speed.constructor==String){E.speed=k.fx.speeds[E.speed]||parseInt(E.speed)}if(!E.sync){E.speed=E.speed/2}while((E.timeout-E.speed)<250){E.timeout+=E.speed}}if(E.easing){E.easeIn=E.easeOut=E.easing}if(!E.speedIn){E.speedIn=E.speed}if(!E.speedOut){E.speedOut=E.speed}E.slideCount=x.length;E.currSlide=E.lastSlide=z;if(E.random){E.nextSlide=E.currSlide;if(++E.randomIndex==x.length){E.randomIndex=0}E.nextSlide=E.randomMap[E.randomIndex]}else{E.nextSlide=E.startingSlide>=(x.length-1)?0:E.startingSlide+1}if(!E.multiFx){var I=k.fn.cycle.transitions[E.fx];if(k.isFunction(I)){I(A,L,E)}else{if(E.fx!="custom"&&!E.multiFx){f("unknown transition: "+E.fx,"; slideshow terminating");return false}}}var B=L[z];if(E.before.length){E.before[0].apply(B,[B,B,E,true])}if(E.after.length>1){E.after[1].apply(B,[B,B,E,true])}if(E.next){k(E.next).bind(E.prevNextEvent,function(){return r(E,E.rev?-1:1)})}if(E.prev){k(E.prev).bind(E.prevNextEvent,function(){return r(E,E.rev?1:-1)})}if(E.pager){d(x,E)}l(E,x);return E}function q(s){s.original={before:[],after:[]};s.original.cssBefore=k.extend({},s.cssBefore);s.original.cssAfter=k.extend({},s.cssAfter);s.original.animIn=k.extend({},s.animIn);s.original.animOut=k.extend({},s.animOut);k.each(s.before,function(){s.original.before.push(this)});k.each(s.after,function(){s.original.after.push(this)})}function c(y){var w,u,t=k.fn.cycle.transitions;if(y.fx.indexOf(",")>0){y.multiFx=true;y.fxs=y.fx.replace(/\s*/g,"").split(",");for(w=0;w<y.fxs.length;w++){var x=y.fxs[w];u=t[x];if(!u||!t.hasOwnProperty(x)||!k.isFunction(u)){f("discarding unknown transition: ",x);y.fxs.splice(w,1);w--}}if(!y.fxs.length){f("No valid transitions named; slideshow terminating.");return false}}else{if(y.fx=="all"){y.multiFx=true;y.fxs=[];for(p in t){u=t[p];if(t.hasOwnProperty(p)&&k.isFunction(u)){y.fxs.push(p)}}}}if(y.multiFx&&y.randomizeEffects){var v=Math.floor(Math.random()*20)+30;for(w=0;w<v;w++){var s=Math.floor(Math.random()*y.fxs.length);y.fxs.push(y.fxs.splice(s,1)[0])}a("randomized fx sequence: ",y.fxs)}return true}function l(t,s){t.addSlide=function(v,w){var u=k(v),x=u[0];if(!t.autostopCount){t.countdown++}s[w?"unshift":"push"](x);if(t.els){t.els[w?"unshift":"push"](x)}t.slideCount=s.length;u.css("position","absolute");u[w?"prependTo":"appendTo"](t.$cont);if(w){t.currSlide++;t.nextSlide++}if(!k.support.opacity&&t.cleartype&&!t.cleartypeNoBg){g(u)}if(t.fit&&t.width){u.width(t.width)}if(t.fit&&t.height&&t.height!="auto"){$slides.height(t.height)}x.cycleH=(t.fit&&t.height)?t.height:u.height();x.cycleW=(t.fit&&t.width)?t.width:u.width();u.css(t.cssBefore);if(t.pager){k.fn.cycle.createPagerAnchor(s.length-1,x,k(t.pager),s,t)}if(k.isFunction(t.onAddSlide)){t.onAddSlide(u)}else{u.hide()}}}k.fn.cycle.resetState=function(t,s){s=s||t.fx;t.before=[];t.after=[];t.cssBefore=k.extend({},t.original.cssBefore);t.cssAfter=k.extend({},t.original.cssAfter);t.animIn=k.extend({},t.original.animIn);t.animOut=k.extend({},t.original.animOut);t.fxFn=null;k.each(t.original.before,function(){t.before.push(this)});k.each(t.original.after,function(){t.after.push(this)});var u=k.fn.cycle.transitions[s];if(k.isFunction(u)){u(t.$cont,k(t.elements),t)}};function e(z,s,y,A){if(y&&s.busy&&s.manualTrump){k(z).stop(true,true);s.busy=false}if(s.busy){return}var w=s.$cont[0],C=z[s.currSlide],B=z[s.nextSlide];if(w.cycleStop!=s.stopCount||w.cycleTimeout===0&&!y){return}if(!y&&!w.cyclePause&&((s.autostop&&(--s.countdown<=0))||(s.nowrap&&!s.random&&s.nextSlide<s.currSlide))){if(s.end){s.end(s)}return}if(y||!w.cyclePause){var x=s.fx;C.cycleH=C.cycleH||k(C).height();C.cycleW=C.cycleW||k(C).width();B.cycleH=B.cycleH||k(B).height();B.cycleW=B.cycleW||k(B).width();if(s.multiFx){if(s.lastFx==undefined||++s.lastFx>=s.fxs.length){s.lastFx=0}x=s.fxs[s.lastFx];s.currFx=x}if(s.oneTimeFx){x=s.oneTimeFx;s.oneTimeFx=null}k.fn.cycle.resetState(s,x);if(s.before.length){k.each(s.before,function(D,E){if(w.cycleStop!=s.stopCount){return}E.apply(B,[C,B,s,A])})}var u=function(){k.each(s.after,function(D,E){if(w.cycleStop!=s.stopCount){return}E.apply(B,[C,B,s,A])})};if(s.nextSlide!=s.currSlide){s.busy=1;if(s.fxFn){s.fxFn(C,B,s,u,A)}else{if(k.isFunction(k.fn.cycle[s.fx])){k.fn.cycle[s.fx](C,B,s,u)}else{k.fn.cycle.custom(C,B,s,u,y&&s.fastOnEvent)}}}s.lastSlide=s.currSlide;if(s.random){s.currSlide=s.nextSlide;if(++s.randomIndex==z.length){s.randomIndex=0}s.nextSlide=s.randomMap[s.randomIndex]}else{var v=(s.nextSlide+1)==z.length;s.nextSlide=v?0:s.nextSlide+1;s.currSlide=v?z.length-1:s.nextSlide-1}if(s.pager){k.fn.cycle.updateActivePagerLink(s.pager,s.currSlide)}}var t=0;if(s.timeout&&!s.continuous){t=h(C,B,s,A)}else{if(s.continuous&&w.cyclePause){t=10}}if(t>0){w.cycleTimeout=setTimeout(function(){e(z,s,0,!s.rev)},t)}}k.fn.cycle.updateActivePagerLink=function(s,t){k(s).find("a").removeClass("activeSlide").filter("a:eq("+t+")").addClass("activeSlide")};function h(x,v,w,u){if(w.timeoutFn){var s=w.timeoutFn(x,v,w,u);while((s-w.speed)<250){s+=w.speed}a("calculated timeout: "+s+"; speed: "+w.speed);if(s!==false){return s}}return w.timeout}k.fn.cycle.next=function(s){r(s,s.rev?-1:1)};k.fn.cycle.prev=function(s){r(s,s.rev?1:-1)};function r(t,w){var s=t.elements;var v=t.$cont[0],u=v.cycleTimeout;if(u){clearTimeout(u);v.cycleTimeout=0}if(t.random&&w<0){t.randomIndex--;if(--t.randomIndex==-2){t.randomIndex=s.length-2}else{if(t.randomIndex==-1){t.randomIndex=s.length-1}}t.nextSlide=t.randomMap[t.randomIndex]}else{if(t.random){if(++t.randomIndex==s.length){t.randomIndex=0}t.nextSlide=t.randomMap[t.randomIndex]}else{t.nextSlide=t.currSlide+w;if(t.nextSlide<0){if(t.nowrap){return false}t.nextSlide=s.length-1}else{if(t.nextSlide>=s.length){if(t.nowrap){return false}t.nextSlide=0}}}}if(k.isFunction(t.prevNextClick)){t.prevNextClick(w>0,t.nextSlide,s[t.nextSlide])}e(s,t,1,w>=0);return false}function d(t,u){var s=k(u.pager);k.each(t,function(v,w){k.fn.cycle.createPagerAnchor(v,w,s,t,u)});k.fn.cycle.updateActivePagerLink(u.pager,u.startingSlide)}k.fn.cycle.createPagerAnchor=function(w,x,u,v,y){var t;if(k.isFunction(y.pagerAnchorBuilder)){t=y.pagerAnchorBuilder(w,x)}else{t='<a href="#">'+(w+1)+"</a>"}if(!t){return}var z=k(t);if(z.parents("body").length===0){var s=[];if(u.length>1){u.each(function(){var A=z.clone(true);k(this).append(A);s.push(A)});z=k(s)}else{z.appendTo(u)}}z.bind(y.pagerEvent,function(C){C.preventDefault();y.nextSlide=w;var B=y.$cont[0],A=B.cycleTimeout;if(A){clearTimeout(A);B.cycleTimeout=0}if(k.isFunction(y.pagerClick)){y.pagerClick(y.nextSlide,v[y.nextSlide])}e(v,y,1,y.currSlide<w);return false});if(y.pagerEvent!="click"){z.click(function(){return false})}if(y.pauseOnPagerHover){z.hover(function(){y.$cont[0].cyclePause++},function(){y.$cont[0].cyclePause--})}};k.fn.cycle.hopsFromLast=function(v,u){var t,s=v.lastSlide,w=v.currSlide;if(u){t=w>s?w-s:v.slideCount-s}else{t=w<s?s-w:s+v.slideCount-w}return t};function g(u){function t(v){v=parseInt(v).toString(16);return v.length<2?"0"+v:v}function s(y){for(;y&&y.nodeName.toLowerCase()!="html";y=y.parentNode){var w=k.css(y,"background-color");if(w.indexOf("rgb")>=0){var x=w.match(/\d+/g);return"#"+t(x[0])+t(x[1])+t(x[2])}if(w&&w!="transparent"){return w}}return"#ffffff"}u.each(function(){k(this).css("background-color",s(this))})}k.fn.cycle.commonReset=function(y,v,x,t,u,s){k(x.elements).not(y).hide();x.cssBefore.opacity=1;x.cssBefore.display="block";if(t!==false&&v.cycleW>0){x.cssBefore.width=v.cycleW}if(u!==false&&v.cycleH>0){x.cssBefore.height=v.cycleH}x.cssAfter=x.cssAfter||{};x.cssAfter.display="none";k(y).css("zIndex",x.slideCount+(s===true?1:0));k(v).css("zIndex",x.slideCount+(s===true?0:1))};k.fn.cycle.custom=function(D,x,s,u,t){var C=k(D),y=k(x);var v=s.speedIn,B=s.speedOut,w=s.easeIn,A=s.easeOut;y.css(s.cssBefore);if(t){if(typeof t=="number"){v=B=t}else{v=B=1}w=A=null}var z=function(){y.animate(s.animIn,v,w,u)};C.animate(s.animOut,B,A,function(){if(s.cssAfter){C.css(s.cssAfter)}if(!s.sync){z()}});if(s.sync){z()}};k.fn.cycle.transitions={fade:function(t,u,s){u.not(":eq("+s.currSlide+")").css("opacity",0);s.before.push(function(x,v,w){k.fn.cycle.commonReset(x,v,w);w.cssBefore.opacity=0});s.animIn={opacity:1};s.animOut={opacity:0};s.cssBefore={top:0,left:0}}};k.fn.cycle.ver=function(){return n};k.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,prevNextEvent:"click",pager:null,pagerClick:null,pagerEvent:"click",pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!k.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250}})(jQuery);
/*
 * jQuery Cycle Plugin Transition Definitions
 * This script is a plugin for the jQuery Cycle Plugin
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2008 M. Alsup
 * Version:	 2.72
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function(a){a.fn.cycle.transitions.none=function(c,d,b){b.fxFn=function(g,e,f,h){a(e).show();a(g).hide();h()}};a.fn.cycle.transitions.scrollUp=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.height();c.cssBefore={top:b,left:0};c.cssFirst={top:0};c.animIn={top:0};c.animOut={top:-b}};a.fn.cycle.transitions.scrollDown=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.height();c.cssFirst={top:0};c.cssBefore={top:-b,left:0};c.animIn={top:0};c.animOut={top:b}};a.fn.cycle.transitions.scrollLeft=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.width();c.cssFirst={left:0};c.cssBefore={left:b,top:0};c.animIn={left:0};c.animOut={left:0-b}};a.fn.cycle.transitions.scrollRight=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.width();c.cssFirst={left:0};c.cssBefore={left:-b,top:0};c.animIn={left:0};c.animOut={left:b}};a.fn.cycle.transitions.scrollHorz=function(c,d,b){c.css("overflow","hidden").width();b.before.push(function(h,f,g,e){a.fn.cycle.commonReset(h,f,g);g.cssBefore.left=e?(f.cycleW-1):(1-f.cycleW);g.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(c,d,b){c.css("overflow","hidden");b.before.push(function(h,f,g,e){a.fn.cycle.commonReset(h,f,g);g.cssBefore.top=e?(1-f.cycleH):(f.cycleH-1);g.animOut.top=e?h.cycleH:-h.cycleH});b.cssFirst={top:0};b.cssBefore={left:0};b.animIn={top:0};b.animOut={left:0}};a.fn.cycle.transitions.slideX=function(c,d,b){b.before.push(function(g,e,f){a(f.elements).not(g).hide();a.fn.cycle.commonReset(g,e,f,false,true);f.animIn.width=e.cycleW});b.cssBefore={left:0,top:0,width:0};b.animIn={width:"show"};b.animOut={width:0}};a.fn.cycle.transitions.slideY=function(c,d,b){b.before.push(function(g,e,f){a(f.elements).not(g).hide();a.fn.cycle.commonReset(g,e,f,true,false);f.animIn.height=e.cycleH});b.cssBefore={left:0,top:0,height:0};b.animIn={height:"show"};b.animOut={height:0}};a.fn.cycle.transitions.shuffle=function(e,f,d){var c,b=e.css("overflow","visible").width();f.css({left:0,top:0});d.before.push(function(k,g,h){a.fn.cycle.commonReset(k,g,h,true,true,true)});if(!d.speedAdjusted){d.speed=d.speed/2;d.speedAdjusted=true}d.random=0;d.shuffle=d.shuffle||{left:-b,top:15};d.els=[];for(c=0;c<f.length;c++){d.els.push(f[c])}for(c=0;c<d.currSlide;c++){d.els.push(d.els.shift())}d.fxFn=function(o,l,n,g,k){var h=k?a(o):a(l);a(l).css(n.cssBefore);var m=n.slideCount;h.animate(n.shuffle,n.speedIn,n.easeIn,function(){var r=a.fn.cycle.hopsFromLast(n,k);for(var s=0;s<r;s++){k?n.els.push(n.els.shift()):n.els.unshift(n.els.pop())}if(k){for(var t=0,q=n.els.length;t<q;t++){a(n.els[t]).css("z-index",q-t+m)}}else{var u=a(o).css("z-index");h.css("z-index",parseInt(u)+1+m)}h.animate({left:0,top:0},n.speedOut,n.easeOut,function(){a(k?this:o).hide();if(g){g()}})})};d.cssBefore={display:"block",opacity:1,top:0,left:0}};a.fn.cycle.transitions.turnUp=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.cssBefore.top=e.cycleH;f.animIn.height=e.cycleH});b.cssFirst={top:0};b.cssBefore={left:0,height:0};b.animIn={top:0};b.animOut={height:0}};a.fn.cycle.transitions.turnDown=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.animIn.height=e.cycleH;f.animOut.top=g.cycleH});b.cssFirst={top:0};b.cssBefore={left:0,top:0,height:0};b.animOut={height:0}};a.fn.cycle.transitions.turnLeft=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.cssBefore.left=e.cycleW;f.animIn.width=e.cycleW});b.cssBefore={top:0,width:0};b.animIn={left:0};b.animOut={width:0}};a.fn.cycle.transitions.turnRight=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.animIn.width=e.cycleW;f.animOut.left=g.cycleW});b.cssBefore={top:0,left:0,width:0};b.animIn={left:0};b.animOut={width:0}};a.fn.cycle.transitions.zoom=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,false,true);f.cssBefore.top=e.cycleH/2;f.cssBefore.left=e.cycleW/2;f.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH};f.animOut={width:0,height:0,top:g.cycleH/2,left:g.cycleW/2}});b.cssFirst={top:0,left:0};b.cssBefore={width:0,height:0}};a.fn.cycle.transitions.fadeZoom=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,false);f.cssBefore.left=e.cycleW/2;f.cssBefore.top=e.cycleH/2;f.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH}});b.cssBefore={width:0,height:0};b.animOut={opacity:0}};a.fn.cycle.transitions.blindX=function(d,e,c){var b=d.css("overflow","hidden").width();c.before.push(function(h,f,g){a.fn.cycle.commonReset(h,f,g);g.animIn.width=f.cycleW;g.animOut.left=h.cycleW});c.cssBefore={left:b,top:0};c.animIn={left:0};c.animOut={left:b}};a.fn.cycle.transitions.blindY=function(d,e,c){var b=d.css("overflow","hidden").height();c.before.push(function(h,f,g){a.fn.cycle.commonReset(h,f,g);g.animIn.height=f.cycleH;g.animOut.top=h.cycleH});c.cssBefore={top:b,left:0};c.animIn={top:0};c.animOut={top:b}};a.fn.cycle.transitions.blindZ=function(e,f,d){var c=e.css("overflow","hidden").height();var b=e.width();d.before.push(function(k,g,h){a.fn.cycle.commonReset(k,g,h);h.animIn.height=g.cycleH;h.animOut.top=k.cycleH});d.cssBefore={top:c,left:b};d.animIn={top:0,left:0};d.animOut={top:c,left:b}};a.fn.cycle.transitions.growX=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.cssBefore.left=this.cycleW/2;f.animIn={left:0,width:this.cycleW};f.animOut={left:0}});b.cssBefore={width:0,top:0}};a.fn.cycle.transitions.growY=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.cssBefore.top=this.cycleH/2;f.animIn={top:0,height:this.cycleH};f.animOut={top:0}});b.cssBefore={height:0,left:0}};a.fn.cycle.transitions.curtainX=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true,true);f.cssBefore.left=e.cycleW/2;f.animIn={left:0,width:this.cycleW};f.animOut={left:g.cycleW/2,width:0}});b.cssBefore={top:0,width:0}};a.fn.cycle.transitions.curtainY=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false,true);f.cssBefore.top=e.cycleH/2;f.animIn={top:0,height:e.cycleH};f.animOut={top:g.cycleH/2,height:0}});b.cssBefore={left:0,height:0}};a.fn.cycle.transitions.cover=function(f,g,e){var k=e.direction||"left";var b=f.css("overflow","hidden").width();var c=f.height();e.before.push(function(l,d,h){a.fn.cycle.commonReset(l,d,h);if(k=="right"){h.cssBefore.left=-b}else{if(k=="up"){h.cssBefore.top=c}else{if(k=="down"){h.cssBefore.top=-c}else{h.cssBefore.left=b}}}});e.animIn={left:0,top:0};e.animOut={opacity:1};e.cssBefore={top:0,left:0}};a.fn.cycle.transitions.uncover=function(f,g,e){var k=e.direction||"left";var b=f.css("overflow","hidden").width();var c=f.height();e.before.push(function(l,d,h){a.fn.cycle.commonReset(l,d,h,true,true,true);if(k=="right"){h.animOut.left=b}else{if(k=="up"){h.animOut.top=-c}else{if(k=="down"){h.animOut.top=c}else{h.animOut.left=-b}}}});e.animIn={left:0,top:0};e.animOut={opacity:1};e.cssBefore={top:0,left:0}};a.fn.cycle.transitions.toss=function(e,f,d){var b=e.css("overflow","visible").width();var c=e.height();d.before.push(function(k,g,h){a.fn.cycle.commonReset(k,g,h,true,true,true);if(!h.animOut.left&&!h.animOut.top){h.animOut={left:b*2,top:-c/2,opacity:0}}else{h.animOut.opacity=0}});d.cssBefore={left:0,top:0};d.animIn={left:0}};a.fn.cycle.transitions.wipe=function(v,o,e){var u=v.css("overflow","hidden").width();var m=v.height();e.cssBefore=e.cssBefore||{};var g;if(e.clip){if(/l2r/.test(e.clip)){g="rect(0px 0px "+m+"px 0px)"}else{if(/r2l/.test(e.clip)){g="rect(0px "+u+"px "+m+"px "+u+"px)"}else{if(/t2b/.test(e.clip)){g="rect(0px "+u+"px 0px 0px)"}else{if(/b2t/.test(e.clip)){g="rect("+m+"px "+u+"px "+m+"px 0px)"}else{if(/zoom/.test(e.clip)){var s=parseInt(m/2);var f=parseInt(u/2);g="rect("+s+"px "+f+"px "+s+"px "+f+"px)"}}}}}}e.cssBefore.clip=e.cssBefore.clip||g||"rect(0px 0px 0px 0px)";var n=e.cssBefore.clip.match(/(\d+)/g);var x=parseInt(n[0]),c=parseInt(n[1]),q=parseInt(n[2]),k=parseInt(n[3]);e.before.push(function(y,h,t){if(y==h){return}var d=a(y),b=a(h);a.fn.cycle.commonReset(y,h,t,true,true,false);t.cssAfter.display="block";var r=1,l=parseInt((t.speedIn/13))-1;(function w(){var A=x?x-parseInt(r*(x/l)):0;var B=k?k-parseInt(r*(k/l)):0;var C=q<m?q+parseInt(r*((m-q)/l||1)):m;var z=c<u?c+parseInt(r*((u-c)/l||1)):u;b.css({clip:"rect("+A+"px "+z+"px "+C+"px "+B+"px)"});(r++<=l)?setTimeout(w,13):d.css("display","none")})()});e.cssBefore={display:"block",opacity:1,top:0,left:0};e.animIn={left:0};e.animOut={left:0}}})(jQuery);(function(a){a.fn.masonry=function(c,g){function e(h,m,n,o,l){var k=0;for(i=0;i<m;i++){if(n[i]<n[k]){k=i}}h.css({top:n[k],left:l.colW*k+l.posLeft});for(i=0;i<o;i++){l.colY[k+i]=n[k]+h.outerHeight(true)}}function b(l,k,h){h.$bricks=k.itemSelector==undefined?k.$brickParent.children():k.$brickParent.find(k.itemSelector);if(k.columnWidth==undefined){h.colW=h.masoned?l.data("masonry").colW:h.$bricks.outerWidth(true)}else{h.colW=k.columnWidth}h.colCount=Math.floor(l.width()/h.colW);h.colCount=Math.max(h.colCount,1)}function f(l,k,h){if(!h.masoned){l.css("position","relative")}if(!h.masoned||k.appendedContent!=undefined){h.$bricks.css("position","absolute")}var m=a("<div />");l.prepend(m);h.posTop=Math.round(m.position().top);h.posLeft=Math.round(m.position().left);m.remove();if(h.masoned&&k.appendedContent!=undefined){h.colY=l.data("masonry").colY;for(i=l.data("masonry").colCount;i<h.colCount;i++){h.colY[i]=h.posTop}}else{h.colY=[];for(i=0;i<h.colCount;i++){h.colY[i]=h.posTop}}if(k.singleMode){h.$bricks.each(function(){var n=a(this);e(n,h.colCount,h.colY,1,h)})}else{h.$bricks.each(function(){var n=a(this);var q=Math.ceil(n.outerWidth(true)/h.colW);q=Math.min(q,h.colCount);if(q==1){e(n,h.colCount,h.colY,1,h)}else{var r=h.colCount+1-q;var o=[0];for(i=0;i<r;i++){o[i]=0;for(j=0;j<q;j++){o[i]=Math.max(o[i],h.colY[i+j])}}e(n,r,o,q,h)}})}h.wallH=0;for(i=0;i<h.colCount;i++){h.wallH=Math.max(h.wallH,h.colY[i])}l.height(h.wallH-h.posTop);g.call(h.$bricks);l.data("masonry",h)}function d(m,l,k){var h=m.data("masonry").colCount;b(m,l,k);if(k.colCount!=h){f(m,l,k)}}return this.each(function(){var n=a(this);var l=a.extend({},a.masonry);l.masoned=n.data("masonry")!=undefined;var k=l.masoned?n.data("masonry").options:{};var m=a.extend({},l.defaults,k,c);l.options=m.saveOptions?m:k;g=g||function(){};if(l.masoned&&m.appendedContent!=undefined){m.$brickParent=m.appendedContent}else{m.$brickParent=n}if(m.$brickParent.children().length>0){b(n,m,l);f(n,m,l);var h=k.resizeable;if(!h&&m.resizeable){a(window).bind("resize.masonry",function(){d(n,m,l)})}if(h&&!m.resizeable){a(window).unbind("resize.masonry")}}else{return this}})};a.masonry={defaults:{singleMode:false,columnWidth:undefined,itemSelector:undefined,appendedContent:undefined,saveOptions:true,resizeable:true},colW:undefined,colCount:undefined,colY:undefined,wallH:undefined,masoned:undefined,posTop:0,posLeft:0,options:undefined,$bricks:undefined,$brickParent:undefined}})(jQuery);$(function(){$(".team a").hover(function(){$(".team a:not(:hover) img").css("opacity","0.5")},function(){$(".team a img").css("opacity","1")});$(".team_bloggers li").hover(function(){$(".team_bloggers li:not(:hover) img").css("opacity","0.8")},function(){$(".team_bloggers li img").css("opacity","1")});$("#slideshow #slides").cycle({fx:"scrollRight",timeout:6000,easing:"easeIn",delay:-2000,pager:"#slide_nav"});$("#stream_more").live("click",function(){var a=$("#ajax_offset").val();$("#stream_more").addClass("loading");$.ajax({url:"/site/_ajax_stream/"+a,cache:false,success:function(b){$("#stream_more").replaceWith(b);FB.XFBML.parse()}});return false})});function cleanUpPortfolioTabs(){$(".portfolio_content #tabs ul li").each(function(){var a=$(this).find("a").attr("href");if($(a+" .box_inner").html().replace(/^\s+|\s+$/g,"").length==0){$(this).remove()}})};