;jQuery.ui||(function($){var j=$.fn.remove,isFF2=$.browser.mozilla&&(parseFloat($.browser.version)<1.9);$.ui={version:"1.7.2",plugin:{add:function(a,b,c){var d=$.ui[a].prototype;for(var i in c){d.plugins[i]=d.plugins[i]||[];d.plugins[i].push([b,c[i]])}},call:function(a,b,c){var d=a.plugins[b];if(!d||!a.element[0].parentNode){return}for(var i=0;i<d.length;i++){if(a.options[d[i][0]]){d[i][1].apply(a.element,c)}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(b,a){if($(b).css('overflow')=='hidden'){return false}var c=(a&&a=='left')?'scrollLeft':'scrollTop',has=false;if(b[c]>0){return true}b[c]=1;has=(b[c]>0);b[c]=0;return has},isOverAxis:function(x,a,b){return(x>a)&&(x<(a+b))},isOver:function(y,x,a,b,c,d){return $.ui.isOverAxis(y,a,c)&&$.ui.isOverAxis(x,b,d)},keyCode:{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}};if(isFF2){var k=$.attr,removeAttr=$.fn.removeAttr,ariaNS="http://www.w3.org/2005/07/aaa",ariaState=/^aria-/,ariaRole=/^wairole:/;$.attr=function(a,b,c){var d=c!==undefined;return(b=='role'?(d?k.call(this,a,b,"wairole:"+c):(k.apply(this,arguments)||"").replace(ariaRole,"")):(ariaState.test(b)?(d?a.setAttributeNS(ariaNS,b.replace(ariaState,"aaa:"),c):k.call(this,a,b.replace(ariaState,"aaa:"))):k.apply(this,arguments)))};$.fn.removeAttr=function(a){return(ariaState.test(a)?this.each(function(){this.removeAttributeNS(ariaNS,a.replace(ariaState,""))}):removeAttr.call(this,a))}}$.fn.extend({remove:function(){$("*",this).add(this).each(function(){$(this).triggerHandler("remove")});return j.apply(this,arguments)},enableSelection:function(){return this.attr('unselectable','off').css('MozUserSelect','').unbind('selectstart.ui')},disableSelection:function(){return this.attr('unselectable','on').css('MozUserSelect','none').bind('selectstart.ui',function(){return false})},scrollParent:function(){var a;if(($.browser.msie&&(/(static|relative)/).test(this.css('position')))||(/absolute/).test(this.css('position'))){a=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test($.curCSS(this,'position',1))&&(/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1))}).eq(0)}else{a=this.parents().filter(function(){return(/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1))}).eq(0)}return(/fixed/).test(this.css('position'))||!a.length?$(document):a}});$.extend($.expr[':'],{data:function(a,i,b){return!!$.data(a,b[3])},focusable:function(a){var b=a.nodeName.toLowerCase(),tabIndex=$.attr(a,'tabindex');return(/input|select|textarea|button|object/.test(b)?!a.disabled:'a'==b||'area'==b?a.href||!isNaN(tabIndex):!isNaN(tabIndex))&&!$(a)['area'==b?'parents':'closest'](':hidden').length},tabbable:function(a){var b=$.attr(a,'tabindex');return(isNaN(b)||b>=0)&&$(a).is(':focusable')}});function getter(c,d,e,f){function getMethods(a){var b=$[c][d][a]||[];return(typeof b=='string'?b.split(/,?\s+/):b)}var g=getMethods('getter');if(f.length==1&&typeof f[0]=='string'){g=g.concat(getMethods('getterSetter'))}return($.inArray(e,g)!=-1)}$.widget=function(g,h){var i=g.split(".")[0];g=g.split(".")[1];$.fn[g]=function(b){var c=(typeof b=='string'),args=Array.prototype.slice.call(arguments,1);if(c&&b.substring(0,1)=='_'){return this}if(c&&getter(i,g,b,args)){var d=$.data(this[0],g);return(d?d[b].apply(d,args):undefined)}return this.each(function(){var a=$.data(this,g);(!a&&!c&&$.data(this,g,new $[i][g](this,b))._init());(a&&c&&$.isFunction(a[b])&&a[b].apply(a,args))})};$[i]=$[i]||{};$[i][g]=function(d,e){var f=this;this.namespace=i;this.widgetName=g;this.widgetEventPrefix=$[i][g].eventPrefix||g;this.widgetBaseClass=i+'-'+g;this.options=$.extend({},$.widget.defaults,$[i][g].defaults,$.metadata&&$.metadata.get(d)[g],e);this.element=$(d).bind('setData.'+g,function(a,b,c){if(a.target==d){return f._setData(b,c)}}).bind('getData.'+g,function(a,b){if(a.target==d){return f._getData(b)}}).bind('remove',function(){return f.destroy()})};$[i][g].prototype=$.extend({},$.widget.prototype,h);$[i][g].getterSetter='option'};$.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+'-disabled'+' '+this.namespace+'-state-disabled').removeAttr('aria-disabled')},option:function(c,d){var e=c,self=this;if(typeof c=="string"){if(d===undefined){return this._getData(c)}e={};e[c]=d}$.each(e,function(a,b){self._setData(a,b)})},_getData:function(a){return this.options[a]},_setData:function(a,b){this.options[a]=b;if(a=='disabled'){this.element[b?'addClass':'removeClass'](this.widgetBaseClass+'-disabled'+' '+this.namespace+'-state-disabled').attr("aria-disabled",b)}},enable:function(){this._setData('disabled',false)},disable:function(){this._setData('disabled',true)},_trigger:function(a,b,c){var d=this.options[a],eventName=(a==this.widgetEventPrefix?a:this.widgetEventPrefix+a);b=$.Event(b);b.type=eventName;if(b.originalEvent){for(var i=$.event.props.length,prop;i;){prop=$.event.props[--i];b[prop]=b.originalEvent[prop]}}this.element.trigger(b,c);return!($.isFunction(d)&&d.call(this.element[0],b,c)===false||b.isDefaultPrevented())}};$.widget.defaults={disabled:false};$.ui.mouse={_mouseInit:function(){var b=this;this.element.bind('mousedown.'+this.widgetName,function(a){return b._mouseDown(a)}).bind('click.'+this.widgetName,function(a){if(b._preventClickEvent){b._preventClickEvent=false;a.stopImmediatePropagation();return false}});if($.browser.msie){this._mouseUnselectable=this.element.attr('unselectable');this.element.attr('unselectable','on')}this.started=false},_mouseDestroy:function(){this.element.unbind('.'+this.widgetName);($.browser.msie&&this.element.attr('unselectable',this._mouseUnselectable))},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(b.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(b));this._mouseDownEvent=b;var c=this,btnIsLeft=(b.which==1),elIsCancel=(typeof this.options.cancel=="string"?$(b.target).parents().add(b.target).filter(this.options.cancel).length:false);if(!btnIsLeft||elIsCancel||!this._mouseCapture(b)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=(this._mouseStart(b)!==false);if(!this._mouseStarted){b.preventDefault();return true}}this._mouseMoveDelegate=function(a){return c._mouseMove(a)};this._mouseUpDelegate=function(a){return c._mouseUp(a)};$(document).bind('mousemove.'+this.widgetName,this._mouseMoveDelegate).bind('mouseup.'+this.widgetName,this._mouseUpDelegate);($.browser.safari||b.preventDefault());b.originalEvent.mouseHandled=true;return true},_mouseMove:function(a){if($.browser.msie&&!a.button){return this._mouseUp(a)}if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,a)!==false);(this._mouseStarted?this._mouseDrag(a):this._mouseUp(a))}return!this._mouseStarted},_mouseUp:function(a){$(document).unbind('mousemove.'+this.widgetName,this._mouseMoveDelegate).unbind('mouseup.'+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(a.target==this._mouseDownEvent.target);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return(Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance)},_mouseDelayMet:function(a){return this.mouseDelayMet},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return true}};$.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function($){$.widget("ui.accordion",{_init:function(){var o=this.options,self=this;this.running=0;if(o.collapsible==$.ui.accordion.defaults.collapsible&&o.alwaysOpen!=$.ui.accordion.defaults.alwaysOpen){o.collapsible=!o.alwaysOpen}if(o.navigation){var b=this.element.find("a").filter(o.navigationFilter);if(b.length){if(b.filter(o.header).length){this.active=b}else{this.active=b.parent().parent().prev();b.addClass("ui-accordion-content-active")}}}this.element.addClass("ui-accordion ui-widget ui-helper-reset");if(this.element[0].nodeName=="UL"){this.element.children("li").addClass("ui-accordion-li-fix")}this.headers=this.element.find(o.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){$(this).addClass('ui-state-hover')}).bind("mouseleave.accordion",function(){$(this).removeClass('ui-state-hover')}).bind("focus.accordion",function(){$(this).addClass('ui-state-focus')}).bind("blur.accordion",function(){$(this).removeClass('ui-state-focus')});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");this.active=this._findActive(this.active||o.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass('ui-accordion-content-active');$("<span/>").addClass("ui-icon "+o.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(o.icons.header).toggleClass(o.icons.headerSelected);if($.browser.msie){this.element.find('a').css('zoom','1')}this.resize();this.element.attr('role','tablist');this.headers.attr('role','tab').bind('keydown',function(a){return self._keydown(a)}).next().attr('role','tabpanel');this.headers.not(this.active||"").attr('aria-expanded','false').attr("tabIndex","-1").next().hide();if(!this.active.length){this.headers.eq(0).attr('tabIndex','0')}else{this.active.attr('aria-expanded','true').attr('tabIndex','0')}if(!$.browser.safari)this.headers.find('a').attr('tabIndex','-1');if(o.event){this.headers.bind((o.event)+".accordion",function(a){return self._clickHandler.call(self,a,this)})}},destroy:function(){var o=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind('.accordion').removeData('accordion');this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this.headers.children(".ui-icon").remove();var a=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(o.autoHeight||o.fillHeight){a.css("height","")}},_setData:function(a,b){if(a=='alwaysOpen'){a='collapsible';b=!b}$.widget.prototype._setData.apply(this,arguments)},_keydown:function(a){var o=this.options,keyCode=$.ui.keyCode;if(o.disabled||a.altKey||a.ctrlKey)return;var b=this.headers.length;var c=this.headers.index(a.target);var d=false;switch(a.keyCode){case keyCode.RIGHT:case keyCode.DOWN:d=this.headers[(c+1)%b];break;case keyCode.LEFT:case keyCode.UP:d=this.headers[(c-1+b)%b];break;case keyCode.SPACE:case keyCode.ENTER:return this._clickHandler({target:a.target},a.target)}if(d){$(a.target).attr('tabIndex','-1');$(d).attr('tabIndex','0');d.focus();return false}return true},resize:function(){var o=this.options,maxHeight;if(o.fillSpace){if($.browser.msie){var a=this.element.parent().css('overflow');this.element.parent().css('overflow','hidden')}maxHeight=this.element.parent().height();if($.browser.msie){this.element.parent().css('overflow',a)}this.headers.each(function(){maxHeight-=$(this).outerHeight()});var b=0;this.headers.next().each(function(){b=Math.max(b,$(this).innerHeight()-$(this).height())}).height(Math.max(0,maxHeight-b)).css('overflow','auto')}else if(o.autoHeight){maxHeight=0;this.headers.next().each(function(){maxHeight=Math.max(maxHeight,$(this).outerHeight())}).height(maxHeight)}},activate:function(a){var b=this._findActive(a)[0];this._clickHandler({target:b},b)},_findActive:function(a){return a?typeof a=="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?$([]):this.headers.filter(":eq(0)")},_clickHandler:function(a,b){var o=this.options;if(o.disabled)return false;if(!a.target&&o.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(o.icons.headerSelected).addClass(o.icons.header);this.active.next().addClass('ui-accordion-content-active');var c=this.active.next(),data={options:o,id:b.id,newHeader:$([]),oldHeader:o.active,newContent:$([]),oldContent:c},f=(this.active=$([]));this._toggle(f,c,data);return false}var d=$(a.currentTarget||b);var e=d[0]==this.active[0];if(this.running||(!o.collapsible&&e)){return false}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(o.icons.headerSelected).addClass(o.icons.header);this.active.next().addClass('ui-accordion-content-active');if(!e){d.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(o.icons.header).addClass(o.icons.headerSelected);d.next().addClass('ui-accordion-content-active')}var f=d.next(),c=this.active.next(),data={options:o,id:b.id,newHeader:e&&o.collapsible?$([]):d,oldHeader:this.active,newContent:e&&o.collapsible?$([]):f.find('> *'),oldContent:c.find('> *')},down=this.headers.index(this.active[0])>this.headers.index(d[0]);this.active=e?$([]):d;this._toggle(f,c,data,e,down);return false},_toggle:function(b,c,d,e,f){var o=this.options,self=this;this.toShow=b;this.toHide=c;this.data=d;var g=function(){if(!self)return;return self._completed.apply(self,arguments)};this._trigger("changestart",null,this.data);this.running=c.size()===0?b.size():c.size();if(o.animated){var h={};if(o.collapsible&&e){h={toShow:$([]),toHide:c,complete:g,down:f,autoHeight:o.autoHeight||o.fillSpace}}else{h={toShow:b,toHide:c,complete:g,down:f,autoHeight:o.autoHeight||o.fillSpace}}if(!o.proxied){o.proxied=o.animated}if(!o.proxiedDuration){o.proxiedDuration=o.duration}o.animated=$.isFunction(o.proxied)?o.proxied(h):o.proxied;o.duration=$.isFunction(o.proxiedDuration)?o.proxiedDuration(h):o.proxiedDuration;var i=$.ui.accordion.animations,duration=o.duration,easing=o.animated;if(!i[easing]){i[easing]=function(a){this.slide(a,{easing:easing,duration:duration||700})}}i[easing](h)}else{if(o.collapsible&&e){b.toggle()}else{c.hide();b.show()}g(true)}c.prev().attr('aria-expanded','false').attr("tabIndex","-1").blur();b.prev().attr('aria-expanded','true').attr("tabIndex","0").focus()},_completed:function(a){var o=this.options;this.running=a?0:--this.running;if(this.running)return;if(o.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""})}this._trigger('change',null,this.data)}});$.extend($.ui.accordion,{version:"1.7.2",defaults:{active:null,alwaysOpen:true,animated:'slide',autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(c,d){c=$.extend({easing:"swing",duration:700},c,d);if(!c.toHide.size()){c.toShow.animate({height:"show"},c);return}if(!c.toShow.size()){c.toHide.animate({height:"hide"},c);return}var e=c.toShow.css('overflow'),percentDone,showProps={},hideProps={},fxAttrs=["height","paddingTop","paddingBottom"],originalWidth;var s=c.toShow;originalWidth=s[0].style.width;s.width(parseInt(s.parent().width(),10)-parseInt(s.css("paddingLeft"),10)-parseInt(s.css("paddingRight"),10)-(parseInt(s.css("borderLeftWidth"),10)||0)-(parseInt(s.css("borderRightWidth"),10)||0));$.each(fxAttrs,function(i,a){hideProps[a]='hide';var b=(''+$.css(c.toShow[0],a)).match(/^([\d+-.]+)(.*)$/);showProps[a]={value:b[1],unit:b[2]||'px'}});c.toShow.css({height:0,overflow:'hidden'}).show();c.toHide.filter(":hidden").each(c.complete).end().filter(":visible").animate(hideProps,{step:function(a,b){if(b.prop=='height'){percentDone=(b.now-b.start)/(b.end-b.start)}c.toShow[0].style[b.prop]=(percentDone*showProps[b.prop].value)+showProps[b.prop].unit},duration:c.duration,easing:c.easing,complete:function(){if(!c.autoHeight){c.toShow.css("height","")}c.toShow.css("width",originalWidth);c.toShow.css({overflow:e});c.complete()}})},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1000:200})},easeslide:function(a){this.slide(a,{easing:"easeinout",duration:700})}}})})(jQuery);jQuery.effects||(function($){$.effects={version:"1.7.2",save:function(a,b){for(var i=0;i<b.length;i++){if(b[i]!==null)a.data("ec.storage."+b[i],a[0].style[b[i]])}},restore:function(a,b){for(var i=0;i<b.length;i++){if(b[i]!==null)a.css(b[i],a.data("ec.storage."+b[i]))}},setMode:function(a,b){if(b=='toggle')b=a.is(':hidden')?'show':'hide';return b},getBaseline:function(a,b){var y,x;switch(a[0]){case'top':y=0;break;case'middle':y=0.5;break;case'bottom':y=1;break;default:y=a[0]/b.height};switch(a[1]){case'left':x=0;break;case'center':x=0.5;break;case'right':x=1;break;default:x=a[1]/b.width};return{x:x,y:y}},createWrapper:function(a){if(a.parent().is('.ui-effects-wrapper'))return a.parent();var b={width:a.outerWidth(true),height:a.outerHeight(true),'float':a.css('float')};a.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var c=a.parent();if(a.css('position')=='static'){c.css({position:'relative'});a.css({position:'relative'})}else{var d=a.css('top');if(isNaN(parseInt(d,10)))d='auto';var e=a.css('left');if(isNaN(parseInt(e,10)))e='auto';c.css({position:a.css('position'),top:d,left:e,zIndex:a.css('z-index')}).show();a.css({position:'relative',top:0,left:0})}c.css(b);return c},removeWrapper:function(a){if(a.parent().is('.ui-effects-wrapper'))return a.parent().replaceWith(a);return a},setTransition:function(a,b,c,d){d=d||{};$.each(b,function(i,x){unit=a.cssUnit(x);if(unit[0]>0)d[x]=unit[0]*c+unit[1]});return d},animateClass:function(f,g,h,i){var j=(typeof h=="function"?h:(i?i:null));var k=(typeof h=="string"?h:null);return this.each(function(){var a={};var b=$(this);var c=b.attr("style")||'';if(typeof c=='object')c=c["cssText"];if(f.toggle){b.hasClass(f.toggle)?f.remove=f.toggle:f.add=f.toggle}var d=$.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(f.add)b.addClass(f.add);if(f.remove)b.removeClass(f.remove);var e=$.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(f.add)b.removeClass(f.add);if(f.remove)b.addClass(f.remove);for(var n in e){if(typeof e[n]!="function"&&e[n]&&n.indexOf("Moz")==-1&&n.indexOf("length")==-1&&e[n]!=d[n]&&(n.match(/color/i)||(!n.match(/color/i)&&!isNaN(parseInt(e[n],10))))&&(d.position!="static"||(d.position=="static"&&!n.match(/left|top|bottom|right/))))a[n]=e[n]}b.animate(a,g,k,function(){if(typeof $(this).attr("style")=='object'){$(this).attr("style")["cssText"]="";$(this).attr("style")["cssText"]=c}else $(this).attr("style",c);if(f.add)$(this).addClass(f.add);if(f.remove)$(this).removeClass(f.remove);if(j)j.apply(this,arguments)})})}};function _normalizeArguments(a,m){var o=a[1]&&a[1].constructor==Object?a[1]:{};if(m)o.mode=m;var b=a[1]&&a[1].constructor!=Object?a[1]:(o.duration?o.duration:a[2]);b=$.fx.off?0:typeof b==="number"?b:$.fx.speeds[b]||$.fx.speeds._default;var c=o.callback||($.isFunction(a[1])&&a[1])||($.isFunction(a[2])&&a[2])||($.isFunction(a[3])&&a[3]);return[a[0],o,b,c]}$.fn.extend({_show:$.fn.show,_hide:$.fn.hide,__toggle:$.fn.toggle,_addClass:$.fn.addClass,_removeClass:$.fn.removeClass,_toggleClass:$.fn.toggleClass,effect:function(a,b,c,d){return $.effects[a]?$.effects[a].call(this,{method:a,options:b||{},duration:c,callback:d}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0])))return this._show.apply(this,arguments);else{return this.effect.apply(this,_normalizeArguments(arguments,'show'))}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0])))return this._hide.apply(this,arguments);else{return this.effect.apply(this,_normalizeArguments(arguments,'hide'))}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||($.isFunction(arguments[0])||typeof arguments[0]=='boolean')){return this.__toggle.apply(this,arguments)}else{return this.effect.apply(this,_normalizeArguments(arguments,'toggle'))}},addClass:function(a,b,c,d){return b?$.effects.animateClass.apply(this,[{add:a},b,c,d]):this._addClass(a)},removeClass:function(a,b,c,d){return b?$.effects.animateClass.apply(this,[{remove:a},b,c,d]):this._removeClass(a)},toggleClass:function(a,b,c,d){return((typeof b!=="boolean")&&b)?$.effects.animateClass.apply(this,[{toggle:a},b,c,d]):this._toggleClass(a,b)},morph:function(a,b,c,d,e){return $.effects.animateClass.apply(this,[{add:b,remove:a},c,d,e])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(b){var c=this.css(b),val=[];$.each(['em','px','%','pt'],function(i,a){if(c.indexOf(a)>0)val=[parseFloat(c),a]});return val}});$.each(['backgroundColor','borderBottomColor','borderLeftColor','borderRightColor','borderTopColor','color','outlineColor'],function(i,b){$.fx.step[b]=function(a){if(a.state==0){a.start=getColor(a.elem,b);a.end=getRGB(a.end)}a.elem.style[b]="rgb("+[Math.max(Math.min(parseInt((a.pos*(a.end[0]-a.start[0]))+a.start[0],10),255),0),Math.max(Math.min(parseInt((a.pos*(a.end[1]-a.start[1]))+a.start[1],10),255),0),Math.max(Math.min(parseInt((a.pos*(a.end[2]-a.start[2]))+a.start[2],10),255),0)].join(",")+")"}});function getRGB(a){var b;if(a&&a.constructor==Array&&a.length==3)return a;if(b=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(a))return[parseInt(b[1],10),parseInt(b[2],10),parseInt(b[3],10)];if(b=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(a))return[parseFloat(b[1])*2.55,parseFloat(b[2])*2.55,parseFloat(b[3])*2.55];if(b=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a))return[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)];if(b=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(a))return[parseInt(b[1]+b[1],16),parseInt(b[2]+b[2],16),parseInt(b[3]+b[3],16)];if(b=/rgba\(0, 0, 0, 0\)/.exec(a))return l['transparent'];return l[$.trim(a).toLowerCase()]}function getColor(a,b){var c;do{c=$.curCSS(a,b);if(c!=''&&c!='transparent'||$.nodeName(a,"body"))break;b="backgroundColor"}while(a=a.parentNode);return getRGB(c)};var l={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]};$.easing.jswing=$.easing.swing;$.extend($.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return $.easing[$.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-$.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return $.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return $.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b}})})(jQuery);
