(function(h){var k="2.9995";if(h.support==undefined){h.support={opacity:!(h.browser.msie)}}function a(q){h.fn.cycle.debug&&e(q)}function e(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}h.expr[":"].paused=function(q){return q.cyclePause};h.fn.cycle=function(r,q){var s={s:this.selector,c:this.context};if(this.length===0&&r!="stop"){if(!h.isReady&&s.s){e("DOM not ready, queuing slideshow");h(function(){h(s.s,s.c).cycle(r,q)});return this}e("terminating; zero elements found by selector"+(h.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var w=m(this,r,q);if(w===false){return}w.updateActivePagerLink=w.updateActivePagerLink||h.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var x=h(this);var y=w.slideExpr?h(w.slideExpr,this):x.children();var u=y.get();var t=j(x,y,u,w,s);if(t===false){return}if(u.length<2){e("terminating; too few slides: "+u.length);return}var v=t.continuous?10:g(u[t.currSlide],u[t.nextSlide],t,!t.backwards);if(v){v+=(t.delay||0);if(v<10){v=10}a("first timeout: "+v);this.cycleTimeout=setTimeout(function(){d(u,t,0,!w.backwards)},v)}})};function l(q,t,s){var u=h(q).data("cycle.opts");var r=!!q.cyclePause;if(r&&u.paused){u.paused(q,u,t,s)}else{if(!r&&u.resumed){u.resumed(q,u,t,s)}}}function m(q,t,r){if(q.cycleStop==undefined){q.cycleStop=0}if(t===undefined||t===null){t={}}if(t.constructor==String){switch(t){case"destroy":case"stop":var v=h(q).data("cycle.opts");if(!v){return false}q.cycleStop++;if(q.cycleTimeout){clearTimeout(q.cycleTimeout)}q.cycleTimeout=0;v.elements&&h(v.elements).stop();h(q).removeData("cycle.opts");if(t=="destroy"){p(v)}return false;case"toggle":q.cyclePause=(q.cyclePause===1)?0:1;u(q.cyclePause,r,q);l(q);return false;case"pause":q.cyclePause=1;l(q);return false;case"resume":q.cyclePause=0;u(false,r,q);l(q);return false;case"prev":case"next":var v=h(q).data("cycle.opts");if(!v){e('options not found, "prev/next" ignored');return false}h.fn.cycle[t](v);return false;default:t={fx:t}}return t}else{if(t.constructor==Number){var s=t;t=h(q).data("cycle.opts");if(!t){e("options not found, can not advance slide");return false}if(s<0||s>=t.elements.length){e("invalid slide index: "+s);return false}t.nextSlide=s;if(q.cycleTimeout){clearTimeout(q.cycleTimeout);q.cycleTimeout=0}if(typeof r=="string"){t.oneTimeFx=r}d(t.elements,t,1,s>=t.currSlide);return false}}return t;function u(x,y,w){if(!x&&y===true){var z=h(w).data("cycle.opts");if(!z){e("options not found, can not resume");return false}if(w.cycleTimeout){clearTimeout(w.cycleTimeout);w.cycleTimeout=0}d(z.elements,z,1,!z.backwards)}}}function b(q,r){if(!h.support.opacity&&r.cleartype&&q.style.filter){try{q.style.removeAttribute("filter")}catch(s){}}}function p(q){if(q.next){h(q.next).unbind(q.prevNextEvent)}if(q.prev){h(q.prev).unbind(q.prevNextEvent)}if(q.pager||q.pagerAnchorBuilder){h.each(q.pagerAnchors||[],function(){this.unbind().remove()})}q.pagerAnchors=null;if(q.destroy){q.destroy(q)}}function j(z,M,v,u,G){var E=h.extend({},h.fn.cycle.defaults,u||{},h.metadata?z.metadata():h.meta?z.data():{});var C=h.isFunction(z.data)?z.data(E.metaAttr):null;if(C){E=h.extend(E,C)}if(E.autostop){E.countdown=E.autostopCount||v.length}var r=z[0];z.data("cycle.opts",E);E.$cont=z;E.stopCount=r.cycleStop;E.elements=v;E.before=E.before?[E.before]:[];E.after=E.after?[E.after]:[];if(!h.support.opacity&&E.cleartype){E.after.push(function(){b(this,E)})}if(E.continuous){E.after.push(function(){d(v,E,0,!E.backwards)})}n(E);if(!h.support.opacity&&E.cleartype&&!E.cleartypeNoBg){f(M)}if(z.css("position")=="static"){z.css("position","relative")}if(E.width){z.width(E.width)}if(E.height&&E.height!="auto"){z.height(E.height)}if(E.startingSlide){E.startingSlide=parseInt(E.startingSlide,10)}else{if(E.backwards){E.startingSlide=v.length-1}}if(E.random){E.randomMap=[];for(var K=0;K<v.length;K++){E.randomMap.push(K)}E.randomMap.sort(function(O,w){return Math.random()-0.5});E.randomIndex=1;E.startingSlide=E.randomMap[1]}else{if(E.startingSlide>=v.length){E.startingSlide=0}}E.currSlide=E.startingSlide||0;var y=E.startingSlide;M.css({position:"absolute",top:0,left:0}).hide().each(function(w){var O;if(E.backwards){O=y?w<=y?v.length+(w-y):y-w:v.length-w}else{O=y?w>=y?v.length-(w-y):y-w:v.length-w}h(this).css("z-index",O)});h(v[y]).css("opacity",1).show();b(v[y],E);if(E.fit){if(!E.aspect){if(E.width){M.width(E.width)}if(E.height&&E.height!="auto"){M.height(E.height)}}else{M.each(function(){var O=h(this);var w=(E.aspect===true)?O.width()/O.height():E.aspect;if(E.width&&O.width()!=E.width){O.width(E.width);O.height(E.width/w)}if(E.height&&O.height()<E.height){O.height(E.height);O.width(E.height*w)}})}}if(E.center&&((!E.fit)||E.aspect)){M.each(function(){var w=h(this);w.css({"margin-left":E.width?((E.width-w.width())/2)+"px":0,"margin-top":E.height?((E.height-w.height())/2)+"px":0})})}if(E.center&&!E.fit&&!E.slideResize){M.each(function(){var w=h(this);w.css({"margin-left":E.width?((E.width-w.width())/2)+"px":0,"margin-top":E.height?((E.height-w.height())/2)+"px":0})})}var F=E.containerResize&&!z.innerHeight();if(F){var x=0,D=0;for(var I=0;I<v.length;I++){var q=h(v[I]),N=q[0],B=q.outerWidth(),L=q.outerHeight();if(!B){B=N.offsetWidth||N.width||q.attr("width")}if(!L){L=N.offsetHeight||N.height||q.attr("height")}x=B>x?B:x;D=L>D?L:D}if(x>0&&D>0){z.css({width:x+"px",height:D+"px"})}}var t=false;if(E.pause){z.hover(function(){t=true;this.cyclePause++;l(r,true)},function(){t&&this.cyclePause--;l(r,true)})}var s=false;u.requeueAttempts=u.requeueAttempts||0;M.each(function(){var Q=h(this);this.cycleH=(E.fit&&E.height)?E.height:(Q.height()||this.offsetHeight||this.height||Q.attr("height")||0);this.cycleW=(E.fit&&E.width)?E.width:(Q.width()||this.offsetWidth||this.width||Q.attr("width")||0);if(Q.is("img")){var O=(h.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var R=(h.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var P=(h.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var w=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(O||R||P||w){if(G.s&&E.requeueOnImageNotLoaded&&++u.requeueAttempts<100){e(u.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){h(G.s,G.c).cycle(u)},E.requeueTimeout);s=true;return false}else{e("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(s){return false}E.cssBefore=E.cssBefore||{};E.cssAfter=E.cssAfter||{};E.cssFirst=E.cssFirst||{};E.animIn=E.animIn||{};E.animOut=E.animOut||{};M.not(":eq("+y+")").css(E.cssBefore);h(M[y]).css(E.cssFirst);if(E.timeout){E.timeout=parseInt(E.timeout,10);if(E.speed.constructor==String){E.speed=h.fx.speeds[E.speed]||parseInt(E.speed,10)}if(!E.sync){E.speed=E.speed/2}var H=E.fx=="none"?0:E.fx=="shuffle"?500:250;while((E.timeout-E.speed)<H){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=v.length;E.currSlide=E.lastSlide=y;if(E.random){if(++E.randomIndex==v.length){E.randomIndex=0}E.nextSlide=E.randomMap[E.randomIndex]}else{if(E.backwards){E.nextSlide=E.startingSlide==0?(v.length-1):E.startingSlide-1}else{E.nextSlide=E.startingSlide>=(v.length-1)?0:E.startingSlide+1}}if(!E.multiFx){var J=h.fn.cycle.transitions[E.fx];if(h.isFunction(J)){J(z,M,E)}else{if(E.fx!="custom"&&!E.multiFx){e("unknown transition: "+E.fx,"; slideshow terminating");return false}}}var A=M[y];if(!E.skipInitializationCallbacks){if(E.before.length){E.before[0].apply(A,[A,A,E,true])}if(E.after.length){E.after[0].apply(A,[A,A,E,true])}}if(E.next){h(E.next).bind(E.prevNextEvent,function(){return o(E,1)})}if(E.prev){h(E.prev).bind(E.prevNextEvent,function(){return o(E,0)})}if(E.pager||E.pagerAnchorBuilder){c(v,E)}i(E,v);return E}function n(q){q.original={before:[],after:[]};q.original.cssBefore=h.extend({},q.cssBefore);q.original.cssAfter=h.extend({},q.cssAfter);q.original.animIn=h.extend({},q.animIn);q.original.animOut=h.extend({},q.animOut);h.each(q.before,function(){q.original.before.push(this)});h.each(q.after,function(){q.original.after.push(this)})}function i(r,q){r.addSlide=function(u,v){var t=h(u),w=t[0];if(!r.autostopCount){r.countdown++}q[v?"unshift":"push"](w);if(r.els){r.els[v?"unshift":"push"](w)}r.slideCount=q.length;t.css("position","absolute");t[v?"prependTo":"appendTo"](r.$cont);if(v){r.currSlide++;r.nextSlide++}if(!h.support.opacity&&r.cleartype&&!r.cleartypeNoBg){f(t)}if(r.fit&&r.width){t.width(r.width)}if(r.fit&&r.height&&r.height!="auto"){t.height(r.height)}w.cycleH=(r.fit&&r.height)?r.height:t.height();w.cycleW=(r.fit&&r.width)?r.width:t.width();t.css(r.cssBefore);if(r.pager||r.pagerAnchorBuilder){h.fn.cycle.createPagerAnchor(q.length-1,w,h(r.pager),q,r)}if(h.isFunction(r.onAddSlide)){r.onAddSlide(t)}else{t.hide()}}}h.fn.cycle.resetState=function(r,q){q=q||r.fx;r.before=[];r.after=[];r.cssBefore=h.extend({},r.original.cssBefore);r.cssAfter=h.extend({},r.original.cssAfter);r.animIn=h.extend({},r.original.animIn);r.animOut=h.extend({},r.original.animOut);r.fxFn=null;h.each(r.original.before,function(){r.before.push(this)});h.each(r.original.after,function(){r.after.push(this)});var s=h.fn.cycle.transitions[q];if(h.isFunction(s)){s(r.$cont,h(r.elements),r)}};function d(x,q,w,z){if(w&&q.busy&&q.manualTrump){a("manualTrump in go(), stopping active transition");h(x).stop(true,true);q.busy=0}if(q.busy){a("transition active, ignoring new tx request");return}var u=q.$cont[0],B=x[q.currSlide],A=x[q.nextSlide];if(u.cycleStop!=q.stopCount||u.cycleTimeout===0&&!w){return}if(!w&&!u.cyclePause&&!q.bounce&&((q.autostop&&(--q.countdown<=0))||(q.nowrap&&!q.random&&q.nextSlide<q.currSlide))){if(q.end){q.end(q)}return}var y=false;if((w||!u.cyclePause)&&(q.nextSlide!=q.currSlide)){y=true;var v=q.fx;B.cycleH=B.cycleH||h(B).height();B.cycleW=B.cycleW||h(B).width();A.cycleH=A.cycleH||h(A).height();A.cycleW=A.cycleW||h(A).width();if(q.multiFx){if(z&&(q.lastFx==undefined||++q.lastFx>=q.fxs.length)){q.lastFx=0}else{if(!z&&(q.lastFx==undefined||--q.lastFx<0)){q.lastFx=q.fxs.length-1}}v=q.fxs[q.lastFx]}if(q.oneTimeFx){v=q.oneTimeFx;q.oneTimeFx=null}h.fn.cycle.resetState(q,v);if(q.before.length){h.each(q.before,function(C,D){if(u.cycleStop!=q.stopCount){return}D.apply(A,[B,A,q,z])})}var s=function(){q.busy=0;h.each(q.after,function(C,D){if(u.cycleStop!=q.stopCount){return}D.apply(A,[B,A,q,z])})};a("tx firing("+v+"); currSlide: "+q.currSlide+"; nextSlide: "+q.nextSlide);q.busy=1;if(q.fxFn){q.fxFn(B,A,q,s,z,w&&q.fastOnEvent)}else{if(h.isFunction(h.fn.cycle[q.fx])){h.fn.cycle[q.fx](B,A,q,s,z,w&&q.fastOnEvent)}else{h.fn.cycle.custom(B,A,q,s,z,w&&q.fastOnEvent)}}}if(y||q.nextSlide==q.currSlide){q.lastSlide=q.currSlide;if(q.random){q.currSlide=q.nextSlide;if(++q.randomIndex==x.length){q.randomIndex=0}q.nextSlide=q.randomMap[q.randomIndex];if(q.nextSlide==q.currSlide){q.nextSlide=(q.currSlide==q.slideCount-1)?0:q.currSlide+1}}else{if(q.backwards){var t=(q.nextSlide-1)<0;if(t&&q.bounce){q.backwards=!q.backwards;q.nextSlide=1;q.currSlide=0}else{q.nextSlide=t?(x.length-1):q.nextSlide-1;q.currSlide=t?0:q.nextSlide+1}}else{var t=(q.nextSlide+1)==x.length;if(t&&q.bounce){q.backwards=!q.backwards;q.nextSlide=x.length-2;q.currSlide=x.length-1}else{q.nextSlide=t?0:q.nextSlide+1;q.currSlide=t?x.length-1:q.nextSlide-1}}}}if(y&&q.pager){q.updateActivePagerLink(q.pager,q.currSlide,q.activePagerClass)}var r=0;if(q.timeout&&!q.continuous){r=g(x[q.currSlide],x[q.nextSlide],q,z)}else{if(q.continuous&&u.cyclePause){r=10}}if(r>0){u.cycleTimeout=setTimeout(function(){d(x,q,0,!q.backwards)},r)}}h.fn.cycle.updateActivePagerLink=function(q,s,r){h(q).each(function(){h(this).children().removeClass(r).eq(s).addClass(r)})};function g(v,s,u,r){if(u.timeoutFn){var q=u.timeoutFn.call(v,v,s,u,r);while(u.fx!="none"&&(q-u.speed)<250){q+=u.speed}a("calculated timeout: "+q+"; speed: "+u.speed);if(q!==false){return q}}return u.timeout}h.fn.cycle.next=function(q){o(q,1)};h.fn.cycle.prev=function(q){o(q,0)};function o(t,s){var w=s?1:-1;var r=t.elements;var v=t.$cont[0],u=v.cycleTimeout;if(u){clearTimeout(u);v.cycleTimeout=0}if(t.random&&w<0){t.randomIndex--;if(--t.randomIndex==-2){t.randomIndex=r.length-2}else{if(t.randomIndex==-1){t.randomIndex=r.length-1}}t.nextSlide=t.randomMap[t.randomIndex]}else{if(t.random){t.nextSlide=t.randomMap[t.randomIndex]}else{t.nextSlide=t.currSlide+w;if(t.nextSlide<0){if(t.nowrap){return false}t.nextSlide=r.length-1}else{if(t.nextSlide>=r.length){if(t.nowrap){return false}t.nextSlide=0}}}}var q=t.onPrevNextEvent||t.prevNextClick;if(h.isFunction(q)){q(w>0,t.nextSlide,r[t.nextSlide])}d(r,t,1,s);return false}function c(r,s){var q=h(s.pager);h.each(r,function(t,u){h.fn.cycle.createPagerAnchor(t,u,q,r,s)});s.updateActivePagerLink(s.pager,s.startingSlide,s.activePagerClass)}h.fn.cycle.createPagerAnchor=function(v,s,x,u,r){var y;if(h.isFunction(r.pagerAnchorBuilder)){y=r.pagerAnchorBuilder(v,s);a("pagerAnchorBuilder("+v+", el) returned: "+y)}else{y='<a href="#">'+(v+1)+"</a>"}if(!y){return}var t=h(y);if(t.parents("body").length===0){var w=[];if(x.length>1){x.each(function(){var B=t.clone(true);h(this).append(B);w.push(B[0])});t=h(w)}else{t.appendTo(x)}}r.pagerAnchors=r.pagerAnchors||[];r.pagerAnchors.push(t);var z=function(E){E.preventDefault();r.nextSlide=v;var D=r.$cont[0],C=D.cycleTimeout;if(C){clearTimeout(C);D.cycleTimeout=0}var B=r.onPagerEvent||r.pagerClick;if(h.isFunction(B)){B(r.nextSlide,u[r.nextSlide])}d(u,r,1,r.currSlide<v)};if(/mouseenter|mouseover/i.test(r.pagerEvent)){t.hover(z,function(){})}else{t.bind(r.pagerEvent,z)}if(!/^click/.test(r.pagerEvent)&&!r.allowPagerClickBubble){t.bind("click.cycle",function(){return false})}var A=r.$cont[0];var q=false;if(r.pauseOnPagerHover){t.hover(function(){q=true;A.cyclePause++;l(A,true,true)},function(){q&&A.cyclePause--;l(A,true,true)})}};h.fn.cycle.hopsFromLast=function(t,s){var r,q=t.lastSlide,u=t.currSlide;if(s){r=u>q?u-q:t.slideCount-q}else{r=u<q?q-u:q+t.slideCount-u}return r};function f(s){a("applying clearType background-color hack");function r(t){t=parseInt(t,10).toString(16);return t.length<2?"0"+t:t}function q(w){for(;w&&w.nodeName.toLowerCase()!="html";w=w.parentNode){var t=h.css(w,"background-color");if(t&&t.indexOf("rgb")>=0){var u=t.match(/\d+/g);return"#"+r(u[0])+r(u[1])+r(u[2])}if(t&&t!="transparent"){return t}}return"#ffffff"}s.each(function(){h(this).css("background-color",q(this))})}h.fn.cycle.commonReset=function(v,t,u,r,s,q){h(u.elements).not(v).hide();if(typeof u.cssBefore.opacity=="undefined"){u.cssBefore.opacity=1}u.cssBefore.display="block";if(u.slideResize&&r!==false&&t.cycleW>0){u.cssBefore.width=t.cycleW}if(u.slideResize&&s!==false&&t.cycleH>0){u.cssBefore.height=t.cycleH}u.cssAfter=u.cssAfter||{};u.cssAfter.display="none";h(v).css("zIndex",u.slideCount+(q===true?1:0));h(t).css("zIndex",u.slideCount+(q===true?0:1))};h.fn.cycle.custom=function(C,w,q,t,v,r){var B=h(C),x=h(w);var s=q.speedIn,A=q.speedOut,u=q.easeIn,z=q.easeOut;x.css(q.cssBefore);if(r){if(typeof r=="number"){s=A=r}else{s=A=1}u=z=null}var y=function(){x.animate(q.animIn,s,u,function(){t()})};B.animate(q.animOut,A,z,function(){B.css(q.cssAfter);if(!q.sync){y()}});if(q.sync){y()}};h.fn.cycle.transitions={fade:function(r,s,q){s.not(":eq("+q.currSlide+")").css("opacity",0);q.before.push(function(v,t,u){h.fn.cycle.commonReset(v,t,u);u.cssBefore.opacity=0});q.animIn={opacity:1};q.animOut={opacity:0};q.cssBefore={top:0,left:0}}};h.fn.cycle.ver=function(){return k};h.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:!h.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);(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.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.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.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}})(jQuery);if(/Mac/.test(navigator.platform)){$("html").addClass("macos")}jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});(function(B){var L,T,Q,M,d,m,J,A,O,z,C=0,H={},j=[],e=0,G={},y=[],f=null,o=new Image(),i=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,k=/[^\.]\.(swf)\s*$/i,p,N=1,h=0,t="",b,c,P=false,s=B.extend(B("<div/>")[0],{prop:0}),S=B.browser.msie&&B.browser.version<7&&!window.XMLHttpRequest,r=function(){T.hide();o.onerror=o.onload=null;if(f){f.abort()}L.empty()},x=function(){if(false===H.onError(j,C,H)){T.hide();P=false;return}H.titleShow=false;H.width="auto";H.height="auto";L.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');n()},w=function(){var Z=j[C],W,Y,ab,aa,V,X;r();H=B.extend({},B.fn.fancybox.defaults,(typeof B(Z).data("fancybox")=="undefined"?H:B(Z).data("fancybox")));X=H.onStart(j,C,H);if(X===false){P=false;return}else{if(typeof X=="object"){H=B.extend(H,X)}}ab=H.title||(Z.nodeName?B(Z).attr("title"):Z.title)||"";if(Z.nodeName&&!H.orig){H.orig=B(Z).children("img:first").length?B(Z).children("img:first"):B(Z)}if(ab===""&&H.orig&&H.titleFromAlt){ab=H.orig.attr("alt")}W=H.href||(Z.nodeName?B(Z).attr("href"):Z.href)||null;if((/^(?:javascript)/i).test(W)||W=="#"){W=null}if(H.type){Y=H.type;if(!W){W=H.content}}else{if(H.content){Y="html"}else{if(W){if(W.match(i)){Y="image"}else{if(W.match(k)){Y="swf"}else{if(B(Z).hasClass("iframe")){Y="iframe"}else{if(W.indexOf("#")===0){Y="inline"}else{Y="ajax"}}}}}}}if(!Y){x();return}if(Y=="inline"){Z=W.substr(W.indexOf("#"));Y=B(Z).length>0?"inline":"ajax"}H.type=Y;H.href=W;H.title=ab;if(H.autoDimensions){if(H.type=="html"||H.type=="inline"||H.type=="ajax"){H.width="auto";H.height="auto"}else{H.autoDimensions=false}}if(H.modal){H.overlayShow=true;H.hideOnOverlayClick=false;H.hideOnContentClick=false;H.enableEscapeButton=false;H.showCloseButton=false}H.padding=parseInt(H.padding,10);H.margin=parseInt(H.margin,10);L.css("padding",(H.padding+H.margin));B(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){B(this).replaceWith(m.children())});switch(Y){case"html":L.html(H.content);n();break;case"inline":if(B(Z).parent().is("#fancybox-content")===true){P=false;return}B('<div class="fancybox-inline-tmp" />').hide().insertBefore(B(Z)).bind("fancybox-cleanup",function(){B(this).replaceWith(m.children())}).bind("fancybox-cancel",function(){B(this).replaceWith(L.children())});B(Z).appendTo(L);n();break;case"image":P=false;B.fancybox.showActivity();o=new Image();o.onerror=function(){x()};o.onload=function(){P=true;o.onerror=o.onload=null;F()};o.src=W;break;case"swf":H.scrolling="no";aa='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+H.width+'" height="'+H.height+'"><param name="movie" value="'+W+'"></param>';V="";B.each(H.swf,function(ac,ad){aa+='<param name="'+ac+'" value="'+ad+'"></param>';V+=" "+ac+'="'+ad+'"'});aa+='<embed src="'+W+'" type="application/x-shockwave-flash" width="'+H.width+'" height="'+H.height+'"'+V+"></embed></object>";L.html(aa);n();break;case"ajax":P=false;B.fancybox.showActivity();H.ajax.win=H.ajax.success;f=B.ajax(B.extend({},H.ajax,{url:W,data:H.ajax.data||{},error:function(ac,ae,ad){if(ac.status>0){x()}},success:function(ad,af,ac){var ae=typeof ac=="object"?ac:f;if(ae.status==200){if(typeof H.ajax.win=="function"){X=H.ajax.win(W,ad,af,ac);if(X===false){T.hide();return}else{if(typeof X=="string"||typeof X=="object"){ad=X}}}L.html(ad);n()}}}));break;case"iframe":E();break}},n=function(){var V=H.width,W=H.height;if(V.toString().indexOf("%")>-1){V=parseInt((B(window).width()-(H.margin*2))*parseFloat(V)/100,10)+"px"}else{V=V=="auto"?"auto":V+"px"}if(W.toString().indexOf("%")>-1){W=parseInt((B(window).height()-(H.margin*2))*parseFloat(W)/100,10)+"px"}else{W=W=="auto"?"auto":W+"px"}L.wrapInner('<div style="width:'+V+";height:"+W+";overflow: "+(H.scrolling=="auto"?"auto":(H.scrolling=="yes"?"scroll":"hidden"))+';position:relative;"></div>');H.width=L.width();H.height=L.height();E()},F=function(){H.width=o.width;H.height=o.height;B("<img />").attr({id:"fancybox-img",src:o.src,alt:H.title}).appendTo(L);E()},E=function(){var W,V;T.hide();if(M.is(":visible")&&false===G.onCleanup(y,e,G)){B.event.trigger("fancybox-cancel");P=false;return}P=true;B(m.add(Q)).unbind();B(window).unbind("resize.fb scroll.fb");B(document).unbind("keydown.fb");if(M.is(":visible")&&G.titlePosition!=="outside"){M.css("height",M.height())}y=j;e=C;G=H;if(G.overlayShow){Q.css({"background-color":G.overlayColor,opacity:G.overlayOpacity,cursor:G.hideOnOverlayClick?"pointer":"auto",height:B(document).height()});if(!Q.is(":visible")){if(S){B("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"})}Q.show()}}else{Q.hide()}c=R();l();if(M.is(":visible")){B(J.add(O).add(z)).hide();W=M.position(),b={top:W.top,left:W.left,width:M.width(),height:M.height()};V=(b.width==c.width&&b.height==c.height);m.fadeTo(G.changeFade,0.3,function(){var X=function(){m.html(L.contents()).fadeTo(G.changeFade,1,v)};B.event.trigger("fancybox-change");m.empty().removeAttr("filter").css({"border-width":G.padding,width:c.width-G.padding*2,height:H.autoDimensions?"auto":c.height-h-G.padding*2});if(V){X()}else{s.prop=0;B(s).animate({prop:1},{duration:G.changeSpeed,easing:G.easingChange,step:U,complete:X})}});return}M.removeAttr("style");m.css("border-width",G.padding);if(G.transitionIn=="elastic"){b=I();m.html(L.contents());M.show();if(G.opacity){c.opacity=0}s.prop=0;B(s).animate({prop:1},{duration:G.speedIn,easing:G.easingIn,step:U,complete:v});return}if(G.titlePosition=="inside"&&h>0){A.show()}m.css({width:c.width-G.padding*2,height:H.autoDimensions?"auto":c.height-h-G.padding*2}).html(L.contents());M.css(c).fadeIn(G.transitionIn=="none"?0:G.speedIn,v)},D=function(V){if(V&&V.length){if(G.titlePosition=="float"){return'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+V+'</td><td id="fancybox-title-float-right"></td></tr></table>'}return'<div id="fancybox-title-'+G.titlePosition+'">'+V+"</div>"}return false},l=function(){t=G.title||"";h=0;A.empty().removeAttr("style").removeClass();if(G.titleShow===false){A.hide();return}t=B.isFunction(G.titleFormat)?G.titleFormat(t,y,e,G):D(t);if(!t||t===""){A.hide();return}A.addClass("fancybox-title-"+G.titlePosition).html(t).appendTo("body").show();switch(G.titlePosition){case"inside":A.css({width:c.width-(G.padding*2),marginLeft:G.padding,marginRight:G.padding});h=A.outerHeight(true);A.appendTo(d);c.height+=h;break;case"over":A.css({marginLeft:G.padding,width:c.width-(G.padding*2),bottom:G.padding}).appendTo(d);break;case"float":A.css("left",parseInt((A.width()-c.width-40)/2,10)*-1).appendTo(M);break;default:A.css({width:c.width-(G.padding*2),paddingLeft:G.padding,paddingRight:G.padding}).appendTo(M);break}A.hide()},g=function(){if(G.enableEscapeButton||G.enableKeyboardNav){B(document).bind("keydown.fb",function(V){if(V.keyCode==27&&G.enableEscapeButton){V.preventDefault();B.fancybox.close()}else{if((V.keyCode==37||V.keyCode==39)&&G.enableKeyboardNav&&V.target.tagName!=="INPUT"&&V.target.tagName!=="TEXTAREA"&&V.target.tagName!=="SELECT"){V.preventDefault();B.fancybox[V.keyCode==37?"prev":"next"]()}}})}if(!G.showNavArrows){O.hide();z.hide();return}if((G.cyclic&&y.length>1)||e!==0){O.show()}if((G.cyclic&&y.length>1)||e!=(y.length-1)){z.show()}},v=function(){if(!B.support.opacity){m.get(0).style.removeAttribute("filter");M.get(0).style.removeAttribute("filter")}if(H.autoDimensions){m.css("height","auto")}M.css("height","auto");if(t&&t.length){A.show()}if(G.showCloseButton){J.show()}g();if(G.hideOnContentClick){m.bind("click",B.fancybox.close)}if(G.hideOnOverlayClick){Q.bind("click",B.fancybox.close)}B(window).bind("resize.fb",B.fancybox.resize);if(G.centerOnScroll){B(window).bind("scroll.fb",B.fancybox.center)}if(G.type=="iframe"){B('<iframe id="fancybox-frame" name="fancybox-frame'+new Date().getTime()+'" frameborder="0" hspace="0" '+(B.browser.msie?'allowtransparency="true""':"")+' scrolling="'+H.scrolling+'" src="'+G.href+'"></iframe>').appendTo(m)}M.show();P=false;B.fancybox.center();G.onComplete(y,e,G);K()},K=function(){var V,W;if((y.length-1)>e){V=y[e+1].href;if(typeof V!=="undefined"&&V.match(i)){W=new Image();W.src=V}}if(e>0){V=y[e-1].href;if(typeof V!=="undefined"&&V.match(i)){W=new Image();W.src=V}}},U=function(W){var V={width:parseInt(b.width+(c.width-b.width)*W,10),height:parseInt(b.height+(c.height-b.height)*W,10),top:parseInt(b.top+(c.top-b.top)*W,10),left:parseInt(b.left+(c.left-b.left)*W,10)};if(typeof c.opacity!=="undefined"){V.opacity=W<0.5?0.5:W}M.css(V);m.css({width:V.width-G.padding*2,height:V.height-(h*W)-G.padding*2})},u=function(){return[B(window).width()-(G.margin*2),B(window).height()-(G.margin*2),B(document).scrollLeft()+G.margin,B(document).scrollTop()+G.margin]},R=function(){var V=u(),Z={},W=G.autoScale,X=G.padding*2,Y;if(G.width.toString().indexOf("%")>-1){Z.width=parseInt((V[0]*parseFloat(G.width))/100,10)}else{Z.width=G.width+X}if(G.height.toString().indexOf("%")>-1){Z.height=parseInt((V[1]*parseFloat(G.height))/100,10)}else{Z.height=G.height+X}if(W&&(Z.width>V[0]||Z.height>V[1])){if(H.type=="image"||H.type=="swf"){Y=(G.width)/(G.height);if((Z.width)>V[0]){Z.width=V[0];Z.height=parseInt(((Z.width-X)/Y)+X,10)}if((Z.height)>V[1]){Z.height=V[1];Z.width=parseInt(((Z.height-X)*Y)+X,10)}}else{Z.width=Math.min(Z.width,V[0]);Z.height=Math.min(Z.height,V[1])}}Z.top=parseInt(Math.max(V[3]-20,V[3]+((V[1]-Z.height-40)*0.5)),10);Z.left=parseInt(Math.max(V[2]-20,V[2]+((V[0]-Z.width-40)*0.5)),10);return Z},q=function(V){var W=V.offset();W.top+=parseInt(V.css("paddingTop"),10)||0;W.left+=parseInt(V.css("paddingLeft"),10)||0;W.top+=parseInt(V.css("border-top-width"),10)||0;W.left+=parseInt(V.css("border-left-width"),10)||0;W.width=V.width();W.height=V.height();return W},I=function(){var Y=H.orig?B(H.orig):false,X={},W,V;if(Y&&Y.length){W=q(Y);X={width:W.width+(G.padding*2),height:W.height+(G.padding*2),top:W.top-G.padding-20,left:W.left-G.padding-20}}else{V=u();X={width:G.padding*2,height:G.padding*2,top:parseInt(V[3]+V[1]*0.5,10),left:parseInt(V[2]+V[0]*0.5,10)}}return X},a=function(){if(!T.is(":visible")){clearInterval(p);return}B("div",T).css("top",(N*-40)+"px");N=(N+1)%12};B.fn.fancybox=function(V){if(!B(this).length){return this}B(this).data("fancybox",B.extend({},V,(B.metadata?B(this).metadata():{}))).unbind("click.fb").bind("click.fb",function(X){X.preventDefault();if(P){return}P=true;B(this).blur();j=[];C=0;var W=B(this).attr("rel")||"";if(!W||W==""||W==="nofollow"){j.push(this)}else{j=B("a[rel="+W+"], area[rel="+W+"]");C=j.index(this)}w();return});return this};B.fancybox=function(Y){var X;if(P){return}P=true;X=typeof arguments[1]!=="undefined"?arguments[1]:{};j=[];C=parseInt(X.index,10)||0;if(B.isArray(Y)){for(var W=0,V=Y.length;W<V;W++){if(typeof Y[W]=="object"){B(Y[W]).data("fancybox",B.extend({},X,Y[W]))}else{Y[W]=B({}).data("fancybox",B.extend({content:Y[W]},X))}}j=jQuery.merge(j,Y)}else{if(typeof Y=="object"){B(Y).data("fancybox",B.extend({},X,Y))}else{Y=B({}).data("fancybox",B.extend({content:Y},X))}j.push(Y)}if(C>j.length||C<0){C=0}w()};B.fancybox.showActivity=function(){clearInterval(p);T.show();p=setInterval(a,66)};B.fancybox.hideActivity=function(){T.hide()};B.fancybox.next=function(){return B.fancybox.pos(e+1)};B.fancybox.prev=function(){return B.fancybox.pos(e-1)};B.fancybox.pos=function(V){if(P){return}V=parseInt(V);j=y;if(V>-1&&V<y.length){C=V;w()}else{if(G.cyclic&&y.length>1){C=V>=y.length?0:y.length-1;w()}}return};B.fancybox.cancel=function(){if(P){return}P=true;B.event.trigger("fancybox-cancel");r();H.onCancel(j,C,H);P=false};B.fancybox.close=function(){if(P||M.is(":hidden")){return}P=true;if(G&&false===G.onCleanup(y,e,G)){P=false;return}r();B(J.add(O).add(z)).hide();B(m.add(Q)).unbind();B(window).unbind("resize.fb scroll.fb");B(document).unbind("keydown.fb");m.find("iframe").attr("src",S&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");if(G.titlePosition!=="inside"){A.empty()}M.stop();function V(){Q.fadeOut("fast");A.empty().hide();M.hide();B.event.trigger("fancybox-cleanup");m.empty();G.onClosed(y,e,G);y=H=[];e=C=0;G=H={};P=false}if(G.transitionOut=="elastic"){b=I();var W=M.position();c={top:W.top,left:W.left,width:M.width(),height:M.height()};if(G.opacity){c.opacity=1}A.empty().hide();s.prop=1;B(s).animate({prop:0},{duration:G.speedOut,easing:G.easingOut,step:U,complete:V})}else{M.fadeOut(G.transitionOut=="none"?0:G.speedOut,V)}};B.fancybox.resize=function(){if(Q.is(":visible")){Q.css("height",B(document).height())}B.fancybox.center(true)};B.fancybox.center=function(){var V,W;if(P){return}W=arguments[0]===true?1:0;V=u();if(!W&&(M.width()>V[0]||M.height()>V[1])){return}M.stop().animate({top:parseInt(Math.max(V[3]-20,V[3]+((V[1]-m.height()-40)*0.5)-G.padding)),left:parseInt(Math.max(V[2]-20,V[2]+((V[0]-m.width()-40)*0.5)-G.padding))},typeof arguments[0]=="number"?arguments[0]:200)};B.fancybox.init=function(){if(B("#fancybox-wrap").length){return}B("body").append(L=B('<div id="fancybox-tmp"></div>'),T=B('<div id="fancybox-loading"><div></div></div>'),Q=B('<div id="fancybox-overlay"></div>'),M=B('<div id="fancybox-wrap"></div>'));d=B('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(M);d.append(m=B('<div id="fancybox-content"></div>'),J=B('<a id="fancybox-close"></a>'),A=B('<div id="fancybox-title"></div>'),O=B('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),z=B('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));J.click(B.fancybox.close);T.click(B.fancybox.cancel);O.click(function(V){V.preventDefault();B.fancybox.prev()});z.click(function(V){V.preventDefault();B.fancybox.next()});if(B.fn.mousewheel){M.bind("mousewheel.fb",function(V,W){if(P){V.preventDefault()}else{if(B(V.target).get(0).clientHeight==0||B(V.target).get(0).scrollHeight===B(V.target).get(0).clientHeight){V.preventDefault();B.fancybox[W>0?"prev":"next"]()}}})}if(!B.support.opacity){M.addClass("fancybox-ie")}if(S){T.addClass("fancybox-ie6");M.addClass("fancybox-ie6");B('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(d)}};B.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};B(document).ready(function(){B.fancybox.init()})})(jQuery);(function(c){c.fn.activebar=function(d){var d=c.fn.extend({},c.fn.activebar.defaults,d);if(c.fn.activebar.container===null){c.fn.activebar.container=b(d)}a(c.fn.activebar.container,d);c.fn.activebar.hide();c(".content",c.fn.activebar.container).empty();c(this).each(function(){c(".content",c.fn.activebar.container).append(this)});c.fn.activebar.container.unbind("click");if(d.url!==null){c.fn.activebar.container.click(function(){window.location.href=d.url})}c.fn.activebar.container.css("top","-"+c.fn.activebar.container.height()+"px");c.fn.activebar.show()};c.fn.activebar.defaults={background:"#ffffe1",border:"#666",highlight:"#3399ff",font:"Bitstream Vera Sans,verdana,sans-serif",fontColor:"InfoText",fontSize:"11px",image:"activebar.png",url:"http://www.microsoft.com/windows/internet-explorer/default.aspx"};c.fn.activebar.state=0;c.fn.activebar.container=null;c.fn.activebar.show=function(){if(c.fn.activebar.state>1){return}c.fn.activebar.state=2;c.fn.activebar.container.css("display","block");var d=c.fn.activebar.container.height();c.fn.activebar.container.animate({top:"+="+d+"px"},d*20,"linear",function(){c.fn.activebar.state=3})};c.fn.activebar.hide=function(){if(c.fn.activebar.state<2){return}c.fn.activebar.state=1;var d=c.fn.activebar.container.height();c.fn.activebar.container.animate({top:"-="+d+"px"},d*20,"linear",function(){c.fn.activebar.container.css("display","none");c.fn.activebar.visible=false})};function b(e){var d=c("<div></div>").attr("id","activebar-container");d.css({display:"none",position:"fixed",zIndex:"9999",top:"0px",left:"0px",cursor:"pointer",padding:"4px","font-size":"9px",background:e.background,borderBottom:"1px solid "+e.border,color:e.fontColor});c(window).bind("resize",function(){d.width(c(this).width())});c(window).trigger("resize");if(c.browser.msie&&(c.browser.version.substring(0,1)=="5"||c.browser.version.substring(0,1)=="6")){d.css("position","absolute");c(window).scroll(function(){d.stop(true,true);if(c.fn.activebar.state==3){d.css("top",c(window).scrollTop()+"px")}else{d.css("top",(c(window).scrollTop()-d.height())+"px")}}).resize(function(){c(window).scroll()})}d.append(c("<div></div>").attr("class","icon").css({"float":"left",width:"16px",height:"16px",margin:"0 4px 0 0",padding:"0"}));d.append(c("<div></div>").attr("class","close").css({"float":"right",margin:"0 5px 0 0 ",width:"16px",height:"16px"}).click(function(f){c.fn.activebar.hide();f.stopPropagation()}));d.append(c("<div></div>").attr("class","content").css({margin:"0px 8px",paddingTop:"1px"}));c("body").prepend(d);return d}function a(d,e){d.css({background:e.background,borderBottom:"1px solid "+e.border});d.unbind("mouseenter mouseleave");d.hover(function(){c(this).css("backgroundColor",e.highlight);c(this).children(".icon").css("background-position","0 -16px");c(this).children(".close").css("background-position","0 -48px")},function(){c(this).css("backgroundColor",e.background);c(this).children(".icon").css("background-position","0 0");c(this).children(".close").css("background-position","0 -32px")});c(".icon",d).css("background","transparent url( '"+e.icon_path+e.image+"' ) 0 0 no-repeat");c(".close",d).css("background","transparent url( '"+e.icon_path+e.image+"' ) 0 -32px no-repeat");c(".content",d).css({color:e.fontColor,fontFamily:e.font,fontSize:e.fontSize})}})(jQuery);
