(function(C){C.ui={plugin:{add:function(E,D,H){var G=C.ui[E].prototype;for(var F in H){G.plugins[F]=G.plugins[F]||[];G.plugins[F].push([D,H[F]])}},call:function(D,F,E){var H=D.plugins[F];if(!H){return }for(var G=0;G<H.length;G++){if(D.options[H[G][0]]){H[G][1].apply(D.element,E)}}}},cssCache:{},css:function(D){if(C.ui.cssCache[D]){return C.ui.cssCache[D]}var E=C('<div class="ui-gen">').addClass(D).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");C.ui.cssCache[D]=!!((!(/auto|default/).test(E.css("cursor"))||(/^[1-9]/).test(E.css("height"))||(/^[1-9]/).test(E.css("width"))||!(/none/).test(E.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(E.css("backgroundColor"))));try{C("body").get(0).removeChild(E.get(0))}catch(F){}return C.ui.cssCache[D]},disableSelection:function(D){C(D).attr("unselectable","on").css("MozUserSelect","none")},enableSelection:function(D){C(D).attr("unselectable","off").css("MozUserSelect","")},hasScroll:function(G,D){var F=/top/.test(D||"top")?"scrollTop":"scrollLeft",E=false;if(G[F]>0){return true}G[F]=1;E=G[F]>0?true:false;G[F]=0;return E}};var A=C.fn.remove;C.fn.remove=function(){C("*",this).add(this).triggerHandler("remove");return A.apply(this,arguments)};function B(F,D,G){var E=C[F][D].getter||[];E=(typeof E=="string"?E.split(/,?\s+/):E);return(C.inArray(G,E)!=-1)}C.widget=function(D,E){var F=D.split(".")[0];D=D.split(".")[1];C.fn[D]=function(J){var H=(typeof J=="string"),I=Array.prototype.slice.call(arguments,1);if(H&&B(F,D,J)){var G=C.data(this[0],D);return(G?G[J].apply(G,I):undefined)}return this.each(function(){var K=C.data(this,D);if(H&&K&&C.isFunction(K[J])){K[J].apply(K,I)}else{if(!H){C.data(this,D,new C[F][D](this,J))}}})};C[F][D]=function(H,I){var G=this;this.widgetName=D;this.widgetBaseClass=F+"-"+D;this.options=C.extend({},C.widget.defaults,C[F][D].defaults,I);this.element=C(H).bind("setData."+D,function(L,J,K){return G.setData(J,K)}).bind("getData."+D,function(K,J){return G.getData(J)}).bind("remove",function(){return G.destroy()});this.init()};C[F][D].prototype=C.extend({},C.widget.prototype,E)};C.widget.prototype={init:function(){},destroy:function(){this.element.removeData(this.widgetName)},getData:function(D){return this.options[D]},setData:function(D,E){this.options[D]=E;if(D=="disabled"){this.element[E?"addClass":"removeClass"](this.widgetBaseClass+"-disabled")}},enable:function(){this.setData("disabled",false)},disable:function(){this.setData("disabled",true)}};C.widget.defaults={disabled:false};C.ui.mouse={mouseInit:function(){var D=this;this.element.bind("mousedown."+this.widgetName,function(E){return D.mouseDown(E)});if(C.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},mouseDestroy:function(){this.element.unbind("."+this.widgetName);(C.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},mouseDown:function(F){(this._mouseStarted&&this.mouseUp(F));this._mouseDownEvent=F;var D=this,G=(F.which==1),E=(typeof this.options.cancel=="string"?C(F.target).parents().add(F.target).filter(this.options.cancel).length:false);if(!G||E||!this.mouseCapture(F)){return true}this._mouseDelayMet=!this.options.delay;if(!this._mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){D._mouseDelayMet=true},this.options.delay)}if(this.mouseDistanceMet(F)&&this.mouseDelayMet(F)){this._mouseStarted=(this.mouseStart(F)!==false);if(!this._mouseStarted){F.preventDefault();return true}}this._mouseMoveDelegate=function(H){return D.mouseMove(H)};this._mouseUpDelegate=function(H){return D.mouseUp(H)};C(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);return false},mouseMove:function(D){if(C.browser.msie&&!D.button){return this.mouseUp(D)}if(this._mouseStarted){this.mouseDrag(D);return false}if(this.mouseDistanceMet(D)&&this.mouseDelayMet(D)){this._mouseStarted=(this.mouseStart(this._mouseDownEvent,D)!==false);(this._mouseStarted?this.mouseDrag(D):this.mouseUp(D))}return !this._mouseStarted},mouseUp:function(D){C(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this.mouseStop(D)}return false},mouseDistanceMet:function(D){return(Math.max(Math.abs(this._mouseDownEvent.pageX-D.pageX),Math.abs(this._mouseDownEvent.pageY-D.pageY))>=this.options.distance)},mouseDelayMet:function(D){return this._mouseDelayMet},mouseStart:function(D){},mouseDrag:function(D){},mouseStop:function(D){},mouseCapture:function(D){return true}};C.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(E){E.widget("ui.accordion",{init:function(){var H=this.options;if(H.navigation){var J=this.element.find("a").filter(H.navigationFilter);if(J.length){if(J.filter(H.header).length){H.active=J}else{H.active=J.parent().parent().prev();J.addClass("current")}}}H.headers=this.element.find(H.header);H.active=A(H.headers,H.active);if(E.browser.msie){this.element.find("a").css("zoom","1")}if(!this.element.hasClass("ui-accordion")){this.element.addClass("ui-accordion");E("<span class='ui-accordion-left'/>").insertBefore(H.headers);E("<span class='ui-accordion-right'/>").appendTo(H.headers);H.headers.addClass("ui-accordion-header").attr("tabindex","0")}var G;if(H.fillSpace){G=this.element.parent().height();H.headers.each(function(){G-=E(this).outerHeight()});var I=0;H.headers.next().each(function(){I=Math.max(I,E(this).innerHeight()-E(this).height())}).height(G-I)}else{if(H.autoHeight){G=0;H.headers.next().each(function(){G=Math.max(G,E(this).outerHeight())}).height(G)}}H.headers.not(H.active||"").next().hide();H.active.parent().andSelf().addClass(H.selectedClass);if(H.event){this.element.bind((H.event)+".accordion",F)}},activate:function(G){F.call(this.element[0],{target:A(this.options.headers,G)[0]})},destroy:function(){this.options.headers.next().css("display","");if(this.options.fillSpace||this.options.autoHeight){this.options.headers.next().css("height","")}E.removeData(this.element[0],"accordion");this.element.removeClass("ui-accordion").unbind(".accordion")}});function C(H,G){return function(){return H.apply(G,arguments)}}function B(H){if(!E.data(this,"accordion")){return }var G=E.data(this,"accordion");var I=G.options;I.running=H?0:--I.running;if(I.running){return }if(I.clearStyle){I.toShow.add(I.toHide).css({height:"",overflow:""})}E(this).triggerHandler("accordionchange",[E.event.fix({type:"accordionchange",target:G.element[0]}),I.data],I.change)}function D(L,I,K,G,M){var H=E.data(this,"accordion").options;H.toShow=L;H.toHide=I;H.data=K;var J=C(B,this);H.running=I.size()===0?L.size():I.size();if(H.animated){if(!H.alwaysOpen&&G){E.ui.accordion.animations[H.animated]({toShow:jQuery([]),toHide:I,complete:J,down:M,autoHeight:H.autoHeight})}else{E.ui.accordion.animations[H.animated]({toShow:L,toHide:I,complete:J,down:M,autoHeight:H.autoHeight})}}else{if(!H.alwaysOpen&&G){L.toggle()}else{I.hide();L.show()}J(true)}}function F(K){var J=E.data(this,"accordion").options;if(J.disabled){return false}if(!K.target&&!J.alwaysOpen){J.active.parent().andSelf().toggleClass(J.selectedClass);var I=J.active.next(),M={options:J,newHeader:jQuery([]),oldHeader:J.active,newContent:jQuery([]),oldContent:I},L=(J.active=E([]));D.call(this,L,I,M);return false}var H=E(K.target);H=E(H.parents(J.header)[0]||H);var G=H[0]==J.active[0];if(J.running||(J.alwaysOpen&&G)){return false}if(!H.is(J.header)){return }J.active.parent().andSelf().toggleClass(J.selectedClass);if(!G){H.parent().andSelf().addClass(J.selectedClass)}var L=H.next(),I=J.active.next(),M={options:J,newHeader:H,oldHeader:J.active,newContent:L,oldContent:I},N=J.headers.index(J.active[0])>J.headers.index(H[0]);J.active=G?E([]):H;D.call(this,L,I,M,G,N);return false}function A(H,G){return G!=undefined?typeof G=="number"?H.filter(":eq("+G+")"):H.not(H.not(G)):G===false?E([]):H.filter(":eq(0)")}E.extend(E.ui.accordion,{defaults:{selectedClass:"selected",alwaysOpen:true,animated:"slide",event:"click",header:"a",autoHeight:true,running:0,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(G,I){G=E.extend({easing:"swing",duration:300},G,I);if(!G.toHide.size()){G.toShow.animate({height:"show"},G);return }var H=G.toHide.height(),J=G.toShow.height(),K=J/H;G.toShow.css({height:0,overflow:"hidden"}).show();G.toHide.filter(":hidden").each(G.complete).end().filter(":visible").animate({height:"hide"},{step:function(L){var M=(H-L)*K;if(E.browser.msie||E.browser.opera){M=Math.ceil(M)}G.toShow.height(M)},duration:G.duration,easing:G.easing,complete:function(){if(!G.autoHeight){G.toShow.css("height","auto")}G.complete()}})},bounceslide:function(G){this.slide(G,{easing:G.down?"bounceout":"swing",duration:G.down?1000:200})},easeslide:function(G){this.slide(G,{easing:"easeinout",duration:700})}}});E.fn.activate=function(G){return this.accordion("activate",G)}})(jQuery);(function(C){C.effects=C.effects||{};C.extend(C.effects,{save:function(F,G){for(var E=0;E<G.length;E++){if(G[E]!==null){C.data(F[0],"ec.storage."+G[E],F[0].style[G[E]])}}},restore:function(F,G){for(var E=0;E<G.length;E++){if(G[E]!==null){F.css(G[E],C.data(F[0],"ec.storage."+G[E]))}}},setMode:function(E,F){if(F=="toggle"){F=E.is(":hidden")?"show":"hide"}return F},getBaseline:function(G,F){var H,E;switch(G[0]){case"top":H=0;break;case"middle":H=0.5;break;case"bottom":H=1;break;default:H=G[0]/F.height}switch(G[1]){case"left":E=0;break;case"center":E=0.5;break;case"right":E=1;break;default:E=G[1]/F.width}return{x:E,y:H}},createWrapper:function(F){if(F.parent().attr("id")=="fxWrapper"){return F}var E={width:F.outerWidth({margin:true}),height:F.outerHeight({margin:true}),"float":F.css("float")};F.wrap('<div id="fxWrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var I=F.parent();if(F.css("position")=="static"){I.css({position:"relative"});F.css({position:"relative"})}else{var H=F.css("top");if(isNaN(parseInt(H))){H="auto"}var G=F.css("left");if(isNaN(parseInt(G))){G="auto"}I.css({position:F.css("position"),top:H,left:G,zIndex:F.css("z-index")}).show();F.css({position:"relative",top:0,left:0})}I.css(E);return I},removeWrapper:function(E){if(E.parent().attr("id")=="fxWrapper"){return E.parent().replaceWith(E)}return E},setTransition:function(F,G,E,H){H=H||{};C.each(G,function(J,I){unit=F.cssUnit(I);if(unit[0]>0){H[I]=unit[0]*E+unit[1]}});return H},animateClass:function(G,J,I,H){var E=(typeof I=="function"?I:(H?H:null));var F=(typeof I=="object"?I:null);return this.each(function(){var O={};var M=C(this);var N=M.attr("style")||"";if(typeof N=="object"){N=N.cssText}if(G.toggle){M.hasClass(G.toggle)?G.remove=G.toggle:G.add=G.toggle}var K=C.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(G.add){M.addClass(G.add)}if(G.remove){M.removeClass(G.remove)}var L=C.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(G.add){M.removeClass(G.add)}if(G.remove){M.addClass(G.remove)}for(var P in L){if(typeof L[P]!="function"&&L[P]&&P.indexOf("Moz")==-1&&P.indexOf("length")==-1&&L[P]!=K[P]&&(P.match(/color/i)||(!P.match(/color/i)&&!isNaN(parseInt(L[P],10))))&&(K.position!="static"||(K.position=="static"&&!P.match(/left|top|bottom|right/)))){O[P]=L[P]}}M.animate(O,J,F,function(){if(typeof C(this).attr("style")=="object"){C(this).attr("style")["cssText"]="";C(this).attr("style")["cssText"]=N}else{C(this).attr("style",N)}if(G.add){C(this).addClass(G.add)}if(G.remove){C(this).removeClass(G.remove)}if(E){E.apply(this,arguments)}})})}});C.fn.extend({_show:C.fn.show,_hide:C.fn.hide,__toggle:C.fn.toggle,_addClass:C.fn.addClass,_removeClass:C.fn.removeClass,_toggleClass:C.fn.toggleClass,effect:function(E,H,F,G){return C.effects[E]?C.effects[E].call(this,{method:E,options:H||{},duration:F,callback:G}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._show.apply(this,arguments)}else{var E=arguments[1]||{};E.mode="show";return this.effect.apply(this,[arguments[0],E,arguments[2]||E.duration,arguments[3]||E.callback])}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._hide.apply(this,arguments)}else{var E=arguments[1]||{};E.mode="hide";return this.effect.apply(this,[arguments[0],E,arguments[2]||E.duration,arguments[3]||E.callback])}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))||(arguments[0].constructor==Function)){return this.__toggle.apply(this,arguments)}else{var E=arguments[1]||{};E.mode="toggle";return this.effect.apply(this,[arguments[0],E,arguments[2]||E.duration,arguments[3]||E.callback])}},addClass:function(H,E,G,F){return E?C.effects.animateClass.apply(this,[{add:H},E,G,F]):this._addClass(H)},removeClass:function(H,E,G,F){return E?C.effects.animateClass.apply(this,[{remove:H},E,G,F]):this._removeClass(H)},toggleClass:function(H,E,G,F){return E?C.effects.animateClass.apply(this,[{toggle:H},E,G,F]):this._toggleClass(H)},morph:function(F,I,E,H,G){return C.effects.animateClass.apply(this,[{add:I,remove:F},E,H,G])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(E){var F=this.css(E),G=[];C.each(["em","px","%","pt"],function(H,I){if(F.indexOf(I)>0){G=[parseFloat(F),I]}});return G}});jQuery.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(F,E){jQuery.fx.step[E]=function(G){if(G.state==0){G.start=D(G.elem,E);G.end=A(G.end)}G.elem.style[E]="rgb("+[Math.max(Math.min(parseInt((G.pos*(G.end[0]-G.start[0]))+G.start[0]),255),0),Math.max(Math.min(parseInt((G.pos*(G.end[1]-G.start[1]))+G.start[1]),255),0),Math.max(Math.min(parseInt((G.pos*(G.end[2]-G.start[2]))+G.start[2]),255),0)].join(",")+")"}});function A(E){var F;if(E&&E.constructor==Array&&E.length==3){return E}if(F=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(E)){return[parseInt(F[1]),parseInt(F[2]),parseInt(F[3])]}if(F=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(E)){return[parseFloat(F[1])*2.55,parseFloat(F[2])*2.55,parseFloat(F[3])*2.55]}if(F=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(E)){return[parseInt(F[1],16),parseInt(F[2],16),parseInt(F[3],16)]}if(F=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(E)){return[parseInt(F[1]+F[1],16),parseInt(F[2]+F[2],16),parseInt(F[3]+F[3],16)]}if(F=/rgba\(0, 0, 0, 0\)/.exec(E)){return B.transparent}return B[jQuery.trim(E).toLowerCase()]}function D(G,E){var F;do{F=jQuery.curCSS(G,E);if(F!=""&&F!="transparent"||jQuery.nodeName(G,"body")){break}E="backgroundColor"}while(G=G.parentNode);return A(F)}var B={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(F,G,E,I,H){return jQuery.easing[jQuery.easing.def](F,G,E,I,H)},easeInQuad:function(F,G,E,I,H){return I*(G/=H)*G+E},easeOutQuad:function(F,G,E,I,H){return -I*(G/=H)*(G-2)+E},easeInOutQuad:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G+E}return -I/2*((--G)*(G-2)-1)+E},easeInCubic:function(F,G,E,I,H){return I*(G/=H)*G*G+E},easeOutCubic:function(F,G,E,I,H){return I*((G=G/H-1)*G*G+1)+E},easeInOutCubic:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G*G+E}return I/2*((G-=2)*G*G+2)+E},easeInQuart:function(F,G,E,I,H){return I*(G/=H)*G*G*G+E},easeOutQuart:function(F,G,E,I,H){return -I*((G=G/H-1)*G*G*G-1)+E},easeInOutQuart:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G*G*G+E}return -I/2*((G-=2)*G*G*G-2)+E},easeInQuint:function(F,G,E,I,H){return I*(G/=H)*G*G*G*G+E},easeOutQuint:function(F,G,E,I,H){return I*((G=G/H-1)*G*G*G*G+1)+E},easeInOutQuint:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G*G*G*G+E}return I/2*((G-=2)*G*G*G*G+2)+E},easeInSine:function(F,G,E,I,H){return -I*Math.cos(G/H*(Math.PI/2))+I+E},easeOutSine:function(F,G,E,I,H){return I*Math.sin(G/H*(Math.PI/2))+E},easeInOutSine:function(F,G,E,I,H){return -I/2*(Math.cos(Math.PI*G/H)-1)+E},easeInExpo:function(F,G,E,I,H){return(G==0)?E:I*Math.pow(2,10*(G/H-1))+E},easeOutExpo:function(F,G,E,I,H){return(G==H)?E+I:I*(-Math.pow(2,-10*G/H)+1)+E},easeInOutExpo:function(F,G,E,I,H){if(G==0){return E}if(G==H){return E+I}if((G/=H/2)<1){return I/2*Math.pow(2,10*(G-1))+E}return I/2*(-Math.pow(2,-10*--G)+2)+E},easeInCirc:function(F,G,E,I,H){return -I*(Math.sqrt(1-(G/=H)*G)-1)+E},easeOutCirc:function(F,G,E,I,H){return I*Math.sqrt(1-(G=G/H-1)*G)+E},easeInOutCirc:function(F,G,E,I,H){if((G/=H/2)<1){return -I/2*(Math.sqrt(1-G*G)-1)+E}return I/2*(Math.sqrt(1-(G-=2)*G)+1)+E},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(F,G,E,J,I,H){if(H==undefined){H=1.70158}return J*(G/=I)*G*((H+1)*G-H)+E},easeOutBack:function(F,G,E,J,I,H){if(H==undefined){H=1.70158}return J*((G=G/I-1)*G*((H+1)*G+H)+1)+E},easeInOutBack:function(F,G,E,J,I,H){if(H==undefined){H=1.70158}if((G/=I/2)<1){return J/2*(G*G*(((H*=(1.525))+1)*G-H))+E}return J/2*((G-=2)*G*(((H*=(1.525))+1)*G+H)+2)+E},easeInBounce:function(F,G,E,I,H){return I-jQuery.easing.easeOutBounce(F,H-G,0,I,H)+E},easeOutBounce:function(F,G,E,I,H){if((G/=H)<(1/2.75)){return I*(7.5625*G*G)+E}else{if(G<(2/2.75)){return I*(7.5625*(G-=(1.5/2.75))*G+0.75)+E}else{if(G<(2.5/2.75)){return I*(7.5625*(G-=(2.25/2.75))*G+0.9375)+E}else{return I*(7.5625*(G-=(2.625/2.75))*G+0.984375)+E}}}},easeInOutBounce:function(F,G,E,I,H){if(G<H/2){return jQuery.easing.easeInBounce(F,G*2,0,I,H)*0.5+E}return jQuery.easing.easeOutBounce(F,G*2-H,0,I,H)*0.5+I*0.5+E}})})(jQuery);(function(A){A.effects.blind=function(B){return this.queue(function(){var D=A(this),C=["position","top","left"];var G=A.effects.setMode(D,B.options.mode||"hide");var J=B.options.direction||"vertical";A.effects.save(D,C);D.show();var I=A.effects.createWrapper(D).css({overflow:"hidden"});var E=(J=="vertical")?"height":"width";var H=(J=="vertical")?I.height():I.width();if(G=="show"){I.css(E,0)}var F={};F[E]=G=="show"?H:0;I.animate(F,B.duration,B.options.easing,function(){if(G=="hide"){D.hide()}A.effects.restore(D,C);A.effects.removeWrapper(D);if(B.callback){B.callback.apply(D[0],arguments)}D.dequeue()})})}})(jQuery);(function(A){A.effects.bounce=function(B){return this.queue(function(){var E=A(this),K=["position","top","left"];var J=A.effects.setMode(E,B.options.mode||"effect");var O=B.options.direction||"up";var D=B.options.distance||20;var C=B.options.times||5;var G=B.duration||250;if(/show|hide/.test(J)){K.push("opacity")}A.effects.save(E,K);E.show();A.effects.createWrapper(E);var F=(O=="up"||O=="down")?"top":"left";var M=(O=="up"||O=="left")?"pos":"neg";var D=B.options.distance||(F=="top"?E.outerHeight({margin:true})/3:E.outerWidth({margin:true})/3);if(J=="show"){E.css("opacity",0).css(F,M=="pos"?-D:D)}if(J=="hide"){D=D/(C*2)}if(J!="hide"){C--}if(J=="show"){var H={opacity:1};H[F]=(M=="pos"?"+=":"-=")+D;E.animate(H,G/2,B.options.easing);D=D/2;C--}for(var I=0;I<C;I++){var N={},L={};N[F]=(M=="pos"?"-=":"+=")+D;L[F]=(M=="pos"?"+=":"-=")+D;E.animate(N,G/2,B.options.easing).animate(L,G/2,B.options.easing);D=(J=="hide")?D*2:D/2}if(J=="hide"){var H={opacity:0};H[F]=(M=="pos"?"-=":"+=")+D;E.animate(H,G/2,B.options.easing,function(){E.hide();A.effects.restore(E,K);A.effects.removeWrapper(E);if(B.callback){B.callback.apply(this,arguments)}})}else{var N={},L={};N[F]=(M=="pos"?"-=":"+=")+D;L[F]=(M=="pos"?"+=":"-=")+D;E.animate(N,G/2,B.options.easing).animate(L,G/2,B.options.easing,function(){A.effects.restore(E,K);A.effects.removeWrapper(E);if(B.callback){B.callback.apply(this,arguments)}})}E.queue("fx",function(){E.dequeue()});E.dequeue()})}})(jQuery);(function(A){A.effects.clip=function(B){return this.queue(function(){var E=A(this),J=["position","top","left","height","width"];var H=A.effects.setMode(E,B.options.mode||"hide");var K=B.options.direction||"vertical";A.effects.save(E,J);E.show();var D=A.effects.createWrapper(E).css({overflow:"hidden"});var I=E[0].tagName=="IMG"?D:E;var F={size:(K=="vertical")?"height":"width",position:(K=="vertical")?"top":"left"};var C=(K=="vertical")?I.height():I.width();if(H=="show"){I.css(F.size,0);I.css(F.position,C/2)}var G={};G[F.size]=H=="show"?C:0;G[F.position]=H=="show"?0:C/2;I.animate(G,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(H=="hide"){E.hide()}A.effects.restore(E,J);A.effects.removeWrapper(E);if(B.callback){B.callback.apply(E[0],arguments)}E.dequeue()}})})}})(jQuery);(function(A){A.effects.drop=function(B){return this.queue(function(){var D=A(this),C=["position","top","left","opacity"];var H=A.effects.setMode(D,B.options.mode||"hide");var J=B.options.direction||"left";A.effects.save(D,C);D.show();A.effects.createWrapper(D);var F=(J=="up"||J=="down")?"top":"left";var E=(J=="up"||J=="left")?"pos":"neg";var I=B.options.distance||(F=="top"?D.outerHeight({margin:true})/2:D.outerWidth({margin:true})/2);if(H=="show"){D.css("opacity",0).css(F,E=="pos"?-I:I)}var G={opacity:H=="show"?1:0};G[F]=(H=="show"?(E=="pos"?"+=":"-="):(E=="pos"?"-=":"+="))+I;D.animate(G,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(H=="hide"){D.hide()}A.effects.restore(D,C);A.effects.removeWrapper(D);if(B.callback){B.callback.apply(this,arguments)}D.dequeue()}})})}})(jQuery);(function(A){A.effects.explode=function(B){return this.queue(function(){var I=B.options.pieces?Math.round(Math.sqrt(B.options.pieces)):3;var D=B.options.pieces?Math.round(Math.sqrt(B.options.pieces)):3;B.options.mode=B.options.mode=="toggle"?(A(this).is(":visible")?"hide":"show"):B.options.mode;var G=A(this).show().css("visibility","hidden");var J=G.offset();J.top-=parseInt(G.css("marginTop"))||0;J.left-=parseInt(G.css("marginLeft"))||0;var F=G.outerWidth(true);var H=G.outerHeight(true);for(var E=0;E<I;E++){for(var C=0;C<D;C++){G.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-C*(F/D),top:-E*(H/I)}).parent().addClass("effects-explode").css({position:"absolute",overflow:"hidden",width:F/D,height:H/I,left:J.left+C*(F/D)+(B.options.mode=="show"?(C-Math.floor(D/2))*(F/D):0),top:J.top+E*(H/I)+(B.options.mode=="show"?(E-Math.floor(I/2))*(H/I):0),opacity:B.options.mode=="show"?0:1}).animate({left:J.left+C*(F/D)+(B.options.mode=="show"?0:(C-Math.floor(D/2))*(F/D)),top:J.top+E*(H/I)+(B.options.mode=="show"?0:(E-Math.floor(I/2))*(H/I)),opacity:B.options.mode=="show"?1:0},B.duration||500)}}setTimeout(function(){B.options.mode=="show"?G.css({visibility:"visible"}):G.css({visibility:"visible"}).hide();if(B.callback){B.callback.apply(G[0])}G.dequeue();A(".effects-explode").remove()},B.duration||500)})}})(jQuery);(function(A){A.effects.fold=function(B){return this.queue(function(){var F=A(this),J=["position","top","left"];var I=A.effects.setMode(F,B.options.mode||"hide");var N=B.options.size||15;var M=!(!B.options.horizFirst);A.effects.save(F,J);F.show();var D=A.effects.createWrapper(F).css({overflow:"hidden"});var H=((I=="show")!=M);var G=H?["width","height"]:["height","width"];var C=H?[D.width(),D.height()]:[D.height(),D.width()];var E=/([0-9]+)%/.exec(N);if(E){N=parseInt(E[1])/100*C[I=="hide"?0:1]}if(I=="show"){D.css(M?{height:0,width:N}:{height:N,width:0})}var L={},K={};L[G[0]]=I=="show"?C[0]:N;K[G[1]]=I=="show"?C[1]:0;D.animate(L,B.duration/2,B.options.easing).animate(K,B.duration/2,B.options.easing,function(){if(I=="hide"){F.hide()}A.effects.restore(F,J);A.effects.removeWrapper(F);if(B.callback){B.callback.apply(F[0],arguments)}F.dequeue()})})}})(jQuery);(function(A){A.effects.highlight=function(B){return this.queue(function(){var E=A(this),D=["backgroundImage","backgroundColor","opacity"];var H=A.effects.setMode(E,B.options.mode||"show");var C=B.options.color||"#ffff99";var G=E.css("backgroundColor");A.effects.save(E,D);E.show();E.css({backgroundImage:"none",backgroundColor:C});var F={backgroundColor:G};if(H=="hide"){F.opacity=0}E.animate(F,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(H=="hide"){E.hide()}A.effects.restore(E,D);if(H=="show"&&jQuery.browser.msie){this.style.removeAttribute("filter")}if(B.callback){B.callback.apply(this,arguments)}E.dequeue()}})})}})(jQuery);(function(A){A.effects.pulsate=function(B){return this.queue(function(){var D=A(this);var F=A.effects.setMode(D,B.options.mode||"show");var E=B.options.times||5;if(F=="hide"){E--}if(D.is(":hidden")){D.css("opacity",0);D.show();D.animate({opacity:1},B.duration/2,B.options.easing);E=E-2}for(var C=0;C<E;C++){D.animate({opacity:0},B.duration/2,B.options.easing).animate({opacity:1},B.duration/2,B.options.easing)}if(F=="hide"){D.animate({opacity:0},B.duration/2,B.options.easing,function(){D.hide();if(B.callback){B.callback.apply(this,arguments)}})}else{D.animate({opacity:0},B.duration/2,B.options.easing).animate({opacity:1},B.duration/2,B.options.easing,function(){if(B.callback){B.callback.apply(this,arguments)}})}D.queue("fx",function(){D.dequeue()});D.dequeue()})}})(jQuery);(function(A){A.effects.puff=function(B){return this.queue(function(){var G=A(this);var F=A.extend(true,{},B.options);var H=A.effects.setMode(G,B.options.mode||"hide");var C=parseInt(B.options.percent)||150;F.fade=true;var E={height:G.height(),width:G.width()};var D=C/100;G.from=(H=="hide")?E:{height:E.height*D,width:E.width*D};F.from=G.from;F.percent=(H=="hide")?C:100;F.mode=H;G.effect("scale",F,B.duration,B.callback);G.dequeue()})};A.effects.scale=function(B){return this.queue(function(){var H=A(this);var F=A.extend(true,{},B.options);var I=A.effects.setMode(H,B.options.mode||"effect");var C=parseInt(B.options.percent)||(parseInt(B.options.percent)==0?0:(I=="hide"?0:100));var J=B.options.direction||"both";var G=B.options.origin;if(I!="effect"){F.origin=G||["middle","center"];F.restore=true}var E={height:H.height(),width:H.width()};H.from=B.options.from||(I=="show"?{height:0,width:0}:E);var D={y:J!="horizontal"?(C/100):1,x:J!="vertical"?(C/100):1};H.to={height:E.height*D.y,width:E.width*D.x};if(B.options.fade){if(I=="show"){H.from.opacity=0;H.to.opacity=1}if(I=="hide"){H.from.opacity=1;H.to.opacity=0}}F.from=H.from;F.to=H.to;F.mode=I;H.effect("size",F,B.duration,B.callback);H.dequeue()})};A.effects.size=function(B){return this.queue(function(){var H=A(this),N=["position","top","left","width","height","overflow","opacity"];var D=["position","top","left","overflow","opacity"];var F=["width","height","overflow"];var O=["fontSize"];var E=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"];var K=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"];var L=A.effects.setMode(H,B.options.mode||"effect");var M=B.options.restore||false;var J=B.options.scale||"both";var P=B.options.origin;var I={height:H.height(),width:H.width()};H.from=B.options.from||I;H.to=B.options.to||I;if(P){var G=A.effects.getBaseline(P,I);H.from.top=(I.height-H.from.height)*G.y;H.from.left=(I.width-H.from.width)*G.x;H.to.top=(I.height-H.to.height)*G.y;H.to.left=(I.width-H.to.width)*G.x}var C={from:{y:H.from.height/I.height,x:H.from.width/I.width},to:{y:H.to.height/I.height,x:H.to.width/I.width}};if(J=="box"||J=="both"){if(C.from.y!=C.to.y){N=N.concat(E);H.from=A.effects.setTransition(H,E,C.from.y,H.from);H.to=A.effects.setTransition(H,E,C.to.y,H.to)}if(C.from.x!=C.to.x){N=N.concat(K);H.from=A.effects.setTransition(H,K,C.from.x,H.from);H.to=A.effects.setTransition(H,K,C.to.x,H.to)}}if(J=="content"||J=="both"){if(C.from.y!=C.to.y){N=N.concat(O);H.from=A.effects.setTransition(H,O,C.from.y,H.from);H.to=A.effects.setTransition(H,O,C.to.y,H.to)}}A.effects.save(H,M?N:D);H.show();A.effects.createWrapper(H);H.css("overflow","hidden").css(H.from);if(J=="content"||J=="both"){E=E.concat(["marginTop","marginBottom"]).concat(O);K=K.concat(["marginLeft","marginRight"]);F=N.concat(E).concat(K);H.find("*[width]").each(function(){child=A(this);if(M){A.effects.save(child,F)}var Q={height:child.height(),width:child.width()};child.from={height:Q.height*C.from.y,width:Q.width*C.from.x};child.to={height:Q.height*C.to.y,width:Q.width*C.to.x};if(C.from.y!=C.to.y){child.from=A.effects.setTransition(child,E,C.from.y,child.from);child.to=A.effects.setTransition(child,E,C.to.y,child.to)}if(C.from.x!=C.to.x){child.from=A.effects.setTransition(child,K,C.from.x,child.from);child.to=A.effects.setTransition(child,K,C.to.x,child.to)}child.css(child.from);child.animate(child.to,B.duration,B.options.easing,function(){if(M){A.effects.restore(child,F)}})})}H.animate(H.to,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(L=="hide"){H.hide()}A.effects.restore(H,M?N:D);A.effects.removeWrapper(H);if(B.callback){B.callback.apply(this,arguments)}H.dequeue()}})})}})(jQuery);(function(A){A.effects.shake=function(B){return this.queue(function(){var E=A(this),K=["position","top","left"];var J=A.effects.setMode(E,B.options.mode||"effect");var O=B.options.direction||"left";var D=B.options.distance||20;var C=B.options.times||3;var G=B.duration||B.options.duration||140;A.effects.save(E,K);E.show();A.effects.createWrapper(E);var F=(O=="up"||O=="down")?"top":"left";var M=(O=="up"||O=="left")?"pos":"neg";var H={},N={},L={};H[F]=(M=="pos"?"-=":"+=")+D;N[F]=(M=="pos"?"+=":"-=")+D*2;L[F]=(M=="pos"?"-=":"+=")+D*2;E.animate(H,G,B.options.easing);for(var I=1;I<C;I++){E.animate(N,G,B.options.easing).animate(L,G,B.options.easing)}E.animate(N,G,B.options.easing).animate(H,G/2,B.options.easing,function(){A.effects.restore(E,K);A.effects.removeWrapper(E);if(B.callback){B.callback.apply(this,arguments)}});E.queue("fx",function(){E.dequeue()});E.dequeue()})}})(jQuery);(function(A){A.effects.slide=function(B){return this.queue(function(){var D=A(this),C=["position","top","left"];var H=A.effects.setMode(D,B.options.mode||"show");var J=B.options.direction||"left";A.effects.save(D,C);D.show();A.effects.createWrapper(D).css({overflow:"hidden"});var F=(J=="up"||J=="down")?"top":"left";var E=(J=="up"||J=="left")?"pos":"neg";var I=B.options.distance||(F=="top"?D.outerHeight({margin:true}):D.outerWidth({margin:true}));if(H=="show"){D.css(F,E=="pos"?-I:I)}var G={};G[F]=(H=="show"?(E=="pos"?"+=":"-="):(E=="pos"?"-=":"+="))+I;D.animate(G,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(H=="hide"){D.hide()}A.effects.restore(D,C);A.effects.removeWrapper(D);if(B.callback){B.callback.apply(this,arguments)}D.dequeue()}})})}})(jQuery);(function(A){A.effects.transfer=function(B){return this.queue(function(){var E=A(this);var F=A.effects.setMode(E,B.options.mode||"effect");var G=A(B.options.to);var C=E.offset();var D=A('<div class="ui-effects-transfer"></div>').appendTo(document.body);if(B.options.className){D.addClass(B.options.className)}D.addClass(B.options.className);D.css({top:C.top,left:C.left,height:E.outerHeight()-parseInt(D.css("borderTopWidth"))-parseInt(D.css("borderBottomWidth")),width:E.outerWidth()-parseInt(D.css("borderLeftWidth"))-parseInt(D.css("borderRightWidth")),position:"absolute"});C=G.offset();animation={top:C.top,left:C.left,height:G.outerHeight()-parseInt(D.css("borderTopWidth"))-parseInt(D.css("borderBottomWidth")),width:G.outerWidth()-parseInt(D.css("borderLeftWidth"))-parseInt(D.css("borderRightWidth"))};D.animate(animation,B.duration,B.options.easing,function(){D.remove();if(B.callback){B.callback.apply(E[0],arguments)}E.dequeue()})})}})(jQuery);