jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.1",plugin:{add:function(n,j,l){var k=c.ui[n].prototype;for(var m in l){k.plugins[m]=k.plugins[m]||[];k.plugins[m].push([j,l[m]])}},call:function(m,j,n){var l=m.plugins[j];if(!l||!m.element[0].parentNode){return}for(var k=0;k<l.length;k++){if(m.options[l[k][0]]){l[k][1].apply(m.element,n)}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&16:k!==j&&k.contains(j)},hasScroll:function(k,m){if(c(k).css("overflow")=="hidden"){return false}var l=(m&&m=="left")?"scrollLeft":"scrollTop",j=false;if(k[l]>0){return true}k[l]=1;j=(k[l]>0);k[l]=0;return j},isOverAxis:function(j,l,k){return(j>l)&&(j<(l+k))},isOver:function(m,o,l,k,n,j){return c.ui.isOverAxis(m,l,n)&&c.ui.isOverAxis(o,k,j)},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(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(m,l,j){var k=j!==undefined;return(l=="role"?(k?f.call(this,m,l,"wairole:"+j):(f.apply(this,arguments)||"").replace(b,"")):(a.test(l)?(k?m.setAttributeNS(h,l.replace(a,"aaa:"),j):f.call(this,m,l.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""))}):e.call(this,j))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return i.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 j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=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)}else{j=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"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(k,j,l){return !!c.data(k,l[3])},focusable:function(j){var k=j.nodeName.toLowerCase(),l=c.attr(j,"tabindex");return(/input|select|textarea|button|object/.test(k)?!j.disabled:"a"==k||"area"==k?j.href||!isNaN(l):!isNaN(l))&&!c(j)["area"==k?"parents":"closest"](":hidden").length},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable")}});function g(k,l,m,j){function o(q){var p=c[k][l][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p)}var n=o("getter");if(j.length==1&&typeof j[0]=="string"){n=n.concat(o("getterSetter"))}return(c.inArray(m,n)!=-1)}c.widget=function(j,l){var k=j.split(".")[0];j=j.split(".")[1];c.fn[j]=function(o){var m=(typeof o=="string"),n=Array.prototype.slice.call(arguments,1);if(m&&o.substring(0,1)=="_"){return this}if(m&&g(k,j,o,n)){var p=c.data(this[0],j);return(p?p[o].apply(p,n):undefined)}return this.each(function(){var q=c.data(this,j);(!q&&!m&&c.data(this,j,new c[k][j](this,o))._init());(q&&m&&c.isFunction(q[o])&&q[o].apply(q,n))})};c[k]=c[k]||{};c[k][j]=function(n,m){var o=this;this.namespace=k;this.widgetName=j;this.widgetEventPrefix=c[k][j].eventPrefix||j;this.widgetBaseClass=k+"-"+j;this.options=c.extend({},c.widget.defaults,c[k][j].defaults,c.metadata&&c.metadata.get(n)[j],m);this.element=c(n).bind("setData."+j,function(q,p,r){if(q.target==n){return o._setData(p,r)}}).bind("getData."+j,function(q,p){if(q.target==n){return o._getData(p)}}).bind("remove",function(){return o.destroy()})};c[k][j].prototype=c.extend({},c.widget.prototype,l);c[k][j].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(j,k){var m=j,l=this;if(typeof j=="string"){if(k===undefined){return this._getData(j)}m={};m[j]=k}c.each(m,function(n,o){l._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(j,k,l){var n=this.options[j],o=(j==this.widgetEventPrefix?j:this.widgetEventPrefix+j);k=c.Event(k);k.type=o;if(k.originalEvent){for(var p=c.event.props.length,m;p;){m=c.event.props[--p];k[m]=k.originalEvent[m]}}this.element.trigger(k,l);return !(c.isFunction(n)&&n.call(this.element[0],k,l)===false||k.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k)}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});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(j){j.originalEvent=j.originalEvent||{};if(j.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(j));this._mouseDownEvent=j;var m=this,k=(j.which==1),l=(typeof this.options.cancel=="string"?c(j.target).parents().add(j.target).filter(this.options.cancel).length:false);if(!k||l||!this._mouseCapture(j)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){m.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(j)!==false);if(!this._mouseStarted){j.preventDefault();return true}}this._mouseMoveDelegate=function(n){return m._mouseMove(n)};this._mouseUpDelegate=function(n){return m._mouseUp(n)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||j.preventDefault());j.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);