jQuery.ui||(function($){
var _1=$.fn.remove,_2=$.browser.mozilla&&(parseFloat($.browser.version)<1.9);
$.ui={version:"1.7.2",plugin:{add:function(_3,_4,_5){
var _6=$.ui[_3].prototype;
for(var i in _5){
_6.plugins[i]=_6.plugins[i]||[];
_6.plugins[i].push([_4,_5[i]]);
}
},call:function(_7,_8,_9){
var _a=_7.plugins[_8];
if(!_a||!_7.element[0].parentNode){
return;
}
for(var i=0;i<_a.length;i++){
if(_7.options[_a[i][0]]){
_a[i][1].apply(_7.element,_9);
}
}
}},contains:function(a,b){
return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b);
},hasScroll:function(el,a){
if($(el).css("overflow")=="hidden"){
return false;
}
var _b=(a&&a=="left")?"scrollLeft":"scrollTop",_c=false;
if(el[_b]>0){
return true;
}
el[_b]=1;
_c=(el[_b]>0);
el[_b]=0;
return _c;
},isOverAxis:function(x,_d,_e){
return (x>_d)&&(x<(_d+_e));
},isOver:function(y,x,_f,_10,_11,_12){
return $.ui.isOverAxis(y,_f,_11)&&$.ui.isOverAxis(x,_10,_12);
},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(_2){
var _13=$.attr,_14=$.fn.removeAttr,_15="http://www.w3.org/2005/07/aaa",_16=/^aria-/,_17=/^wairole:/;
$.attr=function(_18,_19,_1a){
var set=_1a!==undefined;
return (_19=="role"?(set?_13.call(this,_18,_19,"wairole:"+_1a):(_13.apply(this,arguments)||"").replace(_17,"")):(_16.test(_19)?(set?_18.setAttributeNS(_15,_19.replace(_16,"aaa:"),_1a):_13.call(this,_18,_19.replace(_16,"aaa:"))):_13.apply(this,arguments)));
};
$.fn.removeAttr=function(_1b){
return (_16.test(_1b)?this.each(function(){
this.removeAttributeNS(_15,_1b.replace(_16,""));
}):_14.call(this,_1b));
};
}
$.fn.extend({remove:function(){
$("*",this).add(this).each(function(){
$(this).triggerHandler("remove");
});
return _1.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 _1c;
if(($.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){
_1c=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{
_1c=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"))||!_1c.length?$(document):_1c;
}});
$.extend($.expr[":"],{data:function(_1d,i,_1e){
return !!$.data(_1d,_1e[3]);
},focusable:function(_1f){
var _20=_1f.nodeName.toLowerCase(),_21=$.attr(_1f,"tabindex");
return (/input|select|textarea|button|object/.test(_20)?!_1f.disabled:"a"==_20||"area"==_20?_1f.href||!isNaN(_21):!isNaN(_21))&&!$(_1f)["area"==_20?"parents":"closest"](":hidden").length;
},tabbable:function(_22){
var _23=$.attr(_22,"tabindex");
return (isNaN(_23)||_23>=0)&&$(_22).is(":focusable");
}});
function _24(_25,_26,_27,_28){
function _29(_2a){
var _2b=$[_25][_26][_2a]||[];
return (typeof _2b=="string"?_2b.split(/,?\s+/):_2b);
};
var _2c=_29("getter");
if(_28.length==1&&typeof _28[0]=="string"){
_2c=_2c.concat(_29("getterSetter"));
}
return ($.inArray(_27,_2c)!=-1);
};
$.widget=function(_2d,_2e){
var _2f=_2d.split(".")[0];
_2d=_2d.split(".")[1];
$.fn[_2d]=function(_30){
var _31=(typeof _30=="string"),_32=Array.prototype.slice.call(arguments,1);
if(_31&&_30.substring(0,1)=="_"){
return this;
}
if(_31&&_24(_2f,_2d,_30,_32)){
var _33=$.data(this[0],_2d);
return (_33?_33[_30].apply(_33,_32):undefined);
}
return this.each(function(){
var _34=$.data(this,_2d);
(!_34&&!_31&&$.data(this,_2d,new $[_2f][_2d](this,_30))._init());
(_34&&_31&&$.isFunction(_34[_30])&&_34[_30].apply(_34,_32));
});
};
$[_2f]=$[_2f]||{};
$[_2f][_2d]=function(_35,_36){
var _37=this;
this.namespace=_2f;
this.widgetName=_2d;
this.widgetEventPrefix=$[_2f][_2d].eventPrefix||_2d;
this.widgetBaseClass=_2f+"-"+_2d;
this.options=$.extend({},$.widget.defaults,$[_2f][_2d].defaults,$.metadata&&$.metadata.get(_35)[_2d],_36);
this.element=$(_35).bind("setData."+_2d,function(_38,key,_39){
if(_38.target==_35){
return _37._setData(key,_39);
}
}).bind("getData."+_2d,function(_3a,key){
if(_3a.target==_35){
return _37._getData(key);
}
}).bind("remove",function(){
return _37.destroy();
});
};
$[_2f][_2d].prototype=$.extend({},$.widget.prototype,_2e);
$[_2f][_2d].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(key,_3b){
var _3c=key,_3d=this;
if(typeof key=="string"){
if(_3b===undefined){
return this._getData(key);
}
_3c={};
_3c[key]=_3b;
}
$.each(_3c,function(key,_3e){
_3d._setData(key,_3e);
});
},_getData:function(key){
return this.options[key];
},_setData:function(key,_3f){
this.options[key]=_3f;
if(key=="disabled"){
this.element[_3f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled"+" "+this.namespace+"-state-disabled").attr("aria-disabled",_3f);
}
},enable:function(){
this._setData("disabled",false);
},disable:function(){
this._setData("disabled",true);
},_trigger:function(_40,_41,_42){
var _43=this.options[_40],_44=(_40==this.widgetEventPrefix?_40:this.widgetEventPrefix+_40);
_41=$.Event(_41);
_41.type=_44;
if(_41.originalEvent){
for(var i=$.event.props.length,_45;i;){
_45=$.event.props[--i];
_41[_45]=_41.originalEvent[_45];
}
}
this.element.trigger(_41,_42);
return !($.isFunction(_43)&&_43.call(this.element[0],_41,_42)===false||_41.isDefaultPrevented());
}};
$.widget.defaults={disabled:false};
$.ui.mouse={_mouseInit:function(){
var _46=this;
this.element.bind("mousedown."+this.widgetName,function(_47){
return _46._mouseDown(_47);
}).bind("click."+this.widgetName,function(_48){
if(_46._preventClickEvent){
_46._preventClickEvent=false;
_48.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(_49){
_49.originalEvent=_49.originalEvent||{};
if(_49.originalEvent.mouseHandled){
return;
}
(this._mouseStarted&&this._mouseUp(_49));
this._mouseDownEvent=_49;
var _4a=this,_4b=(_49.which==1),_4c=(typeof this.options.cancel=="string"?$(_49.target).parents().add(_49.target).filter(this.options.cancel).length:false);
if(!_4b||_4c||!this._mouseCapture(_49)){
return true;
}
this.mouseDelayMet=!this.options.delay;
if(!this.mouseDelayMet){
this._mouseDelayTimer=setTimeout(function(){
_4a.mouseDelayMet=true;
},this.options.delay);
}
if(this._mouseDistanceMet(_49)&&this._mouseDelayMet(_49)){
this._mouseStarted=(this._mouseStart(_49)!==false);
if(!this._mouseStarted){
_49.preventDefault();
return true;
}
}
this._mouseMoveDelegate=function(_4d){
return _4a._mouseMove(_4d);
};
this._mouseUpDelegate=function(_4e){
return _4a._mouseUp(_4e);
};
$(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);
($.browser.safari||_49.preventDefault());
_49.originalEvent.mouseHandled=true;
return true;
},_mouseMove:function(_4f){
if($.browser.msie&&!_4f.button){
return this._mouseUp(_4f);
}
if(this._mouseStarted){
this._mouseDrag(_4f);
return _4f.preventDefault();
}
if(this._mouseDistanceMet(_4f)&&this._mouseDelayMet(_4f)){
this._mouseStarted=(this._mouseStart(this._mouseDownEvent,_4f)!==false);
(this._mouseStarted?this._mouseDrag(_4f):this._mouseUp(_4f));
}
return !this._mouseStarted;
},_mouseUp:function(_50){
$(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);
if(this._mouseStarted){
this._mouseStarted=false;
this._preventClickEvent=(_50.target==this._mouseDownEvent.target);
this._mouseStop(_50);
}
return false;
},_mouseDistanceMet:function(_51){
return (Math.max(Math.abs(this._mouseDownEvent.pageX-_51.pageX),Math.abs(this._mouseDownEvent.pageY-_51.pageY))>=this.options.distance);
},_mouseDelayMet:function(_52){
return this.mouseDelayMet;
},_mouseStart:function(_53){
},_mouseDrag:function(_54){
},_mouseStop:function(_55){
},_mouseCapture:function(_56){
return true;
}};
$.ui.mouse.defaults={cancel:null,distance:1,delay:0};
})(jQuery);

