jQuery.expr[":"].HasHref=function(b,c,d){return jQuery(b).attr("href").toUpperCase()==d[3].toUpperCase()};(function(y){var B="2.73";if(y.support==undefined){y.support={opacity:!(y.browser.msie)}}function q(a){if(y.fn.cycle.debug){v(a)}}function v(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}}y.fn.cycle=function(b,a){var c={s:this.selector,c:this.context};if(this.length===0&&b!="stop"){if(!y.isReady&&c.s){v("DOM not ready, queuing slideshow");y(function(){y(c.s,c.c).cycle(b,a)});return this}v("terminating; zero elements found by selector"+(y.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var g=C(this,b,a);if(g===false){return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var h=y(this);var i=g.slideExpr?y(g.slideExpr,this):h.children();var e=i.get();if(e.length<2){v("terminating; too few slides: "+e.length);return}var d=A(h,i,e,g,c);if(d===false){return}var f=d.continuous?10:x(d.currSlide,d.nextSlide,d,!d.rev);if(f){f+=(d.delay||0);if(f<10){f=10}q("first timeout: "+f);this.cycleTimeout=setTimeout(function(){u(e,d,0,!d.rev)},f)}})};function C(a,d,b){if(a.cycleStop==undefined){a.cycleStop=0}if(d===undefined||d===null){d={}}if(d.constructor==String){switch(d){case"stop":a.cycleStop++;if(a.cycleTimeout){clearTimeout(a.cycleTimeout)}a.cycleTimeout=0;y(a).removeData("cycle.opts");return false;case"pause":a.cyclePause=1;return false;case"resume":a.cyclePause=0;if(b===true){d=y(a).data("cycle.opts");if(!d){v("options not found, can not resume");return false}if(a.cycleTimeout){clearTimeout(a.cycleTimeout);a.cycleTimeout=0}u(d.elements,d,1,1)}return false;case"prev":case"next":var e=y(a).data("cycle.opts");if(!e){v('options not found, "prev/next" ignored');return false}y.fn.cycle[d](e);return false;default:d={fx:d}}return d}else{if(d.constructor==Number){var c=d;d=y(a).data("cycle.opts");if(!d){v("options not found, can not advance slide");return false}if(c<0||c>=d.elements.length){v("invalid slide index: "+c);return false}d.nextSlide=c;if(a.cycleTimeout){clearTimeout(a.cycleTimeout);a.cycleTimeout=0}if(typeof b=="string"){d.oneTimeFx=b}u(d.elements,d,1,c>=d.currSlide);return false}}return d}function r(a,b){if(!y.support.opacity&&b.cleartype&&a.style.filter){try{a.style.removeAttribute("filter")}catch(c){}}}function A(O,j,L,o,e){var c=y.extend({},y.fn.cycle.defaults,o||{},y.metadata?O.metadata():y.meta?O.data():{});if(c.autostop){c.countdown=c.autostopCount||L.length}var m=O[0];O.data("cycle.opts",c);c.$cont=O;c.stopCount=m.cycleStop;c.elements=L;c.before=c.before?[c.before]:[];c.after=c.after?[c.after]:[];c.after.unshift(function(){c.busy=0});if(!y.support.opacity&&c.cleartype){c.after.push(function(){r(this,c)})}if(c.continuous){c.after.push(function(){u(L,c,0,!c.rev)})}D(c);if(!y.support.opacity&&c.cleartype&&!c.cleartypeNoBg){w(j)}if(O.css("position")=="static"){O.css("position","relative")}if(c.width){O.width(c.width)}if(c.height&&c.height!="auto"){O.height(c.height)}if(c.startingSlide){c.startingSlide=parseInt(c.startingSlide)}if(c.random){c.randomMap=[];for(var h=0;h<L.length;h++){c.randomMap.push(h)}c.randomMap.sort(function(F,G){return Math.random()-0.5});c.randomIndex=0;c.startingSlide=c.randomMap[0]}else{if(c.startingSlide>=L.length){c.startingSlide=0}}c.currSlide=c.startingSlide=c.startingSlide||0;var N=c.startingSlide;j.css({position:"absolute",top:0,left:0}).hide().each(function(G){var F=N?G>=N?L.length-(G-N):N-G:L.length-G;y(this).css("z-index",F)});y(L[N]).css("opacity",1).show();r(L[N],c);if(c.fit&&c.width){j.width(c.width)}if(c.fit&&c.height&&c.height!="auto"){j.height(c.height)}var d=c.containerResize&&!O.innerHeight();if(d){var M=0,b=0;for(var f=0;f<L.length;f++){var l=y(L[f]),k=l[0],a=l.outerWidth(),i=l.outerHeight();if(!a){a=k.offsetWidth}if(!i){i=k.offsetHeight}M=a>M?a:M;b=i>b?i:b}if(M>0&&b>0){O.css({width:M+"px",height:b+"px"})}}if(c.pause){O.hover(function(){this.cyclePause++},function(){this.cyclePause--})}if(s(c)===false){return false}var n=false;o.requeueAttempts=o.requeueAttempts||0;j.each(function(){var H=y(this);this.cycleH=(c.fit&&c.height)?c.height:H.height();this.cycleW=(c.fit&&c.width)?c.width:H.width();if(H.is("img")){var F=(y.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var I=(y.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var G=(y.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var J=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(F||I||G||J){if(e.s&&c.requeueOnImageNotLoaded&&++o.requeueAttempts<100){v(o.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){y(e.s,e.c).cycle(o)},c.requeueTimeout);n=true;return false}else{v("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(n){return false}c.cssBefore=c.cssBefore||{};c.animIn=c.animIn||{};c.animOut=c.animOut||{};j.not(":eq("+N+")").css(c.cssBefore);if(c.cssFirst){y(j[N]).css(c.cssFirst)}if(c.timeout){c.timeout=parseInt(c.timeout);if(c.speed.constructor==String){c.speed=y.fx.speeds[c.speed]||parseInt(c.speed)}if(!c.sync){c.speed=c.speed/2}while((c.timeout-c.speed)<250){c.timeout+=c.speed}}if(c.easing){c.easeIn=c.easeOut=c.easing}if(!c.speedIn){c.speedIn=c.speed}if(!c.speedOut){c.speedOut=c.speed}c.slideCount=L.length;c.currSlide=c.lastSlide=N;if(c.random){c.nextSlide=c.currSlide;if(++c.randomIndex==L.length){c.randomIndex=0}c.nextSlide=c.randomMap[c.randomIndex]}else{c.nextSlide=c.startingSlide>=(L.length-1)?0:c.startingSlide+1}if(!c.multiFx){var g=y.fn.cycle.transitions[c.fx];if(y.isFunction(g)){g(O,j,c)}else{if(c.fx!="custom"&&!c.multiFx){v("unknown transition: "+c.fx,"; slideshow terminating");return false}}}var P=j[N];if(c.before.length){c.before[0].apply(P,[P,P,c,true])}if(c.after.length>1){c.after[1].apply(P,[P,P,c,true])}if(c.next){y(c.next).bind(c.prevNextEvent,function(){return E(c,c.rev?-1:1)})}if(c.prev){y(c.prev).bind(c.prevNextEvent,function(){return E(c,c.rev?1:-1)})}if(c.pager){t(L,c)}z(c,L);return c}function D(a){a.original={before:[],after:[]};a.original.cssBefore=y.extend({},a.cssBefore);a.original.cssAfter=y.extend({},a.cssAfter);a.original.animIn=y.extend({},a.animIn);a.original.animOut=y.extend({},a.animOut);y.each(a.before,function(){a.original.before.push(this)});y.each(a.after,function(){a.original.after.push(this)})}function s(g){var e,c,b=y.fn.cycle.transitions;if(g.fx.indexOf(",")>0){g.multiFx=true;g.fxs=g.fx.replace(/\s*/g,"").split(",");for(e=0;e<g.fxs.length;e++){var f=g.fxs[e];c=b[f];if(!c||!b.hasOwnProperty(f)||!y.isFunction(c)){v("discarding unknown transition: ",f);g.fxs.splice(e,1);e--}}if(!g.fxs.length){v("No valid transitions named; slideshow terminating.");return false}}else{if(g.fx=="all"){g.multiFx=true;g.fxs=[];for(p in b){c=b[p];if(b.hasOwnProperty(p)&&y.isFunction(c)){g.fxs.push(p)}}}}if(g.multiFx&&g.randomizeEffects){var d=Math.floor(Math.random()*20)+30;for(e=0;e<d;e++){var a=Math.floor(Math.random()*g.fxs.length);g.fxs.push(g.fxs.splice(a,1)[0])}q("randomized fx sequence: ",g.fxs)}return true}function z(b,a){b.addSlide=function(d,e){var c=y(d),f=c[0];if(!b.autostopCount){b.countdown++}a[e?"unshift":"push"](f);if(b.els){b.els[e?"unshift":"push"](f)}b.slideCount=a.length;c.css("position","absolute");c[e?"prependTo":"appendTo"](b.$cont);if(e){b.currSlide++;b.nextSlide++}if(!y.support.opacity&&b.cleartype&&!b.cleartypeNoBg){w(c)}if(b.fit&&b.width){c.width(b.width)}if(b.fit&&b.height&&b.height!="auto"){$slides.height(b.height)}f.cycleH=(b.fit&&b.height)?b.height:c.height();f.cycleW=(b.fit&&b.width)?b.width:c.width();c.css(b.cssBefore);if(b.pager){y.fn.cycle.createPagerAnchor(a.length-1,f,y(b.pager),a,b)}if(y.isFunction(b.onAddSlide)){b.onAddSlide(c)}else{c.hide()}}}y.fn.cycle.resetState=function(b,a){a=a||b.fx;b.before=[];b.after=[];b.cssBefore=y.extend({},b.original.cssBefore);b.cssAfter=y.extend({},b.original.cssAfter);b.animIn=y.extend({},b.original.animIn);b.animOut=y.extend({},b.original.animOut);b.fxFn=null;y.each(b.original.before,function(){b.before.push(this)});y.each(b.original.after,function(){b.after.push(this)});var c=y.fn.cycle.transitions[a];if(y.isFunction(c)){c(b.$cont,y(b.elements),b)}};function u(i,b,h,j){if(h&&b.busy&&b.manualTrump){y(i).stop(true,true);b.busy=false}if(b.busy){return}var f=b.$cont[0],a=i[b.currSlide],k=i[b.nextSlide];if(f.cycleStop!=b.stopCount||f.cycleTimeout===0&&!h){return}if(!h&&!f.cyclePause&&((b.autostop&&(--b.countdown<=0))||(b.nowrap&&!b.random&&b.nextSlide<b.currSlide))){if(b.end){b.end(b)}return}if(h||!f.cyclePause){var g=b.fx;a.cycleH=a.cycleH||y(a).height();a.cycleW=a.cycleW||y(a).width();k.cycleH=k.cycleH||y(k).height();k.cycleW=k.cycleW||y(k).width();if(b.multiFx){if(b.lastFx==undefined||++b.lastFx>=b.fxs.length){b.lastFx=0}g=b.fxs[b.lastFx];b.currFx=g}if(b.oneTimeFx){g=b.oneTimeFx;b.oneTimeFx=null}y.fn.cycle.resetState(b,g);if(b.before.length){y.each(b.before,function(l,m){if(f.cycleStop!=b.stopCount){return}m.apply(k,[a,k,b,j])})}var d=function(){y.each(b.after,function(l,m){if(f.cycleStop!=b.stopCount){return}m.apply(k,[a,k,b,j])})};if(b.nextSlide!=b.currSlide){b.busy=1;if(b.fxFn){b.fxFn(a,k,b,d,j)}else{if(y.isFunction(y.fn.cycle[b.fx])){y.fn.cycle[b.fx](a,k,b,d)}else{y.fn.cycle.custom(a,k,b,d,h&&b.fastOnEvent)}}}b.lastSlide=b.currSlide;if(b.random){b.currSlide=b.nextSlide;if(++b.randomIndex==i.length){b.randomIndex=0}b.nextSlide=b.randomMap[b.randomIndex]}else{var e=(b.nextSlide+1)==i.length;b.nextSlide=e?0:b.nextSlide+1;b.currSlide=e?i.length-1:b.nextSlide-1}if(b.pager){y.fn.cycle.updateActivePagerLink(b.pager,b.currSlide)}}var c=0;if(b.timeout&&!b.continuous){c=x(a,k,b,j)}else{if(b.continuous&&f.cyclePause){c=10}}if(c>0){f.cycleTimeout=setTimeout(function(){u(i,b,0,!b.rev)},c)}}y.fn.cycle.updateActivePagerLink=function(a,b){y(a).each(function(){y(this).find("a").removeClass("activeSlide").filter("a:eq("+b+")").addClass("activeSlide")})};function x(e,c,d,b){if(d.timeoutFn){var a=d.timeoutFn(e,c,d,b);while((a-d.speed)<250){a+=d.speed}q("calculated timeout: "+a+"; speed: "+d.speed);if(a!==false){return a}}return d.timeout}y.fn.cycle.next=function(a){E(a,a.rev?-1:1)};y.fn.cycle.prev=function(a){E(a,a.rev?1:-1)};function E(b,e){var a=b.elements;var d=b.$cont[0],c=d.cycleTimeout;if(c){clearTimeout(c);d.cycleTimeout=0}if(b.random&&e<0){b.randomIndex--;if(--b.randomIndex==-2){b.randomIndex=a.length-2}else{if(b.randomIndex==-1){b.randomIndex=a.length-1}}b.nextSlide=b.randomMap[b.randomIndex]}else{if(b.random){if(++b.randomIndex==a.length){b.randomIndex=0}b.nextSlide=b.randomMap[b.randomIndex]}else{b.nextSlide=b.currSlide+e;if(b.nextSlide<0){if(b.nowrap){return false}b.nextSlide=a.length-1}else{if(b.nextSlide>=a.length){if(b.nowrap){return false}b.nextSlide=0}}}}if(y.isFunction(b.prevNextClick)){b.prevNextClick(e>0,b.nextSlide,a[b.nextSlide])}u(a,b,1,e>=0);return false}function t(b,c){var a=y(c.pager);y.each(b,function(d,e){y.fn.cycle.createPagerAnchor(d,e,a,b,c)});y.fn.cycle.updateActivePagerLink(c.pager,c.startingSlide)}y.fn.cycle.createPagerAnchor=function(e,f,c,d,g){var b;if(y.isFunction(g.pagerAnchorBuilder)){b=g.pagerAnchorBuilder(e,f)}else{b='<a href="#">'+(e+1)+"</a>"}if(!b){return}var h=y(b);if(h.parents("body").length===0){var a=[];if(c.length>1){c.each(function(){var i=h.clone(true);y(this).append(i);a.push(i[0])});h=y(a)}else{h.appendTo(c)}}h.bind(g.pagerEvent,function(i){i.preventDefault();g.nextSlide=e;var k=g.$cont[0],j=k.cycleTimeout;if(j){clearTimeout(j);k.cycleTimeout=0}if(y.isFunction(g.pagerClick)){g.pagerClick(g.nextSlide,d[g.nextSlide])}u(d,g,1,g.currSlide<e);return false});if(g.pagerEvent!="click"){h.click(function(){return false})}if(g.pauseOnPagerHover){h.hover(function(){g.$cont[0].cyclePause++},function(){g.$cont[0].cyclePause--})}};y.fn.cycle.hopsFromLast=function(d,c){var b,a=d.lastSlide,e=d.currSlide;if(c){b=e>a?e-a:d.slideCount-a}else{b=e<a?a-e:a+d.slideCount-e}return b};function w(c){function b(d){d=parseInt(d).toString(16);return d.length<2?"0"+d:d}function a(f){for(;f&&f.nodeName.toLowerCase()!="html";f=f.parentNode){var d=y.css(f,"background-color");if(d.indexOf("rgb")>=0){var e=d.match(/\d+/g);return"#"+b(e[0])+b(e[1])+b(e[2])}if(d&&d!="transparent"){return d}}return"#ffffff"}c.each(function(){y(this).css("background-color",a(this))})}y.fn.cycle.commonReset=function(f,d,e,b,c,a){y(e.elements).not(f).hide();e.cssBefore.opacity=1;e.cssBefore.display="block";if(b!==false&&d.cycleW>0){e.cssBefore.width=d.cycleW}if(c!==false&&d.cycleH>0){e.cssBefore.height=d.cycleH}e.cssAfter=e.cssAfter||{};e.cssAfter.display="none";y(f).css("zIndex",e.slideCount+(a===true?1:0));y(d).css("zIndex",e.slideCount+(a===true?0:1))};y.fn.cycle.custom=function(b,h,c,e,d){var a=y(b),i=y(h);var f=c.speedIn,l=c.speedOut,g=c.easeIn,k=c.easeOut;i.css(c.cssBefore);if(d){if(typeof d=="number"){f=l=d}else{f=l=1}g=k=null}var j=function(){i.animate(c.animIn,f,g,e)};a.animate(c.animOut,l,k,function(){if(c.cssAfter){a.css(c.cssAfter)}if(!c.sync){j()}});if(c.sync){j()}};y.fn.cycle.transitions={fade:function(b,c,a){c.not(":eq("+a.currSlide+")").css("opacity",0);a.before.push(function(f,d,e){y.fn.cycle.commonReset(f,d,e);e.cssBefore.opacity=0});a.animIn={opacity:1};a.animOut={opacity:0};a.cssBefore={top:0,left:0}}};y.fn.cycle.ver=function(){return B};y.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:!y.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250}})(jQuery);(function(b){b.fn.cycle.transitions.none=function(e,f,a){a.fxFn=function(i,c,d,j){b(c).show();b(i).hide();j()}};b.fn.cycle.transitions.scrollUp=function(g,h,f){g.css("overflow","hidden");f.before.push(b.fn.cycle.commonReset);var a=g.height();f.cssBefore={top:a,left:0};f.cssFirst={top:0};f.animIn={top:0};f.animOut={top:-a}};b.fn.cycle.transitions.scrollDown=function(g,h,f){g.css("overflow","hidden");f.before.push(b.fn.cycle.commonReset);var a=g.height();f.cssFirst={top:0};f.cssBefore={top:-a,left:0};f.animIn={top:0};f.animOut={top:a}};b.fn.cycle.transitions.scrollLeft=function(g,h,f){g.css("overflow","hidden");f.before.push(b.fn.cycle.commonReset);var a=g.width();f.cssFirst={left:0};f.cssBefore={left:a,top:0};f.animIn={left:0};f.animOut={left:0-a}};b.fn.cycle.transitions.scrollRight=function(g,h,f){g.css("overflow","hidden");f.before.push(b.fn.cycle.commonReset);var a=g.width();f.cssFirst={left:0};f.cssBefore={left:-a,top:0};f.animIn={left:0};f.animOut={left:a}};b.fn.cycle.transitions.scrollHorz=function(e,f,a){e.css("overflow","hidden").width();a.before.push(function(j,d,i,c){b.fn.cycle.commonReset(j,d,i);i.cssBefore.left=c?(d.cycleW-1):(1-d.cycleW);i.animOut.left=c?-j.cycleW:j.cycleW});a.cssFirst={left:0};a.cssBefore={top:0};a.animIn={left:0};a.animOut={top:0}};b.fn.cycle.transitions.scrollVert=function(e,f,a){e.css("overflow","hidden");a.before.push(function(j,d,i,c){b.fn.cycle.commonReset(j,d,i);i.cssBefore.top=c?(1-d.cycleH):(d.cycleH-1);i.animOut.top=c?j.cycleH:-j.cycleH});a.cssFirst={top:0};a.cssBefore={left:0};a.animIn={top:0};a.animOut={left:0}};b.fn.cycle.transitions.slideX=function(e,f,a){a.before.push(function(h,c,d){b(d.elements).not(h).hide();b.fn.cycle.commonReset(h,c,d,false,true);d.animIn.width=c.cycleW});a.cssBefore={left:0,top:0,width:0};a.animIn={width:"show"};a.animOut={width:0}};b.fn.cycle.transitions.slideY=function(e,f,a){a.before.push(function(h,c,d){b(d.elements).not(h).hide();b.fn.cycle.commonReset(h,c,d,true,false);d.animIn.height=c.cycleH});a.cssBefore={left:0,top:0,height:0};a.animIn={height:"show"};a.animOut={height:0}};b.fn.cycle.transitions.shuffle=function(i,j,h){var g,a=i.css("overflow","visible").width();j.css({left:0,top:0});h.before.push(function(e,c,d){b.fn.cycle.commonReset(e,c,d,true,true,true)});if(!h.speedAdjusted){h.speed=h.speed/2;h.speedAdjusted=true}h.random=0;h.shuffle=h.shuffle||{left:-a,top:15};h.els=[];for(g=0;g<j.length;g++){h.els.push(j[g])}for(g=0;g<h.currSlide;g++){h.els.push(h.els.shift())}h.fxFn=function(q,f,o,c,e){var d=e?b(q):b(f);b(f).css(o.cssBefore);var n=o.slideCount;d.animate(o.shuffle,o.speedIn,o.easeIn,function(){var l=b.fn.cycle.hopsFromLast(o,e);for(var m=0;m<l;m++){e?o.els.push(o.els.shift()):o.els.unshift(o.els.pop())}if(e){for(var t=0,k=o.els.length;t<k;t++){b(o.els[t]).css("z-index",k-t+n)}}else{var u=b(q).css("z-index");d.css("z-index",parseInt(u)+1+n)}d.animate({left:0,top:0},o.speedOut,o.easeOut,function(){b(e?this:q).hide();if(c){c()}})})};h.cssBefore={display:"block",opacity:1,top:0,left:0}};b.fn.cycle.transitions.turnUp=function(e,f,a){a.before.push(function(h,c,d){b.fn.cycle.commonReset(h,c,d,true,false);d.cssBefore.top=c.cycleH;d.animIn.height=c.cycleH});a.cssFirst={top:0};a.cssBefore={left:0,height:0};a.animIn={top:0};a.animOut={height:0}};b.fn.cycle.transitions.turnDown=function(e,f,a){a.before.push(function(h,c,d){b.fn.cycle.commonReset(h,c,d,true,false);d.animIn.height=c.cycleH;d.animOut.top=h.cycleH});a.cssFirst={top:0};a.cssBefore={left:0,top:0,height:0};a.animOut={height:0}};b.fn.cycle.transitions.turnLeft=function(e,f,a){a.before.push(function(h,c,d){b.fn.cycle.commonReset(h,c,d,false,true);d.cssBefore.left=c.cycleW;d.animIn.width=c.cycleW});a.cssBefore={top:0,width:0};a.animIn={left:0};a.animOut={width:0}};b.fn.cycle.transitions.turnRight=function(e,f,a){a.before.push(function(h,c,d){b.fn.cycle.commonReset(h,c,d,false,true);d.animIn.width=c.cycleW;d.animOut.left=h.cycleW});a.cssBefore={top:0,left:0,width:0};a.animIn={left:0};a.animOut={width:0}};b.fn.cycle.transitions.zoom=function(e,f,a){a.before.push(function(h,c,d){b.fn.cycle.commonReset(h,c,d,false,false,true);d.cssBefore.top=c.cycleH/2;d.cssBefore.left=c.cycleW/2;d.animIn={top:0,left:0,width:c.cycleW,height:c.cycleH};d.animOut={width:0,height:0,top:h.cycleH/2,left:h.cycleW/2}});a.cssFirst={top:0,left:0};a.cssBefore={width:0,height:0}};b.fn.cycle.transitions.fadeZoom=function(e,f,a){a.before.push(function(h,c,d){b.fn.cycle.commonReset(h,c,d,false,false);d.cssBefore.left=c.cycleW/2;d.cssBefore.top=c.cycleH/2;d.animIn={top:0,left:0,width:c.cycleW,height:c.cycleH}});a.cssBefore={width:0,height:0};a.animOut={opacity:0}};b.fn.cycle.transitions.blindX=function(g,h,f){var a=g.css("overflow","hidden").width();f.before.push(function(e,c,d){b.fn.cycle.commonReset(e,c,d);d.animIn.width=c.cycleW;d.animOut.left=e.cycleW});f.cssBefore={left:a,top:0};f.animIn={left:0};f.animOut={left:a}};b.fn.cycle.transitions.blindY=function(g,h,f){var a=g.css("overflow","hidden").height();f.before.push(function(e,c,d){b.fn.cycle.commonReset(e,c,d);d.animIn.height=c.cycleH;d.animOut.top=e.cycleH});f.cssBefore={top:a,left:0};f.animIn={top:0};f.animOut={top:a}};b.fn.cycle.transitions.blindZ=function(i,j,h){var g=i.css("overflow","hidden").height();var a=i.width();h.before.push(function(e,c,d){b.fn.cycle.commonReset(e,c,d);d.animIn.height=c.cycleH;d.animOut.top=e.cycleH});h.cssBefore={top:g,left:a};h.animIn={top:0,left:0};h.animOut={top:g,left:a}};b.fn.cycle.transitions.growX=function(e,f,a){a.before.push(function(h,c,d){b.fn.cycle.commonReset(h,c,d,false,true);d.cssBefore.left=this.cycleW/2;d.animIn={left:0,width:this.cycleW};d.animOut={left:0}});a.cssBefore={width:0,top:0}};b.fn.cycle.transitions.growY=function(e,f,a){a.before.push(function(h,c,d){b.fn.cycle.commonReset(h,c,d,true,false);d.cssBefore.top=this.cycleH/2;d.animIn={top:0,height:this.cycleH};d.animOut={top:0}});a.cssBefore={height:0,left:0}};b.fn.cycle.transitions.curtainX=function(e,f,a){a.before.push(function(h,c,d){b.fn.cycle.commonReset(h,c,d,false,true,true);d.cssBefore.left=c.cycleW/2;d.animIn={left:0,width:this.cycleW};d.animOut={left:h.cycleW/2,width:0}});a.cssBefore={top:0,width:0}};b.fn.cycle.transitions.curtainY=function(e,f,a){a.before.push(function(h,c,d){b.fn.cycle.commonReset(h,c,d,true,false,true);d.cssBefore.top=c.cycleH/2;d.animIn={top:0,height:c.cycleH};d.animOut={top:h.cycleH/2,height:0}});a.cssBefore={left:0,height:0}};b.fn.cycle.transitions.cover=function(j,k,h){var l=h.direction||"left";var a=j.css("overflow","hidden").width();var d=j.height();h.before.push(function(f,c,e){b.fn.cycle.commonReset(f,c,e);if(l=="right"){e.cssBefore.left=-a}else{if(l=="up"){e.cssBefore.top=d}else{if(l=="down"){e.cssBefore.top=-d}else{e.cssBefore.left=a}}}});h.animIn={left:0,top:0};h.animOut={opacity:1};h.cssBefore={top:0,left:0}};b.fn.cycle.transitions.uncover=function(j,k,h){var l=h.direction||"left";var a=j.css("overflow","hidden").width();var d=j.height();h.before.push(function(f,c,e){b.fn.cycle.commonReset(f,c,e,true,true,true);if(l=="right"){e.animOut.left=a}else{if(l=="up"){e.animOut.top=-d}else{if(l=="down"){e.animOut.top=d}else{e.animOut.left=-a}}}});h.animIn={left:0,top:0};h.animOut={opacity:1};h.cssBefore={top:0,left:0}};b.fn.cycle.transitions.toss=function(i,j,h){var a=i.css("overflow","visible").width();var g=i.height();h.before.push(function(e,c,d){b.fn.cycle.commonReset(e,c,d,true,true,true);if(!d.animOut.left&&!d.animOut.top){d.animOut={left:a*2,top:-g/2,opacity:0}}else{d.animOut.opacity=0}});h.cssBefore={left:0,top:0};h.animIn={left:0}};b.fn.cycle.transitions.wipe=function(A,w,d){var z=A.css("overflow","hidden").width();var t=A.height();d.cssBefore=d.cssBefore||{};var l;if(d.clip){if(/l2r/.test(d.clip)){l="rect(0px 0px "+t+"px 0px)"}else{if(/r2l/.test(d.clip)){l="rect(0px "+z+"px "+t+"px "+z+"px)"}else{if(/t2b/.test(d.clip)){l="rect(0px "+z+"px 0px 0px)"}else{if(/b2t/.test(d.clip)){l="rect("+t+"px "+z+"px "+t+"px 0px)"}else{if(/zoom/.test(d.clip)){var y=parseInt(t/2);var h=parseInt(z/2);l="rect("+y+"px "+h+"px "+y+"px "+h+"px)"}}}}}}d.cssBefore.clip=d.cssBefore.clip||l||"rect(0px 0px 0px 0px)";var v=d.cssBefore.clip.match(/(\d+)/g);var B=parseInt(v[0]),a=parseInt(v[1]),x=parseInt(v[2]),r=parseInt(v[3]);d.before.push(function(m,f,j){if(m==f){return}var e=b(m),c=b(f);b.fn.cycle.commonReset(m,f,j,true,true,false);j.cssAfter.display="block";var i=1,g=parseInt((j.speedIn/13))-1;(function k(){var q=B?B-parseInt(i*(B/g)):0;var s=r?r-parseInt(i*(r/g)):0;var n=x<t?x+parseInt(i*((t-x)/g||1)):t;var o=a<z?a+parseInt(i*((z-a)/g||1)):z;c.css({clip:"rect("+q+"px "+o+"px "+n+"px "+s+"px)"});(i++<=g)?setTimeout(k,13):e.css("display","none")})()});d.cssBefore={display:"block",opacity:1,top:0,left:0};d.animIn={left:0};d.animOut={left:0}}})(jQuery);(function(a){a.fn.hoverIntent=function(i,j){var b={sensitivity:7,interval:100,timeout:0};b=a.extend(b,j?{over:i,out:j}:i);var d,e,l,m;var n=function(f){d=f.pageX;e=f.pageY};var c=function(f,g){g.hoverIntent_t=clearTimeout(g.hoverIntent_t);if((Math.abs(l-d)+Math.abs(m-e))<b.sensitivity){a(g).unbind("mousemove",n);g.hoverIntent_s=1;return b.over.apply(g,[f])}else{l=d;m=e;g.hoverIntent_t=setTimeout(function(){c(f,g)},b.interval)}};var h=function(f,g){g.hoverIntent_t=clearTimeout(g.hoverIntent_t);g.hoverIntent_s=0;return b.out.apply(g,[f])};var k=function(f){var q=(f.type=="mouseover"?f.fromElement:f.toElement)||f.relatedTarget;while(q&&q!=this){try{q=q.parentNode}catch(f){q=this}}if(q==this){return false}var g=jQuery.extend({},f);var o=this;if(o.hoverIntent_t){o.hoverIntent_t=clearTimeout(o.hoverIntent_t)}if(f.type=="mouseover"){l=g.pageX;m=g.pageY;a(o).bind("mousemove",n);if(o.hoverIntent_s!=1){o.hoverIntent_t=setTimeout(function(){c(g,o)},b.interval)}}else{a(o).unbind("mousemove",n);if(o.hoverIntent_s==1){o.hoverIntent_t=setTimeout(function(){h(g,o)},b.timeout)}}};return this.mouseover(k).mouseout(k)}})(jQuery);
/*
 * jQuery corner plugin: simple corner rounding
 * Examples and documentation at: http://jquery.malsup.com/corner/
 * version 2.12 (23-MAY-2011)
 * Requires jQuery v1.3.2 or later
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Authors: Dave Methvin and Mike Alsup
 */
(function(a){var j=document.createElement("div").style,g=j.MozBorderRadius!==undefined,l=j.WebkitBorderRadius!==undefined,i=j.borderRadius!==undefined||j.BorderRadius!==undefined,f=document.documentMode||0,h=a.browser.msie&&((a.browser.version<8&&!f)||f<8),b=a.browser.msie&&(function(){var m=document.createElement("div");try{m.style.setExpression("width","0+0");m.style.removeExpression("width")}catch(n){return false}return true})();a.support=a.support||{};a.support.borderRadius=g||l||i;function k(m,n){return parseInt(a.css(m,n))||0}function e(m){m=parseInt(m).toString(16);return(m.length<2)?"0"+m:m}function d(m){while(m){var o=a.css(m,"backgroundColor"),n;if(o&&o!="transparent"&&o!="rgba(0, 0, 0, 0)"){if(o.indexOf("rgb")>=0){n=o.match(/\d+/g);return"#"+e(n[0])+e(n[1])+e(n[2])}return o}if(m.nodeName.toLowerCase()=="html"){break}m=m.parentNode}return"#ffffff"}function c(m,n,o){switch(m){case"round":return Math.round(o*(1-Math.cos(Math.asin(n/o))));case"cool":return Math.round(o*(1+Math.cos(Math.asin(n/o))));case"sharp":return o-n;case"bite":return Math.round(o*(Math.cos(Math.asin((o-n-1)/o))));case"slide":return Math.round(o*(Math.atan2(n,o/n)));case"jut":return Math.round(o*(Math.atan2(o,(o-n-1))));case"curl":return Math.round(o*(Math.atan(n)));case"tear":return Math.round(o*(Math.cos(n)));case"wicked":return Math.round(o*(Math.tan(n)));case"long":return Math.round(o*(Math.sqrt(n)));case"sculpt":return Math.round(o*(Math.log((o-n-1),o)));case"dogfold":case"dog":return(n&1)?(n+1):o;case"dog2":return(n&2)?(n+1):o;case"dog3":return(n&3)?(n+1):o;case"fray":return(n%2)*o;case"notch":return o;case"bevelfold":case"bevel":return n+1;case"steep":return n/2+1;case"invsteep":return(o-n)/2+1}}a.fn.corner=function(n){if(this.length==0){if(!a.isReady&&this.selector){var o=this.selector,m=this.context;a(function(){a(o,m).corner(n)})}return this}return this.each(function(H){var r=a(this),K=[r.attr(a.fn.corner.defaults.metaAttr)||"",n||""].join(" ").toLowerCase(),J=/keep/.test(K),x=((K.match(/cc:(#[0-9a-f]+)/)||[])[1]),O=((K.match(/sc:(#[0-9a-f]+)/)||[])[1]),R=parseInt((K.match(/(\d+)px/)||[])[1])||10,N=/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog|invsteep|steep/,F=((K.match(N)||["round"])[0]),E=/dogfold|bevelfold/.test(K),D={T:0,B:1},L={TL:/top|tl|left/.test(K),TR:/top|tr|right/.test(K),BL:/bottom|bl|left/.test(K),BR:/bottom|br|right/.test(K)},P,M,z,I,t,A,B,u,G,Q,C,v,y,q;if(!L.TL&&!L.TR&&!L.BL&&!L.BR){L={TL:1,TR:1,BL:1,BR:1}}if(a.fn.corner.defaults.useNative&&F=="round"&&(i||g||l)&&!x&&!O){if(L.TL){r.css(i?"border-top-left-radius":g?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",R+"px")}if(L.TR){r.css(i?"border-top-right-radius":g?"-moz-border-radius-topright":"-webkit-border-top-right-radius",R+"px")}if(L.BL){r.css(i?"border-bottom-left-radius":g?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",R+"px")}if(L.BR){r.css(i?"border-bottom-right-radius":g?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",R+"px")}return}P=document.createElement("div");a(P).css({overflow:"hidden",height:"1px",minHeight:"1px",fontSize:"1px",backgroundColor:O||"transparent",borderStyle:"solid"});M={T:parseInt(a.css(this,"paddingTop"))||0,R:parseInt(a.css(this,"paddingRight"))||0,B:parseInt(a.css(this,"paddingBottom"))||0,L:parseInt(a.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined){this.style.zoom=1}if(!J){this.style.border="none"}P.style.borderColor=x||d(this.parentNode);z=a(this).outerHeight();for(I in D){t=D[I];if((t&&(L.BL||L.BR))||(!t&&(L.TL||L.TR))){P.style.borderStyle="none "+(L[I+"R"]?"solid":"none")+" none "+(L[I+"L"]?"solid":"none");A=document.createElement("div");a(A).addClass("jquery-corner");B=A.style;t?this.appendChild(A):this.insertBefore(A,this.firstChild);if(t&&z!="auto"){if(a.css(this,"position")=="static"){this.style.position="relative"}B.position="absolute";B.bottom=B.left=B.padding=B.margin="0";if(b){B.setExpression("width","this.parentNode.offsetWidth")}else{B.width="100%"}}else{if(!t&&a.browser.msie){if(a.css(this,"position")=="static"){this.style.position="relative"}B.position="absolute";B.top=B.left=B.right=B.padding=B.margin="0";if(b){u=k(this,"borderLeftWidth")+k(this,"borderRightWidth");B.setExpression("width","this.parentNode.offsetWidth - "+u+'+ "px"')}else{B.width="100%"}}else{B.position="relative";B.margin=!t?"-"+M.T+"px -"+M.R+"px "+(M.T-R)+"px -"+M.L+"px":(M.B-R)+"px -"+M.R+"px -"+M.B+"px -"+M.L+"px"}}for(G=0;G<R;G++){Q=Math.max(0,c(F,G,R));C=P.cloneNode(false);C.style.borderWidth="0 "+(L[I+"R"]?Q:0)+"px 0 "+(L[I+"L"]?Q:0)+"px";t?A.appendChild(C):A.insertBefore(C,A.firstChild)}if(E&&a.support.boxModel){if(t&&h){continue}for(v in L){if(!L[v]){continue}if(t&&(v=="TL"||v=="TR")){continue}if(!t&&(v=="BL"||v=="BR")){continue}y={position:"absolute",border:"none",margin:0,padding:0,overflow:"hidden",backgroundColor:P.style.borderColor};q=a("<div/>").css(y).css({width:R+"px",height:"1px"});switch(v){case"TL":q.css({bottom:0,left:0});break;case"TR":q.css({bottom:0,right:0});break;case"BL":q.css({top:0,left:0});break;case"BR":q.css({top:0,right:0});break}A.appendChild(q[0]);var s=a("<div/>").css(y).css({top:0,bottom:0,width:"1px",height:R+"px"});switch(v){case"TL":s.css({left:R});break;case"TR":s.css({right:R});break;case"BL":s.css({left:R});break;case"BR":s.css({right:R});break}A.appendChild(s[0])}}}}})};a.fn.uncorner=function(){if(i||g||l){this.css(i?"border-radius":g?"-moz-border-radius":"-webkit-border-radius",0)}a("div.jquery-corner",this).remove();return this};a.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery);(function(a){a.fn.superfish=function(h){var k=a.fn.superfish,f=k.c,d=a(['<span class="',f.arrowClass,'"> &#187;</span>'].join("")),j=function(){var c=a(this),l=g(c);clearTimeout(l.sfTimer);c.showSuperfishUl().siblings().hideSuperfishUl()},i=function(){var c=a(this),l=g(c),m=k.op;clearTimeout(l.sfTimer);l.sfTimer=setTimeout(function(){m.retainPath=(a.inArray(c[0],m.$path)>-1);c.hideSuperfishUl();if(m.$path.length&&c.parents(["li.",m.hoverClass].join("")).length<1){j.call(m.$path)}},m.delay)},g=function(c){var l=c.parents(["ul.",f.menuClass,":first"].join(""))[0];k.op=k.o[l.serial];return l},e=function(c){c.addClass(f.anchorClass).append(d.clone())};return this.each(function(){var m=this.serial=k.o.length;var l=a.extend({},k.defaults,h);l.$path=a("li."+l.pathClass,this).slice(0,l.pathLevels).each(function(){a(this).addClass([l.hoverClass,f.bcClass].join(" ")).filter("li:has(ul)").removeClass(l.pathClass)});k.o[m]=k.op=l;a("li:has(ul)",this)[(a.fn.hoverIntent&&!l.disableHI)?"hoverIntent":"hover"](j,i).each(function(){if(l.autoArrows){e(a(">a:first-child",this))}}).not("."+f.bcClass).hideSuperfishUl();var c=a("a",this);c.each(function(o){var n=c.eq(o).parents("li");c.eq(o).focus(function(){j.call(n)}).blur(function(){i.call(n)})});l.onInit.call(this)}).each(function(){var c=[f.menuClass];if(k.op.dropShadows&&!(a.browser.msie&&a.browser.version<7)){c.push(f.shadowClass)}a(this).addClass(c.join(" "))})};var b=a.fn.superfish;b.o=[];b.op={};b.IE7fix=function(){var c=b.op;if(a.browser.msie&&a.browser.version>6&&c.dropShadows&&c.animation.opacity!=undefined){this.toggleClass(b.c.shadowClass+"-off")}};b.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};b.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:500,animation:{opacity:"show"},speed:"fast",autoArrows:false,dropShadows:false,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};a.fn.extend({hideSuperfishUl:function(){var e=b.op,d=(e.retainPath===true)?e.$path:"";e.retainPath=false;var c=a(["li.",e.hoverClass].join(""),this).add(this).not(d).removeClass(e.hoverClass).find(">ul").hide().css("visibility","hidden");e.onHide.call(c);return this},showSuperfishUl:function(){var d=b.op,e=b.c.shadowClass+"-off",c=this.addClass(d.hoverClass).find(">ul:hidden").css("visibility","visible");b.IE7fix.call(c);d.onBeforeShow.call(c);c.animate(d.animation,d.speed,function(){b.IE7fix.call(c);d.onShow.call(c)});return this}})})(jQuery);(function(d){var c=0;d.fn.twit=function(j,f){if(typeof j!="string"){return this}var g=d.extend({},d.fn.twit.defaults,f),e=d.isFunction(g.callback)?g.callback:b,i="http://twitter.com/statuses/user_timeline/"+j+".json",h={};g.user=j;h.count=g.count;return this.each(function(m,l){var k=$(l);if(!k.hasClass("twit")){k.addClass("twit")}d.ajax({url:i,data:h,dataType:"jsonp",success:function(n){e.apply(this,[(n.results)?n.results:n,l,g])}})})};d.fn.twit.defaults={user:null,callback:null,icon:true,username:true,text:true,count:200,limit:7,label:"Twitter",title:""};var b=function(k,g,l){var f=$(g);if(!k||k.length==0||f.length==0){return false}f.data("_inc",1);c++;var m=k[0].user.screen_name,j=k[0].user.profile_image_url;var i='<div class="twitHeader"> <span class="twitLabel">'+l.label+'</span>&nbsp;&nbsp; <span class="twitTitle">'+l.title+"</span></div>";if(l.icon||l.username){i+='<div class="twitUser">';if(l.icon){i+=' <a href="http://twitter.com/'+m+'/">  <img src="'+j+'" alt="'+m+'" title="'+m+'" style="vertical-align:middle;" /> </a>&nbsp;&nbsp;'}if(l.username){i+='<a href="http://twitter.com/'+m+'/">'+m+"</a>"}i+="</div>"}i+='<ul class="twitBody" id="twitList'+c+'">'+a(k,f,l)+"</ul>";f.html(i);$("#twitList"+c+" a.twitEntryShow").live("click.twitEntryShow"+c,function(h){h.preventDefault();var e=$(this);e.parent().fadeOut(400,function(){var n=f.data("_inc");n++;f.data("_inc",n);if(e.hasClass("twitEntryAll")){e.die("click.twitEntryShow"+c);var o=(n*l.limit)-l.limit;$(this).after(a(k,f,l,o,k.length)).remove()}else{$(this).after(a(k,f,l)).remove()}})})};var a=function(q,f,r,u,g){var k="",n=f.data("_inc"),v=u||(n*r.limit)-r.limit,j=g||((q.length>v+r.limit)?v+r.limit:q.length);for(var l=v;l<j;l++){var w=q[l],y=w.user.screen_name,m=w.user.profile_image_url;k+='<li class="twitEntry">';if(r.text){var x=w.text.replace(/(https?:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)/,function(h){var e=(h.length>30)?h.substr(0,30)+"...":h;return'<a href="'+h+'">'+e+"</a>"}).replace(/@([a-zA-Z0-9_]+)/g,'@<a href="http://twitter.com/$1">$1</a>').replace(/(?:^|\s)#([^\s\.\+:!]+)/g,function(e,h){return' <a href="http://twitter.com/search?q='+encodeURIComponent(h)+'">#'+h+"</a>"});k+=" <span>"+x+"</span>"}k+="</li>"}if(q.length>j){k+='<li class="twitNavi"><a href="#" class="twitEntryShow">more</a> &nbsp;/&nbsp;';if(q.length>r.limit){k+='<a href="#" class="twitEntryShow twitEntryAll">all</a>'}k+="</li>"}return k}})(jQuery);jQuery.fn.labelify=function(d){d=jQuery.extend({text:"title",labelledClass:""},d);var c={title:function(e){return $(e).attr("title")},label:function(e){return $("label[for="+e.id+"]").text()}};var b;var a=$(this);return $(this).each(function(){if(typeof d.text==="string"){b=c[d.text]}else{b=d.text}if(typeof b!=="function"){return}var e=b(this);if(!e){return}$(this).data("label",b(this).replace(/\n/g,""));$(this).focus(function(){if(this.value===$(this).data("label")){this.value=this.defaultValue;$(this).removeClass(d.labelledClass)}}).blur(function(){if(this.value===this.defaultValue){this.value=$(this).data("label");$(this).addClass(d.labelledClass)}});var f=function(){a.each(function(){if(this.value===$(this).data("label")){this.value=this.defaultValue;$(this).removeClass(d.labelledClass)}})};$(this).parents("form").submit(f);$(window).unload(f);if(this.value!==this.defaultValue){return}this.value=$(this).data("label");$(this).addClass(d.labelledClass)})};
