(function(a){function f(b){a.fn.cycle.debug&&k(b)}function k(){window.console&&window.console.log&&window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function c(b,d,i){function m(q,o,s){if(!q&&o===true){q=a(s).data("cycle.opts");if(!q){k("options not found, can not resume");return false}if(s.cycleTimeout){clearTimeout(s.cycleTimeout);s.cycleTimeout=0}y(q.elements,q,1,!l.rev&&!l.backwards)}}if(b.cycleStop==undefined)b.cycleStop=0;if(d===undefined||d===null)d={};if(d.constructor==
String){switch(d){case "destroy":case "stop":var l=a(b).data("cycle.opts");if(!l)return false;b.cycleStop++;b.cycleTimeout&&clearTimeout(b.cycleTimeout);b.cycleTimeout=0;a(b).removeData("cycle.opts");d=="destroy"&&j(l);return false;case "toggle":b.cyclePause=b.cyclePause===1?0:1;m(b.cyclePause,i,b);return false;case "pause":b.cyclePause=1;return false;case "resume":b.cyclePause=0;m(false,i,b);return false;case "prev":case "next":l=a(b).data("cycle.opts");if(!l){k('options not found, "prev/next" ignored');
return false}a.fn.cycle[d](l);return false;default:d={fx:d}}return d}else if(d.constructor==Number){var e=d;d=a(b).data("cycle.opts");if(!d){k("options not found, can not advance slide");return false}if(e<0||e>=d.elements.length){k("invalid slide index: "+e);return false}d.nextSlide=e;if(b.cycleTimeout){clearTimeout(b.cycleTimeout);b.cycleTimeout=0}if(typeof i=="string")d.oneTimeFx=i;y(d.elements,d,1,e>=d.currSlide);return false}return d}function g(b,d){if(!a.support.opacity&&d.cleartype&&b.style.filter)try{b.style.removeAttribute("filter")}catch(i){}}
function j(b){b.next&&a(b.next).unbind(b.prevNextEvent);b.prev&&a(b.prev).unbind(b.prevNextEvent);if(b.pager||b.pagerAnchorBuilder)a.each(b.pagerAnchors||[],function(){this.unbind().remove()});b.pagerAnchors=null;b.destroy&&b.destroy(b)}function h(b,d,i,m,l){var e=a.extend({},a.fn.cycle.defaults,m||{},a.metadata?b.metadata():a.meta?b.data():{});if(e.autostop)e.countdown=e.autostopCount||i.length;var q=b[0];b.data("cycle.opts",e);e.$cont=b;e.stopCount=q.cycleStop;e.elements=i;e.before=e.before?[e.before]:
[];e.after=e.after?[e.after]:[];e.after.unshift(function(){e.busy=0});!a.support.opacity&&e.cleartype&&e.after.push(function(){g(this,e)});e.continuous&&e.after.push(function(){y(i,e,0,!e.rev&&!e.backwards)});t(e);!a.support.opacity&&e.cleartype&&!e.cleartypeNoBg&&B(d);b.css("position")=="static"&&b.css("position","relative");e.width&&b.width(e.width);e.height&&e.height!="auto"&&b.height(e.height);if(e.startingSlide)e.startingSlide=parseInt(e.startingSlide);else if(e.backwards)e.startingSlide=i.length-
1;if(e.random){e.randomMap=[];for(q=0;q<i.length;q++)e.randomMap.push(q);e.randomMap.sort(function(){return Math.random()-0.5});e.randomIndex=1;e.startingSlide=e.randomMap[1]}else if(e.startingSlide>=i.length)e.startingSlide=0;e.currSlide=e.startingSlide||0;var o=e.startingSlide;d.css({position:"absolute",top:0,left:0}).hide().each(function(x){x=e.backwards?o?x<=o?i.length+(x-o):o-x:i.length-x:o?x>=o?i.length-(x-o):o-x:i.length-x;a(this).css("z-index",x)});a(i[o]).css("opacity",1).show();g(i[o],e);
e.fit&&e.width&&d.width(e.width);e.fit&&e.height&&e.height!="auto"&&d.height(e.height);if(e.containerResize&&!b.innerHeight()){for(var s=q=0,z=0;z<i.length;z++){var A=a(i[z]),C=A[0],D=A.outerWidth(),E=A.outerHeight();D||(D=C.offsetWidth||C.width||A.attr("width"));E||(E=C.offsetHeight||C.height||A.attr("height"));q=D>q?D:q;s=E>s?E:s}q>0&&s>0&&b.css({width:q+"px",height:s+"px"})}e.pause&&b.hover(function(){this.cyclePause++},function(){this.cyclePause--});if(u(e)===false)return false;var F=false;m.requeueAttempts=
m.requeueAttempts||0;d.each(function(){var x=a(this);this.cycleH=e.fit&&e.height?e.height:x.height()||this.offsetHeight||this.height||x.attr("height")||0;this.cycleW=e.fit&&e.width?e.width:x.width()||this.offsetWidth||this.width||x.attr("width")||0;if(x.is("img")){x=a.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete;var G=a.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,H=this.cycleH==0&&this.cycleW==0&&!this.complete;if(a.browser.msie&&
this.cycleW==28&&this.cycleH==30&&!this.complete||x||G||H)if(l.s&&e.requeueOnImageNotLoaded&&++m.requeueAttempts<100){k(m.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){a(l.s,l.c).cycle(m)},e.requeueTimeout);F=true;return false}else k("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return true});if(F)return false;e.cssBefore=e.cssBefore||{};e.animIn=e.animIn||{};e.animOut=e.animOut||{};d.not(":eq("+o+
")").css(e.cssBefore);e.cssFirst&&a(d[o]).css(e.cssFirst);if(e.timeout){e.timeout=parseInt(e.timeout);if(e.speed.constructor==String)e.speed=a.fx.speeds[e.speed]||parseInt(e.speed);e.sync||(e.speed/=2);for(q=e.fx=="shuffle"?500:250;e.timeout-e.speed<q;)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=i.length;e.currSlide=e.lastSlide=o;if(e.random){if(++e.randomIndex==i.length)e.randomIndex=0;e.nextSlide=e.randomMap[e.randomIndex]}else e.nextSlide=
e.backwards?e.startingSlide==0?i.length-1:e.startingSlide-1:e.startingSlide>=i.length-1?0:e.startingSlide+1;if(!e.multiFx){q=a.fn.cycle.transitions[e.fx];if(a.isFunction(q))q(b,d,e);else if(e.fx!="custom"&&!e.multiFx){k("unknown transition: "+e.fx,"; slideshow terminating");return false}}b=d[o];e.before.length&&e.before[0].apply(b,[b,b,e,true]);e.after.length>1&&e.after[1].apply(b,[b,b,e,true]);e.next&&a(e.next).bind(e.prevNextEvent,function(){return r(e,e.rev?-1:1)});e.prev&&a(e.prev).bind(e.prevNextEvent,
function(){return r(e,e.rev?1:-1)});if(e.pager||e.pagerAnchorBuilder)w(i,e);v(e,i);return e}function t(b){b.original={before:[],after:[]};b.original.cssBefore=a.extend({},b.cssBefore);b.original.cssAfter=a.extend({},b.cssAfter);b.original.animIn=a.extend({},b.animIn);b.original.animOut=a.extend({},b.animOut);a.each(b.before,function(){b.original.before.push(this)});a.each(b.after,function(){b.original.after.push(this)})}function u(b){var d,i,m=a.fn.cycle.transitions;if(b.fx.indexOf(",")>0){b.multiFx=
true;b.fxs=b.fx.replace(/\s*/g,"").split(",");for(d=0;d<b.fxs.length;d++){var l=b.fxs[d];i=m[l];if(!i||!m.hasOwnProperty(l)||!a.isFunction(i)){k("discarding unknown transition: ",l);b.fxs.splice(d,1);d--}}if(!b.fxs.length){k("No valid transitions named; slideshow terminating.");return false}}else if(b.fx=="all"){b.multiFx=true;b.fxs=[];for(p in m){i=m[p];m.hasOwnProperty(p)&&a.isFunction(i)&&b.fxs.push(p)}}if(b.multiFx&&b.randomizeEffects){i=Math.floor(Math.random()*20)+30;for(d=0;d<i;d++)b.fxs.push(b.fxs.splice(Math.floor(Math.random()*
b.fxs.length),1)[0]);f("randomized fx sequence: ",b.fxs)}return true}function v(b,d){b.addSlide=function(i,m){var l=a(i),e=l[0];b.autostopCount||b.countdown++;d[m?"unshift":"push"](e);if(b.els)b.els[m?"unshift":"push"](e);b.slideCount=d.length;l.css("position","absolute");l[m?"prependTo":"appendTo"](b.$cont);if(m){b.currSlide++;b.nextSlide++}!a.support.opacity&&b.cleartype&&!b.cleartypeNoBg&&B(l);b.fit&&b.width&&l.width(b.width);b.fit&&b.height&&b.height!="auto"&&$slides.height(b.height);e.cycleH=
b.fit&&b.height?b.height:l.height();e.cycleW=b.fit&&b.width?b.width:l.width();l.css(b.cssBefore);if(b.pager||b.pagerAnchorBuilder)a.fn.cycle.createPagerAnchor(d.length-1,e,a(b.pager),d,b);a.isFunction(b.onAddSlide)?b.onAddSlide(l):l.hide()}}function y(b,d,i,m){if(i&&d.busy&&d.manualTrump){f("manualTrump in go(), stopping active transition");a(b).stop(true,true);d.busy=false}if(d.busy)f("transition active, ignoring new tx request");else{var l=d.$cont[0],e=b[d.currSlide],q=b[d.nextSlide];if(!(l.cycleStop!=
d.stopCount||l.cycleTimeout===0&&!i))if(!i&&!l.cyclePause&&!d.bounce&&(d.autostop&&--d.countdown<=0||d.nowrap&&!d.random&&d.nextSlide<d.currSlide))d.end&&d.end(d);else{var o=false;if((i||!l.cyclePause)&&d.nextSlide!=d.currSlide){o=true;var s=d.fx;e.cycleH=e.cycleH||a(e).height();e.cycleW=e.cycleW||a(e).width();q.cycleH=q.cycleH||a(q).height();q.cycleW=q.cycleW||a(q).width();if(d.multiFx){if(d.lastFx==undefined||++d.lastFx>=d.fxs.length)d.lastFx=0;s=d.fxs[d.lastFx];d.currFx=s}if(d.oneTimeFx){s=d.oneTimeFx;
d.oneTimeFx=null}a.fn.cycle.resetState(d,s);d.before.length&&a.each(d.before,function(z,A){l.cycleStop==d.stopCount&&A.apply(q,[e,q,d,m])});s=function(){a.each(d.after,function(z,A){l.cycleStop==d.stopCount&&A.apply(q,[e,q,d,m])})};f("tx firing; currSlide: "+d.currSlide+"; nextSlide: "+d.nextSlide);d.busy=1;if(d.fxFn)d.fxFn(e,q,d,s,m,i&&d.fastOnEvent);else a.isFunction(a.fn.cycle[d.fx])?a.fn.cycle[d.fx](e,q,d,s,m,i&&d.fastOnEvent):a.fn.cycle.custom(e,q,d,s,m,i&&d.fastOnEvent)}if(o||d.nextSlide==d.currSlide){d.lastSlide=
d.currSlide;if(d.random){d.currSlide=d.nextSlide;if(++d.randomIndex==b.length)d.randomIndex=0;d.nextSlide=d.randomMap[d.randomIndex];if(d.nextSlide==d.currSlide)d.nextSlide=d.currSlide==d.slideCount-1?0:d.currSlide+1}else if(d.backwards)if((i=d.nextSlide-1<0)&&d.bounce){d.backwards=!d.backwards;d.nextSlide=1;d.currSlide=0}else{d.nextSlide=i?b.length-1:d.nextSlide-1;d.currSlide=i?0:d.nextSlide+1}else if((i=d.nextSlide+1==b.length)&&d.bounce){d.backwards=!d.backwards;d.nextSlide=b.length-2;d.currSlide=
b.length-1}else{d.nextSlide=i?0:d.nextSlide+1;d.currSlide=i?b.length-1:d.nextSlide-1}}o&&d.pager&&d.updateActivePagerLink(d.pager,d.currSlide,d.activePagerClass);o=0;if(d.timeout&&!d.continuous)o=n(b[d.currSlide],b[d.nextSlide],d,m);else if(d.continuous&&l.cyclePause)o=10;if(o>0)l.cycleTimeout=setTimeout(function(){y(b,d,0,!d.rev&&!d.backwards)},o)}}}function n(b,d,i,m){if(i.timeoutFn){for(b=i.timeoutFn.call(b,b,d,i,m);b-i.speed<250;)b+=i.speed;f("calculated timeout: "+b+"; speed: "+i.speed);if(b!==
false)return b}return i.timeout}function r(b,d){var i=b.elements,m=b.$cont[0],l=m.cycleTimeout;if(l){clearTimeout(l);m.cycleTimeout=0}if(b.random&&d<0){b.randomIndex--;if(--b.randomIndex==-2)b.randomIndex=i.length-2;else if(b.randomIndex==-1)b.randomIndex=i.length-1;b.nextSlide=b.randomMap[b.randomIndex]}else if(b.random)b.nextSlide=b.randomMap[b.randomIndex];else{b.nextSlide=b.currSlide+d;if(b.nextSlide<0){if(b.nowrap)return false;b.nextSlide=i.length-1}else if(b.nextSlide>=i.length){if(b.nowrap)return false;
b.nextSlide=0}}m=b.onPrevNextEvent||b.prevNextClick;a.isFunction(m)&&m(d>0,b.nextSlide,i[b.nextSlide]);y(i,b,1,d>=0);return false}function w(b,d){var i=a(d.pager);a.each(b,function(m,l){a.fn.cycle.createPagerAnchor(m,l,i,b,d)});d.updateActivePagerLink(d.pager,d.startingSlide,d.activePagerClass)}function B(b){function d(m){m=parseInt(m).toString(16);return m.length<2?"0"+m:m}function i(m){for(;m&&m.nodeName.toLowerCase()!="html";m=m.parentNode){var l=a.css(m,"background-color");if(l.indexOf("rgb")>=
0){m=l.match(/\d+/g);return"#"+d(m[0])+d(m[1])+d(m[2])}if(l&&l!="transparent")return l}return"#ffffff"}f("applying clearType background-color hack");b.each(function(){a(this).css("background-color",i(this))})}if(a.support==undefined)a.support={opacity:!a.browser.msie};a.fn.cycle=function(b,d){var i={s:this.selector,c:this.context};if(this.length===0&&b!="stop"){if(!a.isReady&&i.s){k("DOM not ready, queuing slideshow");a(function(){a(i.s,i.c).cycle(b,d)});return this}k("terminating; zero elements found by selector"+
(a.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var m=c(this,b,d);if(m!==false){m.updateActivePagerLink=m.updateActivePagerLink||a.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var l=a(this),e=m.slideExpr?a(m.slideExpr,this):l.children(),q=e.get();if(q.length<2)k("terminating; too few slides: "+q.length);else{var o=h(l,e,q,m,i);if(o!==false)if(l=o.continuous?10:n(q[o.currSlide],q[o.nextSlide],o,!o.rev)){l+=
o.delay||0;if(l<10)l=10;f("first timeout: "+l);this.cycleTimeout=setTimeout(function(){y(q,o,0,!o.rev&&!m.backwards)},l)}}}})};a.fn.cycle.resetState=function(b,d){d=d||b.fx;b.before=[];b.after=[];b.cssBefore=a.extend({},b.original.cssBefore);b.cssAfter=a.extend({},b.original.cssAfter);b.animIn=a.extend({},b.original.animIn);b.animOut=a.extend({},b.original.animOut);b.fxFn=null;a.each(b.original.before,function(){b.before.push(this)});a.each(b.original.after,function(){b.after.push(this)});var i=a.fn.cycle.transitions[d];
a.isFunction(i)&&i(b.$cont,a(b.elements),b)};a.fn.cycle.updateActivePagerLink=function(b,d,i){a(b).each(function(){a(this).children().removeClass(i).eq(d).addClass(i)})};a.fn.cycle.next=function(b){r(b,b.rev?-1:1)};a.fn.cycle.prev=function(b){r(b,b.rev?1:-1)};a.fn.cycle.createPagerAnchor=function(b,d,i,m,l){if(a.isFunction(l.pagerAnchorBuilder)){d=l.pagerAnchorBuilder(b,d);f("pagerAnchorBuilder("+b+", el) returned: "+d)}else d='<a href="#">'+(b+1)+"</a>";if(d){var e=a(d);if(e.parents("body").length===
0){var q=[];if(i.length>1){i.each(function(){var o=e.clone(true);a(this).append(o);q.push(o[0])});e=a(q)}else e.appendTo(i)}l.pagerAnchors=l.pagerAnchors||[];l.pagerAnchors.push(e);e.bind(l.pagerEvent,function(o){o.preventDefault();l.nextSlide=b;o=l.$cont[0];var s=o.cycleTimeout;if(s){clearTimeout(s);o.cycleTimeout=0}o=l.onPagerEvent||l.pagerClick;a.isFunction(o)&&o(l.nextSlide,m[l.nextSlide]);y(m,l,1,l.currSlide<b)});!/^click/.test(l.pagerEvent)&&!l.allowPagerClickBubble&&e.bind("click.cycle",function(){return false});
l.pauseOnPagerHover&&e.hover(function(){l.$cont[0].cyclePause++},function(){l.$cont[0].cyclePause--})}};a.fn.cycle.hopsFromLast=function(b,d){var i=b.lastSlide,m=b.currSlide;return d?m>i?m-i:b.slideCount-i:m<i?i-m:i+b.slideCount-m};a.fn.cycle.commonReset=function(b,d,i,m,l,e){a(i.elements).not(b).hide();i.cssBefore.opacity=1;i.cssBefore.display="block";if(m!==false&&d.cycleW>0)i.cssBefore.width=d.cycleW;if(l!==false&&d.cycleH>0)i.cssBefore.height=d.cycleH;i.cssAfter=i.cssAfter||{};i.cssAfter.display=
"none";a(b).css("zIndex",i.slideCount+(e===true?1:0));a(d).css("zIndex",i.slideCount+(e===true?0:1))};a.fn.cycle.custom=function(b,d,i,m,l,e){var q=a(b),o=a(d),s=i.speedIn;b=i.speedOut;var z=i.easeIn;d=i.easeOut;o.css(i.cssBefore);if(e){s=typeof e=="number"?b=e:b=1;z=d=null}q.animate(i.animOut,b,d,function(){i.cssAfter&&q.css(i.cssAfter);i.sync||o.animate(i.animIn,s,z,m)});i.sync&&o.animate(i.animIn,s,z,m)};a.fn.cycle.transitions={fade:function(b,d,i){d.not(":eq("+i.currSlide+")").css("opacity",0);
i.before.push(function(m,l,e){a.fn.cycle.commonReset(m,l,e);e.cssBefore.opacity=0});i.animIn={opacity:1};i.animOut={opacity:0};i.cssBefore={top:0,left:0}}};a.fn.cycle.ver=function(){return"2.88"};a.fn.cycle.defaults={fx:"fade",timeout:4E3,timeoutFn:null,continuous:0,speed:1E3,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,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:!a.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null,backwards:false}})(jQuery);
(function(a){a.fn.cycle.transitions.none=function(f,k,c){c.fxFn=function(g,j,h,t){a(j).show();a(g).hide();t()}};a.fn.cycle.transitions.scrollUp=function(f,k,c){f.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);f=f.height();c.cssBefore={top:f,left:0};c.cssFirst={top:0};c.animIn={top:0};c.animOut={top:-f}};a.fn.cycle.transitions.scrollDown=function(f,k,c){f.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);f=f.height();c.cssFirst={top:0};c.cssBefore={top:-f,left:0};c.animIn=
{top:0};c.animOut={top:f}};a.fn.cycle.transitions.scrollLeft=function(f,k,c){f.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);f=f.width();c.cssFirst={left:0};c.cssBefore={left:f,top:0};c.animIn={left:0};c.animOut={left:0-f}};a.fn.cycle.transitions.scrollRight=function(f,k,c){f.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);f=f.width();c.cssFirst={left:0};c.cssBefore={left:-f,top:0};c.animIn={left:0};c.animOut={left:f}};a.fn.cycle.transitions.scrollHorz=function(f,k,
c){f.css("overflow","hidden").width();c.before.push(function(g,j,h,t){a.fn.cycle.commonReset(g,j,h);h.cssBefore.left=t?j.cycleW-1:1-j.cycleW;h.animOut.left=t?-g.cycleW:g.cycleW});c.cssFirst={left:0};c.cssBefore={top:0};c.animIn={left:0};c.animOut={top:0}};a.fn.cycle.transitions.scrollVert=function(f,k,c){f.css("overflow","hidden");c.before.push(function(g,j,h,t){a.fn.cycle.commonReset(g,j,h);h.cssBefore.top=t?1-j.cycleH:j.cycleH-1;h.animOut.top=t?g.cycleH:-g.cycleH});c.cssFirst={top:0};c.cssBefore=
{left:0};c.animIn={top:0};c.animOut={left:0}};a.fn.cycle.transitions.slideX=function(f,k,c){c.before.push(function(g,j,h){a(h.elements).not(g).hide();a.fn.cycle.commonReset(g,j,h,false,true);h.animIn.width=j.cycleW});c.cssBefore={left:0,top:0,width:0};c.animIn={width:"show"};c.animOut={width:0}};a.fn.cycle.transitions.slideY=function(f,k,c){c.before.push(function(g,j,h){a(h.elements).not(g).hide();a.fn.cycle.commonReset(g,j,h,true,false);h.animIn.height=j.cycleH});c.cssBefore={left:0,top:0,height:0};
c.animIn={height:"show"};c.animOut={height:0}};a.fn.cycle.transitions.shuffle=function(f,k,c){f=f.css("overflow","visible").width();k.css({left:0,top:0});c.before.push(function(g,j,h){a.fn.cycle.commonReset(g,j,h,true,true,true)});if(!c.speedAdjusted){c.speed/=2;c.speedAdjusted=true}c.random=0;c.shuffle=c.shuffle||{left:-f,top:15};c.els=[];for(f=0;f<k.length;f++)c.els.push(k[f]);for(f=0;f<c.currSlide;f++)c.els.push(c.els.shift());c.fxFn=function(g,j,h,t,u){var v=u?a(g):a(j);a(j).css(h.cssBefore);
var y=h.slideCount;v.animate(h.shuffle,h.speedIn,h.easeIn,function(){for(var n=a.fn.cycle.hopsFromLast(h,u),r=0;r<n;r++)u?h.els.push(h.els.shift()):h.els.unshift(h.els.pop());if(u){n=0;for(r=h.els.length;n<r;n++)a(h.els[n]).css("z-index",r-n+y)}else{n=a(g).css("z-index");v.css("z-index",parseInt(n)+1+y)}v.animate({left:0,top:0},h.speedOut,h.easeOut,function(){a(u?this:g).hide();t&&t()})})};c.cssBefore={display:"block",opacity:1,top:0,left:0}};a.fn.cycle.transitions.turnUp=function(f,k,c){c.before.push(function(g,
j,h){a.fn.cycle.commonReset(g,j,h,true,false);h.cssBefore.top=j.cycleH;h.animIn.height=j.cycleH});c.cssFirst={top:0};c.cssBefore={left:0,height:0};c.animIn={top:0};c.animOut={height:0}};a.fn.cycle.transitions.turnDown=function(f,k,c){c.before.push(function(g,j,h){a.fn.cycle.commonReset(g,j,h,true,false);h.animIn.height=j.cycleH;h.animOut.top=g.cycleH});c.cssFirst={top:0};c.cssBefore={left:0,top:0,height:0};c.animOut={height:0}};a.fn.cycle.transitions.turnLeft=function(f,k,c){c.before.push(function(g,
j,h){a.fn.cycle.commonReset(g,j,h,false,true);h.cssBefore.left=j.cycleW;h.animIn.width=j.cycleW});c.cssBefore={top:0,width:0};c.animIn={left:0};c.animOut={width:0}};a.fn.cycle.transitions.turnRight=function(f,k,c){c.before.push(function(g,j,h){a.fn.cycle.commonReset(g,j,h,false,true);h.animIn.width=j.cycleW;h.animOut.left=g.cycleW});c.cssBefore={top:0,left:0,width:0};c.animIn={left:0};c.animOut={width:0}};a.fn.cycle.transitions.zoom=function(f,k,c){c.before.push(function(g,j,h){a.fn.cycle.commonReset(g,
j,h,false,false,true);h.cssBefore.top=j.cycleH/2;h.cssBefore.left=j.cycleW/2;h.animIn={top:0,left:0,width:j.cycleW,height:j.cycleH};h.animOut={width:0,height:0,top:g.cycleH/2,left:g.cycleW/2}});c.cssFirst={top:0,left:0};c.cssBefore={width:0,height:0}};a.fn.cycle.transitions.fadeZoom=function(f,k,c){c.before.push(function(g,j,h){a.fn.cycle.commonReset(g,j,h,false,false);h.cssBefore.left=j.cycleW/2;h.cssBefore.top=j.cycleH/2;h.animIn={top:0,left:0,width:j.cycleW,height:j.cycleH}});c.cssBefore={width:0,
height:0};c.animOut={opacity:0}};a.fn.cycle.transitions.blindX=function(f,k,c){f=f.css("overflow","hidden").width();c.before.push(function(g,j,h){a.fn.cycle.commonReset(g,j,h);h.animIn.width=j.cycleW;h.animOut.left=g.cycleW});c.cssBefore={left:f,top:0};c.animIn={left:0};c.animOut={left:f}};a.fn.cycle.transitions.blindY=function(f,k,c){f=f.css("overflow","hidden").height();c.before.push(function(g,j,h){a.fn.cycle.commonReset(g,j,h);h.animIn.height=j.cycleH;h.animOut.top=g.cycleH});c.cssBefore={top:f,
left:0};c.animIn={top:0};c.animOut={top:f}};a.fn.cycle.transitions.blindZ=function(f,k,c){k=f.css("overflow","hidden").height();f=f.width();c.before.push(function(g,j,h){a.fn.cycle.commonReset(g,j,h);h.animIn.height=j.cycleH;h.animOut.top=g.cycleH});c.cssBefore={top:k,left:f};c.animIn={top:0,left:0};c.animOut={top:k,left:f}};a.fn.cycle.transitions.growX=function(f,k,c){c.before.push(function(g,j,h){a.fn.cycle.commonReset(g,j,h,false,true);h.cssBefore.left=this.cycleW/2;h.animIn={left:0,width:this.cycleW};
h.animOut={left:0}});c.cssBefore={width:0,top:0}};a.fn.cycle.transitions.growY=function(f,k,c){c.before.push(function(g,j,h){a.fn.cycle.commonReset(g,j,h,true,false);h.cssBefore.top=this.cycleH/2;h.animIn={top:0,height:this.cycleH};h.animOut={top:0}});c.cssBefore={height:0,left:0}};a.fn.cycle.transitions.curtainX=function(f,k,c){c.before.push(function(g,j,h){a.fn.cycle.commonReset(g,j,h,false,true,true);h.cssBefore.left=j.cycleW/2;h.animIn={left:0,width:this.cycleW};h.animOut={left:g.cycleW/2,width:0}});
c.cssBefore={top:0,width:0}};a.fn.cycle.transitions.curtainY=function(f,k,c){c.before.push(function(g,j,h){a.fn.cycle.commonReset(g,j,h,true,false,true);h.cssBefore.top=j.cycleH/2;h.animIn={top:0,height:j.cycleH};h.animOut={top:g.cycleH/2,height:0}});c.cssBefore={left:0,height:0}};a.fn.cycle.transitions.cover=function(f,k,c){var g=c.direction||"left",j=f.css("overflow","hidden").width(),h=f.height();c.before.push(function(t,u,v){a.fn.cycle.commonReset(t,u,v);if(g=="right")v.cssBefore.left=-j;else if(g==
"up")v.cssBefore.top=h;else if(g=="down")v.cssBefore.top=-h;else v.cssBefore.left=j});c.animIn={left:0,top:0};c.animOut={opacity:1};c.cssBefore={top:0,left:0}};a.fn.cycle.transitions.uncover=function(f,k,c){var g=c.direction||"left",j=f.css("overflow","hidden").width(),h=f.height();c.before.push(function(t,u,v){a.fn.cycle.commonReset(t,u,v,true,true,true);if(g=="right")v.animOut.left=j;else if(g=="up")v.animOut.top=-h;else if(g=="down")v.animOut.top=h;else v.animOut.left=-j});c.animIn={left:0,top:0};
c.animOut={opacity:1};c.cssBefore={top:0,left:0}};a.fn.cycle.transitions.toss=function(f,k,c){var g=f.css("overflow","visible").width(),j=f.height();c.before.push(function(h,t,u){a.fn.cycle.commonReset(h,t,u,true,true,true);if(!u.animOut.left&&!u.animOut.top)u.animOut={left:g*2,top:-j/2,opacity:0};else u.animOut.opacity=0});c.cssBefore={left:0,top:0};c.animIn={left:0}};a.fn.cycle.transitions.wipe=function(f,k,c){var g=f.css("overflow","hidden").width(),j=f.height();c.cssBefore=c.cssBefore||{};var h;
if(c.clip)if(/l2r/.test(c.clip))h="rect(0px 0px "+j+"px 0px)";else if(/r2l/.test(c.clip))h="rect(0px "+g+"px "+j+"px "+g+"px)";else if(/t2b/.test(c.clip))h="rect(0px "+g+"px 0px 0px)";else if(/b2t/.test(c.clip))h="rect("+j+"px "+g+"px "+j+"px 0px)";else if(/zoom/.test(c.clip)){f=parseInt(j/2);k=parseInt(g/2);h="rect("+f+"px "+k+"px "+f+"px "+k+"px)"}c.cssBefore.clip=c.cssBefore.clip||h||"rect(0px 0px 0px 0px)";f=c.cssBefore.clip.match(/(\d+)/g);var t=parseInt(f[0]),u=parseInt(f[1]),v=parseInt(f[2]),
y=parseInt(f[3]);c.before.push(function(n,r,w){if(n!=r){var B=a(n),b=a(r);a.fn.cycle.commonReset(n,r,w,true,true,false);w.cssAfter.display="block";var d=1,i=parseInt(w.speedIn/13)-1;(function m(){var l=t?t-parseInt(d*(t/i)):0,e=y?y-parseInt(d*(y/i)):0,q=v<j?v+parseInt(d*((j-v)/i||1)):j,o=u<g?u+parseInt(d*((g-u)/i||1)):g;b.css({clip:"rect("+l+"px "+o+"px "+q+"px "+e+"px)"});d++<=i?setTimeout(m,13):B.css("display","none")})()}});c.cssBefore={display:"block",opacity:1,top:0,left:0};c.animIn={left:0};
c.animOut={left:0}}})(jQuery);
jQuery.extend({easing:{easein:function(a,f,k,c,g){return c*(f/=g)*f+k},easeinout:function(a,f,k,c,g){if(f<g/2)return 2*c*f*f/(g*g)+k;a=f-g/2;return-2*c*a*a/(g*g)+2*c*a/g+c/2+k},easeout:function(a,f,k,c,g){return-c*f*f/(g*g)+2*c*f/g+k},expoin:function(a,f,k,c,g){a=1;if(c<0){a*=-1;c*=-1}return a*Math.exp(Math.log(c)/g*f)+k},expoout:function(a,f,k,c,g){a=1;if(c<0){a*=-1;c*=-1}return a*(-Math.exp(-Math.log(c)/g*(f-g))+c+1)+k},expoinout:function(a,f,k,c,g){a=1;if(c<0){a*=-1;c*=-1}if(f<g/2)return a*Math.exp(Math.log(c/
2)/(g/2)*f)+k;return a*(-Math.exp(-2*Math.log(c/2)/g*(f-g))+c+1)+k},bouncein:function(a,f,k,c,g){return c-jQuery.easing.bounceout(a,g-f,0,c,g)+k},bounceout:function(a,f,k,c,g){return(f/=g)<1/2.75?c*7.5625*f*f+k:f<2/2.75?c*(7.5625*(f-=1.5/2.75)*f+0.75)+k:f<2.5/2.75?c*(7.5625*(f-=2.25/2.75)*f+0.9375)+k:c*(7.5625*(f-=2.625/2.75)*f+0.984375)+k},bounceinout:function(a,f,k,c,g){if(f<g/2)return jQuery.easing.bouncein(a,f*2,0,c,g)*0.5+k;return jQuery.easing.bounceout(a,f*2-g,0,c,g)*0.5+c*0.5+k},elasin:function(a,
f,k,c,g){a=1.70158;var j=0,h=c;if(f==0)return k;if((f/=g)==1)return k+c;j||(j=g*0.3);if(h<Math.abs(c)){h=c;a=j/4}else a=j/(2*Math.PI)*Math.asin(c/h);return-(h*Math.pow(2,10*(f-=1))*Math.sin((f*g-a)*2*Math.PI/j))+k},elasout:function(a,f,k,c,g){a=1.70158;var j=0,h=c;if(f==0)return k;if((f/=g)==1)return k+c;j||(j=g*0.3);if(h<Math.abs(c)){h=c;a=j/4}else a=j/(2*Math.PI)*Math.asin(c/h);return h*Math.pow(2,-10*f)*Math.sin((f*g-a)*2*Math.PI/j)+c+k},elasinout:function(a,f,k,c,g){a=1.70158;var j=0,h=c;if(f==
0)return k;if((f/=g/2)==2)return k+c;j||(j=g*0.3*1.5);if(h<Math.abs(c)){h=c;a=j/4}else a=j/(2*Math.PI)*Math.asin(c/h);if(f<1)return-0.5*h*Math.pow(2,10*(f-=1))*Math.sin((f*g-a)*2*Math.PI/j)+k;return h*Math.pow(2,-10*(f-=1))*Math.sin((f*g-a)*2*Math.PI/j)*0.5+c+k},backin:function(a,f,k,c,g){return c*(f/=g)*f*(2.70158*f-1.70158)+k},backout:function(a,f,k,c,g){return c*((f=f/g-1)*f*(2.70158*f+1.70158)+1)+k},backinout:function(a,f,k,c,g){a=1.70158;if((f/=g/2)<1)return c/2*f*f*(((a*=1.525)+1)*f-a)+k;return c/
2*((f-=2)*f*(((a*=1.525)+1)*f+a)+2)+k},linear:function(a,f,k,c,g){return c*f/g+k}}});
(function(a){function f(n){if(a.facebox.settings.inited)return true;else a.facebox.settings.inited=true;a(document).trigger("init.facebox");g();var r=a.facebox.settings.imageTypes.join("|");a.facebox.settings.imageTypesRegexp=RegExp(".("+r+")$","i");n&&a.extend(a.facebox.settings,n);a("body").append(a.facebox.settings.faceboxHtml);var w=[new Image,new Image];w[0].src=a.facebox.settings.closeImage;w[1].src=a.facebox.settings.loadingImage;a("#facebox").find(".b:first, .bl").each(function(){w.push(new Image);
w.slice(-1).src=a(this).css("background-image").replace(/url\((.+)\)/,"$1")});a("#facebox .close").click(a.facebox.close).append('<img src="'+a.facebox.settings.closeImage+'" class="close_image" title="close">')}function k(){var n,r;if(self.pageYOffset){r=self.pageYOffset;n=self.pageXOffset}else if(document.documentElement&&document.documentElement.scrollTop){r=document.documentElement.scrollTop;n=document.documentElement.scrollLeft}else if(document.body){r=document.body.scrollTop;n=document.body.scrollLeft}return[n,
r]}function c(){var n;if(self.innerHeight)n=self.innerHeight;else if(document.documentElement&&document.documentElement.clientHeight)n=document.documentElement.clientHeight;else if(document.body)n=document.body.clientHeight;return n}function g(){var n=a.facebox.settings;n.loadingImage=n.loading_image||n.loadingImage;n.closeImage=n.close_image||n.closeImage;n.imageTypes=n.image_types||n.imageTypes;n.faceboxHtml=n.facebox_html||n.faceboxHtml}function j(n,r){if(n.match(/#/)){var w=window.location.href.split("#")[0];
w=n.replace(w,"");w!="#"&&a.facebox.reveal(a(w).html(),r)}else n.match(a.facebox.settings.imageTypesRegexp)?h(n,r):t(n,r)}function h(n,r){var w=new Image;w.onload=function(){a.facebox.reveal('<div class="image"><img src="'+w.src+'" /></div>',r)};w.src=n}function t(n,r){a.get(n,function(w){a.facebox.reveal(w,r)})}function u(){return a.facebox.settings.overlay==false||a.facebox.settings.opacity===null}function v(){if(!u()){a("#facebox_overlay").length==0&&a("body").append('<div id="facebox_overlay" class="facebox_hide"></div>');
a("#facebox_overlay").hide().addClass("facebox_overlayBG").css("opacity",a.facebox.settings.opacity).click(function(){a(document).trigger("close.facebox")}).fadeIn(200);return false}}function y(){if(!u()){a("#facebox_overlay").fadeOut(200,function(){a("#facebox_overlay").removeClass("facebox_overlayBG");a("#facebox_overlay").addClass("facebox_hide");a("#facebox_overlay").remove()});return false}}a.facebox=function(n,r){a.facebox.loading();if(n.ajax)t(n.ajax,r);else if(n.image)h(n.image,r);else if(n.div)j(n.div,
r);else a.isFunction(n)?n.call(a):a.facebox.reveal(n,r)};a.extend(a.facebox,{settings:{opacity:0.85,overlay:true,loadingImage:"/images/site/cross.png",closeImage:"/images/site/cross.png",imageTypes:["png","jpg","jpeg","gif"],faceboxHtml:'    <div id="facebox" style="display:none;">       <div class="popup">         <div class="content">         </div>         <a href="#" class="close"></a>       </div>     </div>'},loading:function(){f();if(a("#facebox .loading").length==1)return true;v();a("#facebox .content").empty();
a("#facebox .body").children().hide().end().append('<div class="loading"><img src="'+a.facebox.settings.loadingImage+'"/></div>');a("#facebox").css({top:k()[1]+c()/10,left:(a(window).width()-a("#facebox").width())/2}).show();a(document).bind("keydown.facebox",function(n){n.keyCode==27&&a.facebox.close();return true});a(document).trigger("loading.facebox")},reveal:function(n,r){a(document).trigger("beforeReveal.facebox");r&&a("#facebox .content").addClass(r);a("#facebox .content").append(n);a("#facebox .loading").remove();
a("#facebox .body").children().fadeIn("normal");a("#facebox").css("left",a(window).width()/2-a("#facebox .popup").outerWidth()/2);a(document).trigger("reveal.facebox").trigger("afterReveal.facebox")},close:function(){a(document).trigger("close.facebox");return false}});a.fn.facebox=function(n){if(a(this).length!=0){f(n);return this.bind("click.facebox",function(){a.facebox.loading(true);var r=this.rel.match(/facebox\[?\.(\w+)\]?/);if(r)r=r[1];j(this.href,r);return false})}};a(document).bind("close.facebox",
function(){a(document).unbind("keydown.facebox");a("#facebox").fadeOut(function(){a("#facebox .content").removeClass().addClass("content");a("#facebox .loading").remove();a(document).trigger("afterClose.facebox")});y()})})(jQuery);window.linkify=(function(){var k="[a-z\\d.-]+://",h="(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])",c="(?:(?:[^\\s!@#$%^&*()_=+[\\]{}\\\\|;:'\",.<>/?]+)\\.)+",n="(?:ac|ad|aero|ae|af|ag|ai|al|am|an|ao|aq|arpa|ar|asia|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|biz|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|cat|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|coop|com|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|info|int|in|io|iq|ir|is|it|je|jm|jobs|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mil|mk|ml|mm|mn|mobi|mo|mp|mq|mr|ms|mt|museum|mu|mv|mw|mx|my|mz|name|na|nc|net|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pro|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tel|tf|tg|th|tj|tk|tl|tm|tn|to|tp|travel|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|xn--0zwm56d|xn--11b5bs3a9aj6g|xn--80akhbyknj4f|xn--9t4b11yi5a|xn--deba0ad|xn--g6w251d|xn--hgbk6aj7f53bba|xn--hlcj6aya9esc7a|xn--jxalpdlp|xn--kgbechtv|xn--zckzah|ye|yt|yu|za|zm|zw)",f="(?:"+c+n+"|"+h+")",o="(?:[;/][^#?<>\\s]*)?",e="(?:\\?[^#<>\\s]*)?(?:#[^<>\\s]*)?",d="\\b"+k+"[^<>\\s]+",a="\\b"+f+o+e+"(?!\\w)",m="mailto:",j="(?:"+m+")?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@"+f+e+"(?!\\w)",l=new RegExp("(?:"+d+"|"+a+"|"+j+")","ig"),g=new RegExp("^"+k,"i"),b={"'":"`",">":"<",")":"(","]":"[","}":"{","B;":"B+","b :":"b 9"},i={callback:function(q,p){return p?'<a href="'+p+'" title="'+p+'">'+q+"</a>":q},punct_regexp:/(?:[!?.,:;'"]|(?:&|&amp;)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)$/};return function(u,z){z=z||{};var w,v,A,p,x="",t=[],s,E,C,y,q,D,B,r;for(v in i){if(z[v]===undefined){z[v]=i[v]}}while(w=l.exec(u)){A=w[0];E=l.lastIndex;C=E-A.length;if(/[\/:]/.test(u.charAt(C-1))){continue}do{y=A;r=A.substr(-1);B=b[r];if(B){q=A.match(new RegExp("\\"+B+"(?!$)","g"));D=A.match(new RegExp("\\"+r,"g"));if((q?q.length:0)<(D?D.length:0)){A=A.substr(0,A.length-1);E--}}if(z.punct_regexp){A=A.replace(z.punct_regexp,function(F){E-=F.length;return""})}}while(A.length&&A!==y);p=A;if(!g.test(p)){p=(p.indexOf("@")!==-1?(!p.indexOf(m)?"":m):!p.indexOf("irc.")?"irc://":!p.indexOf("ftp.")?"ftp://":"http://")+p}if(s!=C){t.push([u.slice(s,C)]);s=E}t.push([A,p])}t.push([u.substr(s)]);for(v=0;v<t.length;v++){x+=z.callback.apply(window,t[v])}return x||u}})();
