/*
 * jQuery UI 1.8.1
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI
 */
jQuery.ui||function(A){A.ui={version:"1.8.1",plugin:{add:function(C,B,E){C=A.ui[C].prototype;
for(var D in E){C.plugins[D]=C.plugins[D]||[];
C.plugins[D].push([B,E[D]])
}},call:function(C,B,E){if((B=C.plugins[B])&&C.element[0].parentNode){for(var D=0;
D<B.length;
D++){C.options[B[D][0]]&&B[D][1].apply(C.element,E)
}}}},contains:function(C,B){return document.compareDocumentPosition?C.compareDocumentPosition(B)&16:C!==B&&C.contains(B)
},hasScroll:function(C,B){if(A(C).css("overflow")=="hidden"){return false
}B=B&&B=="left"?"scrollLeft":"scrollTop";
var D=false;
if(C[B]>0){return true
}C[B]=1;
D=C[B]>0;
C[B]=0;
return D
},isOverAxis:function(C,B,D){return C>B&&C<B+D
},isOver:function(C,B,G,F,E,D){return A.ui.isOverAxis(C,G,E)&&A.ui.isOverAxis(B,F,D)
},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};
A.fn.extend({_focus:A.fn.focus,focus:function(C,B){return typeof C==="number"?this.each(function(){var D=this;
setTimeout(function(){A(D).focus();
B&&B.call(D)
},C)
}):this._focus.apply(this,arguments)
},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","")
},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none")
},scrollParent:function(){var B;
B=A.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(A.curCSS(this,"position",1))&&/(auto|scroll)/.test(A.curCSS(this,"overflow",1)+A.curCSS(this,"overflow-y",1)+A.curCSS(this,"overflow-x",1))
}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(A.curCSS(this,"overflow",1)+A.curCSS(this,"overflow-y",1)+A.curCSS(this,"overflow-x",1))
}).eq(0);
return/fixed/.test(this.css("position"))||!B.length?A(document):B
},zIndex:function(C){if(C!==undefined){return this.css("zIndex",C)
}if(this.length){C=A(this[0]);
for(var B;
C.length&&C[0]!==document;
){B=C.css("position");
if(B=="absolute"||B=="relative"||B=="fixed"){B=parseInt(C.css("zIndex"));
if(!isNaN(B)&&B!=0){return B
}}C=C.parent()
}}return 0
}});
A.extend(A.expr[":"],{data:function(C,B,D){return !!A.data(C,D[3])
},focusable:function(C){var B=C.nodeName.toLowerCase(),D=A.attr(C,"tabindex");
return(/input|select|textarea|button|object/.test(B)?!C.disabled:"a"==B||"area"==B?C.href||!isNaN(D):!isNaN(D))&&!A(C)["area"==B?"parents":"closest"](":hidden").length
},tabbable:function(C){var B=A.attr(C,"tabindex");
return(isNaN(B)||B>=0)&&A(C).is(":focusable")
}})
}(jQuery);
/*
 * jQuery UI Widget 1.8.1
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(A){var B=A.fn.remove;
A.fn.remove=function(C,D){return this.each(function(){if(!D){if(!C||A.filter(C,[this]).length){A("*",this).add(this).each(function(){A(this).triggerHandler("remove")
})
}}return B.call(A(this),C,D)
})
};
A.widget=function(C,G,F){var E=C.split(".")[0],D;
C=C.split(".")[1];
D=E+"-"+C;
if(!F){F=G;
G=A.Widget
}A.expr[":"][D]=function(H){return !!A.data(H,C)
};
A[E]=A[E]||{};
A[E][C]=function(H,I){arguments.length&&this._createWidget(H,I)
};
G=new G;
G.options=A.extend({},G.options);
A[E][C].prototype=A.extend(true,G,{namespace:E,widgetName:C,widgetEventPrefix:A[E][C].prototype.widgetEventPrefix||C,widgetBaseClass:D},F);
A.widget.bridge(C,A[E][C])
};
A.widget.bridge=function(C,D){A.fn[C]=function(H){var G=typeof H==="string",F=Array.prototype.slice.call(arguments,1),E=this;
H=!G&&F.length?A.extend.apply(null,[true,H].concat(F)):H;
if(G&&H.substring(0,1)==="_"){return E
}G?this.each(function(){var J=A.data(this,C),I=J&&A.isFunction(J[H])?J[H].apply(J,F):J;
if(I!==J&&I!==undefined){E=I;
return false
}}):this.each(function(){var I=A.data(this,C);
if(I){H&&I.option(H);
I._init()
}else{A.data(this,C,new D(H,this))
}});
return E
}
};
A.Widget=function(C,D){arguments.length&&this._createWidget(C,D)
};
A.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(C,E){this.element=A(E).data(this.widgetName,this);
this.options=A.extend(true,{},this.options,A.metadata&&A.metadata.get(E)[this.widgetName],C);
var D=this;
this.element.bind("remove."+this.widgetName,function(){D.destroy()
});
this._create();
this._init()
},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);
this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")
},widget:function(){return this.element
},option:function(C,F){var E=C,D=this;
if(arguments.length===0){return A.extend({},D.options)
}if(typeof C==="string"){if(F===undefined){return this.options[C]
}E={};
E[C]=F
}A.each(E,function(H,G){D._setOption(H,G)
});
return D
},_setOption:function(C,D){this.options[C]=D;
if(C==="disabled"){this.widget()[D?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",D)
}return this
},enable:function(){return this._setOption("disabled",false)
},disable:function(){return this._setOption("disabled",true)
},_trigger:function(C,G,F){var E=this.options[C];
G=A.Event(G);
G.type=(C===this.widgetEventPrefix?C:this.widgetEventPrefix+C).toLowerCase();
F=F||{};
if(G.originalEvent){C=A.event.props.length;
for(var D;
C;
){D=A.event.props[--C];
G[D]=G.originalEvent[D]
}}this.element.trigger(G,F);
return !(A.isFunction(E)&&E.call(this.element[0],G,F)===false||G.isDefaultPrevented())
}}
})(jQuery);
/*
 * jQuery UI Mouse 1.8.1
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(function(A){A.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var B=this;
this.element.bind("mousedown."+this.widgetName,function(C){return B._mouseDown(C)
}).bind("click."+this.widgetName,function(C){if(B._preventClickEvent){B._preventClickEvent=false;
C.stopImmediatePropagation();
return false
}});
this.started=false
},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)
},_mouseDown:function(C){C.originalEvent=C.originalEvent||{};
if(!C.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(C);
this._mouseDownEvent=C;
var B=this,E=C.which==1,D=typeof this.options.cancel=="string"?A(C.target).parents().add(C.target).filter(this.options.cancel).length:false;
if(!E||D||!this._mouseCapture(C)){return true
}this.mouseDelayMet=!this.options.delay;
if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){B.mouseDelayMet=true
},this.options.delay)
}if(this._mouseDistanceMet(C)&&this._mouseDelayMet(C)){this._mouseStarted=this._mouseStart(C)!==false;
if(!this._mouseStarted){C.preventDefault();
return true
}}this._mouseMoveDelegate=function(F){return B._mouseMove(F)
};
this._mouseUpDelegate=function(F){return B._mouseUp(F)
};
A(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);
A.browser.safari||C.preventDefault();
return C.originalEvent.mouseHandled=true
}},_mouseMove:function(B){if(A.browser.msie&&!B.button){return this._mouseUp(B)
}if(this._mouseStarted){this._mouseDrag(B);
return B.preventDefault()
}if(this._mouseDistanceMet(B)&&this._mouseDelayMet(B)){(this._mouseStarted=this._mouseStart(this._mouseDownEvent,B)!==false)?this._mouseDrag(B):this._mouseUp(B)
}return !this._mouseStarted
},_mouseUp:function(B){A(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);
if(this._mouseStarted){this._mouseStarted=false;
this._preventClickEvent=B.target==this._mouseDownEvent.target;
this._mouseStop(B)
}return false
},_mouseDistanceMet:function(B){return Math.max(Math.abs(this._mouseDownEvent.pageX-B.pageX),Math.abs(this._mouseDownEvent.pageY-B.pageY))>=this.options.distance
},_mouseDelayMet:function(){return this.mouseDelayMet
},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true
}})
})(jQuery);
(function(E){E.ui=E.ui||{};
var A=/left|center|right/,D=/top|center|bottom/,C=E.fn.position,B=E.fn.offset;
E.fn.position=function(G){if(!G||!G.of){return C.apply(this,arguments)
}G=E.extend({},G);
var F=E(G.of),L=(G.collision||"flip").split(" "),K=G.offset?G.offset.split(" "):[0,0],J,I,H;
if(G.of.nodeType===9){J=F.width();
I=F.height();
H={top:0,left:0}
}else{if(G.of.scrollTo&&G.of.document){J=F.width();
I=F.height();
H={top:F.scrollTop(),left:F.scrollLeft()}
}else{if(G.of.preventDefault){G.at="left top";
J=I=0;
H={top:G.of.pageY,left:G.of.pageX}
}else{J=F.outerWidth();
I=F.outerHeight();
H=F.offset()
}}}E.each(["my","at"],function(){var M=(G[this]||"").split(" ");
if(M.length===1){M=A.test(M[0])?M.concat(["center"]):D.test(M[0])?["center"].concat(M):["center","center"]
}M[0]=A.test(M[0])?M[0]:"center";
M[1]=D.test(M[1])?M[1]:"center";
G[this]=M
});
if(L.length===1){L[1]=L[0]
}K[0]=parseInt(K[0],10)||0;
if(K.length===1){K[1]=K[0]
}K[1]=parseInt(K[1],10)||0;
if(G.at[0]==="right"){H.left+=J
}else{if(G.at[0]==="center"){H.left+=J/2
}}if(G.at[1]==="bottom"){H.top+=I
}else{if(G.at[1]==="center"){H.top+=I/2
}}H.left+=K[0];
H.top+=K[1];
return this.each(function(){var P=E(this),N=P.outerWidth(),M=P.outerHeight(),O=E.extend({},H);
if(G.my[0]==="right"){O.left-=N
}else{if(G.my[0]==="center"){O.left-=N/2
}}if(G.my[1]==="bottom"){O.top-=M
}else{if(G.my[1]==="center"){O.top-=M/2
}}O.left=parseInt(O.left);
O.top=parseInt(O.top);
E.each(["left","top"],function(R,Q){E.ui.position[L[R]]&&E.ui.position[L[R]][Q](O,{targetWidth:J,targetHeight:I,elemWidth:N,elemHeight:M,offset:K,my:G.my,at:G.at})
});
E.fn.bgiframe&&P.bgiframe();
P.offset(E.extend(O,{using:G.using}))
})
};
E.ui.position={fit:{left:function(G,F){var H=E(window);
F=G.left+F.elemWidth-H.width()-H.scrollLeft();
G.left=F>0?G.left-F:Math.max(0,G.left)
},top:function(G,F){var H=E(window);
F=G.top+F.elemHeight-H.height()-H.scrollTop();
G.top=F>0?G.top-F:Math.max(0,G.top)
}},flip:{left:function(G,F){if(F.at[0]!=="center"){var J=E(window);
J=G.left+F.elemWidth-J.width()-J.scrollLeft();
var I=F.my[0]==="left"?-F.elemWidth:F.my[0]==="right"?F.elemWidth:0,H=-2*F.offset[0];
G.left+=G.left<0?I+F.targetWidth+H:J>0?I-F.targetWidth+H:0
}},top:function(G,F){if(F.at[1]!=="center"){var K=E(window);
K=G.top+F.elemHeight-K.height()-K.scrollTop();
var J=F.my[1]==="top"?-F.elemHeight:F.my[1]==="bottom"?F.elemHeight:0,I=F.at[1]==="top"?F.targetHeight:-F.targetHeight,H=-2*F.offset[1];
G.top+=G.top<0?J+F.targetHeight+H:K>0?J+I+H:0
}}}};
if(!E.offset.setOffset){E.offset.setOffset=function(G,F){if(/static/.test(E.curCSS(G,"position"))){G.style.position="relative"
}var K=E(G),J=K.offset(),I=parseInt(E.curCSS(G,"top",true),10)||0,H=parseInt(E.curCSS(G,"left",true),10)||0;
J={top:F.top-J.top+I,left:F.left-J.left+H};
"using" in F?F.using.call(G,J):K.css(J)
};
E.fn.offset=function(G){var F=this[0];
if(!F||!F.ownerDocument){return null
}if(G){return this.each(function(){E.offset.setOffset(this,G)
})
}return B.call(this)
}
}})(jQuery);
jQuery.effects||function(I){function G(L){var K;
if(L&&L.constructor==Array&&L.length==3){return L
}if(K=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(L)){return[parseInt(K[1],10),parseInt(K[2],10),parseInt(K[3],10)]
}if(K=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(L)){return[parseFloat(K[1])*2.55,parseFloat(K[2])*2.55,parseFloat(K[3])*2.55]
}if(K=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(L)){return[parseInt(K[1],16),parseInt(K[2],16),parseInt(K[3],16)]
}if(K=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(L)){return[parseInt(K[1]+K[1],16),parseInt(K[2]+K[2],16),parseInt(K[3]+K[3],16)]
}if(/rgba\(0, 0, 0, 0\)/.exec(L)){return F.transparent
}return F[I.trim(L).toLowerCase()]
}function B(M,L){var K;
do{K=I.curCSS(M,L);
if(K!=""&&K!="transparent"||I.nodeName(M,"body")){break
}L="backgroundColor"
}while(M=M.parentNode);
return G(K)
}function E(){var O=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,L={},K,N;
if(O&&O.length&&O[0]&&O[O[0]]){for(var M=O.length;
M--;
){K=O[M];
if(typeof O[K]=="string"){N=K.replace(/\-(\w)/g,function(Q,P){return P.toUpperCase()
});
L[N]=O[K]
}}}else{for(K in O){if(typeof O[K]==="string"){L[K]=O[K]
}}}return L
}function D(M){var L,K;
for(L in M){K=M[L];
if(K==null||I.isFunction(K)||L in A||/scrollbar/.test(L)||!/color/i.test(L)&&isNaN(parseFloat(K))){delete M[L]
}}return M
}function J(N,L){var K={_:0},M;
for(M in L){if(N[M]!=L[M]){K[M]=L[M]
}}return K
}function H(N,L,K,M){if(typeof N=="object"){M=L;
K=null;
L=N;
N=L.effect
}if(I.isFunction(L)){M=L;
K=null;
L={}
}if(I.isFunction(K)){M=K;
K=null
}if(typeof L=="number"||I.fx.speeds[L]){M=K;
K=L;
L={}
}L=L||{};
K=K||L.duration;
K=I.fx.off?0:typeof K=="number"?K:I.fx.speeds[K]||I.fx.speeds._default;
M=M||L.complete;
return[N,L,K,M]
}I.effects={};
I.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(L,K){I.fx.step[K]=function(M){if(!M.colorInit){M.start=B(M.elem,K);
M.end=G(M.end);
M.colorInit=true
}M.elem.style[K]="rgb("+Math.max(Math.min(parseInt(M.pos*(M.end[0]-M.start[0])+M.start[0],10),255),0)+","+Math.max(Math.min(parseInt(M.pos*(M.end[1]-M.start[1])+M.start[1],10),255),0)+","+Math.max(Math.min(parseInt(M.pos*(M.end[2]-M.start[2])+M.start[2],10),255),0)+")"
}
});
var F={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]},C=["add","remove","toggle"],A={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};
I.effects.animateClass=function(N,L,K,M){if(I.isFunction(K)){M=K;
K=null
}return this.each(function(){var S=I(this),Q=S.attr("style")||" ",P=D(E.call(this)),R,O=S.attr("className");
I.each(C,function(T,U){N[U]&&S[U+"Class"](N[U])
});
R=D(E.call(this));
S.attr("className",O);
S.animate(J(P,R),L,K,function(){I.each(C,function(T,U){N[U]&&S[U+"Class"](N[U])
});
if(typeof S.attr("style")=="object"){S.attr("style").cssText="";
S.attr("style").cssText=Q
}else{S.attr("style",Q)
}M&&M.apply(this,arguments)
})
})
};
I.fn.extend({_addClass:I.fn.addClass,addClass:function(N,L,K,M){return L?I.effects.animateClass.apply(this,[{add:N},L,K,M]):this._addClass(N)
},_removeClass:I.fn.removeClass,removeClass:function(N,L,K,M){return L?I.effects.animateClass.apply(this,[{remove:N},L,K,M]):this._removeClass(N)
},_toggleClass:I.fn.toggleClass,toggleClass:function(O,L,K,N,M){return typeof L=="boolean"||L===undefined?K?I.effects.animateClass.apply(this,[L?{add:O}:{remove:O},K,N,M]):this._toggleClass(O,L):I.effects.animateClass.apply(this,[{toggle:O},L,K,N])
},switchClass:function(O,L,K,N,M){return I.effects.animateClass.apply(this,[{add:L,remove:O},K,N,M])
}});
I.extend(I.effects,{version:"1.8.1",save:function(M,L){for(var K=0;
K<L.length;
K++){L[K]!==null&&M.data("ec.storage."+L[K],M[0].style[L[K]])
}},restore:function(M,L){for(var K=0;
K<L.length;
K++){L[K]!==null&&M.css(L[K],M.data("ec.storage."+L[K]))
}},setMode:function(L,K){if(K=="toggle"){K=L.is(":hidden")?"show":"hide"
}return K
},getBaseline:function(M,L){var K;
switch(M[0]){case"top":K=0;
break;
case"middle":K=0.5;
break;
case"bottom":K=1;
break;
default:K=M[0]/L.height
}switch(M[1]){case"left":M=0;
break;
case"center":M=0.5;
break;
case"right":M=1;
break;
default:M=M[1]/L.width
}return{x:M,y:K}
},createWrapper:function(M){if(M.parent().is(".ui-effects-wrapper")){return M.parent()
}var L={width:M.outerWidth(true),height:M.outerHeight(true),"float":M.css("float")},K=I("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});
M.wrap(K);
K=M.parent();
if(M.css("position")=="static"){K.css({position:"relative"});
M.css({position:"relative"})
}else{I.extend(L,{position:M.css("position"),zIndex:M.css("z-index")});
I.each(["top","left","bottom","right"],function(O,N){L[N]=M.css(N);
if(isNaN(parseInt(L[N],10))){L[N]="auto"
}});
M.css({position:"relative",top:0,left:0})
}return K.css(L).show()
},removeWrapper:function(K){if(K.parent().is(".ui-effects-wrapper")){return K.parent().replaceWith(K)
}return K
},setTransition:function(N,L,K,M){M=M||{};
I.each(L,function(P,O){unit=N.cssUnit(O);
if(unit[0]>0){M[O]=unit[0]*K+unit[1]
}});
return M
}});
I.fn.extend({effect:function(M){var L=H.apply(this,arguments);
L={options:L[1],duration:L[2],callback:L[3]};
var K=I.effects[M];
return K&&!I.fx.off?K.call(this,L):this
},_show:I.fn.show,show:function(L){if(!L||typeof L=="number"||I.fx.speeds[L]){return this._show.apply(this,arguments)
}else{var K=H.apply(this,arguments);
K[1].mode="show";
return this.effect.apply(this,K)
}},_hide:I.fn.hide,hide:function(L){if(!L||typeof L=="number"||I.fx.speeds[L]){return this._hide.apply(this,arguments)
}else{var K=H.apply(this,arguments);
K[1].mode="hide";
return this.effect.apply(this,K)
}},__toggle:I.fn.toggle,toggle:function(L){if(!L||typeof L=="number"||I.fx.speeds[L]||typeof L=="boolean"||I.isFunction(L)){return this.__toggle.apply(this,arguments)
}else{var K=H.apply(this,arguments);
K[1].mode="toggle";
return this.effect.apply(this,K)
}},cssUnit:function(M){var L=this.css(M),K=[];
I.each(["em","px","%","pt"],function(O,N){if(L.indexOf(N)>0){K=[parseFloat(L),N]
}});
return K
}});
I.easing.jswing=I.easing.swing;
I.extend(I.easing,{def:"easeOutQuad",swing:function(O,L,K,N,M){return I.easing[I.easing.def](O,L,K,N,M)
},easeInQuad:function(O,L,K,N,M){return N*(L/=M)*L+K
},easeOutQuad:function(O,L,K,N,M){return -N*(L/=M)*(L-2)+K
},easeInOutQuad:function(O,L,K,N,M){if((L/=M/2)<1){return N/2*L*L+K
}return -N/2*(--L*(L-2)-1)+K
},easeInCubic:function(O,L,K,N,M){return N*(L/=M)*L*L+K
},easeOutCubic:function(O,L,K,N,M){return N*((L=L/M-1)*L*L+1)+K
},easeInOutCubic:function(O,L,K,N,M){if((L/=M/2)<1){return N/2*L*L*L+K
}return N/2*((L-=2)*L*L+2)+K
},easeInQuart:function(O,L,K,N,M){return N*(L/=M)*L*L*L+K
},easeOutQuart:function(O,L,K,N,M){return -N*((L=L/M-1)*L*L*L-1)+K
},easeInOutQuart:function(O,L,K,N,M){if((L/=M/2)<1){return N/2*L*L*L*L+K
}return -N/2*((L-=2)*L*L*L-2)+K
},easeInQuint:function(O,L,K,N,M){return N*(L/=M)*L*L*L*L+K
},easeOutQuint:function(O,L,K,N,M){return N*((L=L/M-1)*L*L*L*L+1)+K
},easeInOutQuint:function(O,L,K,N,M){if((L/=M/2)<1){return N/2*L*L*L*L*L+K
}return N/2*((L-=2)*L*L*L*L+2)+K
},easeInSine:function(O,L,K,N,M){return -N*Math.cos(L/M*(Math.PI/2))+N+K
},easeOutSine:function(O,L,K,N,M){return N*Math.sin(L/M*(Math.PI/2))+K
},easeInOutSine:function(O,L,K,N,M){return -N/2*(Math.cos(Math.PI*L/M)-1)+K
},easeInExpo:function(O,L,K,N,M){return L==0?K:N*Math.pow(2,10*(L/M-1))+K
},easeOutExpo:function(O,L,K,N,M){return L==M?K+N:N*(-Math.pow(2,-10*L/M)+1)+K
},easeInOutExpo:function(O,L,K,N,M){if(L==0){return K
}if(L==M){return K+N
}if((L/=M/2)<1){return N/2*Math.pow(2,10*(L-1))+K
}return N/2*(-Math.pow(2,-10*--L)+2)+K
},easeInCirc:function(O,L,K,N,M){return -N*(Math.sqrt(1-(L/=M)*L)-1)+K
},easeOutCirc:function(O,L,K,N,M){return N*Math.sqrt(1-(L=L/M-1)*L)+K
},easeInOutCirc:function(O,L,K,N,M){if((L/=M/2)<1){return -N/2*(Math.sqrt(1-L*L)-1)+K
}return N/2*(Math.sqrt(1-(L-=2)*L)+1)+K
},easeInElastic:function(Q,L,K,P,O){Q=1.70158;
var N=0,M=P;
if(L==0){return K
}if((L/=O)==1){return K+P
}N||(N=O*0.3);
if(M<Math.abs(P)){M=P;
Q=N/4
}else{Q=N/(2*Math.PI)*Math.asin(P/M)
}return -(M*Math.pow(2,10*(L-=1))*Math.sin((L*O-Q)*2*Math.PI/N))+K
},easeOutElastic:function(Q,L,K,P,O){Q=1.70158;
var N=0,M=P;
if(L==0){return K
}if((L/=O)==1){return K+P
}N||(N=O*0.3);
if(M<Math.abs(P)){M=P;
Q=N/4
}else{Q=N/(2*Math.PI)*Math.asin(P/M)
}return M*Math.pow(2,-10*L)*Math.sin((L*O-Q)*2*Math.PI/N)+P+K
},easeInOutElastic:function(Q,L,K,P,O){Q=1.70158;
var N=0,M=P;
if(L==0){return K
}if((L/=O/2)==2){return K+P
}N||(N=O*0.3*1.5);
if(M<Math.abs(P)){M=P;
Q=N/4
}else{Q=N/(2*Math.PI)*Math.asin(P/M)
}if(L<1){return -0.5*M*Math.pow(2,10*(L-=1))*Math.sin((L*O-Q)*2*Math.PI/N)+K
}return M*Math.pow(2,-10*(L-=1))*Math.sin((L*O-Q)*2*Math.PI/N)*0.5+P+K
},easeInBack:function(P,L,K,O,N,M){if(M==undefined){M=1.70158
}return O*(L/=N)*L*((M+1)*L-M)+K
},easeOutBack:function(P,L,K,O,N,M){if(M==undefined){M=1.70158
}return O*((L=L/N-1)*L*((M+1)*L+M)+1)+K
},easeInOutBack:function(P,L,K,O,N,M){if(M==undefined){M=1.70158
}if((L/=N/2)<1){return O/2*L*L*(((M*=1.525)+1)*L-M)+K
}return O/2*((L-=2)*L*(((M*=1.525)+1)*L+M)+2)+K
},easeInBounce:function(O,L,K,N,M){return N-I.easing.easeOutBounce(O,M-L,0,N,M)+K
},easeOutBounce:function(O,L,K,N,M){return(L/=M)<1/2.75?N*7.5625*L*L+K:L<2/2.75?N*(7.5625*(L-=1.5/2.75)*L+0.75)+K:L<2.5/2.75?N*(7.5625*(L-=2.25/2.75)*L+0.9375)+K:N*(7.5625*(L-=2.625/2.75)*L+0.984375)+K
},easeInOutBounce:function(O,L,K,N,M){if(L<M/2){return I.easing.easeInBounce(O,L*2,0,N,M)*0.5+K
}return I.easing.easeOutBounce(O,L*2-M,0,N,M)*0.5+N*0.5+K
}})
}(jQuery);
(function(A){A.effects.highlight=function(B){return this.queue(function(){var C=A(this),E=["backgroundImage","backgroundColor","opacity"],F=A.effects.setMode(C,B.options.mode||"show"),D={backgroundColor:C.css("backgroundColor")};
if(F=="hide"){D.opacity=0
}A.effects.save(C,E);
C.show().css({backgroundImage:"none",backgroundColor:B.options.color||"#ffff99"}).animate(D,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){F=="hide"&&C.hide();
A.effects.restore(C,E);
F=="show"&&!A.support.opacity&&this.style.removeAttribute("filter");
B.callback&&B.callback.apply(this,arguments);
C.dequeue()
}})
})
}
})(jQuery);
