/*
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2008 M. Alsup
 * Version: 2.26
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function(d){var i="2.26",m=d.browser.msie&&/MSIE 6.0/.test(navigator.userAgent);function a(){window.console&&window.console.log&&window.console.log("[cycle] "+Array.prototype.join.call(arguments,""))}d.fn.cycle=function(g){return this.each(function(){if(g===undefined||g===null)g={};if(g.constructor==String)switch(g){case "stop":this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=0;d(this).data("cycle.opts","");return;case "pause":this.cyclePause=1;return;case "resume":this.cyclePause=
0;return;default:g={fx:g}}else if(g.constructor==Number){var c=g;g=d(this).data("cycle.opts");if(!g){a("options not found, can not advance slide");return}if(c<0||c>=g.elements.length){a("invalid slide index: "+c);return}g.nextSlide=c;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);this.cycleTimeout=0}e(g.elements,g,1,c>=g.currSlide);return}this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cyclePause=this.cycleTimeout=0;var k=d(this),l=g.slideExpr?d(g.slideExpr,this):k.children(),j=l.get();
if(j.length<2)a("terminating; too few slides: "+j.length);else{var b=d.extend({},d.fn.cycle.defaults,g||{},d.metadata?k.metadata():d.meta?k.data():{});if(b.autostop)b.countdown=b.autostopCount||j.length;k.data("cycle.opts",b);b.container=this;b.elements=j;b.before=b.before?[b.before]:[];b.after=b.after?[b.after]:[];b.after.unshift(function(){b.busy=0});b.continuous&&b.after.push(function(){e(j,b,0,!b.rev)});m&&b.cleartype&&!b.cleartypeNoBg&&p(l);c=this.className;b.width=parseInt((c.match(/w:(\d+)/)||
[])[1])||b.width;b.height=parseInt((c.match(/h:(\d+)/)||[])[1])||b.height;b.timeout=parseInt((c.match(/t:(\d+)/)||[])[1])||b.timeout;k.css("position")=="static"&&k.css("position","relative");b.width&&k.width(b.width);b.height&&b.height!="auto"&&k.height(b.height);if(b.random){b.randomMap=[];for(c=0;c<j.length;c++)b.randomMap.push(c);b.randomMap.sort(function(n,q){return Math.random()-0.5});b.randomIndex=0;b.startingSlide=b.randomMap[0]}else if(b.startingSlide>=j.length)b.startingSlide=0;var o=b.startingSlide||
0;l.css({position:"absolute",top:0,left:0}).hide().each(function(n){n=o?n>=o?j.length-(n-o):o-n:j.length-n;d(this).css("z-index",n)});d(j[o]).css("opacity",1).show();d.browser.msie&&j[o].style.removeAttribute("filter");b.fit&&b.width&&l.width(b.width);b.fit&&b.height&&b.height!="auto"&&l.height(b.height);b.pause&&k.hover(function(){this.cyclePause=1},function(){this.cyclePause=0});c=d.fn.cycle.transitions[b.fx];if(d.isFunction(c))c(k,l,b);else b.fx!="custom"&&a("unknown transition: "+b.fx);l.each(function(){var n=
d(this);this.cycleH=b.fit&&b.height?b.height:n.height();this.cycleW=b.fit&&b.width?b.width:n.width()});b.cssBefore=b.cssBefore||{};b.animIn=b.animIn||{};b.animOut=b.animOut||{};l.not(":eq("+o+")").css(b.cssBefore);b.cssFirst&&d(l[o]).css(b.cssFirst);if(b.timeout){if(b.speed.constructor==String)b.speed={slow:600,fast:200}[b.speed]||400;for(b.sync||(b.speed/=2);b.timeout-b.speed<250;)b.timeout+=b.speed}if(b.easing)b.easeIn=b.easeOut=b.easing;if(!b.speedIn)b.speedIn=b.speed;if(!b.speedOut)b.speedOut=
b.speed;b.slideCount=j.length;b.currSlide=o;if(b.random){b.nextSlide=b.currSlide;if(++b.randomIndex==j.length)b.randomIndex=0;b.nextSlide=b.randomMap[b.randomIndex]}else b.nextSlide=b.startingSlide>=j.length-1?0:b.startingSlide+1;c=l[o];b.before.length&&b.before[0].apply(c,[c,c,b,true]);b.after.length>1&&b.after[1].apply(c,[c,c,b,true]);if(b.click&&!b.next)b.next=b.click;b.next&&d(b.next).bind("click",function(){return h(j,b,b.rev?-1:1)});b.prev&&d(b.prev).bind("click",function(){return h(j,b,b.rev?
1:-1)});b.pager&&f(j,b);b.addSlide=function(n){n=d(n);var q=n[0];b.autostopCount||b.countdown++;j.push(q);b.els&&b.els.push(q);b.slideCount=j.length;n.css("position","absolute").appendTo(k);m&&b.cleartype&&!b.cleartypeNoBg&&p(n);b.fit&&b.width&&n.width(b.width);b.fit&&b.height&&b.height!="auto"&&l.height(b.height);q.cycleH=b.fit&&b.height?b.height:n.height();q.cycleW=b.fit&&b.width?b.width:n.width();n.css(b.cssBefore);b.pager&&d.fn.cycle.createPagerAnchor(j.length-1,q,d(b.pager),j,b);typeof b.onAddSlide==
"function"&&b.onAddSlide(n)};if(b.timeout||b.continuous)this.cycleTimeout=setTimeout(function(){e(j,b,0,!b.rev)},b.continuous?10:b.timeout+(b.delay||0))}})};function e(g,c,k,l){if(!c.busy){var j=c.container,b=g[c.currSlide],o=g[c.nextSlide];if(!(j.cycleTimeout===0&&!k))if(!k&&!j.cyclePause&&(c.autostop&&--c.countdown<=0||c.nowrap&&!c.random&&c.nextSlide<c.currSlide))c.end&&c.end(c);else{if(k||!j.cyclePause){c.before.length&&d.each(c.before,function(q,r){r.apply(o,[b,o,c,l])});var n=function(){d.browser.msie&&
c.cleartype&&this.style.removeAttribute("filter");d.each(c.after,function(q,r){r.apply(o,[b,o,c,l])})};if(c.nextSlide!=c.currSlide){c.busy=1;if(c.fxFn)c.fxFn(b,o,c,n,l);else d.isFunction(d.fn.cycle[c.fx])?d.fn.cycle[c.fx](b,o,c,n):d.fn.cycle.custom(b,o,c,n,k&&c.fastOnEvent)}if(c.random){c.currSlide=c.nextSlide;if(++c.randomIndex==g.length)c.randomIndex=0;c.nextSlide=c.randomMap[c.randomIndex]}else{k=c.nextSlide+1==g.length;c.nextSlide=k?0:c.nextSlide+1;c.currSlide=k?g.length-1:c.nextSlide-1}c.pager&&
d.fn.cycle.updateActivePagerLink(c.pager,c.currSlide)}if(c.timeout&&!c.continuous)j.cycleTimeout=setTimeout(function(){e(g,c,0,!c.rev)},c.timeout);else if(c.continuous&&j.cyclePause)j.cycleTimeout=setTimeout(function(){e(g,c,0,!c.rev)},10)}}}d.fn.cycle.updateActivePagerLink=function(g,c){d(g).find("a").removeClass("activeSlide").filter("a:eq("+c+")").addClass("activeSlide")};function h(g,c,k){var l=c.container,j=l.cycleTimeout;if(j){clearTimeout(j);l.cycleTimeout=0}if(c.random&&k<0){c.randomIndex--;
if(--c.randomIndex==-2)c.randomIndex=g.length-2;else if(c.randomIndex==-1)c.randomIndex=g.length-1;c.nextSlide=c.randomMap[c.randomIndex]}else if(c.random){if(++c.randomIndex==g.length)c.randomIndex=0;c.nextSlide=c.randomMap[c.randomIndex]}else{c.nextSlide=c.currSlide+k;if(c.nextSlide<0){if(c.nowrap)return false;c.nextSlide=g.length-1}else if(c.nextSlide>=g.length){if(c.nowrap)return false;c.nextSlide=0}}c.prevNextClick&&typeof c.prevNextClick=="function"&&c.prevNextClick(k>0,c.nextSlide,g[c.nextSlide]);
e(g,c,1,k>=0);return false}function f(g,c){var k=d(c.pager);d.each(g,function(l,j){d.fn.cycle.createPagerAnchor(l,j,k,g,c)});d.fn.cycle.updateActivePagerLink(c.pager,c.startingSlide)}d.fn.cycle.createPagerAnchor=function(g,c,k,l,j){c=typeof j.pagerAnchorBuilder=="function"?d(j.pagerAnchorBuilder(g,c)):d('<a href="#">'+(g+1)+"</a>");c.parents("body").length==0&&c.appendTo(k);c.bind(j.pagerEvent,function(){j.nextSlide=g;var b=j.container,o=b.cycleTimeout;if(o){clearTimeout(o);b.cycleTimeout=0}typeof j.pagerClick==
"function"&&j.pagerClick(j.nextSlide,l[j.nextSlide]);e(l,j,1,j.currSlide<g);return false})};function p(g){function c(l){l=parseInt(l).toString(16);return l.length<2?"0"+l:l}function k(l){for(;l&&l.nodeName.toLowerCase()!="html";l=l.parentNode){var j=d.css(l,"background-color");if(j.indexOf("rgb")>=0){l=j.match(/\d+/g);return"#"+c(l[0])+c(l[1])+c(l[2])}if(j&&j!="transparent")return j}return"#ffffff"}g.each(function(){d(this).css("background-color",k(this))})}d.fn.cycle.custom=function(g,c,k,l,j){var b=
d(g),o=d(c);o.css(k.cssBefore);var n=j?1:k.speedIn;g=j?1:k.speedOut;var q=j?null:k.easeIn;j=j?null:k.easeOut;function r(){o.animate(k.animIn,n,q,l)}b.animate(k.animOut,g,j,function(){k.cssAfter&&b.css(k.cssAfter);k.sync||r()});k.sync&&r()};d.fn.cycle.transitions={fade:function(g,c,k){c.not(":eq("+k.startingSlide+")").css("opacity",0);k.before.push(function(){d(this).show()});k.animIn={opacity:1};k.animOut={opacity:0};k.cssBefore={opacity:0};k.cssAfter={display:"none"}}};d.fn.cycle.ver=function(){return i};
d.fn.cycle.defaults={fx:"fade",timeout:4000,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,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,pause:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:0,nowrap:0,fastOnEvent:0}})(jQuery);
(function(d){d.fn.cycle.transitions.scrollUp=function(i,m,a){i.css("overflow","hidden");a.before.push(function(e,h,f){d(this).show();f.cssBefore.top=h.offsetHeight;f.animOut.top=0-e.offsetHeight});a.cssFirst={top:0};a.animIn={top:0};a.cssAfter={display:"none"}};d.fn.cycle.transitions.scrollDown=function(i,m,a){i.css("overflow","hidden");a.before.push(function(e,h,f){d(this).show();f.cssBefore.top=0-h.offsetHeight;f.animOut.top=e.offsetHeight});a.cssFirst={top:0};a.animIn={top:0};a.cssAfter={display:"none"}};
d.fn.cycle.transitions.scrollLeft=function(i,m,a){i.css("overflow","hidden");a.before.push(function(e,h,f){d(this).show();f.cssBefore.left=h.offsetWidth;f.animOut.left=0-e.offsetWidth});a.cssFirst={left:0};a.animIn={left:0}};d.fn.cycle.transitions.scrollRight=function(i,m,a){i.css("overflow","hidden");a.before.push(function(e,h,f){d(this).show();f.cssBefore.left=0-h.offsetWidth;f.animOut.left=e.offsetWidth});a.cssFirst={left:0};a.animIn={left:0}};d.fn.cycle.transitions.scrollHorz=function(i,m,a){i.css("overflow",
"hidden").width();a.before.push(function(e,h,f,p){d(this).show();var g=e.offsetWidth;h=h.offsetWidth;f.cssBefore=p?{left:h}:{left:-h};f.animIn.left=0;f.animOut.left=p?-g:g;m.not(e).css(f.cssBefore)});a.cssFirst={left:0};a.cssAfter={display:"none"}};d.fn.cycle.transitions.scrollVert=function(i,m,a){i.css("overflow","hidden");a.before.push(function(e,h,f,p){d(this).show();var g=e.offsetHeight;h=h.offsetHeight;f.cssBefore=p?{top:-h}:{top:h};f.animIn.top=0;f.animOut.top=p?g:-g;m.not(e).css(f.cssBefore)});
a.cssFirst={top:0};a.cssAfter={display:"none"}};d.fn.cycle.transitions.slideX=function(i,m,a){a.before.push(function(e,h,f){d(e).css("zIndex",1)});a.onAddSlide=function(e){e.hide()};a.cssBefore={zIndex:2};a.animIn={width:"show"};a.animOut={width:"hide"}};d.fn.cycle.transitions.slideY=function(i,m,a){a.before.push(function(e,h,f){d(e).css("zIndex",1)});a.onAddSlide=function(e){e.hide()};a.cssBefore={zIndex:2};a.animIn={height:"show"};a.animOut={height:"hide"}};d.fn.cycle.transitions.shuffle=function(i,
m,a){i=i.css("overflow","visible").width();m.css({left:0,top:0});a.before.push(function(){d(this).show()});a.speed/=2;a.random=0;a.shuffle=a.shuffle||{left:-i,top:15};a.els=[];for(i=0;i<m.length;i++)a.els.push(m[i]);for(i=0;i<a.startingSlide;i++)a.els.push(a.els.shift());a.fxFn=function(e,h,f,p,g){var c=g?d(e):d(h);c.animate(f.shuffle,f.speedIn,f.easeIn,function(){g?f.els.push(f.els.shift()):f.els.unshift(f.els.pop());if(g)for(var k=0,l=f.els.length;k<l;k++)d(f.els[k]).css("z-index",l-k);else{k=d(e).css("z-index");
c.css("z-index",parseInt(k)+1)}c.animate({left:0,top:0},f.speedOut,f.easeOut,function(){d(g?this:e).hide();p&&p()})})};a.onAddSlide=function(e){e.hide()}};d.fn.cycle.transitions.turnUp=function(i,m,a){a.before.push(function(e,h,f){d(this).show();f.cssBefore.top=h.cycleH;f.animIn.height=h.cycleH});a.onAddSlide=function(e){e.hide()};a.cssFirst={top:0};a.cssBefore={height:0};a.animIn={top:0};a.animOut={height:0};a.cssAfter={display:"none"}};d.fn.cycle.transitions.turnDown=function(i,m,a){a.before.push(function(e,
h,f){d(this).show();f.animIn.height=h.cycleH;f.animOut.top=e.cycleH});a.onAddSlide=function(e){e.hide()};a.cssFirst={top:0};a.cssBefore={top:0,height:0};a.animOut={height:0};a.cssAfter={display:"none"}};d.fn.cycle.transitions.turnLeft=function(i,m,a){a.before.push(function(e,h,f){d(this).show();f.cssBefore.left=h.cycleW;f.animIn.width=h.cycleW});a.onAddSlide=function(e){e.hide()};a.cssBefore={width:0};a.animIn={left:0};a.animOut={width:0};a.cssAfter={display:"none"}};d.fn.cycle.transitions.turnRight=
function(i,m,a){a.before.push(function(e,h,f){d(this).show();f.animIn.width=h.cycleW;f.animOut.left=e.cycleW});a.onAddSlide=function(e){e.hide()};a.cssBefore={left:0,width:0};a.animIn={left:0};a.animOut={width:0};a.cssAfter={display:"none"}};d.fn.cycle.transitions.zoom=function(i,m,a){a.cssFirst={top:0,left:0};a.cssAfter={display:"none"};a.before.push(function(e,h,f){d(this).show();f.cssBefore={width:0,height:0,top:h.cycleH/2,left:h.cycleW/2};f.cssAfter={display:"none"};f.animIn={top:0,left:0,width:h.cycleW,
height:h.cycleH};f.animOut={width:0,height:0,top:e.cycleH/2,left:e.cycleW/2};d(e).css("zIndex",2);d(h).css("zIndex",1)});a.onAddSlide=function(e){e.hide()}};d.fn.cycle.transitions.fadeZoom=function(i,m,a){a.before.push(function(e,h,f){f.cssBefore={width:0,height:0,opacity:1,left:h.cycleW/2,top:h.cycleH/2,zIndex:1};f.animIn={top:0,left:0,width:h.cycleW,height:h.cycleH}});a.animOut={opacity:0};a.cssAfter={zIndex:0}};d.fn.cycle.transitions.blindX=function(i,m,a){i=i.css("overflow","hidden").width();
m.show();a.before.push(function(e,h,f){d(e).css("zIndex",1)});a.cssBefore={left:i,zIndex:2};a.cssAfter={zIndex:1};a.animIn={left:0};a.animOut={left:i}};d.fn.cycle.transitions.blindY=function(i,m,a){i=i.css("overflow","hidden").height();m.show();a.before.push(function(e,h,f){d(e).css("zIndex",1)});a.cssBefore={top:i,zIndex:2};a.cssAfter={zIndex:1};a.animIn={top:0};a.animOut={top:i}};d.fn.cycle.transitions.blindZ=function(i,m,a){var e=i.css("overflow","hidden").height();i=i.width();m.show();a.before.push(function(h,
f,p){d(h).css("zIndex",1)});a.cssBefore={top:e,left:i,zIndex:2};a.cssAfter={zIndex:1};a.animIn={top:0,left:0};a.animOut={top:e,left:i}};d.fn.cycle.transitions.growX=function(i,m,a){a.before.push(function(e,h,f){f.cssBefore={left:this.cycleW/2,width:0,zIndex:2};f.animIn={left:0,width:this.cycleW};f.animOut={left:0};d(e).css("zIndex",1)});a.onAddSlide=function(e){e.hide().css("zIndex",1)}};d.fn.cycle.transitions.growY=function(i,m,a){a.before.push(function(e,h,f){f.cssBefore={top:this.cycleH/2,height:0,
zIndex:2};f.animIn={top:0,height:this.cycleH};f.animOut={top:0};d(e).css("zIndex",1)});a.onAddSlide=function(e){e.hide().css("zIndex",1)}};d.fn.cycle.transitions.curtainX=function(i,m,a){a.before.push(function(e,h,f){f.cssBefore={left:h.cycleW/2,width:0,zIndex:1,display:"block"};f.animIn={left:0,width:this.cycleW};f.animOut={left:e.cycleW/2,width:0};d(e).css("zIndex",2)});a.onAddSlide=function(e){e.hide()};a.cssAfter={zIndex:1,display:"none"}};d.fn.cycle.transitions.curtainY=function(i,m,a){a.before.push(function(e,
h,f){f.cssBefore={top:h.cycleH/2,height:0,zIndex:1,display:"block"};f.animIn={top:0,height:this.cycleH};f.animOut={top:e.cycleH/2,height:0};d(e).css("zIndex",2)});a.onAddSlide=function(e){e.hide()};a.cssAfter={zIndex:1,display:"none"}};d.fn.cycle.transitions.cover=function(i,m,a){var e=a.direction||"left",h=i.css("overflow","hidden").width(),f=i.height();a.before.push(function(p,g,c){c.cssBefore=c.cssBefore||{};c.cssBefore.zIndex=2;c.cssBefore.display="block";if(e=="right")c.cssBefore.left=-h;else if(e==
"up")c.cssBefore.top=f;else if(e=="down")c.cssBefore.top=-f;else c.cssBefore.left=h;d(p).css("zIndex",1)});if(!a.animIn)a.animIn={left:0,top:0};if(!a.animOut)a.animOut={left:0,top:0};a.cssAfter=a.cssAfter||{};a.cssAfter.zIndex=2;a.cssAfter.display="none"};d.fn.cycle.transitions.uncover=function(i,m,a){var e=a.direction||"left",h=i.css("overflow","hidden").width(),f=i.height();a.before.push(function(p,g,c){c.cssBefore.display="block";if(e=="right")c.animOut.left=h;else if(e=="up")c.animOut.top=-f;
else if(e=="down")c.animOut.top=f;else c.animOut.left=-h;d(p).css("zIndex",2);d(g).css("zIndex",1)});a.onAddSlide=function(p){p.hide()};if(!a.animIn)a.animIn={left:0,top:0};a.cssBefore=a.cssBefore||{};a.cssBefore.top=0;a.cssBefore.left=0;a.cssAfter=a.cssAfter||{};a.cssAfter.zIndex=1;a.cssAfter.display="none"};d.fn.cycle.transitions.toss=function(i,m,a){var e=i.css("overflow","visible").width(),h=i.height();a.before.push(function(f,p,g){d(f).css("zIndex",2);g.cssBefore.display="block";if(!g.animOut.left&&
!g.animOut.top)g.animOut={left:e*2,top:-h/2,opacity:0};else g.animOut.opacity=0});a.onAddSlide=function(f){f.hide()};a.cssBefore={left:0,top:0,zIndex:1,opacity:1};a.animIn={left:0};a.cssAfter={zIndex:2,display:"none"}};d.fn.cycle.transitions.wipe=function(i,m,a){var e=i.css("overflow","hidden").width(),h=i.height();a.cssBefore=a.cssBefore||{};var f;if(a.clip)if(/l2r/.test(a.clip))f="rect(0px 0px "+h+"px 0px)";else if(/r2l/.test(a.clip))f="rect(0px "+e+"px "+h+"px "+e+"px)";else if(/t2b/.test(a.clip))f=
"rect(0px "+e+"px 0px 0px)";else if(/b2t/.test(a.clip))f="rect("+h+"px "+e+"px "+h+"px 0px)";else if(/zoom/.test(a.clip)){var p=parseInt(h/2),g=parseInt(e/2);f="rect("+p+"px "+g+"px "+p+"px "+g+"px)"}a.cssBefore.clip=a.cssBefore.clip||f||"rect(0px 0px 0px 0px)";i=a.cssBefore.clip.match(/(\d+)/g);p=parseInt(i[0]);var c=parseInt(i[1]),k=parseInt(i[2]);g=parseInt(i[3]);a.before.push(function(l,j,b){if(l!=j){function o(){var t=p?p-parseInt(r*(p/s)):0,u=g?g-parseInt(r*(g/s)):0,v=k<h?k+parseInt(r*((h-k)/
s||1)):h,w=c<e?c+parseInt(r*((e-c)/s||1)):e;q.css({clip:"rect("+t+"px "+w+"px "+v+"px "+u+"px)"});r++<=s?setTimeout(o,13):n.css("display","none")}var n=d(l).css("zIndex",2),q=d(j).css({zIndex:3,display:"block"}),r=1,s=parseInt(b.speedIn/13)-1;o()}});a.cssAfter={};a.animIn={left:0};a.animOut={left:0}}})(jQuery);

