/*!
 * jQuery UI 1.8.2
 *
 * 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
 */
(function(c) {
	c.ui=c.ui||{};
	if(!c.ui.version) {
		c.extend(c.ui,{version:"1.8.2",plugin:{add: function(a,b,d) {
					a=c.ui[a].prototype;
					for(var e in d) {
						a.plugins[e]=a.plugins[e]||[];
						a.plugins[e].push([b,d[e]])
					}
				},call: function(a,b,d) {
					if((b=a.plugins[b])&&a.element[0].parentNode)
						for(var e=0;e<b.length;e++)
							a.options[b[e][0]]&&b[e][1].apply(a.element,d)
				}},contains: function(a,b) {
				return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)
			},hasScroll: function(a,b) {
				if(c(a).css("overflow")==
				"hidden")
					return false;
				b=b&&b=="left"?"scrollLeft":"scrollTop";
				var d=false;
				if(a[b]>0)
					return true;
				a[b]=1;
				d=a[b]>0;
				a[b]=0;
				return d
			},isOverAxis: function(a,b,d) {
				return a>b&&a<b+d
			},isOver: function(a,b,d,e,f,g) {
				return c.ui.isOverAxis(a,d,f)&&c.ui.isOverAxis(b,e,g)
			},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,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,WINDOWS:91}});
		c.fn.extend({_focus:c.fn.focus,focus: function(a,b) {
				return typeof a==="number"?this.each( function() {
					var d=this;
					setTimeout( function() {
						c(d).focus();
						b&&b.call(d)
					},a)
				}):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 a;
				a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter( function() {
					return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))
				}).eq(0):this.parents().filter( function() {
					return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",
					1))
				}).eq(0);
				return/fixed/.test(this.css("position"))||!a.length?c(document):a
			},zIndex: function(a) {
				if(a!==undefined)
					return this.css("zIndex",a);
				if(this.length) {
					a=c(this[0]);
					for(var b;a.length&&a[0]!==document;) {
						b=a.css("position");
						if(b=="absolute"||b=="relative"||b=="fixed") {
							b=parseInt(a.css("zIndex"));
							if(!isNaN(b)&&b!=0)
								return b
						}
						a=a.parent()
					}
				}
				return 0
			}});
		c.extend(c.expr[":"],{data: function(a,b,d) {
				return!!c.data(a,d[3])
			},focusable: function(a) {
				var b=a.nodeName.toLowerCase(),d=c.attr(a,"tabindex");
				return(/input|select|textarea|button|object/.test(b)?
					!a.disabled:"a"==b||"area"==b?a.href||!isNaN(d):!isNaN(d))&&!c(a)["area"==b?"parents":"closest"](":hidden").length
			},tabbable: function(a) {
				var b=c.attr(a,"tabindex");
				return(isNaN(b)||b>=0)&&c(a).is(":focusable")
			}})
	}
})(jQuery);
;/*!
 * jQuery UI Widget 1.8.2
 *
 * 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(b) {
	var j=b.fn.remove;
	b.fn.remove= function(a,c) {
		return this.each( function() {
			if(!c)
				if(!a||b.filter(a,[this]).length)
					b("*",this).add(this).each( function() {
						b(this).triggerHandler("remove")
					});
			return j.call(b(this),a,c)
		})
	};
	b.widget= function(a,c,d) {
		var e=a.split(".")[0],f;
		a=a.split(".")[1];
		f=e+"-"+a;
		if(!d) {
			d=c;
			c=b.Widget
		}
		b.expr[":"][f]= function(h) {
			return!!b.data(h,a)
		};
		b[e]=b[e]||{};
		b[e][a]= function(h,g) {
			arguments.length&&this._createWidget(h,g)
		};
		c=new c;
		c.options=b.extend({},c.options);
		b[e][a].prototype=
		b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);
		b.widget.bridge(a,b[e][a])
	};
	b.widget.bridge= function(a,c) {
		b.fn[a]= function(d) {
			var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;
			d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)):d;
			if(e&&d.substring(0,1)==="_")
				return h;e?this.each( function() {
				var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;
				if(i!==g&&i!==undefined) {
					h=i;
					return false
				}
			}):this.each( function() {
				var g=
				b.data(this,a);
				if(g) {
					d&&g.option(d);
					g._init()
				} else
					b.data(this,a,new c(d,this))
			});
			return h
		}
	};
	b.Widget= function(a,c) {
		arguments.length&&this._createWidget(a,c)
	};
	b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget: function(a,c) {
			this.element=b(c).data(this.widgetName,this);
			this.options=b.extend(true,{},this.options,b.metadata&&b.metadata.get(c)[this.widgetName],a);
			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(a,c) {
			var d=a,e=this;
			if(arguments.length===0)
				return b.extend({},e.options);
			if(typeof a==="string") {
				if(c===undefined)
					return this.options[a];
				d={};
				d[a]=c
			}
			b.each(d, function(f,
			h) {
				e._setOption(f,h)
			});
			return e
		},_setOption: function(a,c) {
			this.options[a]=c;
			if(a==="disabled")
				this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",c);
			return this
		},enable: function() {
			return this._setOption("disabled",false)
		},disable: function() {
			return this._setOption("disabled",true)
		},_trigger: function(a,c,d) {
			var e=this.options[a];
			c=b.Event(c);
			c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();
			d=d||{};
			if(c.originalEvent) {
				a=
				b.event.props.length;
				for(var f;a;) {
					f=b.event.props[--a];
					c[f]=c.originalEvent[f]
				}
			}
			this.element.trigger(c,d);
			return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())
		}}
})(jQuery);
;/*
 * jQuery UI Position 1.8.2
 *
 * 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/Position
 */
(function(c) {
	c.ui=c.ui||{};
	var m=/left|center|right/,n=/top|center|bottom/,p=c.fn.position,q=c.fn.offset;
	c.fn.position= function(a) {
		if(!a||!a.of)
			return p.apply(this,arguments);
		a=c.extend({},a);
		var b=c(a.of),d=(a.collision||"flip").split(" "),e=a.offset?a.offset.split(" "):[0,0],g,h,i;
		if(a.of.nodeType===9) {
			g=b.width();
			h=b.height();
			i={top:0,left:0}
		} else if(a.of.scrollTo&&a.of.document) {
			g=b.width();
			h=b.height();
			i={top:b.scrollTop(),left:b.scrollLeft()}
		} else if(a.of.preventDefault) {
			a.at="left top";
			g=h=
			0;
			i={top:a.of.pageY,left:a.of.pageX}
		} else {
			g=b.outerWidth();
			h=b.outerHeight();
			i=b.offset()
		}
		c.each(["my","at"], function() {
			var f=(a[this]||"").split(" ");
			if(f.length===1)
				f=m.test(f[0])?f.concat(["center"]):n.test(f[0])?["center"].concat(f):["center","center"];
			f[0]=m.test(f[0])?f[0]:"center";
			f[1]=n.test(f[1])?f[1]:"center";
			a[this]=f
		});
		if(d.length===1)
			d[1]=d[0];
		e[0]=parseInt(e[0],10)||0;
		if(e.length===1)
			e[1]=e[0];
		e[1]=parseInt(e[1],10)||0;
		if(a.at[0]==="right")
			i.left+=g;
		else if(a.at[0]==="center")
			i.left+=
			g/2;
		if(a.at[1]==="bottom")
			i.top+=h;
		else if(a.at[1]==="center")
			i.top+=h/2;
		i.left+=e[0];
		i.top+=e[1];
		return this.each( function() {
			var f=c(this),k=f.outerWidth(),l=f.outerHeight(),j=c.extend({},i);
			if(a.my[0]==="right")
				j.left-=k;
			else if(a.my[0]==="center")
				j.left-=k/2;
			if(a.my[1]==="bottom")
				j.top-=l;
			else if(a.my[1]==="center")
				j.top-=l/2;
			j.left=parseInt(j.left);
			j.top=parseInt(j.top);
			c.each(["left","top"], function(o,r) {
				c.ui.position[d[o]]&&c.ui.position[d[o]][r](j,{targetWidth:g,targetHeight:h,elemWidth:k,
					elemHeight:l,offset:e,my:a.my,at:a.at})
			});
			c.fn.bgiframe&&f.bgiframe();
			f.offset(c.extend(j,{using:a.using}))
		})
	};
	c.ui.position={fit:{left: function(a,b) {
				var d=c(window);
				b=a.left+b.elemWidth-d.width()-d.scrollLeft();
				a.left=b>0?a.left-b:Math.max(0,a.left)
			},top: function(a,b) {
				var d=c(window);
				b=a.top+b.elemHeight-d.height()-d.scrollTop();
				a.top=b>0?a.top-b:Math.max(0,a.top)
			}},flip:{left: function(a,b) {
				if(b.at[0]!=="center") {
					var d=c(window);
					d=a.left+b.elemWidth-d.width()-d.scrollLeft();
					var e=b.my[0]==="left"?
					-b.elemWidth:b.my[0]==="right"?b.elemWidth:0,g=-2*b.offset[0];
					a.left+=a.left<0?e+b.targetWidth+g:d>0?e-b.targetWidth+g:0
				}
			},top: function(a,b) {
				if(b.at[1]!=="center") {
					var d=c(window);
					d=a.top+b.elemHeight-d.height()-d.scrollTop();
					var e=b.my[1]==="top"?-b.elemHeight:b.my[1]==="bottom"?b.elemHeight:0,g=b.at[1]==="top"?b.targetHeight:-b.targetHeight,h=-2*b.offset[1];
					a.top+=a.top<0?e+b.targetHeight+h:d>0?e+g+h:0
				}
			}}};
	if(!c.offset.setOffset) {
		c.offset.setOffset= function(a,b) {
			if(/static/.test(c.curCSS(a,"position")))
				a.style.position=
				"relative";
			var d=c(a),e=d.offset(),g=parseInt(c.curCSS(a,"top",true),10)||0,h=parseInt(c.curCSS(a,"left",true),10)||0;
			e={top:b.top-e.top+g,left:b.left-e.left+h};"using"in b?b.using.call(a,e):d.css(e)
		};
		c.fn.offset= function(a) {
			var b=this[0];
			if(!b||!b.ownerDocument)
				return null;
			if(a)
				return this.each( function() {
					c.offset.setOffset(this,a)
				});
			return q.call(this)
		}
	}
})(jQuery);
;/*
 * jQuery UI Accordion 1.8.2
 *
 * 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/Accordion
 *
 * Depends:
 *	jquery.ui.core.js
 *	jquery.ui.widget.js
 */
(function(c) {
	c.widget("ui.accordion",{options:{active:0,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()
			}},_create: function() {
			var a=this.options,b=this;
			this.running=0;
			this.element.addClass("ui-accordion ui-widget ui-helper-reset");
			this.element.children("li").addClass("ui-accordion-li-fix");
			this.headers=this.element.find(a.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion", function() {
				c(this).addClass("ui-state-hover")
			}).bind("mouseleave.accordion", function() {
				c(this).removeClass("ui-state-hover")
			}).bind("focus.accordion", function() {
				c(this).addClass("ui-state-focus")
			}).bind("blur.accordion", function() {
				c(this).removeClass("ui-state-focus")
			});
			this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
			if(a.navigation) {
				var d=this.element.find("a").filter(a.navigationFilter);
				if(d.length) {
					var f=d.closest(".ui-accordion-header");
					this.active=f.length?f:d.closest(".ui-accordion-content").prev()
				}
			}
			this.active=this._findActive(this.active||a.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");
			this._createIcons();
			this.resize();
			this.element.attr("role","tablist");
			this.headers.attr("role",
			"tab").bind("keydown", function(g) {
				return b._keydown(g)
			}).next().attr("role","tabpanel");
			this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();this.active.length?this.active.attr("aria-expanded","true").attr("tabIndex","0"):this.headers.eq(0).attr("tabIndex","0");
			c.browser.safari||this.headers.find("a").attr("tabIndex","-1");
			a.event&&this.headers.bind(a.event+".accordion", function(g) {
				b._clickHandler.call(b,g,this);
				g.preventDefault()
			})
		},_createIcons: function() {
			var a=
			this.options;
			if(a.icons) {
				c("<span/>").addClass("ui-icon "+a.icons.header).prependTo(this.headers);
				this.active.find(".ui-icon").toggleClass(a.icons.header).toggleClass(a.icons.headerSelected);
				this.element.addClass("ui-accordion-icons")
			}
		},_destroyIcons: function() {
			this.headers.children(".ui-icon").remove();
			this.element.removeClass("ui-accordion-icons")
		},destroy: function() {
			var a=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._destroyIcons();
			var b=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(a.autoHeight||a.fillHeight)
				b.css("height",
				"");
			return this
		},_setOption: function(a,b) {
			c.Widget.prototype._setOption.apply(this,arguments);
			a=="active"&&this.activate(b);
			if(a=="icons") {
				this._destroyIcons();
				b&&this._createIcons()
			}
		},_keydown: function(a) {
			var b=c.ui.keyCode;
			if(!(this.options.disabled||a.altKey||a.ctrlKey)) {
				var d=this.headers.length,f=this.headers.index(a.target),g=false;
				switch(a.keyCode) {
					case b.RIGHT:
					case b.DOWN:
						g=this.headers[(f+1)%d];
						break;
					case b.LEFT:
					case b.UP:
						g=this.headers[(f-1+d)%d];
						break;
					case b.SPACE:
					case b.ENTER:
						this._clickHandler({target:a.target},
						a.target);
						a.preventDefault()
				}
				if(g) {
					c(a.target).attr("tabIndex","-1");
					c(g).attr("tabIndex","0");
					g.focus();
					return false
				}
				return true
			}
		},resize: function() {
			var a=this.options,b;
			if(a.fillSpace) {
				if(c.browser.msie) {
					var d=this.element.parent().css("overflow");
					this.element.parent().css("overflow","hidden")
				}
				b=this.element.parent().height();
				c.browser.msie&&this.element.parent().css("overflow",d);
				this.headers.each( function() {
					b-=c(this).outerHeight(true)
				});
				this.headers.next().each( function() {
					c(this).height(Math.max(0,
					b-c(this).innerHeight()+c(this).height()))
				}).css("overflow","auto")
			} else if(a.autoHeight) {
				b=0;
				this.headers.next().each( function() {
					b=Math.max(b,c(this).height())
				}).height(b)
			}
			return this
		},activate: function(a) {
			this.options.active=a;
			a=this._findActive(a)[0];
			this._clickHandler({target:a},a);
			return this
		},_findActive: function(a) {
			return a?typeof a=="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?c([]):this.headers.filter(":eq(0)")
		},_clickHandler: function(a,b) {
			var d=
			this.options;
			if(!d.disabled)
				if(a.target) {
					a=c(a.currentTarget||b);
					b=a[0]==this.active[0];
					d.active=d.collapsible&&b?false:c(".ui-accordion-header",this.element).index(a);
					if(!(this.running||!d.collapsible&&b)) {
						this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);
						if(!b) {
							a.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);
							a.next().addClass("ui-accordion-content-active")
						}
						e=a.next();
						f=this.active.next();
						g={options:d,newHeader:b&&d.collapsible?c([]):a,oldHeader:this.active,newContent:b&&d.collapsible?c([]):e,oldContent:f};
						d=this.headers.index(this.active[0])>this.headers.index(a[0]);
						this.active=b?c([]):a;
						this._toggle(e,f,g,b,d)
					}
				} else if(d.collapsible) {
					this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);
					this.active.next().addClass("ui-accordion-content-active");
					var f=this.active.next(),g={options:d,newHeader:c([]),oldHeader:d.active,newContent:c([]),oldContent:f},e=this.active=c([]);
					this._toggle(e,f,g)
				}
		},_toggle: function(a,b,d,f,g) {
			var e=this.options,k=this;
			this.toShow=a;
			this.toHide=b;
			this.data=d;
			var i= function() {
				if(k)
					return k._completed.apply(k,arguments)
			};
			this._trigger("changestart",null,this.data);
			this.running=b.size()===0?a.size():b.size();
			if(e.animated) {
				d={};
				d=e.collapsible&&f?{toShow:c([]),
					toHide:b,complete:i,down:g,autoHeight:e.autoHeight||e.fillSpace}:{toShow:a,toHide:b,complete:i,down:g,autoHeight:e.autoHeight||e.fillSpace};
				if(!e.proxied)
					e.proxied=e.animated;
				if(!e.proxiedDuration)
					e.proxiedDuration=e.duration;
				e.animated=c.isFunction(e.proxied)?e.proxied(d):e.proxied;
				e.duration=c.isFunction(e.proxiedDuration)?e.proxiedDuration(d):e.proxiedDuration;
				f=c.ui.accordion.animations;
				var h=e.duration,j=e.animated;
				if(j&&!f[j]&&!c.easing[j])
					j="slide";
				f[j]||(f[j]= function(l) {
						this.slide(l,{easing:j,
							duration:h||700})
					});
				f[j](d)
			} else {
				if(e.collapsible&&f)
					a.toggle();
				else {
					b.hide();
					a.show()
				}
				i(true)
			}
			b.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();
			a.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()
		},_completed: function(a) {
			var b=this.options;
			this.running=a?0:--this.running;
			if(!this.running) {
				b.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});
				this.toHide.removeClass("ui-accordion-content-active");
				this._trigger("change",null,this.data)
			}
		}});
	c.extend(c.ui.accordion,
	{version:"1.8.2",animations:{slide: function(a,b) {
				a=c.extend({easing:"swing",duration:300},a,b);
				if(a.toHide.size())
					if(a.toShow.size()) {
						var d=a.toShow.css("overflow"),f=0,g={},e={},k;
						b=a.toShow;
						k=b[0].style.width;
						b.width(parseInt(b.parent().width(),10)-parseInt(b.css("paddingLeft"),10)-parseInt(b.css("paddingRight"),10)-(parseInt(b.css("borderLeftWidth"),10)||0)-(parseInt(b.css("borderRightWidth"),10)||0));
						c.each(["height","paddingTop","paddingBottom"], function(i,h) {
							e[h]="hide";
							i=(""+c.css(a.toShow[0],
								h)).match(/^([\d+-.]+)(.*)$/);
							g[h]={value:i[1],unit:i[2]||"px"}
						});
						a.toShow.css({height:0,overflow:"hidden"}).show();
						a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(e,{step: function(i,h) {
								if(h.prop=="height")
									f=h.end-h.start===0?0:(h.now-h.start)/(h.end-h.start);
								a.toShow[0].style[h.prop]=f*g[h.prop].value+g[h.prop].unit
							},duration:a.duration,easing:a.easing,complete: function() {
								a.autoHeight||a.toShow.css("height","");
								a.toShow.css("width",k);
								a.toShow.css({overflow:d});
								a.complete()
							}})
					} else
						a.toHide.animate({height:"hide"},
						a);
				else
					a.toShow.animate({height:"show"},a)
			},bounceslide: function(a) {
				this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})
			}}})
})(jQuery);
;/*
 * jQuery UI Autocomplete 1.8.2
 *
 * 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/Autocomplete
 *
 * Depends:
 *	jquery.ui.core.js
 *	jquery.ui.widget.js
 *	jquery.ui.position.js
 */
(function(e) {
	e.widget("ui.autocomplete",{options:{minLength:1,delay:300},_create: function() {
			var a=this,c=this.element[0].ownerDocument;
			this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete", function(d) {
				var b=e.ui.keyCode;
				switch(d.keyCode) {
					case b.PAGE_UP:
						a._move("previousPage",d);
						break;
					case b.PAGE_DOWN:
						a._move("nextPage",d);
						break;
					case b.UP:
						a._move("previous",d);
						d.preventDefault();
						break;
					case b.DOWN:
						a._move("next",d);
						d.preventDefault();
						break;
					case b.ENTER:
					case b.NUMPAD_ENTER:
						a.menu.active&&d.preventDefault();
					case b.TAB:
						if(!a.menu.active)
							return;
						a.menu.select(d);
						break;
					case b.ESCAPE:
						a.element.val(a.term);
						a.close(d);
						break;
					case b.LEFT:
					case b.RIGHT:
					case b.SHIFT:
					case b.CONTROL:
					case b.ALT:
					case b.COMMAND:
					case b.COMMAND_RIGHT:
					case b.INSERT:
					case b.CAPS_LOCK:
					case b.END:
					case b.HOME:
						break;
					default:
						clearTimeout(a.searching);
						a.searching=setTimeout( function() {
							a.search(null,d)
						},a.options.delay);
						break
				}
			}).bind("focus.autocomplete", function() {
				a.selectedItem=null;
				a.previous=a.element.val()
			}).bind("blur.autocomplete", function(d) {
				clearTimeout(a.searching);
				a.closing=setTimeout( function() {
					a.close(d);
					a._change(d)
				},150)
			});
			this._initSource();
			this.response= function() {
				return a._response.apply(a,arguments)
			};
			this.menu=e("<ul></ul>").addClass("ui-autocomplete").appendTo("body",c).mousedown( function() {
				setTimeout( function() {
					clearTimeout(a.closing)
				},13)
			}).menu({focus: function(d,b) {
					b=b.item.data("item.autocomplete");
					false!==a._trigger("focus",null,{item:b})&&/^key/.test(d.originalEvent.type)&&a.element.val(b.value)
				},selected: function(d,b) {
					b=b.item.data("item.autocomplete");
					false!==a._trigger("select",d,{item:b})&&a.element.val(b.value);
					a.close(d);
					d=a.previous;
					if(a.element[0]!==c.activeElement) {
						a.element.focus();
						a.previous=d
					}
					a.selectedItem=b
				},blur: function() {
					a.menu.element.is(":visible")&&a.element.val(a.term)
				}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");
			e.fn.bgiframe&&this.menu.element.bgiframe()
		},
		destroy: function() {
			this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");
			this.menu.element.remove();
			e.Widget.prototype.destroy.call(this)
		},_setOption: function(a) {
			e.Widget.prototype._setOption.apply(this,arguments);
			a==="source"&&this._initSource()
		},_initSource: function() {
			var a,c;
			if(e.isArray(this.options.source)) {
				a=this.options.source;
				this.source= function(d,b) {
					b(e.ui.autocomplete.filter(a,d.term))
				}
			} else if(typeof this.options.source===
			"string") {
				c=this.options.source;
				this.source= function(d,b) {
					e.getJSON(c,d,b)
				}
			} else
				this.source=this.options.source
		},search: function(a,c) {
			a=a!=null?a:this.element.val();
			if(a.length<this.options.minLength)
				return this.close(c);
			clearTimeout(this.closing);
			if(this._trigger("search")!==false)
				return this._search(a)
		},_search: function(a) {
			this.term=this.element.addClass("ui-autocomplete-loading").val();
			this.source({term:a},this.response)
		},_response: function(a) {
			if(a.length) {
				a=this._normalize(a);
				this._suggest(a);
				this._trigger("open")
			} else
				this.close();
			this.element.removeClass("ui-autocomplete-loading")
		},close: function(a) {
			clearTimeout(this.closing);
			if(this.menu.element.is(":visible")) {
				this._trigger("close",a);
				this.menu.element.hide();
				this.menu.deactivate()
			}
		},_change: function(a) {
			this.previous!==this.element.val()&&this._trigger("change",a,{item:this.selectedItem})
		},_normalize: function(a) {
			if(a.length&&a[0].label&&a[0].value)
				return a;
			return e.map(a, function(c) {
				if(typeof c==="string")
					return{label:c,value:c};
				return e.extend({label:c.label||
					c.value,value:c.value||c.label},c)
			})
		},_suggest: function(a) {
			var c=this.menu.element.empty().zIndex(this.element.zIndex()+1),d;
			this._renderMenu(c,a);
			this.menu.deactivate();
			this.menu.refresh();
			this.menu.element.show().position({my:"left top",at:"left bottom",of:this.element,collision:"none"});
			a=c.width("").width();
			d=this.element.width();
			c.width(Math.max(a,d))
		},_renderMenu: function(a,c) {
			var d=this;
			e.each(c, function(b,f) {
				d._renderItem(a,f)
			})
		},_renderItem: function(a,c) {
			return e("<li></li>").data("item.autocomplete",
			c).append("<a>"+c.label+"</a>").appendTo(a)
		},_move: function(a,c) {
			if(this.menu.element.is(":visible"))
				if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)) {
					this.element.val(this.term);
					this.menu.deactivate()
				} else
					this.menu[a](c);
			else
				this.search(null,c)
		},widget: function() {
			return this.menu.element
		}});
	e.extend(e.ui.autocomplete,{escapeRegex: function(a) {
			return a.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")
		},filter: function(a,c) {
			var d=new RegExp(e.ui.autocomplete.escapeRegex(c),
			"i");
			return e.grep(a, function(b) {
				return d.test(b.label||b.value||b)
			})
		}})
})(jQuery);
(function(e) {
	e.widget("ui.menu",{_create: function() {
			var a=this;
			this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click( function(c) {
				if(e(c.target).closest(".ui-menu-item a").length) {
					c.preventDefault();
					a.select(c)
				}
			});
			this.refresh()
		},refresh: function() {
			var a=this;
			this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
			-1).mouseenter( function(c) {
				a.activate(c,e(this).parent())
			}).mouseleave( function() {
				a.deactivate()
			})
		},activate: function(a,c) {
			this.deactivate();
			if(this.hasScroll()) {
				var d=c.offset().top-this.element.offset().top,b=this.element.attr("scrollTop"),f=this.element.height();
				if(d<0)
					this.element.attr("scrollTop",b+d);
				else
					d>f&&this.element.attr("scrollTop",b+d-f+c.height())
			}
			this.active=c.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();
			this._trigger("focus",a,{item:c})
		},deactivate: function() {
			if(this.active) {
				this.active.children("a").removeClass("ui-state-hover").removeAttr("id");
				this._trigger("blur");
				this.active=null
			}
		},next: function(a) {
			this.move("next",".ui-menu-item:first",a)
		},previous: function(a) {
			this.move("prev",".ui-menu-item:last",a)
		},first: function() {
			return this.active&&!this.active.prev().length
		},last: function() {
			return this.active&&!this.active.next().length
		},move: function(a,c,d) {
			if(this.active) {
				a=this.active[a+"All"](".ui-menu-item").eq(0);a.length?this.activate(d,a):this.activate(d,this.element.children(c))
			} else
				this.activate(d,this.element.children(c))
		},nextPage: function(a) {
			if(this.hasScroll())
				if(!this.active||
				this.last())
					this.activate(a,this.element.children(":first"));
				else {
					var c=this.active.offset().top,d=this.element.height(),b=this.element.children("li").filter( function() {
						var f=e(this).offset().top-c-d+e(this).height();
						return f<10&&f>-10
					});
					b.length||(b=this.element.children(":last"));
					this.activate(a,b)
				}
			else
				this.activate(a,this.element.children(!this.active||this.last()?":first":":last"))
		},previousPage: function(a) {
			if(this.hasScroll())
				if(!this.active||this.first())
					this.activate(a,this.element.children(":last"));
				else {
					var c=this.active.offset().top,d=this.element.height();
					result=this.element.children("li").filter( function() {
						var b=e(this).offset().top-c+d-e(this).height();
						return b<10&&b>-10
					});
					result.length||(result=this.element.children(":first"));
					this.activate(a,result)
				}
			else
				this.activate(a,this.element.children(!this.active||this.first()?":last":":first"))
		},hasScroll: function() {
			return this.element.height()<this.element.attr("scrollHeight")
		},select: function(a) {
			this._trigger("selected",a,{item:this.active})
		}})
})(jQuery);
;
