/*
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version: 2.9995 (09-AUG-2011)
 * Dual licensed under the MIT and GPL licenses.
 * http://jquery.malsup.com/license.html
 * Requires: jQuery v1.3.2 or later
 */
(function(I){var L="2.9995";
if(I.support==undefined){I.support={opacity:!(I.browser.msie)}
}function A(R){I.fn.cycle.debug&&F(R)
}function F(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))
}I.expr[":"].paused=function(R){return R.cyclePause
};
I.fn.cycle=function(S,R){var T={s:this.selector,c:this.context};
if(this.length===0&&S!="stop"){if(!I.isReady&&T.s){F("DOM not ready, queuing slideshow");
I(function(){I(T.s,T.c).cycle(S,R)
});
return this
}F("terminating; zero elements found by selector"+(I.isReady?"":" (DOM not ready)"));
return this
}return this.each(function(){var X=N(this,S,R);
if(X===false){return 
}X.updateActivePagerLink=X.updateActivePagerLink||I.fn.cycle.updateActivePagerLink;
if(this.cycleTimeout){clearTimeout(this.cycleTimeout)
}this.cycleTimeout=this.cyclePause=0;
var Y=I(this);
var Z=X.slideExpr?I(X.slideExpr,this):Y.children();
var V=Z.get();
var U=K(Y,Z,V,X,T);
if(U===false){return 
}if(V.length<2){F("terminating; too few slides: "+V.length);
return 
}var W=U.continuous?10:H(V[U.currSlide],V[U.nextSlide],U,!U.backwards);
if(W){W+=(U.delay||0);
if(W<10){W=10
}A("first timeout: "+W);
this.cycleTimeout=setTimeout(function(){E(V,U,0,!X.backwards)
},W)
}})
};
function M(R,U,T){var V=I(R).data("cycle.opts");
var S=!!R.cyclePause;
if(S&&V.paused){V.paused(R,V,U,T)
}else{if(!S&&V.resumed){V.resumed(R,V,U,T)
}}}function N(R,U,S){if(R.cycleStop==undefined){R.cycleStop=0
}if(U===undefined||U===null){U={}
}if(U.constructor==String){switch(U){case"destroy":case"stop":var W=I(R).data("cycle.opts");
if(!W){return false
}R.cycleStop++;
if(R.cycleTimeout){clearTimeout(R.cycleTimeout)
}R.cycleTimeout=0;
W.elements&&I(W.elements).stop();
I(R).removeData("cycle.opts");
if(U=="destroy"){Q(W)
}return false;
case"toggle":R.cyclePause=(R.cyclePause===1)?0:1;
V(R.cyclePause,S,R);
M(R);
return false;
case"pause":R.cyclePause=1;
M(R);
return false;
case"resume":R.cyclePause=0;
V(false,S,R);
M(R);
return false;
case"prev":case"next":var W=I(R).data("cycle.opts");
if(!W){F('options not found, "prev/next" ignored');
return false
}I.fn.cycle[U](W);
return false;
default:U={fx:U}
}return U
}else{if(U.constructor==Number){var T=U;
U=I(R).data("cycle.opts");
if(!U){F("options not found, can not advance slide");
return false
}if(T<0||T>=U.elements.length){F("invalid slide index: "+T);
return false
}U.nextSlide=T;
if(R.cycleTimeout){clearTimeout(R.cycleTimeout);
R.cycleTimeout=0
}if(typeof S=="string"){U.oneTimeFx=S
}E(U.elements,U,1,T>=U.currSlide);
return false
}}return U;
function V(Y,Z,X){if(!Y&&Z===true){var a=I(X).data("cycle.opts");
if(!a){F("options not found, can not resume");
return false
}if(X.cycleTimeout){clearTimeout(X.cycleTimeout);
X.cycleTimeout=0
}E(a.elements,a,1,!a.backwards)
}}}function B(R,S){if(!I.support.opacity&&S.cleartype&&R.style.filter){try{R.style.removeAttribute("filter")
}catch(T){}}}function Q(R){if(R.next){I(R.next).unbind(R.prevNextEvent)
}if(R.prev){I(R.prev).unbind(R.prevNextEvent)
}if(R.pager||R.pagerAnchorBuilder){I.each(R.pagerAnchors||[],function(){this.unbind().remove()
})
}R.pagerAnchors=null;
if(R.destroy){R.destroy(R)
}}function K(Z,s,W,V,k){var f=I.extend({},I.fn.cycle.defaults,V||{},I.metadata?Z.metadata():I.meta?Z.data():{});
var c=I.isFunction(Z.data)?Z.data(f.metaAttr):null;
if(c){f=I.extend(f,c)
}if(f.autostop){f.countdown=f.autostopCount||W.length
}var S=Z[0];
Z.data("cycle.opts",f);
f.$cont=Z;
f.stopCount=S.cycleStop;
f.elements=W;
f.before=f.before?[f.before]:[];
f.after=f.after?[f.after]:[];
if(!I.support.opacity&&f.cleartype){f.after.push(function(){B(this,f)
})
}if(f.continuous){f.after.push(function(){E(W,f,0,!f.backwards)
})
}O(f);
if(!I.support.opacity&&f.cleartype&&!f.cleartypeNoBg){G(s)
}if(Z.css("position")=="static"){Z.css("position","relative")
}if(f.width){Z.width(f.width)
}if(f.height&&f.height!="auto"){Z.height(f.height)
}if(f.startingSlide){f.startingSlide=parseInt(f.startingSlide,10)
}else{if(f.backwards){f.startingSlide=W.length-1
}}if(f.random){f.randomMap=[];
for(var q=0;
q<W.length;
q++){f.randomMap.push(q)
}f.randomMap.sort(function(h,e){return Math.random()-0.5
});
f.randomIndex=1;
f.startingSlide=f.randomMap[1]
}else{if(f.startingSlide>=W.length){f.startingSlide=0
}}f.currSlide=f.startingSlide||0;
var Y=f.startingSlide;
s.css({position:"absolute",top:0,left:0}).hide().each(function(e){var h;
if(f.backwards){h=Y?e<=Y?W.length+(e-Y):Y-e:W.length-e
}else{h=Y?e>=Y?W.length-(e-Y):Y-e:W.length-e
}I(this).css("z-index",h)
});
I(W[Y]).css("opacity",1).show();
B(W[Y],f);
if(f.fit){if(!f.aspect){if(f.width){s.width(f.width)
}if(f.height&&f.height!="auto"){s.height(f.height)
}}else{s.each(function(){var h=I(this);
var e=(f.aspect===true)?h.width()/h.height():f.aspect;
if(f.width&&h.width()!=f.width){h.width(f.width);
h.height(f.width/e)
}if(f.height&&h.height()<f.height){h.height(f.height);
h.width(f.height*e)
}})
}}if(f.center&&((!f.fit)||f.aspect)){s.each(function(){var e=I(this);
e.css({"margin-left":f.width?((f.width-e.width())/2)+"px":0,"margin-top":f.height?((f.height-e.height())/2)+"px":0})
})
}if(f.center&&!f.fit&&!f.slideResize){s.each(function(){var e=I(this);
e.css({"margin-left":f.width?((f.width-e.width())/2)+"px":0,"margin-top":f.height?((f.height-e.height())/2)+"px":0})
})
}var g=f.containerResize&&!Z.innerHeight();
if(g){var X=0,d=0;
for(var m=0;
m<W.length;
m++){var R=I(W[m]),t=R[0],b=R.outerWidth(),r=R.outerHeight();
if(!b){b=t.offsetWidth||t.width||R.attr("width")
}if(!r){r=t.offsetHeight||t.height||R.attr("height")
}X=b>X?b:X;
d=r>d?r:d
}if(X>0&&d>0){Z.css({width:X+"px",height:d+"px"})
}}var U=false;
if(f.pause){Z.hover(function(){U=true;
this.cyclePause++;
M(S,true)
},function(){U&&this.cyclePause--;
M(S,true)
})
}if(C(f)===false){return false
}var T=false;
V.requeueAttempts=V.requeueAttempts||0;
s.each(function(){var j=I(this);
this.cycleH=(f.fit&&f.height)?f.height:(j.height()||this.offsetHeight||this.height||j.attr("height")||0);
this.cycleW=(f.fit&&f.width)?f.width:(j.width()||this.offsetWidth||this.width||j.attr("width")||0);
if(j.is("img")){var h=(I.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);
var o=(I.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);
var i=(I.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);
var e=(this.cycleH==0&&this.cycleW==0&&!this.complete);
if(h||o||i||e){if(k.s&&f.requeueOnImageNotLoaded&&++V.requeueAttempts<100){F(V.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);
setTimeout(function(){I(k.s,k.c).cycle(V)
},f.requeueTimeout);
T=true;
return false
}else{F("could not determine size of image: "+this.src,this.cycleW,this.cycleH)
}}}return true
});
if(T){return false
}f.cssBefore=f.cssBefore||{};
f.cssAfter=f.cssAfter||{};
f.cssFirst=f.cssFirst||{};
f.animIn=f.animIn||{};
f.animOut=f.animOut||{};
s.not(":eq("+Y+")").css(f.cssBefore);
I(s[Y]).css(f.cssFirst);
if(f.timeout){f.timeout=parseInt(f.timeout,10);
if(f.speed.constructor==String){f.speed=I.fx.speeds[f.speed]||parseInt(f.speed,10)
}if(!f.sync){f.speed=f.speed/2
}var l=f.fx=="none"?0:f.fx=="shuffle"?500:250;
while((f.timeout-f.speed)<l){f.timeout+=f.speed
}}if(f.easing){f.easeIn=f.easeOut=f.easing
}if(!f.speedIn){f.speedIn=f.speed
}if(!f.speedOut){f.speedOut=f.speed
}f.slideCount=W.length;
f.currSlide=f.lastSlide=Y;
if(f.random){if(++f.randomIndex==W.length){f.randomIndex=0
}f.nextSlide=f.randomMap[f.randomIndex]
}else{if(f.backwards){f.nextSlide=f.startingSlide==0?(W.length-1):f.startingSlide-1
}else{f.nextSlide=f.startingSlide>=(W.length-1)?0:f.startingSlide+1
}}if(!f.multiFx){var n=I.fn.cycle.transitions[f.fx];
if(I.isFunction(n)){n(Z,s,f)
}else{if(f.fx!="custom"&&!f.multiFx){F("unknown transition: "+f.fx,"; slideshow terminating");
return false
}}}var a=s[Y];
if(!f.skipInitializationCallbacks){if(f.before.length){f.before[0].apply(a,[a,a,f,true])
}if(f.after.length){f.after[0].apply(a,[a,a,f,true])
}}if(f.next){I(f.next).bind(f.prevNextEvent,function(){return P(f,1)
})
}if(f.prev){I(f.prev).bind(f.prevNextEvent,function(){return P(f,0)
})
}if(f.pager||f.pagerAnchorBuilder){D(W,f)
}J(f,W);
return f
}function O(R){R.original={before:[],after:[]};
R.original.cssBefore=I.extend({},R.cssBefore);
R.original.cssAfter=I.extend({},R.cssAfter);
R.original.animIn=I.extend({},R.animIn);
R.original.animOut=I.extend({},R.animOut);
I.each(R.before,function(){R.original.before.push(this)
});
I.each(R.after,function(){R.original.after.push(this)
})
}function C(X){var V,T,S=I.fn.cycle.transitions;
if(X.fx.indexOf(",")>0){X.multiFx=true;
X.fxs=X.fx.replace(/\s*/g,"").split(",");
for(V=0;
V<X.fxs.length;
V++){var W=X.fxs[V];
T=S[W];
if(!T||!S.hasOwnProperty(W)||!I.isFunction(T)){F("discarding unknown transition: ",W);
X.fxs.splice(V,1);
V--
}}if(!X.fxs.length){F("No valid transitions named; slideshow terminating.");
return false
}}else{if(X.fx=="all"){X.multiFx=true;
X.fxs=[];
for(p in S){T=S[p];
if(S.hasOwnProperty(p)&&I.isFunction(T)){X.fxs.push(p)
}}}}if(X.multiFx&&X.randomizeEffects){var U=Math.floor(Math.random()*20)+30;
for(V=0;
V<U;
V++){var R=Math.floor(Math.random()*X.fxs.length);
X.fxs.push(X.fxs.splice(R,1)[0])
}A("randomized fx sequence: ",X.fxs)
}return true
}function J(S,R){S.addSlide=function(U,V){var T=I(U),W=T[0];
if(!S.autostopCount){S.countdown++
}R[V?"unshift":"push"](W);
if(S.els){S.els[V?"unshift":"push"](W)
}S.slideCount=R.length;
T.css("position","absolute");
T[V?"prependTo":"appendTo"](S.$cont);
if(V){S.currSlide++;
S.nextSlide++
}if(!I.support.opacity&&S.cleartype&&!S.cleartypeNoBg){G(T)
}if(S.fit&&S.width){T.width(S.width)
}if(S.fit&&S.height&&S.height!="auto"){T.height(S.height)
}W.cycleH=(S.fit&&S.height)?S.height:T.height();
W.cycleW=(S.fit&&S.width)?S.width:T.width();
T.css(S.cssBefore);
if(S.pager||S.pagerAnchorBuilder){I.fn.cycle.createPagerAnchor(R.length-1,W,I(S.pager),R,S)
}if(I.isFunction(S.onAddSlide)){S.onAddSlide(T)
}else{T.hide()
}}
}I.fn.cycle.resetState=function(S,R){R=R||S.fx;
S.before=[];
S.after=[];
S.cssBefore=I.extend({},S.original.cssBefore);
S.cssAfter=I.extend({},S.original.cssAfter);
S.animIn=I.extend({},S.original.animIn);
S.animOut=I.extend({},S.original.animOut);
S.fxFn=null;
I.each(S.original.before,function(){S.before.push(this)
});
I.each(S.original.after,function(){S.after.push(this)
});
var T=I.fn.cycle.transitions[R];
if(I.isFunction(T)){T(S.$cont,I(S.elements),S)
}};
function E(Y,R,X,a){if(X&&R.busy&&R.manualTrump){A("manualTrump in go(), stopping active transition");
I(Y).stop(true,true);
R.busy=0
}if(R.busy){A("transition active, ignoring new tx request");
return 
}var V=R.$cont[0],c=Y[R.currSlide],b=Y[R.nextSlide];
if(V.cycleStop!=R.stopCount||V.cycleTimeout===0&&!X){return 
}if(!X&&!V.cyclePause&&!R.bounce&&((R.autostop&&(--R.countdown<=0))||(R.nowrap&&!R.random&&R.nextSlide<R.currSlide))){if(R.end){R.end(R)
}return 
}var Z=false;
if((X||!V.cyclePause)&&(R.nextSlide!=R.currSlide)){Z=true;
var W=R.fx;
c.cycleH=c.cycleH||I(c).height();
c.cycleW=c.cycleW||I(c).width();
b.cycleH=b.cycleH||I(b).height();
b.cycleW=b.cycleW||I(b).width();
if(R.multiFx){if(a&&(R.lastFx==undefined||++R.lastFx>=R.fxs.length)){R.lastFx=0
}else{if(!a&&(R.lastFx==undefined||--R.lastFx<0)){R.lastFx=R.fxs.length-1
}}W=R.fxs[R.lastFx]
}if(R.oneTimeFx){W=R.oneTimeFx;
R.oneTimeFx=null
}I.fn.cycle.resetState(R,W);
if(R.before.length){I.each(R.before,function(d,e){if(V.cycleStop!=R.stopCount){return 
}e.apply(b,[c,b,R,a])
})
}var T=function(){R.busy=0;
I.each(R.after,function(d,e){if(V.cycleStop!=R.stopCount){return 
}e.apply(b,[c,b,R,a])
})
};
A("tx firing("+W+"); currSlide: "+R.currSlide+"; nextSlide: "+R.nextSlide);
R.busy=1;
if(R.fxFn){R.fxFn(c,b,R,T,a,X&&R.fastOnEvent)
}else{if(I.isFunction(I.fn.cycle[R.fx])){I.fn.cycle[R.fx](c,b,R,T,a,X&&R.fastOnEvent)
}else{I.fn.cycle.custom(c,b,R,T,a,X&&R.fastOnEvent)
}}}if(Z||R.nextSlide==R.currSlide){R.lastSlide=R.currSlide;
if(R.random){R.currSlide=R.nextSlide;
if(++R.randomIndex==Y.length){R.randomIndex=0
}R.nextSlide=R.randomMap[R.randomIndex];
if(R.nextSlide==R.currSlide){R.nextSlide=(R.currSlide==R.slideCount-1)?0:R.currSlide+1
}}else{if(R.backwards){var U=(R.nextSlide-1)<0;
if(U&&R.bounce){R.backwards=!R.backwards;
R.nextSlide=1;
R.currSlide=0
}else{R.nextSlide=U?(Y.length-1):R.nextSlide-1;
R.currSlide=U?0:R.nextSlide+1
}}else{var U=(R.nextSlide+1)==Y.length;
if(U&&R.bounce){R.backwards=!R.backwards;
R.nextSlide=Y.length-2;
R.currSlide=Y.length-1
}else{R.nextSlide=U?0:R.nextSlide+1;
R.currSlide=U?Y.length-1:R.nextSlide-1
}}}}if(Z&&R.pager){R.updateActivePagerLink(R.pager,R.currSlide,R.activePagerClass)
}var S=0;
if(R.timeout&&!R.continuous){S=H(Y[R.currSlide],Y[R.nextSlide],R,a)
}else{if(R.continuous&&V.cyclePause){S=10
}}if(S>0){V.cycleTimeout=setTimeout(function(){E(Y,R,0,!R.backwards)
},S)
}}I.fn.cycle.updateActivePagerLink=function(R,T,S){I(R).each(function(){I(this).children().removeClass(S).eq(T).addClass(S)
})
};
function H(V,T,U,S){if(U.timeoutFn){var R=U.timeoutFn.call(V,V,T,U,S);
while(U.fx!="none"&&(R-U.speed)<250){R+=U.speed
}A("calculated timeout: "+R+"; speed: "+U.speed);
if(R!==false){return R
}}return U.timeout
}I.fn.cycle.next=function(R){P(R,1)
};
I.fn.cycle.prev=function(R){P(R,0)
};
function P(U,T){var X=T?1:-1;
var S=U.elements;
var W=U.$cont[0],V=W.cycleTimeout;
if(V){clearTimeout(V);
W.cycleTimeout=0
}if(U.random&&X<0){U.randomIndex--;
if(--U.randomIndex==-2){U.randomIndex=S.length-2
}else{if(U.randomIndex==-1){U.randomIndex=S.length-1
}}U.nextSlide=U.randomMap[U.randomIndex]
}else{if(U.random){U.nextSlide=U.randomMap[U.randomIndex]
}else{U.nextSlide=U.currSlide+X;
if(U.nextSlide<0){if(U.nowrap){return false
}U.nextSlide=S.length-1
}else{if(U.nextSlide>=S.length){if(U.nowrap){return false
}U.nextSlide=0
}}}}var R=U.onPrevNextEvent||U.prevNextClick;
if(I.isFunction(R)){R(X>0,U.nextSlide,S[U.nextSlide])
}E(S,U,1,T);
return false
}function D(S,T){var R=I(T.pager);
I.each(S,function(U,V){I.fn.cycle.createPagerAnchor(U,V,R,S,T)
});
T.updateActivePagerLink(T.pager,T.startingSlide,T.activePagerClass)
}I.fn.cycle.createPagerAnchor=function(W,T,Y,V,S){var Z;
if(I.isFunction(S.pagerAnchorBuilder)){Z=S.pagerAnchorBuilder(W,T);
A("pagerAnchorBuilder("+W+", el) returned: "+Z)
}else{Z='<a href="#">'+(W+1)+"</a>"
}if(!Z){return 
}var U=I(Z);
if(U.parents("body").length===0){var X=[];
if(Y.length>1){Y.each(function(){var a=U.clone(true);
I(this).append(a);
X.push(a[0])
});
U=I(X)
}else{U.appendTo(Y)
}}S.pagerAnchors=S.pagerAnchors||[];
S.pagerAnchors.push(U);
var b=function(g){g.preventDefault();
S.nextSlide=W;
var f=S.$cont[0],d=f.cycleTimeout;
if(d){clearTimeout(d);
f.cycleTimeout=0
}var a=S.onPagerEvent||S.pagerClick;
if(I.isFunction(a)){a(S.nextSlide,V[S.nextSlide])
}E(V,S,1,S.currSlide<W)
};
if(/mouseenter|mouseover/i.test(S.pagerEvent)){U.hover(b,function(){})
}else{U.bind(S.pagerEvent,b)
}if(!/^click/.test(S.pagerEvent)&&!S.allowPagerClickBubble){U.bind("click.cycle",function(){return false
})
}var c=S.$cont[0];
var R=false;
if(S.pauseOnPagerHover){U.hover(function(){R=true;
c.cyclePause++;
M(c,true,true)
},function(){R&&c.cyclePause--;
M(c,true,true)
})
}};
I.fn.cycle.hopsFromLast=function(U,T){var S,R=U.lastSlide,V=U.currSlide;
if(T){S=V>R?V-R:U.slideCount-R
}else{S=V<R?R-V:R+U.slideCount-V
}return S
};
function G(T){A("applying clearType background-color hack");
function S(U){U=parseInt(U,10).toString(16);
return U.length<2?"0"+U:U
}function R(W){for(;
W&&W.nodeName.toLowerCase()!="html";
W=W.parentNode){var U=I.css(W,"background-color");
if(U&&U.indexOf("rgb")>=0){var V=U.match(/\d+/g);
return"#"+S(V[0])+S(V[1])+S(V[2])
}if(U&&U!="transparent"){return U
}}return"#ffffff"
}T.each(function(){I(this).css("background-color",R(this))
})
}I.fn.cycle.commonReset=function(W,U,V,S,T,R){I(V.elements).not(W).hide();
if(typeof V.cssBefore.opacity=="undefined"){V.cssBefore.opacity=1
}V.cssBefore.display="block";
if(V.slideResize&&S!==false&&U.cycleW>0){V.cssBefore.width=U.cycleW
}if(V.slideResize&&T!==false&&U.cycleH>0){V.cssBefore.height=U.cycleH
}V.cssAfter=V.cssAfter||{};
V.cssAfter.display="none";
I(W).css("zIndex",V.slideCount+(R===true?1:0));
I(U).css("zIndex",V.slideCount+(R===true?0:1))
};
I.fn.cycle.custom=function(d,X,R,U,W,S){var c=I(d),Y=I(X);
var T=R.speedIn,b=R.speedOut,V=R.easeIn,a=R.easeOut;
Y.css(R.cssBefore);
if(S){if(typeof S=="number"){T=b=S
}else{T=b=1
}V=a=null
}var Z=function(){Y.animate(R.animIn,T,V,function(){U()
})
};
c.animate(R.animOut,b,a,function(){c.css(R.cssAfter);
if(!R.sync){Z()
}});
if(R.sync){Z()
}};
I.fn.cycle.transitions={fade:function(S,T,R){T.not(":eq("+R.currSlide+")").css("opacity",0);
R.before.push(function(W,U,V){I.fn.cycle.commonReset(W,U,V);
V.cssBefore.opacity=0
});
R.animIn={opacity:1};
R.animOut={opacity:0};
R.cssBefore={top:0,left:0}
}};
I.fn.cycle.ver=function(){return L
};
I.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:false,animIn:null,animOut:null,aspect:false,autostop:0,autostopCount:0,backwards:false,before:null,center:null,cleartype:!I.support.opacity,cleartypeNoBg:false,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:true,metaAttr:"cycle",next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:true,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:false,slideExpr:null,slideResize:1,speed:1000,speedIn:null,speedOut:null,startingSlide:0,sync:1,timeout:4000,timeoutFn:null,updateActivePagerLink:null,width:null}
})(jQuery);
/*
 * jQuery Cycle Plugin Transition Definitions
 * This script is a plugin for the jQuery Cycle Plugin
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version:	 2.73
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function(A){A.fn.cycle.transitions.none=function(C,D,B){B.fxFn=function(G,E,F,H){A(E).show();
A(G).hide();
H()
}
};
A.fn.cycle.transitions.fadeout=function(C,D,B){D.not(":eq("+B.currSlide+")").css({display:"block",opacity:1});
B.before.push(function(J,H,I,F,G,E){A(J).css("zIndex",I.slideCount+(!E===true?1:0));
A(H).css("zIndex",I.slideCount+(!E===true?0:1))
});
B.animIn.opacity=1;
B.animOut.opacity=0;
B.cssBefore.opacity=1;
B.cssBefore.display="block";
B.cssAfter.zIndex=0
};
A.fn.cycle.transitions.scrollUp=function(D,E,C){D.css("overflow","hidden");
C.before.push(A.fn.cycle.commonReset);
var B=D.height();
C.cssBefore.top=B;
C.cssBefore.left=0;
C.cssFirst.top=0;
C.animIn.top=0;
C.animOut.top=-B
};
A.fn.cycle.transitions.scrollDown=function(D,E,C){D.css("overflow","hidden");
C.before.push(A.fn.cycle.commonReset);
var B=D.height();
C.cssFirst.top=0;
C.cssBefore.top=-B;
C.cssBefore.left=0;
C.animIn.top=0;
C.animOut.top=B
};
A.fn.cycle.transitions.scrollLeft=function(D,E,C){D.css("overflow","hidden");
C.before.push(A.fn.cycle.commonReset);
var B=D.width();
C.cssFirst.left=0;
C.cssBefore.left=B;
C.cssBefore.top=0;
C.animIn.left=0;
C.animOut.left=0-B
};
A.fn.cycle.transitions.scrollRight=function(D,E,C){D.css("overflow","hidden");
C.before.push(A.fn.cycle.commonReset);
var B=D.width();
C.cssFirst.left=0;
C.cssBefore.left=-B;
C.cssBefore.top=0;
C.animIn.left=0;
C.animOut.left=B
};
A.fn.cycle.transitions.scrollHorz=function(C,D,B){C.css("overflow","hidden").width();
B.before.push(function(H,F,G,E){if(G.rev){E=!E
}A.fn.cycle.commonReset(H,F,G);
G.cssBefore.left=E?(F.cycleW-1):(1-F.cycleW);
G.animOut.left=E?-H.cycleW:H.cycleW
});
B.cssFirst.left=0;
B.cssBefore.top=0;
B.animIn.left=0;
B.animOut.top=0
};
A.fn.cycle.transitions.scrollVert=function(C,D,B){C.css("overflow","hidden");
B.before.push(function(H,F,G,E){if(G.rev){E=!E
}A.fn.cycle.commonReset(H,F,G);
G.cssBefore.top=E?(1-F.cycleH):(F.cycleH-1);
G.animOut.top=E?H.cycleH:-H.cycleH
});
B.cssFirst.top=0;
B.cssBefore.left=0;
B.animIn.top=0;
B.animOut.left=0
};
A.fn.cycle.transitions.slideX=function(C,D,B){B.before.push(function(G,E,F){A(F.elements).not(G).hide();
A.fn.cycle.commonReset(G,E,F,false,true);
F.animIn.width=E.cycleW
});
B.cssBefore.left=0;
B.cssBefore.top=0;
B.cssBefore.width=0;
B.animIn.width="show";
B.animOut.width=0
};
A.fn.cycle.transitions.slideY=function(C,D,B){B.before.push(function(G,E,F){A(F.elements).not(G).hide();
A.fn.cycle.commonReset(G,E,F,true,false);
F.animIn.height=E.cycleH
});
B.cssBefore.left=0;
B.cssBefore.top=0;
B.cssBefore.height=0;
B.animIn.height="show";
B.animOut.height=0
};
A.fn.cycle.transitions.shuffle=function(E,F,D){var C,B=E.css("overflow","visible").width();
F.css({left:0,top:0});
D.before.push(function(I,G,H){A.fn.cycle.commonReset(I,G,H,true,true,true)
});
if(!D.speedAdjusted){D.speed=D.speed/2;
D.speedAdjusted=true
}D.random=0;
D.shuffle=D.shuffle||{left:-B,top:15};
D.els=[];
for(C=0;
C<F.length;
C++){D.els.push(F[C])
}for(C=0;
C<D.currSlide;
C++){D.els.push(D.els.shift())
}D.fxFn=function(M,J,L,G,I){if(L.rev){I=!I
}var H=I?A(M):A(J);
A(J).css(L.cssBefore);
var K=L.slideCount;
H.animate(L.shuffle,L.speedIn,L.easeIn,function(){var O=A.fn.cycle.hopsFromLast(L,I);
for(var P=0;
P<O;
P++){I?L.els.push(L.els.shift()):L.els.unshift(L.els.pop())
}if(I){for(var Q=0,N=L.els.length;
Q<N;
Q++){A(L.els[Q]).css("z-index",N-Q+K)
}}else{var R=A(M).css("z-index");
H.css("z-index",parseInt(R,10)+1+K)
}H.animate({left:0,top:0},L.speedOut,L.easeOut,function(){A(I?this:M).hide();
if(G){G()
}})
})
};
A.extend(D.cssBefore,{display:"block",opacity:1,top:0,left:0})
};
A.fn.cycle.transitions.turnUp=function(C,D,B){B.before.push(function(G,E,F){A.fn.cycle.commonReset(G,E,F,true,false);
F.cssBefore.top=E.cycleH;
F.animIn.height=E.cycleH;
F.animOut.width=E.cycleW
});
B.cssFirst.top=0;
B.cssBefore.left=0;
B.cssBefore.height=0;
B.animIn.top=0;
B.animOut.height=0
};
A.fn.cycle.transitions.turnDown=function(C,D,B){B.before.push(function(G,E,F){A.fn.cycle.commonReset(G,E,F,true,false);
F.animIn.height=E.cycleH;
F.animOut.top=G.cycleH
});
B.cssFirst.top=0;
B.cssBefore.left=0;
B.cssBefore.top=0;
B.cssBefore.height=0;
B.animOut.height=0
};
A.fn.cycle.transitions.turnLeft=function(C,D,B){B.before.push(function(G,E,F){A.fn.cycle.commonReset(G,E,F,false,true);
F.cssBefore.left=E.cycleW;
F.animIn.width=E.cycleW
});
B.cssBefore.top=0;
B.cssBefore.width=0;
B.animIn.left=0;
B.animOut.width=0
};
A.fn.cycle.transitions.turnRight=function(C,D,B){B.before.push(function(G,E,F){A.fn.cycle.commonReset(G,E,F,false,true);
F.animIn.width=E.cycleW;
F.animOut.left=G.cycleW
});
A.extend(B.cssBefore,{top:0,left:0,width:0});
B.animIn.left=0;
B.animOut.width=0
};
A.fn.cycle.transitions.zoom=function(C,D,B){B.before.push(function(G,E,F){A.fn.cycle.commonReset(G,E,F,false,false,true);
F.cssBefore.top=E.cycleH/2;
F.cssBefore.left=E.cycleW/2;
A.extend(F.animIn,{top:0,left:0,width:E.cycleW,height:E.cycleH});
A.extend(F.animOut,{width:0,height:0,top:G.cycleH/2,left:G.cycleW/2})
});
B.cssFirst.top=0;
B.cssFirst.left=0;
B.cssBefore.width=0;
B.cssBefore.height=0
};
A.fn.cycle.transitions.fadeZoom=function(C,D,B){B.before.push(function(G,E,F){A.fn.cycle.commonReset(G,E,F,false,false);
F.cssBefore.left=E.cycleW/2;
F.cssBefore.top=E.cycleH/2;
A.extend(F.animIn,{top:0,left:0,width:E.cycleW,height:E.cycleH})
});
B.cssBefore.width=0;
B.cssBefore.height=0;
B.animOut.opacity=0
};
A.fn.cycle.transitions.blindX=function(D,E,C){var B=D.css("overflow","hidden").width();
C.before.push(function(H,F,G){A.fn.cycle.commonReset(H,F,G);
G.animIn.width=F.cycleW;
G.animOut.left=H.cycleW
});
C.cssBefore.left=B;
C.cssBefore.top=0;
C.animIn.left=0;
C.animOut.left=B
};
A.fn.cycle.transitions.blindY=function(D,E,C){var B=D.css("overflow","hidden").height();
C.before.push(function(H,F,G){A.fn.cycle.commonReset(H,F,G);
G.animIn.height=F.cycleH;
G.animOut.top=H.cycleH
});
C.cssBefore.top=B;
C.cssBefore.left=0;
C.animIn.top=0;
C.animOut.top=B
};
A.fn.cycle.transitions.blindZ=function(E,F,D){var C=E.css("overflow","hidden").height();
var B=E.width();
D.before.push(function(I,G,H){A.fn.cycle.commonReset(I,G,H);
H.animIn.height=G.cycleH;
H.animOut.top=I.cycleH
});
D.cssBefore.top=C;
D.cssBefore.left=B;
D.animIn.top=0;
D.animIn.left=0;
D.animOut.top=C;
D.animOut.left=B
};
A.fn.cycle.transitions.growX=function(C,D,B){B.before.push(function(G,E,F){A.fn.cycle.commonReset(G,E,F,false,true);
F.cssBefore.left=this.cycleW/2;
F.animIn.left=0;
F.animIn.width=this.cycleW;
F.animOut.left=0
});
B.cssBefore.top=0;
B.cssBefore.width=0
};
A.fn.cycle.transitions.growY=function(C,D,B){B.before.push(function(G,E,F){A.fn.cycle.commonReset(G,E,F,true,false);
F.cssBefore.top=this.cycleH/2;
F.animIn.top=0;
F.animIn.height=this.cycleH;
F.animOut.top=0
});
B.cssBefore.height=0;
B.cssBefore.left=0
};
A.fn.cycle.transitions.curtainX=function(C,D,B){B.before.push(function(G,E,F){A.fn.cycle.commonReset(G,E,F,false,true,true);
F.cssBefore.left=E.cycleW/2;
F.animIn.left=0;
F.animIn.width=this.cycleW;
F.animOut.left=G.cycleW/2;
F.animOut.width=0
});
B.cssBefore.top=0;
B.cssBefore.width=0
};
A.fn.cycle.transitions.curtainY=function(C,D,B){B.before.push(function(G,E,F){A.fn.cycle.commonReset(G,E,F,true,false,true);
F.cssBefore.top=E.cycleH/2;
F.animIn.top=0;
F.animIn.height=E.cycleH;
F.animOut.top=G.cycleH/2;
F.animOut.height=0
});
B.cssBefore.height=0;
B.cssBefore.left=0
};
A.fn.cycle.transitions.cover=function(E,F,D){var G=D.direction||"left";
var B=E.css("overflow","hidden").width();
var C=E.height();
D.before.push(function(J,H,I){A.fn.cycle.commonReset(J,H,I);
if(G=="right"){I.cssBefore.left=-B
}else{if(G=="up"){I.cssBefore.top=C
}else{if(G=="down"){I.cssBefore.top=-C
}else{I.cssBefore.left=B
}}}});
D.animIn.left=0;
D.animIn.top=0;
D.cssBefore.top=0;
D.cssBefore.left=0
};
A.fn.cycle.transitions.uncover=function(E,F,D){var G=D.direction||"left";
var B=E.css("overflow","hidden").width();
var C=E.height();
D.before.push(function(J,H,I){A.fn.cycle.commonReset(J,H,I,true,true,true);
if(G=="right"){I.animOut.left=B
}else{if(G=="up"){I.animOut.top=-C
}else{if(G=="down"){I.animOut.top=C
}else{I.animOut.left=-B
}}}});
D.animIn.left=0;
D.animIn.top=0;
D.cssBefore.top=0;
D.cssBefore.left=0
};
A.fn.cycle.transitions.toss=function(E,F,D){var B=E.css("overflow","visible").width();
var C=E.height();
D.before.push(function(I,G,H){A.fn.cycle.commonReset(I,G,H,true,true,true);
if(!H.animOut.left&&!H.animOut.top){A.extend(H.animOut,{left:B*2,top:-C/2,opacity:0})
}else{H.animOut.opacity=0
}});
D.cssBefore.left=0;
D.cssBefore.top=0;
D.animIn.left=0
};
A.fn.cycle.transitions.wipe=function(M,I,C){var L=M.css("overflow","hidden").width();
var G=M.height();
C.cssBefore=C.cssBefore||{};
var E;
if(C.clip){if(/l2r/.test(C.clip)){E="rect(0px 0px "+G+"px 0px)"
}else{if(/r2l/.test(C.clip)){E="rect(0px "+L+"px "+G+"px "+L+"px)"
}else{if(/t2b/.test(C.clip)){E="rect(0px "+L+"px 0px 0px)"
}else{if(/b2t/.test(C.clip)){E="rect("+G+"px "+L+"px "+G+"px 0px)"
}else{if(/zoom/.test(C.clip)){var K=parseInt(G/2,10);
var D=parseInt(L/2,10);
E="rect("+K+"px "+D+"px "+K+"px "+D+"px)"
}}}}}}C.cssBefore.clip=C.cssBefore.clip||E||"rect(0px 0px 0px 0px)";
var H=C.cssBefore.clip.match(/(\d+)/g);
var N=parseInt(H[0],10),B=parseInt(H[1],10),J=parseInt(H[2],10),F=parseInt(H[3],10);
C.before.push(function(V,Q,T){if(V==Q){return 
}var P=A(V),O=A(Q);
A.fn.cycle.commonReset(V,Q,T,true,true,false);
T.cssAfter.display="block";
var S=1,R=parseInt((T.speedIn/13),10)-1;
(function U(){var X=N?N-parseInt(S*(N/R),10):0;
var Y=F?F-parseInt(S*(F/R),10):0;
var Z=J<G?J+parseInt(S*((G-J)/R||1),10):G;
var W=B<L?B+parseInt(S*((L-B)/R||1),10):L;
O.css({clip:"rect("+X+"px "+W+"px "+Z+"px "+Y+"px)"});
(S++<=R)?setTimeout(U,13):P.css("display","none")
})()
});
A.extend(C.cssBefore,{display:"block",opacity:1,top:0,left:0});
C.animIn={left:0};
C.animOut={left:0}
}
})(jQuery);
