(function(b){function h(a){b.fn.cycle.debug&&m(a)}function m(){window.console&&window.console.log&&window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function e(a,c,f){function j(d,o,n){if(!d&&o===true){d=b(n).data("cycle.opts");if(!d){m("options not found, can not resume");return false}if(n.cycleTimeout){clearTimeout(n.cycleTimeout);n.cycleTimeout=0}v(d.elements,d,1,1)}}if(a.cycleStop==undefined)a.cycleStop=0;if(c===undefined||c===null)c={};if(c.constructor==String){switch(c){case "destroy":case "stop":f=
b(a).data("cycle.opts");if(!f)return false;a.cycleStop++;a.cycleTimeout&&clearTimeout(a.cycleTimeout);a.cycleTimeout=0;b(a).removeData("cycle.opts");c=="destroy"&&i(f);return false;case "toggle":a.cyclePause=a.cyclePause===1?0:1;j(a.cyclePause,f,a);return false;case "pause":a.cyclePause=1;return false;case "resume":a.cyclePause=0;j(false,f,a);return false;case "prev":case "next":f=b(a).data("cycle.opts");if(!f){m('options not found, "prev/next" ignored');return false}b.fn.cycle[c](f);return false;
default:c={fx:c}}return c}else if(c.constructor==Number){var l=c;c=b(a).data("cycle.opts");if(!c){m("options not found, can not advance slide");return false}if(l<0||l>=c.elements.length){m("invalid slide index: "+l);return false}c.nextSlide=l;if(a.cycleTimeout){clearTimeout(a.cycleTimeout);a.cycleTimeout=0}if(typeof f=="string")c.oneTimeFx=f;v(c.elements,c,1,l>=c.currSlide);return false}return c}function k(a,c){if(!b.support.opacity&&c.cleartype&&a.style.filter)try{a.style.removeAttribute("filter")}catch(f){}}
function i(a){a.next&&b(a.next).unbind(a.prevNextEvent);a.prev&&b(a.prev).unbind(a.prevNextEvent);if(a.pager||a.pagerAnchorBuilder)b.each(a.pagerAnchors||[],function(){this.unbind().remove()});a.pagerAnchors=null;a.destroy&&a.destroy(a)}function g(a,c,f,j,l){var d=b.extend({},b.fn.cycle.defaults,j||{},b.metadata?a.metadata():b.meta?a.data():{});if(d.autostop)d.countdown=d.autostopCount||f.length;var o=a[0];a.data("cycle.opts",d);d.$cont=a;d.stopCount=o.cycleStop;d.elements=f;d.before=d.before?[d.before]:
[];d.after=d.after?[d.after]:[];d.after.unshift(function(){d.busy=0});!b.support.opacity&&d.cleartype&&d.after.push(function(){k(this,d)});d.continuous&&d.after.push(function(){v(f,d,0,!d.rev)});q(d);!b.support.opacity&&d.cleartype&&!d.cleartypeNoBg&&B(c);a.css("position")=="static"&&a.css("position","relative");d.width&&a.width(d.width);d.height&&d.height!="auto"&&a.height(d.height);if(d.startingSlide)d.startingSlide=parseInt(d.startingSlide);if(d.random){d.randomMap=[];for(o=0;o<f.length;o++)d.randomMap.push(o);
d.randomMap.sort(function(){return Math.random()-0.5});d.randomIndex=1;d.startingSlide=d.randomMap[1]}else if(d.startingSlide>=f.length)d.startingSlide=0;d.currSlide=d.startingSlide||0;var n=d.startingSlide;c.css({position:"absolute",top:0,left:0}).hide().each(function(w){w=n?w>=n?f.length-(w-n):n-w:f.length-w;b(this).css("z-index",w)});b(f[n]).css("opacity",1).show();k(f[n],d);d.fit&&d.width&&c.width(d.width);d.fit&&d.height&&d.height!="auto"&&c.height(d.height);if(d.containerResize&&!a.innerHeight()){for(var r=
o=0,y=0;y<f.length;y++){var z=b(f[y]),C=z[0],D=z.outerWidth(),E=z.outerHeight();D||(D=C.offsetWidth||C.width||z.attr("width"));E||(E=C.offsetHeight||C.height||z.attr("height"));o=D>o?D:o;r=E>r?E:r}o>0&&r>0&&a.css({width:o+"px",height:r+"px"})}d.pause&&a.hover(function(){this.cyclePause++},function(){this.cyclePause--});if(s(d)===false)return false;var F=false;j.requeueAttempts=j.requeueAttempts||0;c.each(function(){var w=b(this);this.cycleH=d.fit&&d.height?d.height:w.height()||this.offsetHeight||
this.height||w.attr("height")||0;this.cycleW=d.fit&&d.width?d.width:w.width()||this.offsetWidth||this.width||w.attr("width")||0;if(w.is("img")){w=b.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete;var G=b.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(b.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete||w||G||H)if(l.s&&d.requeueOnImageNotLoaded&&++j.requeueAttempts<
100){m(j.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){b(l.s,l.c).cycle(j)},d.requeueTimeout);F=true;return false}else m("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return true});if(F)return false;d.cssBefore=d.cssBefore||{};d.animIn=d.animIn||{};d.animOut=d.animOut||{};c.not(":eq("+n+")").css(d.cssBefore);d.cssFirst&&b(c[n]).css(d.cssFirst);if(d.timeout){d.timeout=parseInt(d.timeout);if(d.speed.constructor==
String)d.speed=b.fx.speeds[d.speed]||parseInt(d.speed);d.sync||(d.speed/=2);for(o=d.fx=="shuffle"?500:250;d.timeout-d.speed<o;)d.timeout+=d.speed}if(d.easing)d.easeIn=d.easeOut=d.easing;if(!d.speedIn)d.speedIn=d.speed;if(!d.speedOut)d.speedOut=d.speed;d.slideCount=f.length;d.currSlide=d.lastSlide=n;if(d.random){if(++d.randomIndex==f.length)d.randomIndex=0;d.nextSlide=d.randomMap[d.randomIndex]}else d.nextSlide=d.startingSlide>=f.length-1?0:d.startingSlide+1;if(!d.multiFx){o=b.fn.cycle.transitions[d.fx];
if(b.isFunction(o))o(a,c,d);else if(d.fx!="custom"&&!d.multiFx){m("unknown transition: "+d.fx,"; slideshow terminating");return false}}a=c[n];d.before.length&&d.before[0].apply(a,[a,a,d,true]);d.after.length>1&&d.after[1].apply(a,[a,a,d,true]);d.next&&b(d.next).bind(d.prevNextEvent,function(){return x(d,d.rev?-1:1)});d.prev&&b(d.prev).bind(d.prevNextEvent,function(){return x(d,d.rev?1:-1)});if(d.pager||d.pagerAnchorBuilder)A(f,d);t(d,f);return d}function q(a){a.original={before:[],after:[]};a.original.cssBefore=
b.extend({},a.cssBefore);a.original.cssAfter=b.extend({},a.cssAfter);a.original.animIn=b.extend({},a.animIn);a.original.animOut=b.extend({},a.animOut);b.each(a.before,function(){a.original.before.push(this)});b.each(a.after,function(){a.original.after.push(this)})}function s(a){var c,f,j=b.fn.cycle.transitions;if(a.fx.indexOf(",")>0){a.multiFx=true;a.fxs=a.fx.replace(/\s*/g,"").split(",");for(c=0;c<a.fxs.length;c++){var l=a.fxs[c];f=j[l];if(!f||!j.hasOwnProperty(l)||!b.isFunction(f)){m("discarding unknown transition: ",
l);a.fxs.splice(c,1);c--}}if(!a.fxs.length){m("No valid transitions named; slideshow terminating.");return false}}else if(a.fx=="all"){a.multiFx=true;a.fxs=[];for(p in j){f=j[p];j.hasOwnProperty(p)&&b.isFunction(f)&&a.fxs.push(p)}}if(a.multiFx&&a.randomizeEffects){f=Math.floor(Math.random()*20)+30;for(c=0;c<f;c++)a.fxs.push(a.fxs.splice(Math.floor(Math.random()*a.fxs.length),1)[0]);h("randomized fx sequence: ",a.fxs)}return true}function t(a,c){a.addSlide=function(f,j){var l=b(f),d=l[0];a.autostopCount||
a.countdown++;c[j?"unshift":"push"](d);if(a.els)a.els[j?"unshift":"push"](d);a.slideCount=c.length;l.css("position","absolute");l[j?"prependTo":"appendTo"](a.$cont);if(j){a.currSlide++;a.nextSlide++}!b.support.opacity&&a.cleartype&&!a.cleartypeNoBg&&B(l);a.fit&&a.width&&l.width(a.width);a.fit&&a.height&&a.height!="auto"&&$slides.height(a.height);d.cycleH=a.fit&&a.height?a.height:l.height();d.cycleW=a.fit&&a.width?a.width:l.width();l.css(a.cssBefore);if(a.pager||a.pagerAnchorBuilder)b.fn.cycle.createPagerAnchor(c.length-
1,d,b(a.pager),c,a);b.isFunction(a.onAddSlide)?a.onAddSlide(l):l.hide()}}function v(a,c,f,j){if(f&&c.busy&&c.manualTrump){h("manualTrump in go(), stopping active transition");b(a).stop(true,true);c.busy=false}if(c.busy)h("transition active, ignoring new tx request");else{var l=c.$cont[0],d=a[c.currSlide],o=a[c.nextSlide];if(!(l.cycleStop!=c.stopCount||l.cycleTimeout===0&&!f))if(!f&&!l.cyclePause&&(c.autostop&&--c.countdown<=0||c.nowrap&&!c.random&&c.nextSlide<c.currSlide))c.end&&c.end(c);else{var n=
false;if((f||!l.cyclePause)&&c.nextSlide!=c.currSlide){n=true;var r=c.fx;d.cycleH=d.cycleH||b(d).height();d.cycleW=d.cycleW||b(d).width();o.cycleH=o.cycleH||b(o).height();o.cycleW=o.cycleW||b(o).width();if(c.multiFx){if(c.lastFx==undefined||++c.lastFx>=c.fxs.length)c.lastFx=0;r=c.fxs[c.lastFx];c.currFx=r}if(c.oneTimeFx){r=c.oneTimeFx;c.oneTimeFx=null}b.fn.cycle.resetState(c,r);c.before.length&&b.each(c.before,function(y,z){l.cycleStop==c.stopCount&&z.apply(o,[d,o,c,j])});r=function(){b.each(c.after,
function(y,z){l.cycleStop==c.stopCount&&z.apply(o,[d,o,c,j])})};h("tx firing; currSlide: "+c.currSlide+"; nextSlide: "+c.nextSlide);c.busy=1;if(c.fxFn)c.fxFn(d,o,c,r,j,f&&c.fastOnEvent);else b.isFunction(b.fn.cycle[c.fx])?b.fn.cycle[c.fx](d,o,c,r,j,f&&c.fastOnEvent):b.fn.cycle.custom(d,o,c,r,j,f&&c.fastOnEvent)}if(n||c.nextSlide==c.currSlide){c.lastSlide=c.currSlide;if(c.random){c.currSlide=c.nextSlide;if(++c.randomIndex==a.length)c.randomIndex=0;c.nextSlide=c.randomMap[c.randomIndex];if(c.nextSlide==
c.currSlide)c.nextSlide=c.currSlide==c.slideCount-1?0:c.currSlide+1}else{f=c.nextSlide+1==a.length;c.nextSlide=f?0:c.nextSlide+1;c.currSlide=f?a.length-1:c.nextSlide-1}}n&&c.pager&&c.updateActivePagerLink(c.pager,c.currSlide,c.activePagerClass);n=0;if(c.timeout&&!c.continuous)n=u(d,o,c,j);else if(c.continuous&&l.cyclePause)n=10;if(n>0)l.cycleTimeout=setTimeout(function(){v(a,c,0,!c.rev)},n)}}}function u(a,c,f,j){if(f.timeoutFn){for(a=f.timeoutFn(a,c,f,j);a-f.speed<250;)a+=f.speed;h("calculated timeout: "+
a+"; speed: "+f.speed);if(a!==false)return a}return f.timeout}function x(a,c){var f=a.elements,j=a.$cont[0],l=j.cycleTimeout;if(l){clearTimeout(l);j.cycleTimeout=0}if(a.random&&c<0){a.randomIndex--;if(--a.randomIndex==-2)a.randomIndex=f.length-2;else if(a.randomIndex==-1)a.randomIndex=f.length-1;a.nextSlide=a.randomMap[a.randomIndex]}else if(a.random)a.nextSlide=a.randomMap[a.randomIndex];else{a.nextSlide=a.currSlide+c;if(a.nextSlide<0){if(a.nowrap)return false;a.nextSlide=f.length-1}else if(a.nextSlide>=
f.length){if(a.nowrap)return false;a.nextSlide=0}}j=a.onPrevNextEvent||a.prevNextClick;b.isFunction(j)&&j(c>0,a.nextSlide,f[a.nextSlide]);v(f,a,1,c>=0);return false}function A(a,c){var f=b(c.pager);b.each(a,function(j,l){b.fn.cycle.createPagerAnchor(j,l,f,a,c)});c.updateActivePagerLink(c.pager,c.startingSlide,c.activePagerClass)}function B(a){function c(j){j=parseInt(j).toString(16);return j.length<2?"0"+j:j}function f(j){for(;j&&j.nodeName.toLowerCase()!="html";j=j.parentNode){var l=b.css(j,"background-color");
if(l.indexOf("rgb")>=0){j=l.match(/\d+/g);return"#"+c(j[0])+c(j[1])+c(j[2])}if(l&&l!="transparent")return l}return"#ffffff"}h("applying clearType background-color hack");a.each(function(){b(this).css("background-color",f(this))})}if(b.support==undefined)b.support={opacity:!b.browser.msie};b.fn.cycle=function(a,c){var f={s:this.selector,c:this.context};if(this.length===0&&a!="stop"){if(!b.isReady&&f.s){m("DOM not ready, queuing slideshow");b(function(){b(f.s,f.c).cycle(a,c)});return this}m("terminating; zero elements found by selector"+
(b.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var j=e(this,a,c);if(j!==false){j.updateActivePagerLink=j.updateActivePagerLink||b.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var l=b(this),d=j.slideExpr?b(j.slideExpr,this):l.children(),o=d.get();if(o.length<2)m("terminating; too few slides: "+o.length);else{var n=g(l,d,o,j,f);if(n!==false)if(j=n.continuous?10:u(n.currSlide,n.nextSlide,n,!n.rev)){j+=
n.delay||0;if(j<10)j=10;h("first timeout: "+j);this.cycleTimeout=setTimeout(function(){v(o,n,0,!n.rev)},j)}}}})};b.fn.cycle.resetState=function(a,c){c=c||a.fx;a.before=[];a.after=[];a.cssBefore=b.extend({},a.original.cssBefore);a.cssAfter=b.extend({},a.original.cssAfter);a.animIn=b.extend({},a.original.animIn);a.animOut=b.extend({},a.original.animOut);a.fxFn=null;b.each(a.original.before,function(){a.before.push(this)});b.each(a.original.after,function(){a.after.push(this)});var f=b.fn.cycle.transitions[c];
b.isFunction(f)&&f(a.$cont,b(a.elements),a)};b.fn.cycle.updateActivePagerLink=function(a,c,f){b(a).each(function(){b(this).children().removeClass(f).eq(c).addClass(f)})};b.fn.cycle.next=function(a){x(a,a.rev?-1:1)};b.fn.cycle.prev=function(a){x(a,a.rev?1:-1)};b.fn.cycle.createPagerAnchor=function(a,c,f,j,l){if(b.isFunction(l.pagerAnchorBuilder)){c=l.pagerAnchorBuilder(a,c);h("pagerAnchorBuilder("+a+", el) returned: "+c)}else c='<a href="#">'+(a+1)+"</a>";if(c){var d=b(c);if(d.parents("body").length===
0){var o=[];if(f.length>1){f.each(function(){var n=d.clone(true);b(this).append(n);o.push(n[0])});d=b(o)}else d.appendTo(f)}l.pagerAnchors=l.pagerAnchors||[];l.pagerAnchors.push(d);d.bind(l.pagerEvent,function(n){n.preventDefault();l.nextSlide=a;n=l.$cont[0];var r=n.cycleTimeout;if(r){clearTimeout(r);n.cycleTimeout=0}n=l.onPagerEvent||l.pagerClick;b.isFunction(n)&&n(l.nextSlide,j[l.nextSlide]);v(j,l,1,l.currSlide<a)});!/^click/.test(l.pagerEvent)&&!l.allowPagerClickBubble&&d.bind("click.cycle",function(){return false});
l.pauseOnPagerHover&&d.hover(function(){l.$cont[0].cyclePause++},function(){l.$cont[0].cyclePause--})}};b.fn.cycle.hopsFromLast=function(a,c){var f=a.lastSlide,j=a.currSlide;return c?j>f?j-f:a.slideCount-f:j<f?f-j:f+a.slideCount-j};b.fn.cycle.commonReset=function(a,c,f,j,l,d){b(f.elements).not(a).hide();f.cssBefore.opacity=1;f.cssBefore.display="block";if(j!==false&&c.cycleW>0)f.cssBefore.width=c.cycleW;if(l!==false&&c.cycleH>0)f.cssBefore.height=c.cycleH;f.cssAfter=f.cssAfter||{};f.cssAfter.display=
"none";b(a).css("zIndex",f.slideCount+(d===true?1:0));b(c).css("zIndex",f.slideCount+(d===true?0:1))};b.fn.cycle.custom=function(a,c,f,j,l,d){var o=b(a),n=b(c),r=f.speedIn;a=f.speedOut;var y=f.easeIn;c=f.easeOut;n.css(f.cssBefore);if(d){r=typeof d=="number"?(a=d):(a=1);y=c=null}o.animate(f.animOut,a,c,function(){f.cssAfter&&o.css(f.cssAfter);f.sync||n.animate(f.animIn,r,y,j)});f.sync&&n.animate(f.animIn,r,y,j)};b.fn.cycle.transitions={fade:function(a,c,f){c.not(":eq("+f.currSlide+")").css("opacity",
0);f.before.push(function(j,l,d){b.fn.cycle.commonReset(j,l,d);d.cssBefore.opacity=0});f.animIn={opacity:1};f.animOut={opacity:0};f.cssBefore={top:0,left:0}}};b.fn.cycle.ver=function(){return"2.86"};b.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:!b.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null}})(jQuery);
(function(b){b.fn.cycle.transitions.none=function(h,m,e){e.fxFn=function(k,i,g,q){b(i).show();b(k).hide();q()}};b.fn.cycle.transitions.scrollUp=function(h,m,e){h.css("overflow","hidden");e.before.push(b.fn.cycle.commonReset);h=h.height();e.cssBefore={top:h,left:0};e.cssFirst={top:0};e.animIn={top:0};e.animOut={top:-h}};b.fn.cycle.transitions.scrollDown=function(h,m,e){h.css("overflow","hidden");e.before.push(b.fn.cycle.commonReset);h=h.height();e.cssFirst={top:0};e.cssBefore={top:-h,left:0};e.animIn=
{top:0};e.animOut={top:h}};b.fn.cycle.transitions.scrollLeft=function(h,m,e){h.css("overflow","hidden");e.before.push(b.fn.cycle.commonReset);h=h.width();e.cssFirst={left:0};e.cssBefore={left:h,top:0};e.animIn={left:0};e.animOut={left:0-h}};b.fn.cycle.transitions.scrollRight=function(h,m,e){h.css("overflow","hidden");e.before.push(b.fn.cycle.commonReset);h=h.width();e.cssFirst={left:0};e.cssBefore={left:-h,top:0};e.animIn={left:0};e.animOut={left:h}};b.fn.cycle.transitions.scrollHorz=function(h,m,
e){h.css("overflow","hidden").width();e.before.push(function(k,i,g,q){b.fn.cycle.commonReset(k,i,g);g.cssBefore.left=q?i.cycleW-1:1-i.cycleW;g.animOut.left=q?-k.cycleW:k.cycleW});e.cssFirst={left:0};e.cssBefore={top:0};e.animIn={left:0};e.animOut={top:0}};b.fn.cycle.transitions.scrollVert=function(h,m,e){h.css("overflow","hidden");e.before.push(function(k,i,g,q){b.fn.cycle.commonReset(k,i,g);g.cssBefore.top=q?1-i.cycleH:i.cycleH-1;g.animOut.top=q?k.cycleH:-k.cycleH});e.cssFirst={top:0};e.cssBefore=
{left:0};e.animIn={top:0};e.animOut={left:0}};b.fn.cycle.transitions.slideX=function(h,m,e){e.before.push(function(k,i,g){b(g.elements).not(k).hide();b.fn.cycle.commonReset(k,i,g,false,true);g.animIn.width=i.cycleW});e.cssBefore={left:0,top:0,width:0};e.animIn={width:"show"};e.animOut={width:0}};b.fn.cycle.transitions.slideY=function(h,m,e){e.before.push(function(k,i,g){b(g.elements).not(k).hide();b.fn.cycle.commonReset(k,i,g,true,false);g.animIn.height=i.cycleH});e.cssBefore={left:0,top:0,height:0};
e.animIn={height:"show"};e.animOut={height:0}};b.fn.cycle.transitions.shuffle=function(h,m,e){h=h.css("overflow","visible").width();m.css({left:0,top:0});e.before.push(function(k,i,g){b.fn.cycle.commonReset(k,i,g,true,true,true)});if(!e.speedAdjusted){e.speed/=2;e.speedAdjusted=true}e.random=0;e.shuffle=e.shuffle||{left:-h,top:15};e.els=[];for(h=0;h<m.length;h++)e.els.push(m[h]);for(h=0;h<e.currSlide;h++)e.els.push(e.els.shift());e.fxFn=function(k,i,g,q,s){var t=s?b(k):b(i);b(i).css(g.cssBefore);
var v=g.slideCount;t.animate(g.shuffle,g.speedIn,g.easeIn,function(){for(var u=b.fn.cycle.hopsFromLast(g,s),x=0;x<u;x++)s?g.els.push(g.els.shift()):g.els.unshift(g.els.pop());if(s){u=0;for(x=g.els.length;u<x;u++)b(g.els[u]).css("z-index",x-u+v)}else{u=b(k).css("z-index");t.css("z-index",parseInt(u)+1+v)}t.animate({left:0,top:0},g.speedOut,g.easeOut,function(){b(s?this:k).hide();q&&q()})})};e.cssBefore={display:"block",opacity:1,top:0,left:0}};b.fn.cycle.transitions.turnUp=function(h,m,e){e.before.push(function(k,
i,g){b.fn.cycle.commonReset(k,i,g,true,false);g.cssBefore.top=i.cycleH;g.animIn.height=i.cycleH});e.cssFirst={top:0};e.cssBefore={left:0,height:0};e.animIn={top:0};e.animOut={height:0}};b.fn.cycle.transitions.turnDown=function(h,m,e){e.before.push(function(k,i,g){b.fn.cycle.commonReset(k,i,g,true,false);g.animIn.height=i.cycleH;g.animOut.top=k.cycleH});e.cssFirst={top:0};e.cssBefore={left:0,top:0,height:0};e.animOut={height:0}};b.fn.cycle.transitions.turnLeft=function(h,m,e){e.before.push(function(k,
i,g){b.fn.cycle.commonReset(k,i,g,false,true);g.cssBefore.left=i.cycleW;g.animIn.width=i.cycleW});e.cssBefore={top:0,width:0};e.animIn={left:0};e.animOut={width:0}};b.fn.cycle.transitions.turnRight=function(h,m,e){e.before.push(function(k,i,g){b.fn.cycle.commonReset(k,i,g,false,true);g.animIn.width=i.cycleW;g.animOut.left=k.cycleW});e.cssBefore={top:0,left:0,width:0};e.animIn={left:0};e.animOut={width:0}};b.fn.cycle.transitions.zoom=function(h,m,e){e.before.push(function(k,i,g){b.fn.cycle.commonReset(k,
i,g,false,false,true);g.cssBefore.top=i.cycleH/2;g.cssBefore.left=i.cycleW/2;g.animIn={top:0,left:0,width:i.cycleW,height:i.cycleH};g.animOut={width:0,height:0,top:k.cycleH/2,left:k.cycleW/2}});e.cssFirst={top:0,left:0};e.cssBefore={width:0,height:0}};b.fn.cycle.transitions.fadeZoom=function(h,m,e){e.before.push(function(k,i,g){b.fn.cycle.commonReset(k,i,g,false,false);g.cssBefore.left=i.cycleW/2;g.cssBefore.top=i.cycleH/2;g.animIn={top:0,left:0,width:i.cycleW,height:i.cycleH}});e.cssBefore={width:0,
height:0};e.animOut={opacity:0}};b.fn.cycle.transitions.blindX=function(h,m,e){h=h.css("overflow","hidden").width();e.before.push(function(k,i,g){b.fn.cycle.commonReset(k,i,g);g.animIn.width=i.cycleW;g.animOut.left=k.cycleW});e.cssBefore={left:h,top:0};e.animIn={left:0};e.animOut={left:h}};b.fn.cycle.transitions.blindY=function(h,m,e){h=h.css("overflow","hidden").height();e.before.push(function(k,i,g){b.fn.cycle.commonReset(k,i,g);g.animIn.height=i.cycleH;g.animOut.top=k.cycleH});e.cssBefore={top:h,
left:0};e.animIn={top:0};e.animOut={top:h}};b.fn.cycle.transitions.blindZ=function(h,m,e){m=h.css("overflow","hidden").height();h=h.width();e.before.push(function(k,i,g){b.fn.cycle.commonReset(k,i,g);g.animIn.height=i.cycleH;g.animOut.top=k.cycleH});e.cssBefore={top:m,left:h};e.animIn={top:0,left:0};e.animOut={top:m,left:h}};b.fn.cycle.transitions.growX=function(h,m,e){e.before.push(function(k,i,g){b.fn.cycle.commonReset(k,i,g,false,true);g.cssBefore.left=this.cycleW/2;g.animIn={left:0,width:this.cycleW};
g.animOut={left:0}});e.cssBefore={width:0,top:0}};b.fn.cycle.transitions.growY=function(h,m,e){e.before.push(function(k,i,g){b.fn.cycle.commonReset(k,i,g,true,false);g.cssBefore.top=this.cycleH/2;g.animIn={top:0,height:this.cycleH};g.animOut={top:0}});e.cssBefore={height:0,left:0}};b.fn.cycle.transitions.curtainX=function(h,m,e){e.before.push(function(k,i,g){b.fn.cycle.commonReset(k,i,g,false,true,true);g.cssBefore.left=i.cycleW/2;g.animIn={left:0,width:this.cycleW};g.animOut={left:k.cycleW/2,width:0}});
e.cssBefore={top:0,width:0}};b.fn.cycle.transitions.curtainY=function(h,m,e){e.before.push(function(k,i,g){b.fn.cycle.commonReset(k,i,g,true,false,true);g.cssBefore.top=i.cycleH/2;g.animIn={top:0,height:i.cycleH};g.animOut={top:k.cycleH/2,height:0}});e.cssBefore={left:0,height:0}};b.fn.cycle.transitions.cover=function(h,m,e){var k=e.direction||"left",i=h.css("overflow","hidden").width(),g=h.height();e.before.push(function(q,s,t){b.fn.cycle.commonReset(q,s,t);if(k=="right")t.cssBefore.left=-i;else if(k==
"up")t.cssBefore.top=g;else if(k=="down")t.cssBefore.top=-g;else t.cssBefore.left=i});e.animIn={left:0,top:0};e.animOut={opacity:1};e.cssBefore={top:0,left:0}};b.fn.cycle.transitions.uncover=function(h,m,e){var k=e.direction||"left",i=h.css("overflow","hidden").width(),g=h.height();e.before.push(function(q,s,t){b.fn.cycle.commonReset(q,s,t,true,true,true);if(k=="right")t.animOut.left=i;else if(k=="up")t.animOut.top=-g;else if(k=="down")t.animOut.top=g;else t.animOut.left=-i});e.animIn={left:0,top:0};
e.animOut={opacity:1};e.cssBefore={top:0,left:0}};b.fn.cycle.transitions.toss=function(h,m,e){var k=h.css("overflow","visible").width(),i=h.height();e.before.push(function(g,q,s){b.fn.cycle.commonReset(g,q,s,true,true,true);if(!s.animOut.left&&!s.animOut.top)s.animOut={left:k*2,top:-i/2,opacity:0};else s.animOut.opacity=0});e.cssBefore={left:0,top:0};e.animIn={left:0}};b.fn.cycle.transitions.wipe=function(h,m,e){var k=h.css("overflow","hidden").width(),i=h.height();e.cssBefore=e.cssBefore||{};var g;
if(e.clip)if(/l2r/.test(e.clip))g="rect(0px 0px "+i+"px 0px)";else if(/r2l/.test(e.clip))g="rect(0px "+k+"px "+i+"px "+k+"px)";else if(/t2b/.test(e.clip))g="rect(0px "+k+"px 0px 0px)";else if(/b2t/.test(e.clip))g="rect("+i+"px "+k+"px "+i+"px 0px)";else if(/zoom/.test(e.clip)){h=parseInt(i/2);m=parseInt(k/2);g="rect("+h+"px "+m+"px "+h+"px "+m+"px)"}e.cssBefore.clip=e.cssBefore.clip||g||"rect(0px 0px 0px 0px)";h=e.cssBefore.clip.match(/(\d+)/g);var q=parseInt(h[0]),s=parseInt(h[1]),t=parseInt(h[2]),
v=parseInt(h[3]);e.before.push(function(u,x,A){if(u!=x){var B=b(u),a=b(x);b.fn.cycle.commonReset(u,x,A,true,true,false);A.cssAfter.display="block";var c=1,f=parseInt(A.speedIn/13)-1;(function j(){var l=q?q-parseInt(c*(q/f)):0,d=v?v-parseInt(c*(v/f)):0,o=t<i?t+parseInt(c*((i-t)/f||1)):i,n=s<k?s+parseInt(c*((k-s)/f||1)):k;a.css({clip:"rect("+l+"px "+n+"px "+o+"px "+d+"px)"});c++<=f?setTimeout(j,13):B.css("display","none")})()}});e.cssBefore={display:"block",opacity:1,top:0,left:0};e.animIn={left:0};
e.animOut={left:0}}})(jQuery);var ARF={};ARF={cycleOptions:{fx:"scrollHorz",prev:"#arrow_left",timeout:5E3,next:"#arrow_right",before:function(b){$(b).find(".caption").animate({height:"0"})},after:function(b,h){$(h).find(".caption").animate({height:"80px"})}}};
$(function(){$(".slideshow").length>0&&$(".slideshow").cycle($.extend(ARF.cycleOptions,{prev:"#btn_prev",next:"#btn_next"}));$("#slideshow_photos").length>0&&$("#slideshow_photos").cycle(ARF.cycleOptions);$(".tooltip_trigger").hover(function(){if(!$(this).data("tooltip")){var b=$(this).parent("li").children(".tooltip")[0],h="tooltip_"+$(".tooltip").index(b);$(b).remove().attr("id",h).appendTo("body");$(this).data("tooltip",h)}b=$("#"+$(this).data("tooltip"));b={top:$(this).offset().top-$(b).height(),
left:$(this).offset().left-$(b).width()/2};$("#"+$(this).data("tooltip")).css(b).show()},function(){$(".tooltip").hide()});$('input[type="text"]').defaultValueActsAsHint()});(function(b){b.fn.defaultValueActsAsHint=function(){return this.each(function(h,m){b(m).focus(function(){if(b(m).data("default")==m.value)m.value=""}).removeClass("hint").blur(function(){if(m.value=="")m.value=b(m).data("default")}).addClass("hint").data("default",b(m).val())})}})(jQuery);
