text: /*!
   * jQuery UI 1.9m4
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI
   */
  (function(b,c){function d(g){return!b(g).parents().andSelf().filter(function(){return b.curCSS(this,"visibility")==="hidden"||b.expr.filters.hidden(this)}).length}b.ui=b.ui||{};if(!b.ui.version){b.extend(b.ui,{version:"1.9m4",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}});b.fn.extend({_focus:b.fn.focus,focus:function(g,f){return typeof g==="number"?this.each(function(){var a=this;setTimeout(function(){b(a).focus();f&&f.call(a)},g)}):this._focus.apply(this,arguments)},scrollParent:function(){var g;g=b.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(b.curCSS(this,
  "position",1))&&/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!g.length?b(document):g},zIndex:function(g){if(g!==c)return this.css("zIndex",g);if(this.length){g=b(this[0]);for(var f;g.length&&g[0]!==document;){f=g.css("position");
  if(f==="absolute"||f==="relative"||f==="fixed"){f=parseInt(g.css("zIndex"),10);if(!isNaN(f)&&f!==0)return f}g=g.parent()}}return 0},disableSelection:function(){return this.bind((b.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(g){g.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});b.each(["Width","Height"],function(g,f){function a(j,n,q,l){b.each(e,function(){n-=parseFloat(b.curCSS(j,"padding"+this,true))||0;if(q)n-=parseFloat(b.curCSS(j,
  "border"+this+"Width",true))||0;if(l)n-=parseFloat(b.curCSS(j,"margin"+this,true))||0});return n}var e=f==="Width"?["Left","Right"]:["Top","Bottom"],h=f.toLowerCase(),i={innerWidth:b.fn.innerWidth,innerHeight:b.fn.innerHeight,outerWidth:b.fn.outerWidth,outerHeight:b.fn.outerHeight};b.fn["inner"+f]=function(j){if(j===c)return i["inner"+f].call(this);return this.each(function(){b(this).css(h,a(this,j)+"px")})};b.fn["outer"+f]=function(j,n){if(typeof j!=="number")return i["outer"+f].call(this,j);return this.each(function(){b(this).css(h,
  a(this,j,true,n)+"px")})}});b.extend(b.expr[":"],{data:function(g,f,a){return!!b.data(g,a[3])},focusable:function(g){var f=g.nodeName.toLowerCase(),a=b.attr(g,"tabindex");if("area"===f){f=g.parentNode;a=f.name;if(!g.href||!a||f.nodeName.toLowerCase()!=="map")return false;g=b("img[usemap=#"+a+"]")[0];return!!g&&d(g)}return(/input|select|textarea|button|object/.test(f)?!g.disabled:"a"==f?g.href||!isNaN(a):!isNaN(a))&&d(g)},tabbable:function(g){var f=b.attr(g,"tabindex");return(isNaN(f)||f>=0)&&b(g).is(":focusable")}});
  b(function(){var g=document.body,f=g.appendChild(f=document.createElement("div"));b.extend(f.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});b.support.minHeight=f.offsetHeight===100;b.support.selectstart="onselectstart"in f;g.removeChild(f).style.display="none"});b.extend(b.ui,{plugin:{add:function(g,f,a){g=b.ui[g].prototype;for(var e in a){g.plugins[e]=g.plugins[e]||[];g.plugins[e].push([f,a[e]])}},call:function(g,f,a){if((f=g.plugins[f])&&g.element[0].parentNode)for(var e=0;e<f.length;e++)g.options[f[e][0]]&&
  f[e][1].apply(g.element,a)}},contains:b.contains,hasScroll:function(g,f){if(b(g).css("overflow")==="hidden")return false;f=f&&f==="left"?"scrollLeft":"scrollTop";var a=false;if(g[f]>0)return true;g[f]=1;a=g[f]>0;g[f]=0;return a},isOverAxis:function(g,f,a){return g>f&&g<f+a},isOver:function(g,f,a,e,h,i){return b.ui.isOverAxis(g,a,h)&&b.ui.isOverAxis(f,e,i)}})}})(jQuery);
  (function(b,c){var d=Array.prototype.slice,g=b.cleanData;b.cleanData=function(f){for(var a=0,e;(e=f[a])!=null;a++)b(e).triggerHandler("remove");g(f)};b.widget=function(f,a,e){var h=f.split(".")[0],i;f=f.split(".")[1];i=h+"-"+f;if(!e){e=a;a=b.Widget}b.expr[":"][i]=function(n){return!!b.data(n,f)};b[h]=b[h]||{};b[h][f]=b.extend(function(n,q){if(!this._createWidget)return new b[h][f](n,q);arguments.length&&this._createWidget(n,q)},b[h][f]);var j=new a;j.options=b.extend(true,{},j.options);b.each(e,function(n,
  q){if(b.isFunction(q))e[n]=function(){var l=function(m){return a.prototype[m].apply(this,d.call(arguments,1))},k=function(m,p){return a.prototype[m].apply(this,p)};return function(){var m=this._super,p=this._superApply,o;this._super=l;this._superApply=k;o=q.apply(this,arguments);this._super=m;this._superApply=p;return o}}()});b[h][f].prototype=b.extend(true,j,{namespace:h,widgetName:f,widgetEventPrefix:f,widgetBaseClass:i},e);b.widget.bridge(f,b[h][f])};b.widget.bridge=function(f,a){b.fn[f]=function(e){var h=
  typeof e==="string",i=d.call(arguments,1),j=this;e=!h&&i.length?b.extend.apply(null,[true,e].concat(i)):e;h?this.each(function(){var n=b.data(this,f);if(!n)return b.error("cannot call methods on "+f+" prior to initialization; attempted to call method '"+e+"'");if(!b.isFunction(n[e])||e.charAt(0)==="_")return b.error("no such method '"+e+"' for "+f+" widget instance");var q=n[e].apply(n,i);if(q!==n&&q!==c){j=q;return false}}):this.each(function(){var n=b.data(this,f);n?n.option(e||{})._init():a(e,
  this)});return j}};b.Widget=function(f,a){if(!this._createWidget)return new b[namespace][name](f,a);arguments.length&&this._createWidget(f,a)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:false},_createWidget:function(f,a){a=b(a||this.defaultElement||this)[0];this.element=b(a);this.options=b.extend(true,{},this.options,this._getCreateOptions(),f);this.bindings=b();this.hoverable=b();this.focusable=b();if(a!==this){b.data(a,this.widgetName,this);
  this._bind({remove:"destroy"})}this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:b.noop,_init:b.noop,destroy:function(){this._destroy();this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled");this.bindings.unbind("."+this.widgetName);this.hoverable.removeClass("ui-state-hover");
  this.focusable.removeClass("ui-state-focus")},_destroy:b.noop,widget:function(){return this.element},option:function(f,a){var e=f;if(arguments.length===0)return b.extend({},this.options);if(typeof f==="string"){if(a===c)return this.options[f];e={};e[f]=a}this._setOptions(e);return this},_setOptions:function(f){var a=this;b.each(f,function(e,h){a._setOption(e,h)});return this},_setOption:function(f,a){this.options[f]=a;if(f==="disabled"){this.widget().toggleClass(this.widgetBaseClass+"-disabled ui-state-disabled",
  !!a).attr("aria-disabled",a);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_bind:function(f,a){if(a)this.bindings=this.bindings.add(f);else{a=f;f=this.element}var e=this;b.each(a,function(h,i){f.bind(h+"."+e.widgetName,function(){if(!(e.options.disabled===true||b(this).hasClass("ui-state-disabled")))return(typeof i==="string"?
  e[i]:i).apply(e,arguments)})})},_hoverable:function(f){this.hoverable=this.hoverable.add(f);this._bind(f,{mouseenter:function(a){b(a.currentTarget).addClass("ui-state-hover")},mouseleave:function(a){b(a.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(f){this.focusable=this.focusable.add(f);this._bind(f,{focusin:function(a){b(a.currentTarget).addClass("ui-state-focus")},focusout:function(a){b(a.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(f,a,e){var h=this.options[f];
  a=b.Event(a);a.type=(f===this.widgetEventPrefix?f:this.widgetEventPrefix+f).toLowerCase();e=e||{};if(a.originalEvent){f=b.event.props.length;for(var i;f;){i=b.event.props[--f];a[i]=a.originalEvent[i]}}this.element.trigger(a,e);e=b.isArray(e)?[a].concat(e):[a,e];return!(b.isFunction(h)&&h.apply(this.element[0],e)===false||a.isDefaultPrevented())}}})(jQuery);
  (function(b){b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var c=this;this.element.bind("mousedown."+this.widgetName,function(d){return c._mouseDown(d)}).bind("click."+this.widgetName,function(d){if(true===b.data(d.target,c.widgetName+".preventClickEvent")){b.removeData(d.target,c.widgetName+".preventClickEvent");d.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 d=this,g=c.which==1,f=typeof this.options.cancel=="string"?b(c.target).parents().add(c.target).filter(this.options.cancel).length:false;if(!g||f||!this._mouseCapture(c))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){d.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(a){return d._mouseMove(a)};this._mouseUpDelegate=function(a){return d._mouseUp(a)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);c.preventDefault();return c.originalEvent.mouseHandled=true}},_mouseMove:function(c){if(b.browser.msie&&!(document.documentMode>=9)&&!c.button)return this._mouseUp(c);if(this._mouseStarted){this._mouseDrag(c);
  return c.preventDefault()}if(this._mouseDistanceMet(c)&&this._mouseDelayMet(c))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,c)!==false)?this._mouseDrag(c):this._mouseUp(c);return!this._mouseStarted},_mouseUp:function(c){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;c.target==this._mouseDownEvent.target&&b.data(c.target,this.widgetName+".preventClickEvent",
  true);this._mouseStop(c)}return false},_mouseDistanceMet:function(c){return Math.max(Math.abs(this._mouseDownEvent.pageX-c.pageX),Math.abs(this._mouseDownEvent.pageY-c.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
  (function(b){b.widget("ui.draggable",b.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
  "original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(c){var d=
  this.options;if(this.helper||d.disabled||b(c.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(c);if(!this.handle)return false;return true},_mouseStart:function(c){var d=this.options;this.helper=this._createHelper(c);this._cacheHelperProportions();if(b.ui.ddmanager)b.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-
  this.margins.top,left:this.offset.left-this.margins.left};b.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);d.containment&&this._setContainment();if(this._trigger("start",c)===false){this._clear();return false}this._cacheHelperProportions();
  b.ui.ddmanager&&!d.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,c);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(c,true);return true},_mouseDrag:function(c,d){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");if(!d){d=this._uiHash();if(this._trigger("drag",c,d)===false){this._mouseUp({});return false}this.position=d.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||
  this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";b.ui.ddmanager&&b.ui.ddmanager.drag(this,c);return false},_mouseStop:function(c){var d=false;if(b.ui.ddmanager&&!this.options.dropBehaviour)d=b.ui.ddmanager.drop(this,c);if(this.dropped){d=this.dropped;this.dropped=false}if(!this.element[0]||!this.element[0].parentNode)return false;if(this.options.revert=="invalid"&&!d||this.options.revert=="valid"&&d||this.options.revert===true||b.isFunction(this.options.revert)&&this.options.revert.call(this.element,
  d)){var g=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){g._trigger("stop",c)!==false&&g._clear()})}else this._trigger("stop",c)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(c){var d=!this.options.handle||!b(this.options.handle,this.element).length?true:false;b(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==
  c.target)d=true});return d},_createHelper:function(c){var d=this.options;c=b.isFunction(d.helper)?b(d.helper.apply(this.element[0],[c])):d.helper=="clone"?this.element.clone():this.element;c.parents("body").length||c.appendTo(d.appendTo=="parent"?this.element[0].parentNode:d.appendTo);c[0]!=this.element[0]&&!/(fixed|absolute)/.test(c.css("position"))&&c.css("position","absolute");return c},_adjustOffsetFromHelper:function(c){if(typeof c=="string")c=c.split(" ");if(b.isArray(c))c={left:+c[0],top:+c[1]||
  0};if("left"in c)this.offset.click.left=c.left+this.margins.left;if("right"in c)this.offset.click.left=this.helperProportions.width-c.right+this.margins.left;if("top"in c)this.offset.click.top=c.top+this.margins.top;if("bottom"in c)this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.contains(this.scrollParent[0],
  this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)c={top:0,left:0};return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.element.position();return{top:c.top-
  (parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var c=this.options;if(c.containment==
  "parent")c.containment=this.helper[0].parentNode;if(c.containment=="document"||c.containment=="window")this.containment=[(c.containment=="document"?0:b(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(c.containment=="document"?0:b(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(c.containment=="document"?0:b(window).scrollLeft())+b(c.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(c.containment=="document"?
  0:b(window).scrollTop())+(b(c.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(c.containment)&&c.containment.constructor!=Array){var d=b(c.containment)[0];if(d){c=b(c.containment).offset();var g=b(d).css("overflow")!="hidden";this.containment=[c.left+(parseInt(b(d).css("borderLeftWidth"),10)||0)+(parseInt(b(d).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(b(d).css("borderTopWidth"),
  10)||0)+(parseInt(b(d).css("paddingTop"),10)||0)-this.margins.top,c.left+(g?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(b(d).css("borderLeftWidth"),10)||0)-(parseInt(b(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,c.top+(g?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(b(d).css("borderTopWidth"),10)||0)-(parseInt(b(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(c.containment.constructor==
  Array)this.containment=c.containment},_convertPositionTo:function(c,d){if(!d)d=this.position;c=c=="absolute"?1:-1;var g=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(g[0].tagName);return{top:d.top+this.offset.relative.top*c+this.offset.parent.top*c-(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():
  f?0:g.scrollTop())*c),left:d.left+this.offset.relative.left*c+this.offset.parent.left*c-(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:g.scrollLeft())*c)}},_generatePosition:function(c){var d=this.options,g=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(g[0].tagName),a=c.pageX,e=c.pageY;
  if(this.originalPosition){if(this.containment){if(c.pageX-this.offset.click.left<this.containment[0])a=this.containment[0]+this.offset.click.left;if(c.pageY-this.offset.click.top<this.containment[1])e=this.containment[1]+this.offset.click.top;if(c.pageX-this.offset.click.left>this.containment[2])a=this.containment[2]+this.offset.click.left;if(c.pageY-this.offset.click.top>this.containment[3])e=this.containment[3]+this.offset.click.top}if(d.grid){e=this.originalPageY+Math.round((e-this.originalPageY)/
  d.grid[1])*d.grid[1];e=this.containment?!(e-this.offset.click.top<this.containment[1]||e-this.offset.click.top>this.containment[3])?e:!(e-this.offset.click.top<this.containment[1])?e-d.grid[1]:e+d.grid[1]:e;a=this.originalPageX+Math.round((a-this.originalPageX)/d.grid[0])*d.grid[0];a=this.containment?!(a-this.offset.click.left<this.containment[0]||a-this.offset.click.left>this.containment[2])?a:!(a-this.offset.click.left<this.containment[0])?a-d.grid[0]:a+d.grid[0]:a}}return{top:e-this.offset.click.top-
  this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:g.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:g.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=
  this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(c,d,g){g=g||this._uiHash();b.ui.plugin.call(this,c,[d,g]);if(c=="drag")this.positionAbs=this._convertPositionTo("absolute");return b.Widget.prototype._trigger.call(this,c,d,g)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});b.extend(b.ui.draggable,{version:"1.9m4"});
  b.ui.plugin.add("draggable","connectToSortable",{start:function(c,d){var g=b(this).data("draggable"),f=g.options,a=b.extend({},d,{item:g.element});g.sortables=[];b(f.connectToSortable).each(function(){var e=b.data(this,"sortable");if(e&&!e.options.disabled){g.sortables.push({instance:e,shouldRevert:e.options.revert});e._refreshItems();e._trigger("activate",c,a)}})},stop:function(c,d){var g=b(this).data("draggable"),f=b.extend({},d,{item:g.element});b.each(g.sortables,function(){if(this.instance.isOver){this.instance.isOver=
  0;g.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;g.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",c,f)}})},drag:function(c,d){var g=b(this).data("draggable"),f=this;b.each(g.sortables,function(){this.instance.positionAbs=
  g.positionAbs;this.instance.helperProportions=g.helperProportions;this.instance.offset.click=g.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=b(f).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return d.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,
  true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=g.offset.click.top;this.instance.offset.click.left=g.offset.click.left;this.instance.offset.parent.left-=g.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=g.offset.parent.top-this.instance.offset.parent.top;g._trigger("toSortable",c);g.dropped=this.instance.element;g.currentItem=g.element;this.instance.fromOutside=g}this.instance.currentItem&&this.instance._mouseDrag(c)}else if(this.instance.isOver){this.instance.isOver=
  0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();g._trigger("fromSortable",c);g.dropped=false}})}});b.ui.plugin.add("draggable","cursor",{start:function(){var c=b("body"),d=b(this).data("draggable").options;if(c.css("cursor"))d._cursor=
  c.css("cursor");c.css("cursor",d.cursor)},stop:function(){var c=b(this).data("draggable").options;c._cursor&&b("body").css("cursor",c._cursor)}});b.ui.plugin.add("draggable","iframeFix",{start:function(){var c=b(this).data("draggable").options;b(c.iframeFix===true?"iframe":c.iframeFix).each(function(){b('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(b(this).offset()).appendTo("body")})},
  stop:function(){b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});b.ui.plugin.add("draggable","opacity",{start:function(c,d){c=b(d.helper);d=b(this).data("draggable").options;if(c.css("opacity"))d._opacity=c.css("opacity");c.css("opacity",d.opacity)},stop:function(c,d){c=b(this).data("draggable").options;c._opacity&&b(d.helper).css("opacity",c._opacity)}});b.ui.plugin.add("draggable","scroll",{start:function(){var c=b(this).data("draggable");if(c.scrollParent[0]!=
  document&&c.scrollParent[0].tagName!="HTML")c.overflowOffset=c.scrollParent.offset()},drag:function(c){var d=b(this).data("draggable"),g=d.options,f=false;if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){if(!g.axis||g.axis!="x")if(d.overflowOffset.top+d.scrollParent[0].offsetHeight-c.pageY<g.scrollSensitivity)d.scrollParent[0].scrollTop=f=d.scrollParent[0].scrollTop+g.scrollSpeed;else if(c.pageY-d.overflowOffset.top<g.scrollSensitivity)d.scrollParent[0].scrollTop=f=d.scrollParent[0].scrollTop-
  g.scrollSpeed;if(!g.axis||g.axis!="y")if(d.overflowOffset.left+d.scrollParent[0].offsetWidth-c.pageX<g.scrollSensitivity)d.scrollParent[0].scrollLeft=f=d.scrollParent[0].scrollLeft+g.scrollSpeed;else if(c.pageX-d.overflowOffset.left<g.scrollSensitivity)d.scrollParent[0].scrollLeft=f=d.scrollParent[0].scrollLeft-g.scrollSpeed}else{if(!g.axis||g.axis!="x")if(c.pageY-b(document).scrollTop()<g.scrollSensitivity)f=b(document).scrollTop(b(document).scrollTop()-g.scrollSpeed);else if(b(window).height()-
  (c.pageY-b(document).scrollTop())<g.scrollSensitivity)f=b(document).scrollTop(b(document).scrollTop()+g.scrollSpeed);if(!g.axis||g.axis!="y")if(c.pageX-b(document).scrollLeft()<g.scrollSensitivity)f=b(document).scrollLeft(b(document).scrollLeft()-g.scrollSpeed);else if(b(window).width()-(c.pageX-b(document).scrollLeft())<g.scrollSensitivity)f=b(document).scrollLeft(b(document).scrollLeft()+g.scrollSpeed)}f!==false&&b.ui.ddmanager&&!g.dropBehaviour&&b.ui.ddmanager.prepareOffsets(d,c)}});b.ui.plugin.add("draggable",
  "snap",{start:function(){var c=b(this).data("draggable"),d=c.options;c.snapElements=[];b(d.snap.constructor!=String?d.snap.items||":data(draggable)":d.snap).each(function(){var g=b(this),f=g.offset();this!=c.element[0]&&c.snapElements.push({item:this,width:g.outerWidth(),height:g.outerHeight(),top:f.top,left:f.left})})},drag:function(c,d){for(var g=b(this).data("draggable"),f=g.options,a=f.snapTolerance,e=d.offset.left,h=e+g.helperProportions.width,i=d.offset.top,j=i+g.helperProportions.height,n=
  g.snapElements.length-1;n>=0;n--){var q=g.snapElements[n].left,l=q+g.snapElements[n].width,k=g.snapElements[n].top,m=k+g.snapElements[n].height;if(q-a<e&&e<l+a&&k-a<i&&i<m+a||q-a<e&&e<l+a&&k-a<j&&j<m+a||q-a<h&&h<l+a&&k-a<i&&i<m+a||q-a<h&&h<l+a&&k-a<j&&j<m+a){if(f.snapMode!="inner"){var p=Math.abs(k-j)<=a,o=Math.abs(m-i)<=a,r=Math.abs(q-h)<=a,s=Math.abs(l-e)<=a;if(p)d.position.top=g._convertPositionTo("relative",{top:k-g.helperProportions.height,left:0}).top-g.margins.top;if(o)d.position.top=g._convertPositionTo("relative",
  {top:m,left:0}).top-g.margins.top;if(r)d.position.left=g._convertPositionTo("relative",{top:0,left:q-g.helperProportions.width}).left-g.margins.left;if(s)d.position.left=g._convertPositionTo("relative",{top:0,left:l}).left-g.margins.left}var t=p||o||r||s;if(f.snapMode!="outer"){p=Math.abs(k-i)<=a;o=Math.abs(m-j)<=a;r=Math.abs(q-e)<=a;s=Math.abs(l-h)<=a;if(p)d.position.top=g._convertPositionTo("relative",{top:k,left:0}).top-g.margins.top;if(o)d.position.top=g._convertPositionTo("relative",{top:m-g.helperProportions.height,
  left:0}).top-g.margins.top;if(r)d.position.left=g._convertPositionTo("relative",{top:0,left:q}).left-g.margins.left;if(s)d.position.left=g._convertPositionTo("relative",{top:0,left:l-g.helperProportions.width}).left-g.margins.left}if(!g.snapElements[n].snapping&&(p||o||r||s||t))g.options.snap.snap&&g.options.snap.snap.call(g.element,c,b.extend(g._uiHash(),{snapItem:g.snapElements[n].item}));g.snapElements[n].snapping=p||o||r||s||t}else{g.snapElements[n].snapping&&g.options.snap.release&&g.options.snap.release.call(g.element,
  c,b.extend(g._uiHash(),{snapItem:g.snapElements[n].item}));g.snapElements[n].snapping=false}}}});b.ui.plugin.add("draggable","stack",{start:function(){var c=b(this).data("draggable").options;c=b.makeArray(b(c.stack)).sort(function(g,f){return(parseInt(b(g).css("zIndex"),10)||0)-(parseInt(b(f).css("zIndex"),10)||0)});if(c.length){var d=parseInt(c[0].style.zIndex)||0;b(c).each(function(g){this.style.zIndex=d+g});this[0].style.zIndex=d+c.length}}});b.ui.plugin.add("draggable","zIndex",{start:function(c,
  d){c=b(d.helper);d=b(this).data("draggable").options;if(c.css("zIndex"))d._zIndex=c.css("zIndex");c.css("zIndex",d.zIndex)},stop:function(c,d){c=b(this).data("draggable").options;c._zIndex&&b(d.helper).css("zIndex",c._zIndex)}})})(jQuery);
  (function(b){b.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var c=this.options,d=c.accept;this.isover=0;this.isout=1;this.accept=b.isFunction(d)?d:function(g){return g.is(d)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};b.ui.ddmanager.droppables[c.scope]=b.ui.ddmanager.droppables[c.scope]||[];b.ui.ddmanager.droppables[c.scope].push(this);
  c.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var c=b.ui.ddmanager.droppables[this.options.scope],d=0;d<c.length;d++)c[d]==this&&c.splice(d,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(c,d){if(c=="accept")this.accept=b.isFunction(d)?d:function(g){return g.is(d)};b.Widget.prototype._setOption.apply(this,arguments)},_activate:function(c){var d=b.ui.ddmanager.current;this.options.activeClass&&
  this.element.addClass(this.options.activeClass);d&&this._trigger("activate",c,this.ui(d))},_deactivate:function(c){var d=b.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);d&&this._trigger("deactivate",c,this.ui(d))},_over:function(c){var d=b.ui.ddmanager.current;if(!(!d||(d.currentItem||d.element)[0]==this.element[0]))if(this.accept.call(this.element[0],d.currentItem||d.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);
  this._trigger("over",c,this.ui(d))}},_out:function(c){var d=b.ui.ddmanager.current;if(!(!d||(d.currentItem||d.element)[0]==this.element[0]))if(this.accept.call(this.element[0],d.currentItem||d.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",c,this.ui(d))}},_drop:function(c,d){var g=d||b.ui.ddmanager.current;if(!g||(g.currentItem||g.element)[0]==this.element[0])return false;var f=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var a=
  b.data(this,"droppable");if(a.options.greedy&&!a.options.disabled&&a.options.scope==g.options.scope&&a.accept.call(a.element[0],g.currentItem||g.element)&&b.ui.intersect(g,b.extend(a,{offset:a.element.offset()}),a.options.tolerance)){f=true;return false}});if(f)return false;if(this.accept.call(this.element[0],g.currentItem||g.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",
  c,this.ui(g));return this.element}return false},ui:function(c){return{draggable:c.currentItem||c.element,helper:c.helper,position:c.position,offset:c.positionAbs}}});b.extend(b.ui.droppable,{version:"1.9m4"});b.ui.intersect=function(c,d,g){if(!d.offset)return false;var f=(c.positionAbs||c.position.absolute).left,a=f+c.helperProportions.width,e=(c.positionAbs||c.position.absolute).top,h=e+c.helperProportions.height,i=d.offset.left,j=i+d.proportions.width,n=d.offset.top,q=n+d.proportions.height;
  switch(g){case "fit":return i<=f&&a<=j&&n<=e&&h<=q;case "intersect":return i<f+c.helperProportions.width/2&&a-c.helperProportions.width/2<j&&n<e+c.helperProportions.height/2&&h-c.helperProportions.height/2<q;case "pointer":return b.ui.isOver((c.positionAbs||c.position.absolute).top+(c.clickOffset||c.offset.click).top,(c.positionAbs||c.position.absolute).left+(c.clickOffset||c.offset.click).left,n,i,d.proportions.height,d.proportions.width);case "touch":return(e>=n&&e<=q||h>=n&&h<=q||e<n&&h>q)&&(f>=
  i&&f<=j||a>=i&&a<=j||f<i&&a>j);default:return false}};b.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(c,d){var g=b.ui.ddmanager.droppables[c.options.scope]||[],f=d?d.type:null,a=(c.currentItem||c.element).find(":data(droppable)").andSelf(),e=0;a:for(;e<g.length;e++)if(!(g[e].options.disabled||c&&!g[e].accept.call(g[e].element[0],c.currentItem||c.element))){for(var h=0;h<a.length;h++)if(a[h]==g[e].element[0]){g[e].proportions.height=0;continue a}g[e].visible=g[e].element.css("display")!=
  "none";if(g[e].visible){g[e].offset=g[e].element.offset();g[e].proportions={width:g[e].element[0].offsetWidth,height:g[e].element[0].offsetHeight};f=="mousedown"&&g[e]._activate.call(g[e],d)}}},drop:function(c,d){var g=false;b.each(b.ui.ddmanager.droppables[c.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&b.ui.intersect(c,this,this.options.tolerance))g=g||this._drop.call(this,d);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],c.currentItem||
  c.element)){this.isout=1;this.isover=0;this._deactivate.call(this,d)}}});return g},drag:function(c,d){c.options.refreshPositions&&b.ui.ddmanager.prepareOffsets(c,d);b.each(b.ui.ddmanager.droppables[c.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var g=b.ui.intersect(c,this,this.options.tolerance);if(g=!g&&this.isover==1?"isout":g&&this.isover==0?"isover":null){var f;if(this.options.greedy){var a=this.element.parents(":data(droppable):eq(0)");if(a.length){f=
  b.data(a[0],"droppable");f.greedyChild=g=="isover"?1:0}}if(f&&g=="isover"){f.isover=0;f.isout=1;f._out.call(f,d)}this[g]=1;this[g=="isout"?"isover":"isout"]=0;this[g=="isover"?"_over":"_out"].call(this,d);if(f&&g=="isout"){f.isout=0;f.isover=1;f._over.call(f,d)}}}})}}})(jQuery);
  (function(b){b.widget("ui.resizable",b.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var g=this,f=this.options;this.element.addClass("ui-resizable");b.extend(this,{_aspectRatio:!!f.aspectRatio,aspectRatio:f.aspectRatio,originalElement:this.element,
  _proportionallyResizeElements:[],_helper:f.helper||f.ghost||f.animate?f.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&b.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(b('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),
  top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=
  this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=f.handles||(!b(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",
  nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var a=this.handles.split(",");this.handles={};for(var e=0;e<a.length;e++){var h=b.trim(a[e]),i=b('<div class="ui-resizable-handle '+("ui-resizable-"+h)+'"></div>');/sw|se|ne|nw/.test(h)&&i.css({zIndex:++f.zIndex});"se"==h&&i.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[h]=".ui-resizable-"+h;this.element.append(i)}}this._renderAxis=function(j){j=j||this.element;for(var n in this.handles){if(this.handles[n].constructor==
  String)this.handles[n]=b(this.handles[n],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var q=b(this.handles[n],this.element),l=0;l=/sw|ne|nw|se|n|s/.test(n)?q.outerHeight():q.outerWidth();q=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join("");j.css(q,l);this._proportionallyResize()}b(this.handles[n])}};this._renderAxis(this.element);this._handles=b(".ui-resizable-handle",this.element).disableSelection();
  this._handles.mouseover(function(){if(!g.resizing){if(this.className)var j=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);g.axis=j&&j[1]?j[1]:"se"}});if(f.autoHide){this._handles.hide();b(this.element).addClass("ui-resizable-autohide").hover(function(){b(this).removeClass("ui-resizable-autohide");g._handles.show()},function(){if(!g.resizing){b(this).addClass("ui-resizable-autohide");g._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var g=function(a){b(a).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
  if(this.elementIsWrapper){g(this.element);var f=this.element;f.after(this.originalElement.css({position:f.css("position"),width:f.outerWidth(),height:f.outerHeight(),top:f.css("top"),left:f.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);g(this.originalElement);return this},_mouseCapture:function(g){var f=false;for(var a in this.handles)if(b(this.handles[a])[0]==g.target)f=true;return!this.options.disabled&&f},_mouseStart:function(g){var f=this.options,a=this.element.position(),
  e=this.element;this.resizing=true;this.documentScroll={top:b(document).scrollTop(),left:b(document).scrollLeft()};if(e.is(".ui-draggable")||/absolute/.test(e.css("position")))e.css({position:"absolute",top:a.top,left:a.left});b.browser.opera&&/relative/.test(e.css("position"))&&e.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();a=c(this.helper.css("left"));var h=c(this.helper.css("top"));if(f.containment){a+=b(f.containment).scrollLeft()||0;h+=b(f.containment).scrollTop()||0}this.offset=
  this.helper.offset();this.position={left:a,top:h};this.size=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalSize=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalPosition={left:a,top:h};this.sizeDiff={width:e.outerWidth()-e.width(),height:e.outerHeight()-e.height()};this.originalMousePosition={left:g.pageX,top:g.pageY};this.aspectRatio=typeof f.aspectRatio=="number"?f.aspectRatio:
  this.originalSize.width/this.originalSize.height||1;f=b(".ui-resizable-"+this.axis).css("cursor");b("body").css("cursor",f=="auto"?this.axis+"-resize":f);e.addClass("ui-resizable-resizing");this._propagate("start",g);return true},_mouseDrag:function(g){var f=this.helper,a=this.originalMousePosition,e=this._change[this.axis];if(!e)return false;a=e.apply(this,[g,g.pageX-a.left||0,g.pageY-a.top||0]);if(this._aspectRatio||g.shiftKey)a=this._updateRatio(a,g);a=this._respectSize(a,g);this._propagate("resize",
  g);f.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(a);this._trigger("resize",g,this.ui());return false},_mouseStop:function(g){this.resizing=false;var f=this.options,a=this;if(this._helper){var e=this._proportionallyResizeElements,h=e.length&&/textarea/i.test(e[0].nodeName);e=h&&b.ui.hasScroll(e[0],"left")?0:a.sizeDiff.height;
  h=h?0:a.sizeDiff.width;h={width:a.helper.width()-h,height:a.helper.height()-e};e=parseInt(a.element.css("left"),10)+(a.position.left-a.originalPosition.left)||null;var i=parseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.top)||null;f.animate||this.element.css(b.extend(h,{top:i,left:e}));a.helper.height(a.size.height);a.helper.width(a.size.width);this._helper&&!f.animate&&this._proportionallyResize()}b("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");
  this._propagate("stop",g);this._helper&&this.helper.remove();return false},_updateCache:function(g){this.offset=this.helper.offset();if(d(g.left))this.position.left=g.left;if(d(g.top))this.position.top=g.top;if(d(g.height))this.size.height=g.height;if(d(g.width))this.size.width=g.width},_updateRatio:function(g){var f=this.position,a=this.size,e=this.axis;if(g.height)g.width=a.height*this.aspectRatio;else if(g.width)g.height=a.width/this.aspectRatio;if(e=="sw"){g.left=f.left+(a.width-g.width);g.top=
  null}if(e=="nw"){g.top=f.top+(a.height-g.height);g.left=f.left+(a.width-g.width)}return g},_respectSize:function(g){var f=this.options,a=this.axis,e=d(g.width)&&f.maxWidth&&f.maxWidth<g.width,h=d(g.height)&&f.maxHeight&&f.maxHeight<g.height,i=d(g.width)&&f.minWidth&&f.minWidth>g.width,j=d(g.height)&&f.minHeight&&f.minHeight>g.height;if(i)g.width=f.minWidth;if(j)g.height=f.minHeight;if(e)g.width=f.maxWidth;if(h)g.height=f.maxHeight;var n=this.originalPosition.left+this.originalSize.width,q=this.position.top+
  this.size.height,l=/sw|nw|w/.test(a);a=/nw|ne|n/.test(a);if(i&&l)g.left=n-f.minWidth;if(e&&l)g.left=n-f.maxWidth;if(j&&a)g.top=q-f.minHeight;if(h&&a)g.top=q-f.maxHeight;if((f=!g.width&&!g.height)&&!g.left&&g.top)g.top=null;else if(f&&!g.top&&g.left)g.left=null;return g},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var g=this.helper||this.element,f=0;f<this._proportionallyResizeElements.length;f++){var a=this._proportionallyResizeElements[f];if(!this.borderDif){var e=
  [a.css("borderTopWidth"),a.css("borderRightWidth"),a.css("borderBottomWidth"),a.css("borderLeftWidth")],h=[a.css("paddingTop"),a.css("paddingRight"),a.css("paddingBottom"),a.css("paddingLeft")];this.borderDif=b.map(e,function(i,j){i=parseInt(i,10)||0;j=parseInt(h[j],10)||0;return i+j})}b.browser.msie&&(b(g).is(":hidden")||b(g).parents(":hidden").length)||a.css({height:g.height()-this.borderDif[0]-this.borderDif[2]||0,width:g.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var g=
  this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||b('<div style="overflow:hidden;"></div>');var f=b.browser.msie&&b.browser.version<7,a=f?1:0;f=f?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+f,height:this.element.outerHeight()+f,position:"absolute",left:this.elementOffset.left-a+"px",top:this.elementOffset.top-a+"px",zIndex:++g.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(g,
  f){return{width:this.originalSize.width+f}},w:function(g,f){return{left:this.originalPosition.left+f,width:this.originalSize.width-f}},n:function(g,f,a){return{top:this.originalPosition.top+a,height:this.originalSize.height-a}},s:function(g,f,a){return{height:this.originalSize.height+a}},se:function(g,f,a){return b.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[g,f,a]))},sw:function(g,f,a){return b.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[g,f,
  a]))},ne:function(g,f,a){return b.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[g,f,a]))},nw:function(g,f,a){return b.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[g,f,a]))}},_propagate:function(g,f){b.ui.plugin.call(this,g,[f,this.ui()]);g!="resize"&&this._trigger(g,f,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,
  originalPosition:this.originalPosition}}});b.extend(b.ui.resizable,{version:"1.9m4"});b.ui.plugin.add("resizable","alsoResize",{start:function(){var g=b(this).data("resizable").options,f=function(a){b(a).each(function(){var e=b(this);e.data("resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10),position:e.css("position")})})};if(typeof g.alsoResize=="object"&&!g.alsoResize.parentNode)if(g.alsoResize.length){g.alsoResize=
  g.alsoResize[0];f(g.alsoResize)}else b.each(g.alsoResize,function(a){f(a)});else f(g.alsoResize)},resize:function(g,f){var a=b(this).data("resizable");g=a.options;var e=a.originalSize,h=a.originalPosition,i={height:a.size.height-e.height||0,width:a.size.width-e.width||0,top:a.position.top-h.top||0,left:a.position.left-h.left||0},j=function(n,q){b(n).each(function(){var l=b(this),k=b(this).data("resizable-alsoresize"),m={},p=q&&q.length?q:l.parents(f.originalElement[0]).length?["width","height"]:["width",
  "height","top","left"];b.each(p,function(o,r){if((o=(k[r]||0)+(i[r]||0))&&o>=0)m[r]=o||null});if(b.browser.opera&&/relative/.test(l.css("position"))){a._revertToRelativePosition=true;l.css({position:"absolute",top:"auto",left:"auto"})}l.css(m)})};typeof g.alsoResize=="object"&&!g.alsoResize.nodeType?b.each(g.alsoResize,function(n,q){j(n,q)}):j(g.alsoResize)},stop:function(){var g=b(this).data("resizable"),f=g.options,a=function(e){b(e).each(function(){var h=b(this);h.css({position:h.data("resizable-alsoresize").position})})};
  if(g._revertToRelativePosition){g._revertToRelativePosition=false;typeof f.alsoResize=="object"&&!f.alsoResize.nodeType?b.each(f.alsoResize,function(e){a(e)}):a(f.alsoResize)}b(this).removeData("resizable-alsoresize")}});b.ui.plugin.add("resizable","animate",{stop:function(g){var f=b(this).data("resizable"),a=f.options,e=f._proportionallyResizeElements,h=e.length&&/textarea/i.test(e[0].nodeName),i=h&&b.ui.hasScroll(e[0],"left")?0:f.sizeDiff.height;h={width:f.size.width-(h?0:f.sizeDiff.width),height:f.size.height-
  i};i=parseInt(f.element.css("left"),10)+(f.position.left-f.originalPosition.left)||null;var j=parseInt(f.element.css("top"),10)+(f.position.top-f.originalPosition.top)||null;f.element.animate(b.extend(h,j&&i?{top:j,left:i}:{}),{duration:a.animateDuration,easing:a.animateEasing,step:function(){var n={width:parseInt(f.element.css("width"),10),height:parseInt(f.element.css("height"),10),top:parseInt(f.element.css("top"),10),left:parseInt(f.element.css("left"),10)};e&&e.length&&b(e[0]).css({width:n.width,
  height:n.height});f._updateCache(n);f._propagate("resize",g)}})}});b.ui.plugin.add("resizable","containment",{start:function(){var g=b(this).data("resizable"),f=g.element,a=g.options.containment;if(f=a instanceof b?a.get(0):/parent/.test(a)?f.parent().get(0):a){g.containerElement=b(f);if(/document/.test(a)||a==document){g.containerOffset={left:0,top:0};g.containerPosition={left:0,top:0};g.parentData={element:b(document),left:0,top:0,width:b(document).width(),height:b(document).height()||document.body.parentNode.scrollHeight}}else{var e=
  b(f),h=[];b(["Top","Right","Left","Bottom"]).each(function(n,q){h[n]=c(e.css("padding"+q))});g.containerOffset=e.offset();g.containerPosition=e.position();g.containerSize={height:e.innerHeight()-h[3],width:e.innerWidth()-h[1]};a=g.containerOffset;var i=g.containerSize.height,j=g.containerSize.width;j=b.ui.hasScroll(f,"left")?f.scrollWidth:j;i=b.ui.hasScroll(f)?f.scrollHeight:i;g.parentData={element:f,left:a.left,top:a.top,width:j,height:i}}}},resize:function(g){var f=b(this).data("resizable"),a=f.options,
  e=f.containerOffset,h=f.position;g=f._aspectRatio||g.shiftKey;var i={top:0,left:0},j=f.containerElement;if(j[0]!=document&&/static/.test(j.css("position")))i=e;if(h.left<(f._helper?e.left:0)){f.size.width+=f._helper?f.position.left-e.left:f.position.left-i.left;if(g)f.size.height=f.size.width/a.aspectRatio;f.position.left=a.helper?e.left:0}if(h.top<(f._helper?e.top:0)){f.size.height+=f._helper?f.position.top-e.top:f.position.top;if(g)f.size.width=f.size.height*a.aspectRatio;f.position.top=f._helper?
  e.top:0}f.offset.left=f.parentData.left+f.position.left;f.offset.top=f.parentData.top+f.position.top;a=Math.abs((f._helper?f.offset.left-i.left:f.offset.left-i.left)+f.sizeDiff.width);e=Math.abs((f._helper?f.offset.top-i.top:f.offset.top-e.top)+f.sizeDiff.height);h=f.containerElement.get(0)==f.element.parent().get(0);i=/relative|absolute/.test(f.containerElement.css("position"));if(h&&i)a-=f.parentData.left;if(a+f.size.width>=f.parentData.width){f.size.width=f.parentData.width-a;if(g)f.size.height=
  f.size.width/f.aspectRatio}if(e+f.size.height>=f.parentData.height){f.size.height=f.parentData.height-e;if(g)f.size.width=f.size.height*f.aspectRatio}},stop:function(){var g=b(this).data("resizable"),f=g.options,a=g.containerOffset,e=g.containerPosition,h=g.containerElement,i=b(g.helper),j=i.offset(),n=i.outerWidth()-g.sizeDiff.width;i=i.outerHeight()-g.sizeDiff.height;g._helper&&!f.animate&&/relative/.test(h.css("position"))&&b(this).css({left:j.left-e.left-a.left,width:n,height:i});g._helper&&!f.animate&&
  /static/.test(h.css("position"))&&b(this).css({left:j.left-e.left-a.left,width:n,height:i})}});b.ui.plugin.add("resizable","ghost",{start:function(){var g=b(this).data("resizable"),f=g.options,a=g.size;g.ghost=g.originalElement.clone();g.ghost.css({opacity:0.25,display:"block",position:"relative",height:a.height,width:a.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof f.ghost=="string"?f.ghost:"");g.ghost.appendTo(g.helper)},resize:function(){var g=b(this).data("resizable");
  g.ghost&&g.ghost.css({position:"relative",height:g.size.height,width:g.size.width})},stop:function(){var g=b(this).data("resizable");g.ghost&&g.helper&&g.helper.get(0).removeChild(g.ghost.get(0))}});b.ui.plugin.add("resizable","grid",{resize:function(){var g=b(this).data("resizable"),f=g.options,a=g.size,e=g.originalSize,h=g.originalPosition,i=g.axis;f.grid=typeof f.grid=="number"?[f.grid,f.grid]:f.grid;var j=Math.round((a.width-e.width)/(f.grid[0]||1))*(f.grid[0]||1);f=Math.round((a.height-e.height)/
  (f.grid[1]||1))*(f.grid[1]||1);if(/^(se|s|e)$/.test(i)){g.size.width=e.width+j;g.size.height=e.height+f}else if(/^(ne)$/.test(i)){g.size.width=e.width+j;g.size.height=e.height+f;g.position.top=h.top-f}else{if(/^(sw)$/.test(i)){g.size.width=e.width+j;g.size.height=e.height+f}else{g.size.width=e.width+j;g.size.height=e.height+f;g.position.top=h.top-f}g.position.left=h.left-j}}});var c=function(g){return parseInt(g,10)||0},d=function(g){return!isNaN(parseInt(g,10))}})(jQuery);
  (function(b){b.widget("ui.selectable",b.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var c=this;this.element.addClass("ui-selectable");this.dragged=false;var d;this.refresh=function(){d=b(c.options.filter,c.element[0]);d.each(function(){var g=b(this),f=g.offset();b.data(this,"selectable-item",{element:this,$element:g,left:f.left,top:f.top,right:f.left+g.outerWidth(),bottom:f.top+g.outerHeight(),startselected:false,selected:g.hasClass("ui-selected"),
  selecting:g.hasClass("ui-selecting"),unselecting:g.hasClass("ui-unselecting")})})};this.refresh();this.selectees=d.addClass("ui-selectee");this._mouseInit();this.helper=b("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(c){var d=this;this.opos=[c.pageX,
  c.pageY];if(!this.options.disabled){var g=this.options;this.selectees=b(g.filter,this.element[0]);this._trigger("start",c);b(g.appendTo).append(this.helper);this.helper.css({left:c.clientX,top:c.clientY,width:0,height:0});g.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var f=b.data(this,"selectable-item");f.startselected=true;if(!c.metaKey){f.$element.removeClass("ui-selected");f.selected=false;f.$element.addClass("ui-unselecting");f.unselecting=true;d._trigger("unselecting",
  c,{unselecting:f.element})}});b(c.target).parents().andSelf().each(function(){var f=b.data(this,"selectable-item");if(f){var a=!c.metaKey||!f.$element.hasClass("ui-selected");f.$element.removeClass(a?"ui-unselecting":"ui-selected").addClass(a?"ui-selecting":"ui-unselecting");f.unselecting=!a;f.selecting=a;(f.selected=a)?d._trigger("selecting",c,{selecting:f.element}):d._trigger("unselecting",c,{unselecting:f.element});return false}})}},_mouseDrag:function(c){var d=this;this.dragged=true;if(!this.options.disabled){var g=
  this.options,f=this.opos[0],a=this.opos[1],e=c.pageX,h=c.pageY;if(f>e){var i=e;e=f;f=i}if(a>h){i=h;h=a;a=i}this.helper.css({left:f,top:a,width:e-f,height:h-a});this.selectees.each(function(){var j=b.data(this,"selectable-item");if(!(!j||j.element==d.element[0])){var n=false;if(g.tolerance=="touch")n=!(j.left>e||j.right<f||j.top>h||j.bottom<a);else if(g.tolerance=="fit")n=j.left>f&&j.right<e&&j.top>a&&j.bottom<h;if(n){if(j.selected){j.$element.removeClass("ui-selected");j.selected=false}if(j.unselecting){j.$element.removeClass("ui-unselecting");
  j.unselecting=false}if(!j.selecting){j.$element.addClass("ui-selecting");j.selecting=true;d._trigger("selecting",c,{selecting:j.element})}}else{if(j.selecting)if(c.metaKey&&j.startselected){j.$element.removeClass("ui-selecting");j.selecting=false;j.$element.addClass("ui-selected");j.selected=true}else{j.$element.removeClass("ui-selecting");j.selecting=false;if(j.startselected){j.$element.addClass("ui-unselecting");j.unselecting=true}d._trigger("unselecting",c,{unselecting:j.element})}if(j.selected)if(!c.metaKey&&
  !j.startselected){j.$element.removeClass("ui-selected");j.selected=false;j.$element.addClass("ui-unselecting");j.unselecting=true;d._trigger("unselecting",c,{unselecting:j.element})}}}});return false}},_mouseStop:function(c){var d=this;this.dragged=false;b(".ui-unselecting",this.element[0]).each(function(){var g=b.data(this,"selectable-item");g.$element.removeClass("ui-unselecting");g.unselecting=false;g.startselected=false;d._trigger("unselected",c,{unselected:g.element})});b(".ui-selecting",this.element[0]).each(function(){var g=
  b.data(this,"selectable-item");g.$element.removeClass("ui-selecting").addClass("ui-selected");g.selecting=false;g.selected=true;g.startselected=true;d._trigger("selected",c,{selected:g.element})});this._trigger("stop",c);this.helper.remove();return false}});b.extend(b.ui.selectable,{version:"1.9m4"})})(jQuery);
  (function(b){b.widget("ui.sortable",b.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");
  this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var c=this.items.length-1;c>=0;c--)this.items[c].item.removeData("sortable-item");return this},_setOption:function(c,d){if(c==="disabled"){this.options[c]=d;this.widget().toggleClass("ui-sortable-disabled",
  !!d)}else b.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(c,d){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(c);var g=null,f=this;b(c.target).parents().each(function(){if(b.data(this,"sortable-item")==f){g=b(this);return false}});if(b.data(c.target,"sortable-item")==f)g=b(c.target);if(!g)return false;if(this.options.handle&&!d){var a=false;b(this.options.handle,g).find("*").andSelf().each(function(){if(this==
  c.target)a=true});if(!a)return false}this.currentItem=g;this._removeCurrentsFromItems();return true},_mouseStart:function(c,d,g){d=this.options;var f=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(c);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");
  this.cssPosition=this.helper.css("position");b.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();
  this._createPlaceholder();d.containment&&this._setContainment();if(d.cursor){if(b("body").css("cursor"))this._storedCursor=b("body").css("cursor");b("body").css("cursor",d.cursor)}if(d.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",d.opacity)}if(d.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",d.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=
  this.scrollParent.offset();this._trigger("start",c,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!g)for(g=this.containers.length-1;g>=0;g--)this.containers[g]._trigger("activate",c,f._uiHash(this));if(b.ui.ddmanager)b.ui.ddmanager.current=this;b.ui.ddmanager&&!d.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,c);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(c);return true},_mouseDrag:function(c){this.position=this._generatePosition(c);
  this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var d=this.options,g=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-c.pageY<d.scrollSensitivity)this.scrollParent[0].scrollTop=g=this.scrollParent[0].scrollTop+d.scrollSpeed;else if(c.pageY-this.overflowOffset.top<d.scrollSensitivity)this.scrollParent[0].scrollTop=g=this.scrollParent[0].scrollTop-
  d.scrollSpeed;if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-c.pageX<d.scrollSensitivity)this.scrollParent[0].scrollLeft=g=this.scrollParent[0].scrollLeft+d.scrollSpeed;else if(c.pageX-this.overflowOffset.left<d.scrollSensitivity)this.scrollParent[0].scrollLeft=g=this.scrollParent[0].scrollLeft-d.scrollSpeed}else{if(c.pageY-b(document).scrollTop()<d.scrollSensitivity)g=b(document).scrollTop(b(document).scrollTop()-d.scrollSpeed);else if(b(window).height()-(c.pageY-b(document).scrollTop())<
  d.scrollSensitivity)g=b(document).scrollTop(b(document).scrollTop()+d.scrollSpeed);if(c.pageX-b(document).scrollLeft()<d.scrollSensitivity)g=b(document).scrollLeft(b(document).scrollLeft()-d.scrollSpeed);else if(b(window).width()-(c.pageX-b(document).scrollLeft())<d.scrollSensitivity)g=b(document).scrollLeft(b(document).scrollLeft()+d.scrollSpeed)}g!==false&&b.ui.ddmanager&&!d.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,c)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||
  this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(d=this.items.length-1;d>=0;d--){g=this.items[d];var f=g.item[0],a=this._intersectsWithPointer(g);if(a)if(f!=this.currentItem[0]&&this.placeholder[a==1?"next":"prev"]()[0]!=f&&!b.contains(this.placeholder[0],f)&&(this.options.type=="semi-dynamic"?!b.contains(this.element[0],f):true)){this.direction=a==1?"down":"up";if(this.options.tolerance==
  "pointer"||this._intersectsWithSides(g))this._rearrange(c,g);else break;this._trigger("change",c,this._uiHash());break}}this._contactContainers(c);b.ui.ddmanager&&b.ui.ddmanager.drag(this,c);this._trigger("sort",c,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(c,d){if(c){b.ui.ddmanager&&!this.options.dropBehaviour&&b.ui.ddmanager.drop(this,c);if(this.options.revert){var g=this;d=g.placeholder.offset();g.reverting=true;b(this.helper).animate({left:d.left-this.offset.parent.left-
  g.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:d.top-this.offset.parent.top-g.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){g._clear(c)})}else this._clear(c,d);return false}},cancel:function(){var c=this;if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();
  for(var d=this.containers.length-1;d>=0;d--){this.containers[d]._trigger("deactivate",null,c._uiHash(this));if(this.containers[d].containerCache.over){this.containers[d]._trigger("out",null,c._uiHash(this));this.containers[d].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();b.extend(this,{helper:null,dragging:false,
  reverting:false,_noFinalSort:null});this.domPosition.prev?b(this.domPosition.prev).after(this.currentItem):b(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(c){var d=this._getItemsAsjQuery(c&&c.connected),g=[];c=c||{};b(d).each(function(){var f=(b(c.item||this).attr(c.attribute||"id")||"").match(c.expression||/(.+)[-=_](.+)/);if(f)g.push((c.key||f[1]+"[]")+"="+(c.key&&c.expression?f[1]:f[2]))});!g.length&&c.key&&g.push(c.key+"=");return g.join("&")},toArray:function(c){var d=
  this._getItemsAsjQuery(c&&c.connected),g=[];c=c||{};d.each(function(){g.push(b(c.item||this).attr(c.attribute||"id")||"")});return g},_intersectsWith:function(c){var d=this.positionAbs.left,g=d+this.helperProportions.width,f=this.positionAbs.top,a=f+this.helperProportions.height,e=c.left,h=e+c.width,i=c.top,j=i+c.height,n=this.offset.click.top,q=this.offset.click.left;n=f+n>i&&f+n<j&&d+q>e&&d+q<h;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!=
  "pointer"&&this.helperProportions[this.floating?"width":"height"]>c[this.floating?"width":"height"]?n:e<d+this.helperProportions.width/2&&g-this.helperProportions.width/2<h&&i<f+this.helperProportions.height/2&&a-this.helperProportions.height/2<j},_intersectsWithPointer:function(c){var d=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,c.top,c.height);c=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,c.left,c.width);d=d&&c;c=this._getDragVerticalDirection();var g=this._getDragHorizontalDirection();
  if(!d)return false;return this.floating?g&&g=="right"||c=="down"?2:1:c&&(c=="down"?2:1)},_intersectsWithSides:function(c){var d=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,c.top+c.height/2,c.height);c=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,c.left+c.width/2,c.width);var g=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();return this.floating&&f?f=="right"&&c||f=="left"&&!c:g&&(g=="down"&&d||g=="up"&&!d)},_getDragVerticalDirection:function(){var c=
  this.positionAbs.top-this.lastPositionAbs.top;return c!=0&&(c>0?"down":"up")},_getDragHorizontalDirection:function(){var c=this.positionAbs.left-this.lastPositionAbs.left;return c!=0&&(c>0?"right":"left")},refresh:function(c){this._refreshItems(c);this.refreshPositions();return this},_connectWith:function(){var c=this.options;return c.connectWith.constructor==String?[c.connectWith]:c.connectWith},_getItemsAsjQuery:function(c){var d=[],g=[],f=this._connectWith();if(f&&c)for(c=f.length-1;c>=0;c--)for(var a=
  b(f[c]),e=a.length-1;e>=0;e--){var h=b.data(a[e],"sortable");if(h&&h!=this&&!h.options.disabled)g.push([b.isFunction(h.options.items)?h.options.items.call(h.element):b(h.options.items,h.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),h])}g.push([b.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):b(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(c=g.length-
  1;c>=0;c--)g[c][0].each(function(){d.push(this)});return b(d)},_removeCurrentsFromItems:function(){for(var c=this.currentItem.find(":data(sortable-item)"),d=0;d<this.items.length;d++)for(var g=0;g<c.length;g++)c[g]==this.items[d].item[0]&&this.items.splice(d,1)},_refreshItems:function(c){this.items=[];this.containers=[this];var d=this.items,g=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],c,{item:this.currentItem}):b(this.options.items,this.element),this]],f=this._connectWith();
  if(f)for(var a=f.length-1;a>=0;a--)for(var e=b(f[a]),h=e.length-1;h>=0;h--){var i=b.data(e[h],"sortable");if(i&&i!=this&&!i.options.disabled){g.push([b.isFunction(i.options.items)?i.options.items.call(i.element[0],c,{item:this.currentItem}):b(i.options.items,i.element),i]);this.containers.push(i)}}for(a=g.length-1;a>=0;a--){c=g[a][1];f=g[a][0];h=0;for(e=f.length;h<e;h++){i=b(f[h]);i.data("sortable-item",c);d.push({item:i,instance:c,width:0,height:0,left:0,top:0})}}},refreshPositions:function(c){if(this.offsetParent&&
  this.helper)this.offset.parent=this._getParentOffset();for(var d=this.items.length-1;d>=0;d--){var g=this.items[d],f=this.options.toleranceElement?b(this.options.toleranceElement,g.item):g.item;if(!c){g.width=f.outerWidth();g.height=f.outerHeight()}f=f.offset();g.left=f.left;g.top=f.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(d=this.containers.length-1;d>=0;d--){f=this.containers[d].element.offset();this.containers[d].containerCache.left=
  f.left;this.containers[d].containerCache.top=f.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=this.containers[d].element.outerHeight()}return this},_createPlaceholder:function(c){var d=c||this,g=d.options;if(!g.placeholder||g.placeholder.constructor==String){var f=g.placeholder;g.placeholder={element:function(){var a=b(document.createElement(d.currentItem[0].nodeName)).addClass(f||d.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];
  if(!f)a.style.visibility="hidden";return a},update:function(a,e){if(!(f&&!g.forcePlaceholderSize)){e.height()||e.height(d.currentItem.innerHeight()-parseInt(d.currentItem.css("paddingTop")||0,10)-parseInt(d.currentItem.css("paddingBottom")||0,10));e.width()||e.width(d.currentItem.innerWidth()-parseInt(d.currentItem.css("paddingLeft")||0,10)-parseInt(d.currentItem.css("paddingRight")||0,10))}}}}d.placeholder=b(g.placeholder.element.call(d.element,d.currentItem));d.currentItem.after(d.placeholder);
  g.placeholder.update(d,d.placeholder)},_contactContainers:function(c){for(var d=null,g=null,f=this.containers.length-1;f>=0;f--)if(!b.contains(this.currentItem[0],this.containers[f].element[0]))if(this._intersectsWith(this.containers[f].containerCache)){if(!(d&&b.contains(this.containers[f].element[0],d.element[0]))){d=this.containers[f];g=f}}else if(this.containers[f].containerCache.over){this.containers[f]._trigger("out",c,this._uiHash(this));this.containers[f].containerCache.over=0}if(d)if(this.containers.length===
  1){this.containers[g]._trigger("over",c,this._uiHash(this));this.containers[g].containerCache.over=1}else if(this.currentContainer!=this.containers[g]){d=1E4;f=null;for(var a=this.positionAbs[this.containers[g].floating?"left":"top"],e=this.items.length-1;e>=0;e--)if(b.contains(this.containers[g].element[0],this.items[e].item[0])){var h=this.items[e][this.containers[g].floating?"left":"top"];if(Math.abs(h-a)<d){d=Math.abs(h-a);f=this.items[e]}}if(f||this.options.dropOnEmpty){this.currentContainer=
  this.containers[g];f?this._rearrange(c,f,null,true):this._rearrange(c,null,this.containers[g].element,true);this._trigger("change",c,this._uiHash());this.containers[g]._trigger("change",c,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[g]._trigger("over",c,this._uiHash(this));this.containers[g].containerCache.over=1}}},_createHelper:function(c){var d=this.options;c=b.isFunction(d.helper)?b(d.helper.apply(this.element[0],[c,this.currentItem])):
  d.helper=="clone"?this.currentItem.clone():this.currentItem;c.parents("body").length||b(d.appendTo!="parent"?d.appendTo:this.currentItem[0].parentNode)[0].appendChild(c[0]);if(c[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(c[0].style.width==""||d.forceHelperSize)c.width(this.currentItem.width());if(c[0].style.height==
  ""||d.forceHelperSize)c.height(this.currentItem.height());return c},_adjustOffsetFromHelper:function(c){if(typeof c=="string")c=c.split(" ");if(b.isArray(c))c={left:+c[0],top:+c[1]||0};if("left"in c)this.offset.click.left=c.left+this.margins.left;if("right"in c)this.offset.click.left=this.helperProportions.width-c.right+this.margins.left;if("top"in c)this.offset.click.top=c.top+this.margins.top;if("bottom"in c)this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=
  this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.contains(this.scrollParent[0],this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)c={top:0,left:0};return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),
  10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.currentItem.position();return{top:c.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions=
  {width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var c=this.options;if(c.containment=="parent")c.containment=this.helper[0].parentNode;if(c.containment=="document"||c.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(c.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(c.containment=="document"?document:window).height()||
  document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(c.containment)){var d=b(c.containment)[0];c=b(c.containment).offset();var g=b(d).css("overflow")!="hidden";this.containment=[c.left+(parseInt(b(d).css("borderLeftWidth"),10)||0)+(parseInt(b(d).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(b(d).css("borderTopWidth"),10)||0)+(parseInt(b(d).css("paddingTop"),10)||0)-this.margins.top,c.left+(g?Math.max(d.scrollWidth,
  d.offsetWidth):d.offsetWidth)-(parseInt(b(d).css("borderLeftWidth"),10)||0)-(parseInt(b(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,c.top+(g?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(b(d).css("borderTopWidth"),10)||0)-(parseInt(b(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(c,d){if(!d)d=this.position;c=c=="absolute"?1:-1;var g=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=
  document&&b.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(g[0].tagName);return{top:d.top+this.offset.relative.top*c+this.offset.parent.top*c-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:g.scrollTop())*c),left:d.left+this.offset.relative.left*c+this.offset.parent.left*c-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
  f?0:g.scrollLeft())*c)}},_generatePosition:function(c){var d=this.options,g=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(g[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var a=c.pageX,e=c.pageY;if(this.originalPosition){if(this.containment){if(c.pageX-
  this.offset.click.left<this.containment[0])a=this.containment[0]+this.offset.click.left;if(c.pageY-this.offset.click.top<this.containment[1])e=this.containment[1]+this.offset.click.top;if(c.pageX-this.offset.click.left>this.containment[2])a=this.containment[2]+this.offset.click.left;if(c.pageY-this.offset.click.top>this.containment[3])e=this.containment[3]+this.offset.click.top}if(d.grid){e=this.originalPageY+Math.round((e-this.originalPageY)/d.grid[1])*d.grid[1];e=this.containment?!(e-this.offset.click.top<
  this.containment[1]||e-this.offset.click.top>this.containment[3])?e:!(e-this.offset.click.top<this.containment[1])?e-d.grid[1]:e+d.grid[1]:e;a=this.originalPageX+Math.round((a-this.originalPageX)/d.grid[0])*d.grid[0];a=this.containment?!(a-this.offset.click.left<this.containment[0]||a-this.offset.click.left>this.containment[2])?a:!(a-this.offset.click.left<this.containment[0])?a-d.grid[0]:a+d.grid[0]:a}}return{top:e-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&
  this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:g.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:g.scrollLeft())}},_rearrange:function(c,d,g,f){g?g[0].appendChild(this.placeholder[0]):d.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?d.item[0]:d.item[0].nextSibling);this.counter=
  this.counter?++this.counter:1;var a=this,e=this.counter;window.setTimeout(function(){e==a.counter&&a.refreshPositions(!f)},0)},_clear:function(c,d){this.reverting=false;var g=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var f in this._storedCSS)if(this._storedCSS[f]=="auto"||this._storedCSS[f]=="static")this._storedCSS[f]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();
  this.fromOutside&&!d&&g.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!d)g.push(function(a){this._trigger("update",a,this._uiHash())});if(!b.contains(this.element[0],this.currentItem[0])){d||g.push(function(a){this._trigger("remove",a,this._uiHash())});for(f=this.containers.length-1;f>=0;f--)if(b.contains(this.containers[f].element[0],
  this.currentItem[0])&&!d){g.push(function(a){return function(e){a._trigger("receive",e,this._uiHash(this))}}.call(this,this.containers[f]));g.push(function(a){return function(e){a._trigger("update",e,this._uiHash(this))}}.call(this,this.containers[f]))}}for(f=this.containers.length-1;f>=0;f--){d||g.push(function(a){return function(e){a._trigger("deactivate",e,this._uiHash(this))}}.call(this,this.containers[f]));if(this.containers[f].containerCache.over){g.push(function(a){return function(e){a._trigger("out",
  e,this._uiHash(this))}}.call(this,this.containers[f]));this.containers[f].containerCache.over=0}}this._storedCursor&&b("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!d){this._trigger("beforeStop",c,this._uiHash());for(f=0;f<g.length;f++)g[f].call(this,c);this._trigger("stop",c,this._uiHash())}return false}d||
  this._trigger("beforeStop",c,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!d){for(f=0;f<g.length;f++)g[f].call(this,c);this._trigger("stop",c,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){b.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(c){var d=c||this;return{helper:d.helper,placeholder:d.placeholder||b([]),position:d.position,
  originalPosition:d.originalPosition,offset:d.positionAbs,item:d.currentItem,sender:c?c.element:null}}});b.extend(b.ui.sortable,{version:"1.9m4"})})(jQuery);
  jQuery.effects||function(b,c){function d(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 j.transparent;return j[b.trim(l).toLowerCase()]}function g(l,k){var m;do{m=b.curCSS(l,k);if(m!=""&&m!="transparent"||b.nodeName(l,"body"))break;k="backgroundColor"}while(l=l.parentNode);return d(m)}function f(){var l=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,
  k={},m,p;if(l&&l.length&&l[0]&&l[l[0]])for(var o=l.length;o--;){m=l[o];if(typeof l[m]=="string"){p=m.replace(/\-(\w)/g,function(r,s){return s.toUpperCase()});k[p]=l[m]}}else for(m in l)if(typeof l[m]==="string")k[m]=l[m];return k}function a(l){var k,m;for(k in l){m=l[k];if(m==null||b.isFunction(m)||k in q||/scrollbar/.test(k)||!/color/i.test(k)&&isNaN(parseFloat(m)))delete l[k]}return l}function e(l,k){var m={_:0},p;for(p in k)if(l[p]!=k[p])m[p]=k[p];return m}function h(l,k,m,p){if(typeof l=="object"){p=
  k;m=null;k=l;l=k.effect}if(b.isFunction(k)){p=k;m=null;k={}}if(typeof k=="number"||b.fx.speeds[k]){p=m;m=k;k={}}if(b.isFunction(m)){p=m;m=null}k=k||{};m=m||k.duration;m=b.fx.off?0:typeof m=="number"?m:m in b.fx.speeds?b.fx.speeds[m]:b.fx.speeds._default;p=p||k.complete;return[l,k,m,p]}function i(l){if(!l||typeof l==="number"||b.fx.speeds[l])return true;if(typeof l==="string"&&!b.effects[l])return true;return false}b.effects={};b.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor",
  "borderTopColor","borderColor","color","outlineColor"],function(l,k){b.fx.step[k]=function(m){if(!m.colorInit){m.start=g(m.elem,k);m.end=d(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 j={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]},n=["add","remove","toggle"],q={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};b.effects.animateClass=function(l,k,m,
  p){if(b.isFunction(m)){p=m;m=null}return this.queue("fx",function(){var o=b(this),r=o.attr("style")||" ",s=a(f.call(this)),t,u=o.attr("className");b.each(n,function(v,y){l[y]&&o[y+"Class"](l[y])});t=a(f.call(this));o.attr("className",u);o.animate(e(s,t),k,m,function(){b.each(n,function(v,y){l[y]&&o[y+"Class"](l[y])});if(typeof o.attr("style")=="object"){o.attr("style").cssText="";o.attr("style").cssText=r}else o.attr("style",r);p&&p.apply(this,arguments)});s=b.queue(this);t=s.splice(s.length-1,1)[0];
  s.splice(1,0,t);b.dequeue(this)})};b.fn.extend({_addClass:b.fn.addClass,addClass:function(l,k,m,p){return k?b.effects.animateClass.apply(this,[{add:l},k,m,p]):this._addClass(l)},_removeClass:b.fn.removeClass,removeClass:function(l,k,m,p){return k?b.effects.animateClass.apply(this,[{remove:l},k,m,p]):this._removeClass(l)},_toggleClass:b.fn.toggleClass,toggleClass:function(l,k,m,p,o){return typeof k=="boolean"||k===c?m?b.effects.animateClass.apply(this,[k?{add:l}:{remove:l},m,p,o]):this._toggleClass(l,
  k):b.effects.animateClass.apply(this,[{toggle:l},k,m,p])},switchClass:function(l,k,m,p,o){return b.effects.animateClass.apply(this,[{add:k,remove:l},m,p,o])}});b.extend(b.effects,{version:"1.9m4",save:function(l,k){for(var m=0;m<k.length;m++)k[m]!==null&&l.data("ec.storage."+k[m],l[0].style[k[m]])},restore:function(l,k){for(var m=0;m<k.length;m++)k[m]!==null&&l.css(k[m],l.data("ec.storage."+k[m]))},setMode:function(l,k){if(k=="toggle")k=l.is(":hidden")?"show":"hide";return k},getBaseline:function(l,
  k){var m;switch(l[0]){case "top":m=0;break;case "middle":m=0.5;break;case "bottom":m=1;break;default:m=l[0]/k.height}switch(l[1]){case "left":l=0;break;case "center":l=0.5;break;case "right":l=1;break;default:l=l[1]/k.width}return{x:l,y:m}},createWrapper:function(l){if(l.parent().is(".ui-effects-wrapper"))return l.parent();var k={width:l.outerWidth(true),height:l.outerHeight(true),"float":l.css("float")},m=b("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",
  border:"none",margin:0,padding:0});l.wrap(m);m=l.parent();if(l.css("position")=="static"){m.css({position:"relative"});l.css({position:"relative"})}else{b.extend(k,{position:l.css("position"),zIndex:l.css("z-index")});b.each(["top","left","bottom","right"],function(p,o){k[o]=l.css(o);if(isNaN(parseInt(k[o],10)))k[o]="auto"});l.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return m.css(k).show()},removeWrapper:function(l){if(l.parent().is(".ui-effects-wrapper"))return l.parent().replaceWith(l);
  return l},setTransition:function(l,k,m,p){p=p||{};b.each(k,function(o,r){unit=l.cssUnit(r);if(unit[0]>0)p[r]=unit[0]*m+unit[1]});return p}});b.fn.extend({effect:function(l){var k=h.apply(this,arguments),m={options:k[1],duration:k[2],callback:k[3]};k=m.options.mode;var p=b.effects[l];if(b.fx.off||!p)return k?this[k](m.duration,m.callback):this.each(function(){m.callback&&m.callback.call(this)});return p.call(this,m)},_show:b.fn.show,show:function(l){if(i(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:b.fn.hide,hide:function(l){if(i(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:b.fn.toggle,toggle:function(l){if(i(l)||typeof l==="boolean"||b.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(l){var k=this.css(l),
  m=[];b.each(["em","px","%","pt"],function(p,o){if(k.indexOf(o)>0)m=[parseFloat(k),o]});return m}});b.easing.jswing=b.easing.swing;b.extend(b.easing,{def:"easeOutQuad",swing:function(l,k,m,p,o){return b.easing[b.easing.def](l,k,m,p,o)},easeInQuad:function(l,k,m,p,o){return p*(k/=o)*k+m},easeOutQuad:function(l,k,m,p,o){return-p*(k/=o)*(k-2)+m},easeInOutQuad:function(l,k,m,p,o){if((k/=o/2)<1)return p/2*k*k+m;return-p/2*(--k*(k-2)-1)+m},easeInCubic:function(l,k,m,p,o){return p*(k/=o)*k*k+m},easeOutCubic:function(l,
  k,m,p,o){return p*((k=k/o-1)*k*k+1)+m},easeInOutCubic:function(l,k,m,p,o){if((k/=o/2)<1)return p/2*k*k*k+m;return p/2*((k-=2)*k*k+2)+m},easeInQuart:function(l,k,m,p,o){return p*(k/=o)*k*k*k+m},easeOutQuart:function(l,k,m,p,o){return-p*((k=k/o-1)*k*k*k-1)+m},easeInOutQuart:function(l,k,m,p,o){if((k/=o/2)<1)return p/2*k*k*k*k+m;return-p/2*((k-=2)*k*k*k-2)+m},easeInQuint:function(l,k,m,p,o){return p*(k/=o)*k*k*k*k+m},easeOutQuint:function(l,k,m,p,o){return p*((k=k/o-1)*k*k*k*k+1)+m},easeInOutQuint:function(l,
  k,m,p,o){if((k/=o/2)<1)return p/2*k*k*k*k*k+m;return p/2*((k-=2)*k*k*k*k+2)+m},easeInSine:function(l,k,m,p,o){return-p*Math.cos(k/o*(Math.PI/2))+p+m},easeOutSine:function(l,k,m,p,o){return p*Math.sin(k/o*(Math.PI/2))+m},easeInOutSine:function(l,k,m,p,o){return-p/2*(Math.cos(Math.PI*k/o)-1)+m},easeInExpo:function(l,k,m,p,o){return k==0?m:p*Math.pow(2,10*(k/o-1))+m},easeOutExpo:function(l,k,m,p,o){return k==o?m+p:p*(-Math.pow(2,-10*k/o)+1)+m},easeInOutExpo:function(l,k,m,p,o){if(k==0)return m;if(k==
  o)return m+p;if((k/=o/2)<1)return p/2*Math.pow(2,10*(k-1))+m;return p/2*(-Math.pow(2,-10*--k)+2)+m},easeInCirc:function(l,k,m,p,o){return-p*(Math.sqrt(1-(k/=o)*k)-1)+m},easeOutCirc:function(l,k,m,p,o){return p*Math.sqrt(1-(k=k/o-1)*k)+m},easeInOutCirc:function(l,k,m,p,o){if((k/=o/2)<1)return-p/2*(Math.sqrt(1-k*k)-1)+m;return p/2*(Math.sqrt(1-(k-=2)*k)+1)+m},easeInElastic:function(l,k,m,p,o){l=1.70158;var r=0,s=p;if(k==0)return m;if((k/=o)==1)return m+p;r||(r=o*0.3);if(s<Math.abs(p)){s=p;l=r/4}else l=
  r/(2*Math.PI)*Math.asin(p/s);return-(s*Math.pow(2,10*(k-=1))*Math.sin((k*o-l)*2*Math.PI/r))+m},easeOutElastic:function(l,k,m,p,o){l=1.70158;var r=0,s=p;if(k==0)return m;if((k/=o)==1)return m+p;r||(r=o*0.3);if(s<Math.abs(p)){s=p;l=r/4}else l=r/(2*Math.PI)*Math.asin(p/s);return s*Math.pow(2,-10*k)*Math.sin((k*o-l)*2*Math.PI/r)+p+m},easeInOutElastic:function(l,k,m,p,o){l=1.70158;var r=0,s=p;if(k==0)return m;if((k/=o/2)==2)return m+p;r||(r=o*0.3*1.5);if(s<Math.abs(p)){s=p;l=r/4}else l=r/(2*Math.PI)*Math.asin(p/
  s);if(k<1)return-0.5*s*Math.pow(2,10*(k-=1))*Math.sin((k*o-l)*2*Math.PI/r)+m;return s*Math.pow(2,-10*(k-=1))*Math.sin((k*o-l)*2*Math.PI/r)*0.5+p+m},easeInBack:function(l,k,m,p,o,r){if(r==c)r=1.70158;return p*(k/=o)*k*((r+1)*k-r)+m},easeOutBack:function(l,k,m,p,o,r){if(r==c)r=1.70158;return p*((k=k/o-1)*k*((r+1)*k+r)+1)+m},easeInOutBack:function(l,k,m,p,o,r){if(r==c)r=1.70158;if((k/=o/2)<1)return p/2*k*k*(((r*=1.525)+1)*k-r)+m;return p/2*((k-=2)*k*(((r*=1.525)+1)*k+r)+2)+m},easeInBounce:function(l,
  k,m,p,o){return p-b.easing.easeOutBounce(l,o-k,0,p,o)+m},easeOutBounce:function(l,k,m,p,o){return(k/=o)<1/2.75?p*7.5625*k*k+m:k<2/2.75?p*(7.5625*(k-=1.5/2.75)*k+0.75)+m:k<2.5/2.75?p*(7.5625*(k-=2.25/2.75)*k+0.9375)+m:p*(7.5625*(k-=2.625/2.75)*k+0.984375)+m},easeInOutBounce:function(l,k,m,p,o){if(k<o/2)return b.easing.easeInBounce(l,k*2,0,p,o)*0.5+m;return b.easing.easeOutBounce(l,k*2-o,0,p,o)*0.5+p*0.5+m}})}(jQuery);
  (function(b){b.effects.blind=function(c){return this.queue(function(){var d=b(this),g=["position","top","bottom","left","right"],f=b.effects.setMode(d,c.options.mode||"hide"),a=c.options.direction||"vertical";b.effects.save(d,g);d.show();var e=b.effects.createWrapper(d).css({overflow:"hidden"}),h=a=="vertical"?"height":"width";a=a=="vertical"?e.height():e.width();f=="show"&&e.css(h,0);var i={};i[h]=f=="show"?a:0;e.animate(i,c.duration,c.options.easing,function(){f=="hide"&&d.hide();b.effects.restore(d,
  g);b.effects.removeWrapper(d);c.callback&&c.callback.apply(d[0],arguments);d.dequeue()})})}})(jQuery);
  (function(b){b.effects.bounce=function(c){return this.queue(function(){var d=b(this),g=["position","top","bottom","left","right"],f=b.effects.setMode(d,c.options.mode||"effect"),a=c.options.direction||"up",e=c.options.distance||20,h=c.options.times||5,i=c.duration||250;/show|hide/.test(f)&&g.push("opacity");b.effects.save(d,g);d.show();b.effects.createWrapper(d);var j=a=="up"||a=="down"?"top":"left";a=a=="up"||a=="left"?"pos":"neg";e=c.options.distance||(j=="top"?d.outerHeight({margin:true})/3:d.outerWidth({margin:true})/
  3);if(f=="show")d.css("opacity",0).css(j,a=="pos"?-e:e);if(f=="hide")e/=h*2;f!="hide"&&h--;if(f=="show"){var n={opacity:1};n[j]=(a=="pos"?"+=":"-=")+e;d.animate(n,i/2,c.options.easing);e/=2;h--}for(n=0;n<h;n++){var q={},l={};q[j]=(a=="pos"?"-=":"+=")+e;l[j]=(a=="pos"?"+=":"-=")+e;d.animate(q,i/2,c.options.easing).animate(l,i/2,c.options.easing);e=f=="hide"?e*2:e/2}if(f=="hide"){n={opacity:0};n[j]=(a=="pos"?"-=":"+=")+e;d.animate(n,i/2,c.options.easing,function(){d.hide();b.effects.restore(d,g);b.effects.removeWrapper(d);
  c.callback&&c.callback.apply(this,arguments)})}else{q={};l={};q[j]=(a=="pos"?"-=":"+=")+e;l[j]=(a=="pos"?"+=":"-=")+e;d.animate(q,i/2,c.options.easing).animate(l,i/2,c.options.easing,function(){b.effects.restore(d,g);b.effects.removeWrapper(d);c.callback&&c.callback.apply(this,arguments)})}d.queue("fx",function(){d.dequeue()});d.dequeue()})}})(jQuery);
  (function(b){b.effects.clip=function(c){return this.queue(function(){var d=b(this),g=["position","top","bottom","left","right","height","width"],f=b.effects.setMode(d,c.options.mode||"hide"),a=c.options.direction||"vertical";b.effects.save(d,g);d.show();var e=b.effects.createWrapper(d).css({overflow:"hidden"});e=d[0].tagName=="IMG"?e:d;var h={size:a=="vertical"?"height":"width",position:a=="vertical"?"top":"left"};a=a=="vertical"?e.height():e.width();if(f=="show"){e.css(h.size,0);e.css(h.position,
  a/2)}var i={};i[h.size]=f=="show"?a:0;i[h.position]=f=="show"?0:a/2;e.animate(i,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){f=="hide"&&d.hide();b.effects.restore(d,g);b.effects.removeWrapper(d);c.callback&&c.callback.apply(d[0],arguments);d.dequeue()}})})}})(jQuery);
  (function(b){b.effects.drop=function(c){return this.queue(function(){var d=b(this),g=["position","top","bottom","left","right","opacity"],f=b.effects.setMode(d,c.options.mode||"hide"),a=c.options.direction||"left";b.effects.save(d,g);d.show();b.effects.createWrapper(d);var e=a=="up"||a=="down"?"top":"left";a=a=="up"||a=="left"?"pos":"neg";var h=c.options.distance||(e=="top"?d.outerHeight({margin:true})/2:d.outerWidth({margin:true})/2);if(f=="show")d.css("opacity",0).css(e,a=="pos"?-h:h);var i={opacity:f==
  "show"?1:0};i[e]=(f=="show"?a=="pos"?"+=":"-=":a=="pos"?"-=":"+=")+h;d.animate(i,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){f=="hide"&&d.hide();b.effects.restore(d,g);b.effects.removeWrapper(d);c.callback&&c.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
  (function(b){b.effects.explode=function(c){return this.queue(function(){var d=c.options.pieces?Math.round(Math.sqrt(c.options.pieces)):3,g=c.options.pieces?Math.round(Math.sqrt(c.options.pieces)):3;c.options.mode=c.options.mode=="toggle"?b(this).is(":visible")?"hide":"show":c.options.mode;var f=b(this).show().css("visibility","hidden"),a=f.offset();a.top-=parseInt(f.css("marginTop"),10)||0;a.left-=parseInt(f.css("marginLeft"),10)||0;for(var e=f.outerWidth(true),h=f.outerHeight(true),i=0;i<d;i++)for(var j=
  0;j<g;j++)f.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-j*(e/g),top:-i*(h/d)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:e/g,height:h/d,left:a.left+j*(e/g)+(c.options.mode=="show"?(j-Math.floor(g/2))*(e/g):0),top:a.top+i*(h/d)+(c.options.mode=="show"?(i-Math.floor(d/2))*(h/d):0),opacity:c.options.mode=="show"?0:1}).animate({left:a.left+j*(e/g)+(c.options.mode=="show"?0:(j-Math.floor(g/2))*(e/g)),top:a.top+
  i*(h/d)+(c.options.mode=="show"?0:(i-Math.floor(d/2))*(h/d)),opacity:c.options.mode=="show"?1:0},c.duration||500);setTimeout(function(){c.options.mode=="show"?f.css({visibility:"visible"}):f.css({visibility:"visible"}).hide();c.callback&&c.callback.apply(f[0]);f.dequeue();b("div.ui-effects-explode").remove()},c.duration||500)})}})(jQuery);
  (function(b){b.effects.fade=function(c){return this.queue(function(){var d=b(this),g=b.effects.setMode(d,c.options.mode||"hide");d.animate({opacity:g},{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){c.callback&&c.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
  (function(b){b.effects.fold=function(c){return this.queue(function(){var d=b(this),g=["position","top","bottom","left","right"],f=b.effects.setMode(d,c.options.mode||"hide"),a=c.options.size||15,e=!!c.options.horizFirst,h=c.duration?c.duration/2:b.fx.speeds._default/2;b.effects.save(d,g);d.show();var i=b.effects.createWrapper(d).css({overflow:"hidden"}),j=f=="show"!=e,n=j?["width","height"]:["height","width"];j=j?[i.width(),i.height()]:[i.height(),i.width()];var q=/([0-9]+)%/.exec(a);if(q)a=parseInt(q[1],
  10)/100*j[f=="hide"?0:1];if(f=="show")i.css(e?{height:0,width:a}:{height:a,width:0});e={};q={};e[n[0]]=f=="show"?j[0]:a;q[n[1]]=f=="show"?j[1]:0;i.animate(e,h,c.options.easing).animate(q,h,c.options.easing,function(){f=="hide"&&d.hide();b.effects.restore(d,g);b.effects.removeWrapper(d);c.callback&&c.callback.apply(d[0],arguments);d.dequeue()})})}})(jQuery);
  (function(b){b.effects.highlight=function(c){return this.queue(function(){var d=b(this),g=["backgroundImage","backgroundColor","opacity"],f=b.effects.setMode(d,c.options.mode||"show"),a={backgroundColor:d.css("backgroundColor")};if(f=="hide")a.opacity=0;b.effects.save(d,g);d.show().css({backgroundImage:"none",backgroundColor:c.options.color||"#ffff99"}).animate(a,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){f=="hide"&&d.hide();b.effects.restore(d,g);f=="show"&&!b.support.opacity&&
  this.style.removeAttribute("filter");c.callback&&c.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
  (function(b){b.effects.pulsate=function(c){return this.queue(function(){var d=b(this),g=b.effects.setMode(d,c.options.mode||"show");times=(c.options.times||5)*2-1;duration=c.duration?c.duration/2:b.fx.speeds._default/2;isVisible=d.is(":visible");animateTo=0;if(!isVisible){d.css("opacity",0).show();animateTo=1}if(g=="hide"&&isVisible||g=="show"&&!isVisible)times--;for(g=0;g<times;g++){d.animate({opacity:animateTo},duration,c.options.easing);animateTo=(animateTo+1)%2}d.animate({opacity:animateTo},duration,
  c.options.easing,function(){animateTo==0&&d.hide();c.callback&&c.callback.apply(this,arguments)});d.queue("fx",function(){d.dequeue()}).dequeue()})}})(jQuery);
  (function(b){b.effects.puff=function(c){return this.queue(function(){var d=b(this),g=b.effects.setMode(d,c.options.mode||"hide"),f=parseInt(c.options.percent,10)||150,a=f/100,e={height:d.height(),width:d.width()};b.extend(c.options,{fade:true,mode:g,percent:g=="hide"?f:100,from:g=="hide"?e:{height:e.height*a,width:e.width*a}});d.effect("scale",c.options,c.duration,c.callback);d.dequeue()})};b.effects.scale=function(c){return this.queue(function(){var d=b(this),g=b.extend(true,{},c.options),f=b.effects.setMode(d,
  c.options.mode||"effect"),a=parseInt(c.options.percent,10)||(parseInt(c.options.percent,10)==0?0:f=="hide"?0:100),e=c.options.direction||"both",h=c.options.origin;if(f!="effect"){g.origin=h||["middle","center"];g.restore=true}h={height:d.height(),width:d.width()};d.from=c.options.from||(f=="show"?{height:0,width:0}:h);a={y:e!="horizontal"?a/100:1,x:e!="vertical"?a/100:1};d.to={height:h.height*a.y,width:h.width*a.x};if(c.options.fade){if(f=="show"){d.from.opacity=0;d.to.opacity=1}if(f=="hide"){d.from.opacity=
  1;d.to.opacity=0}}g.from=d.from;g.to=d.to;g.mode=f;d.effect("size",g,c.duration,c.callback);d.dequeue()})};b.effects.size=function(c){return this.queue(function(){var d=b(this),g=["position","top","bottom","left","right","width","height","overflow","opacity"],f=["position","top","bottom","left","right","overflow","opacity"],a=["width","height","overflow"],e=["fontSize"],h=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],i=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],
  j=b.effects.setMode(d,c.options.mode||"effect"),n=c.options.restore||false,q=c.options.scale||"both",l=c.options.origin,k={height:d.height(),width:d.width()};d.from=c.options.from||k;d.to=c.options.to||k;if(l){l=b.effects.getBaseline(l,k);d.from.top=(k.height-d.from.height)*l.y;d.from.left=(k.width-d.from.width)*l.x;d.to.top=(k.height-d.to.height)*l.y;d.to.left=(k.width-d.to.width)*l.x}var m={from:{y:d.from.height/k.height,x:d.from.width/k.width},to:{y:d.to.height/k.height,x:d.to.width/k.width}};
  if(q=="box"||q=="both"){if(m.from.y!=m.to.y){g=g.concat(h);d.from=b.effects.setTransition(d,h,m.from.y,d.from);d.to=b.effects.setTransition(d,h,m.to.y,d.to)}if(m.from.x!=m.to.x){g=g.concat(i);d.from=b.effects.setTransition(d,i,m.from.x,d.from);d.to=b.effects.setTransition(d,i,m.to.x,d.to)}}if(q=="content"||q=="both")if(m.from.y!=m.to.y){g=g.concat(e);d.from=b.effects.setTransition(d,e,m.from.y,d.from);d.to=b.effects.setTransition(d,e,m.to.y,d.to)}b.effects.save(d,n?g:f);d.show();b.effects.createWrapper(d);
  d.css("overflow","hidden").css(d.from);if(q=="content"||q=="both"){h=h.concat(["marginTop","marginBottom"]).concat(e);i=i.concat(["marginLeft","marginRight"]);a=g.concat(h).concat(i);d.find("*[width]").each(function(){child=b(this);n&&b.effects.save(child,a);var p={height:child.height(),width:child.width()};child.from={height:p.height*m.from.y,width:p.width*m.from.x};child.to={height:p.height*m.to.y,width:p.width*m.to.x};if(m.from.y!=m.to.y){child.from=b.effects.setTransition(child,h,m.from.y,child.from);
  child.to=b.effects.setTransition(child,h,m.to.y,child.to)}if(m.from.x!=m.to.x){child.from=b.effects.setTransition(child,i,m.from.x,child.from);child.to=b.effects.setTransition(child,i,m.to.x,child.to)}child.css(child.from);child.animate(child.to,c.duration,c.options.easing,function(){n&&b.effects.restore(child,a)})})}d.animate(d.to,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){d.to.opacity===0&&d.css("opacity",d.from.opacity);j=="hide"&&d.hide();b.effects.restore(d,
  n?g:f);b.effects.removeWrapper(d);c.callback&&c.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
  (function(b){b.effects.shake=function(c){return this.queue(function(){var d=b(this),g=["position","top","bottom","left","right"];b.effects.setMode(d,c.options.mode||"effect");var f=c.options.direction||"left",a=c.options.distance||20,e=c.options.times||3,h=c.duration||c.options.duration||140;b.effects.save(d,g);d.show();b.effects.createWrapper(d);var i=f=="up"||f=="down"?"top":"left",j=f=="up"||f=="left"?"pos":"neg";f={};var n={},q={};f[i]=(j=="pos"?"-=":"+=")+a;n[i]=(j=="pos"?"+=":"-=")+a*2;q[i]=
  (j=="pos"?"-=":"+=")+a*2;d.animate(f,h,c.options.easing);for(a=1;a<e;a++)d.animate(n,h,c.options.easing).animate(q,h,c.options.easing);d.animate(n,h,c.options.easing).animate(f,h/2,c.options.easing,function(){b.effects.restore(d,g);b.effects.removeWrapper(d);c.callback&&c.callback.apply(this,arguments)});d.queue("fx",function(){d.dequeue()});d.dequeue()})}})(jQuery);
  (function(b){b.effects.slide=function(c){return this.queue(function(){var d=b(this),g=["position","top","bottom","left","right"],f=b.effects.setMode(d,c.options.mode||"show"),a=c.options.direction||"left";b.effects.save(d,g);d.show();b.effects.createWrapper(d).css({overflow:"hidden"});var e=a=="up"||a=="down"?"top":"left";a=a=="up"||a=="left"?"pos":"neg";var h=c.options.distance||(e=="top"?d.outerHeight({margin:true}):d.outerWidth({margin:true}));if(f=="show")d.css(e,a=="pos"?isNaN(h)?"-"+h:-h:h);
  var i={};i[e]=(f=="show"?a=="pos"?"+=":"-=":a=="pos"?"-=":"+=")+h;d.animate(i,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){f=="hide"&&d.hide();b.effects.restore(d,g);b.effects.removeWrapper(d);c.callback&&c.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
  (function(b){b.effects.transfer=function(c){return this.queue(function(){var d=b(this),g=b(c.options.to),f=g.offset();g={top:f.top,left:f.left,height:g.innerHeight(),width:g.innerWidth()};f=d.offset();var a=b('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(c.options.className).css({top:f.top,left:f.left,height:d.innerHeight(),width:d.innerWidth(),position:"absolute"}).animate(g,c.duration,c.options.easing,function(){a.remove();c.callback&&c.callback.apply(d[0],arguments);
  d.dequeue()})})}})(jQuery);
  (function(b){b.widget("ui.accordion",{options:{active:0,animated:"slide",collapsible:false,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"}},_create:function(){var c=this,d=c.options;c.running=false;c.element.addClass("ui-accordion ui-widget ui-helper-reset");c.headers=c.element.find(d.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all");c._hoverable(c.headers);
  c._focusable(c.headers);c.headers.find(":first-child").addClass("ui-accordion-heading");c.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(!d.collapsible&&d.active===false)d.active=0;if(d.active<0)d.active+=this.headers.length;c.active=c._findActive(d.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");c.active.next().addClass("ui-accordion-content-active");c._createIcons();c.refresh();
  c.element.attr("role","tablist");c.headers.attr("role","tab").bind("keydown.accordion",b.proxy(c,"_keydown")).next().attr("role","tabpanel");c.headers.not(c.active).attr({"aria-expanded":"false",tabIndex:-1}).next().hide();c.active.length?c.active.attr({"aria-expanded":"true",tabIndex:0}):c.headers.eq(0).attr("tabIndex",0);b.browser.safari||c.headers.find("a").attr("tabIndex",-1);this._setupEvents(d.event)},_createIcons:function(){var c=this.options.icons;if(c){b("<span>").addClass("ui-accordion-header-icon ui-icon "+
  c.header).prependTo(this.headers);this.active.children(".ui-accordion-header-icon").removeClass(c.header).addClass(c.activeHeader);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-accordion-header-icon").remove();this.element.removeClass("ui-accordion-icons")},_destroy:function(){this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex").find("a").removeAttr("tabIndex").end().find(".ui-accordion-heading").removeClass("ui-accordion-heading");
  this._destroyIcons();var c=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");this.options.heightStyle!=="content"&&c.css("height","")},_setOption:function(c,d){if(c==="active")this._activate(d);else{this._super("_setOption",c,d);c==="collapsible"&&!d&&this.options.active===false&&this._activate(0);c==="event"&&this._setupEvents(d);if(c===
  "icons"){this._destroyIcons();d&&this._createIcons()}c==="disabled"&&this.headers.add(this.headers.next()).toggleClass("ui-accordion-disabled ui-state-disabled",!!d)}},_keydown:function(c){if(!(this.options.disabled||c.altKey||c.ctrlKey)){var d=b.ui.keyCode,g=this.headers.length,f=this.headers.index(c.target),a=false;switch(c.keyCode){case d.RIGHT:case d.DOWN:a=this.headers[(f+1)%g];break;case d.LEFT:case d.UP:a=this.headers[(f-1+g)%g];break;case d.SPACE:case d.ENTER:this._eventHandler(c)}if(a){b(c.target).attr("tabIndex",
  -1);b(a).attr("tabIndex",0);a.focus();c.preventDefault()}}},refresh:function(){var c=this.options,d=this.element.parent(),g,f;if(c.heightStyle==="fill"){if(!b.support.minHeight){f=d.css("overflow");d.css("overflow","hidden")}g=d.height();this.element.siblings(":visible").each(function(){var a=b(this),e=a.css("position");e==="absolute"||e==="fixed"||(g-=a.outerHeight(true))});f&&d.css("overflow",f);this.headers.each(function(){g-=b(this).outerHeight(true)});this.headers.next().each(function(){b(this).height(Math.max(0,
  g-b(this).innerHeight()+b(this).height()))}).css("overflow","auto")}else if(c.heightStyle==="auto"){g=0;this.headers.next().each(function(){g=Math.max(g,b(this).height("").height())}).height(g)}return this},_activate:function(c){c=this._findActive(c)[0];if(c!==this.active[0]){c=c||this.active;this._eventHandler({target:c,currentTarget:c,preventDefault:b.noop})}},_findActive:function(c){return typeof c==="number"?this.headers.eq(c):b()},_setupEvents:function(c){this.headers.unbind(".accordion");c&&
  this.headers.bind(c.split(" ").join(".accordion ")+".accordion",b.proxy(this,"_eventHandler"))},_eventHandler:function(c){var d=this.options,g=this.active,f=b(c.currentTarget),a=f[0]===g[0],e=a&&d.collapsible,h=e?b():f.next(),i=g.next();h={oldHeader:g,oldContent:i,newHeader:e?b():f,newContent:h};c.preventDefault();if(!(d.disabled||this.running||a&&!d.collapsible||this._trigger("beforeActivate",null,h)===false)){d.active=e?false:this.headers.index(f);this.active=a?b():f;this._toggle(h);g.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-accordion-header-icon").removeClass(d.icons.activeHeader).addClass(d.icons.header);
  if(!a){f.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-accordion-header-icon").removeClass(d.icons.header).addClass(d.icons.activeHeader);f.next().addClass("ui-accordion-content-active")}}},_toggle:function(c){function d(){g._completed(c)}var g=this,f=g.options,a=c.newContent,e=c.oldContent;g.running=true;if(f.animated){var h=b.ui.accordion.animations;f=f.animated;var i;if(!h[f]){i={easing:b.easing[f]?f:"slide",duration:700};f="slide"}h[f]({toShow:a,
  toHide:e,complete:d,down:a.length&&(!e.length||a.index()<e.index())},i)}else{e.hide();a.show();d()}e.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(c){var d=c.newContent,g=c.oldContent;this.running=false;this.options.heightStyle==="content"&&d.add(g).css({height:"",overflow:""});g.removeClass("ui-accordion-content-active");if(g.length)g.parent()[0].className=g.parent()[0].className;this._trigger("activate",
  null,c)}});b.extend(b.ui.accordion,{version:"1.9m4",animations:{slide:function(c,d){var g=c.toShow.css("overflow"),f=c.toHide.css("overflow"),a=0,e={},h={},i;c=b.extend({easing:"swing",duration:300},c,d);if(c.toHide.size())if(c.toShow.size()){d=c.toShow;i=d[0].style.width;d.width(parseInt(d.parent().width(),10)-parseInt(d.css("paddingLeft"),10)-parseInt(d.css("paddingRight"),10)-(parseInt(d.css("borderLeftWidth"),10)||0)-(parseInt(d.css("borderRightWidth"),10)||0));b.each(["height","paddingTop",
  "paddingBottom"],function(j,n){h[n]="hide";j=(""+b.css(c.toShow[0],n)).match(/^([\d+-.]+)(.*)$/);e[n]={value:j[1],unit:j[2]||"px"}});c.toShow.css({height:0,overflow:"hidden"}).show();c.toHide.filter(":hidden").each(c.complete).end().filter(":visible").animate(h,{step:function(j,n){if(n.prop=="height")a=n.end-n.start===0?0:(n.now-n.start)/(n.end-n.start);c.toShow[0].style[n.prop]=a*e[n.prop].value+e[n.prop].unit},duration:c.duration,easing:c.easing,complete:function(){c.toShow.css({width:i,overflow:g});
  c.toHide.css("overflow",f);c.complete()}})}else c.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},c);else{i=c.toShow[0].style.width;c.toShow.show().width(c.toShow.width()).hide().animate({height:"show",paddingTop:"show",paddingBottom:"show"},{duration:c.duration,easing:c.easing,complete:function(){c.toShow.width(i);c.complete()}})}},bounceslide:function(c){this.slide(c,{easing:c.down?"easeOutBounce":"swing",duration:c.down?1E3:200})}}});if(b.uiBackCompat!==false){(function(c,
  d){c.extend(d.options,{navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}});var g=d._create;d._create=function(){if(this.options.navigation){var f=this,a=this.element.find(this.options.header),e=a.next();(current=a.add(e).find("a").filter(this.options.navigationFilter)[0])&&a.add(e).each(function(h){if(c.contains(this,current)){f.options.active=Math.floor(h/2);return false}})}g.call(this)}})(jQuery,jQuery.ui.accordion.prototype);(function(c,
  d){c.extend(d.options,{heightStyle:null,autoHeight:true,clearStyle:false,fillSpace:false});var g=d._create,f=d._setOption;c.extend(d,{_create:function(){this.options.heightStyle=this.options.heightStyle||this._mergeHeightStyle();g.call(this)},_setOption:function(a){if(a==="autoHeight"||a==="clearStyle"||a==="fillSpace")this.options.heightStyle=this._mergeHeightStyle();f.apply(this,arguments)},_mergeHeightStyle:function(){var a=this.options;if(a.fillSpace)return"fill";if(a.clearStyle)return"content";
  if(a.autoHeight)return"auto"}})})(jQuery,jQuery.ui.accordion.prototype);(function(c,d){c.extend(d.options.icons,{activeHeader:null,headerSelected:"ui-icon-triangle-1-s"});var g=d._createIcons;d._createIcons=function(){this.options.icons.activeHeader=this.options.icons.activeHeader||this.options.icons.headerSelected;g.call(this)}})(jQuery,jQuery.ui.accordion.prototype);(function(c,d){d.activate=d._activate;var g=d._findActive;d._findActive=function(f){if(f===-1)f=false;if(f&&typeof f!=="number"){f=
  this.headers.index(this.headers.filter(f));if(f===-1)f=false}return g.call(this,f)}})(jQuery,jQuery.ui.accordion.prototype);jQuery.ui.accordion.prototype.resize=jQuery.ui.accordion.prototype.refresh;(function(c,d){var g=d._trigger;d._trigger=function(f,a,e){var h=g.apply(this,arguments);if(!h)return false;if(f==="beforeActivate")h=g.call(this,"changestart",a,e);else if(f==="activate")h=g.call(this,"change",a,e);return h}})(jQuery,jQuery.ui.accordion.prototype)}})(jQuery);
  (function(b){var c=0;b.widget("ui.autocomplete",{defaultElement:"<input>",options:{appendTo:"body",delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var d=this,g=this.element[0].ownerDocument,f;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(a){if(!(d.options.disabled||d.element.attr("readonly"))){f=
  false;var e=b.ui.keyCode;switch(a.keyCode){case e.PAGE_UP:d._move("previousPage",a);break;case e.PAGE_DOWN:d._move("nextPage",a);break;case e.UP:d._move("previous",a);a.preventDefault();break;case e.DOWN:d._move("next",a);a.preventDefault();break;case e.ENTER:case e.NUMPAD_ENTER:if(d.menu.active){f=true;a.preventDefault()}case e.TAB:if(!d.menu.active)return;d.menu.select(a);break;case e.ESCAPE:d.element.val(d.term);d.close(a);break;default:clearTimeout(d.searching);d.searching=setTimeout(function(){if(d.term!=
  d.element.val()){d.selectedItem=null;d.search(null,a)}},d.options.delay);break}}}).bind("keypress.autocomplete",function(a){if(f){f=false;a.preventDefault()}}).bind("focus.autocomplete",function(){if(!d.options.disabled){d.selectedItem=null;d.previous=d.element.val()}}).bind("blur.autocomplete",function(a){if(!d.options.disabled){clearTimeout(d.searching);d.closing=setTimeout(function(){d.close(a);d._change(a)},150)}});this._initSource();this.response=function(){return d._response.apply(d,arguments)};
  this.menu=b("<ul></ul>").addClass("ui-autocomplete").appendTo(b(this.options.appendTo||"body",g)[0]).mousedown(function(a){var e=d.menu.element[0];b(a.target).closest(".ui-menu-item").length||setTimeout(function(){b(document).one("mousedown",function(h){h.target!==d.element[0]&&h.target!==e&&!b.contains(e,h.target)&&d.close()})},1);setTimeout(function(){clearTimeout(d.closing)},13)}).menu({input:b(),focus:function(a,e){e=e.item.data("item.autocomplete");false!==d._trigger("focus",a,{item:e})&&/^key/.test(a.originalEvent.type)&&
  d.element.val(e.value)},select:function(a,e){var h=e.item.data("item.autocomplete"),i=d.previous;if(d.element[0]!==g.activeElement){d.element.focus();d.previous=i;setTimeout(function(){d.previous=i;d.selectedItem=h},1)}false!==d._trigger("select",a,{item:h})&&d.element.val(h.value);d.term=d.element.val();d.close(a);d.selectedItem=h},blur:function(){d.menu.element.is(":visible")&&d.element.val()!==d.term&&d.element.val(d.term)}}).zIndex(this.element.zIndex()+1).hide().data("menu");b.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()},_setOption:function(d,g){this._super("_setOption",d,g);d==="source"&&this._initSource();if(d==="appendTo")this.menu.element.appendTo(b(g||"body",this.element[0].ownerDocument)[0]);d==="disabled"&&g&&this.xhr&&this.xhr.abort()},_initSource:function(){var d=this,g,f;if(b.isArray(this.options.source)){g=
  this.options.source;this.source=function(a,e){e(b.ui.autocomplete.filter(g,a.term))}}else if(typeof this.options.source==="string"){f=this.options.source;this.source=function(a,e){d.xhr&&d.xhr.abort();d.xhr=b.ajax({url:f,data:a,dataType:"json",autocompleteRequest:++c,success:function(h){this.autocompleteRequest===c&&e(h)},error:function(){this.autocompleteRequest===c&&e([])}})}}else this.source=this.options.source},search:function(d,g){d=d!=null?d:this.element.val();this.term=this.element.val();if(d.length<
  this.options.minLength)return this.close(g);clearTimeout(this.closing);if(this._trigger("search",g)!==false)return this._search(d)},_search:function(d){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:d},this.response)},_response:function(d){if(!this.options.disabled&&d&&d.length){d=this._normalize(d);this._suggest(d);this._trigger("open")}else this.close();this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(d){clearTimeout(this.closing);
  if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",d)}},_change:function(d){this.previous!==this.element.val()&&this._trigger("change",d,{item:this.selectedItem})},_normalize:function(d){if(d.length&&d[0].label&&d[0].value)return d;return b.map(d,function(g){if(typeof g==="string")return{label:g,value:g};return b.extend({label:g.label||g.value,value:g.value||g.label},g)})},_suggest:function(d){var g=this.menu.element.empty().zIndex(this.element.zIndex()+
  1);this._renderMenu(g,d);this.menu.deactivate();this.menu.refresh();g.show();this._resizeMenu();g.position(b.extend({of:this.element},this.options.position))},_resizeMenu:function(){var d=this.menu.element;d.outerWidth(Math.max(d.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(d,g){var f=this;b.each(g,function(a,e){f._renderItem(d,e)})},_renderItem:function(d,g){return b("<li></li>").data("item.autocomplete",g).append(b("<a></a>").text(g.label)).appendTo(d)},_move:function(d,
  g){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(d)||this.menu.last()&&/^next/.test(d)){this.element.val(this.term);this.menu.deactivate()}else this.menu[d](g);else this.search(null,g)},widget:function(){return this.menu.element}});b.extend(b.ui.autocomplete,{version:"1.9m4",escapeRegex:function(d){return d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(d,g){var f=new RegExp(b.ui.autocomplete.escapeRegex(g),"i");return b.grep(d,function(a){return f.test(a.label||
  a.value||a)})}})})(jQuery);
  (function(b){var c,d=function(f){b(":ui-button",f.target.form).each(function(){var a=b(this).data("button");setTimeout(function(){a.refresh()},1)})},g=function(f){var a=f.name,e=f.form,h=b([]);if(a)h=e?b(e).find("[name='"+a+"']"):b("[name='"+a+"']",f.ownerDocument).filter(function(){return!this.form});return h};b.widget("ui.button",{defaultElement:"<button>",options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",d);
  if(typeof this.options.disabled!=="boolean")this.options.disabled=this.element.attr("disabled");this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var f=this,a=this.options,e=this.type==="checkbox"||this.type==="radio",h="ui-state-hover"+(!e?" ui-state-active":"");if(a.label===null)a.label=this.buttonElement.html();if(this.element.is(":disabled"))a.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",
  function(){if(!a.disabled){b(this).addClass("ui-state-hover");this===c&&b(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){a.disabled||b(this).removeClass(h)}).bind("focus.button",function(){b(this).addClass("ui-state-focus")}).bind("blur.button",function(){b(this).removeClass("ui-state-focus")});e&&this.element.bind("change.button",function(){f.refresh()});if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(a.disabled)return false;b(this).toggleClass("ui-state-active");
  f.buttonElement.attr("aria-pressed",f.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",function(){if(a.disabled)return false;b(this).addClass("ui-state-active");f.buttonElement.attr("aria-pressed",true);var i=f.element[0];g(i).not(i).map(function(){return b(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)});else{this.buttonElement.bind("mousedown.button",function(){if(a.disabled)return false;b(this).addClass("ui-state-active");
  c=this;b(document).one("mouseup",function(){c=null})}).bind("mouseup.button",function(){if(a.disabled)return false;b(this).removeClass("ui-state-active")}).bind("keydown.button",function(i){if(a.disabled)return false;if(i.keyCode==b.ui.keyCode.SPACE||i.keyCode==b.ui.keyCode.ENTER)b(this).addClass("ui-state-active")}).bind("keyup.button",function(){b(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(i){i.keyCode===b.ui.keyCode.SPACE&&b(this).click()})}this._setOption("disabled",
  a.disabled)},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||this.type==="radio"){this.buttonElement=this.element.parents().last().find("label[for="+this.element.attr("id")+"]");this.element.addClass("ui-helper-hidden-accessible");var f=this.element.is(":checked");f&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",f)}else this.buttonElement=
  this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||
  this.buttonElement.removeAttr("title")},_setOption:function(f,a){this._super("_setOption",f,a);if(f==="disabled")a?this.element.attr("disabled",true):this.element.removeAttr("disabled");this._resetButton()},refresh:function(){var f=this.element.is(":disabled");f!==this.options.disabled&&this._setOption("disabled",f);if(this.type==="radio")g(this.element[0]).each(function(){b(this).is(":checked")?b(this).button("widget").addClass("ui-state-active").attr("aria-pressed",true):b(this).button("widget").removeClass("ui-state-active").attr("aria-pressed",
  false)});else if(this.type==="checkbox")this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed",true):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed",false)},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var f=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),
  a=b("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(f.empty()).text(),e=this.options.icons,h=e.primary&&e.secondary,i=[];if(e.primary||e.secondary){i.push("ui-button-text-icon"+(h?"s":e.primary?"-primary":"-secondary"));e.primary&&f.prepend("<span class='ui-button-icon-primary ui-icon "+e.primary+"'></span>");e.secondary&&f.append("<span class='ui-button-icon-secondary ui-icon "+e.secondary+"'></span>");if(!this.options.text){i.push(h?"ui-button-icons-only":"ui-button-icon-only");
  f.removeClass("ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary");this.hasTitle||f.attr("title",a)}}else i.push("ui-button-text-only");f.addClass(i.join(" "))}}});b.ui.button.version="1.9m4";b.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(f,a){f==="disabled"&&this.buttons.button("option",f,a);this._super("_setOption",
  f,a)},refresh:function(){this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}});
  b.ui.buttonset.version="1.9m4"})(jQuery);
  (function(b,c){function d(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
  "ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",
  "Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",
  minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};b.extend(this._defaults,this.regional[""]);this.dpDiv=b('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}function g(a,e){b.extend(a,e);for(var h in e)if(e[h]==
  null||e[h]==c)a[h]=e[h];return a}b.extend(b.ui,{datepicker:{version:"1.9m4"}});var f=(new Date).getTime();b.extend(d.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){g(this._defaults,a||{});return this},_attachDatepicker:function(a,e){var h=null;for(var i in this._defaults){var j=a.getAttribute("date:"+i);if(j){h=h||{};try{h[i]=eval(j)}catch(n){h[i]=j}}}i=a.nodeName.toLowerCase();
  j=i=="div"||i=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var q=this._newInst(b(a),j);q.settings=b.extend({},e||{},h||{});if(i=="input")this._connectDatepicker(a,q);else j&&this._inlineDatepicker(a,q)},_newInst:function(a,e){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:!e?this.dpDiv:b('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},
  _connectDatepicker:function(a,e){var h=b(a);e.append=b([]);e.trigger=b([]);if(!h.hasClass(this.markerClassName)){this._attachments(h,e);h.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(i,j,n){e.settings[j]=n}).bind("getData.datepicker",function(i,j){return this._get(e,j)});this._autoSize(e);b.data(a,"datepicker",e)}},_attachments:function(a,e){var h=this._get(e,"appendText"),i=this._get(e,"isRTL");e.append&&
  e.append.remove();if(h){e.append=b('<span class="'+this._appendClass+'">'+h+"</span>");a[i?"before":"after"](e.append)}a.unbind("focus",this._showDatepicker);e.trigger&&e.trigger.remove();h=this._get(e,"showOn");if(h=="focus"||h=="both")a.focus(this._showDatepicker);if(h=="button"||h=="both"){h=this._get(e,"buttonText");var j=this._get(e,"buttonImage");e.trigger=b(this._get(e,"buttonImageOnly")?b("<img/>").addClass(this._triggerClass).attr({src:j,alt:h,title:h}):b('<button type="button"></button>').addClass(this._triggerClass).html(j==
  ""?h:b("<img/>").attr({src:j,alt:h,title:h})));a[i?"before":"after"](e.trigger);e.trigger.click(function(){b.datepicker._datepickerShowing&&b.datepicker._lastInput==a[0]?b.datepicker._hideDatepicker():b.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var e=new Date(2009,11,20),h=this._get(a,"dateFormat");if(h.match(/[DM]/)){var i=function(j){for(var n=0,q=0,l=0;l<j.length;l++)if(j[l].length>n){n=j[l].length;q=l}return q};e.setMonth(i(this._get(a,
  h.match(/MM/)?"monthNames":"monthNamesShort")));e.setDate(i(this._get(a,h.match(/DD/)?"dayNames":"dayNamesShort"))+20-e.getDay())}a.input.attr("size",this._formatDate(a,e).length)}},_inlineDatepicker:function(a,e){var h=b(a);if(!h.hasClass(this.markerClassName)){h.addClass(this.markerClassName).append(e.dpDiv).bind("setData.datepicker",function(i,j,n){e.settings[j]=n}).bind("getData.datepicker",function(i,j){return this._get(e,j)});b.data(a,"datepicker",e);this._setDate(e,this._getDefaultDate(e),
  true);this._updateDatepicker(e);this._updateAlternate(e);e.dpDiv.show()}},_dialogDatepicker:function(a,e,h,i,j){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=b('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);b("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};b.data(this._dialogInput[0],"datepicker",a)}g(a.settings,i||{});
  e=e&&e.constructor==Date?this._formatDate(a,e):e;this._dialogInput.val(e);this._pos=j?j.length?j:[j.pageX,j.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=h;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);
  this._showDatepicker(this._dialogInput[0]);b.blockUI&&b.blockUI(this.dpDiv);b.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var e=b(a),h=b.data(a,"datepicker");if(e.hasClass(this.markerClassName)){var i=a.nodeName.toLowerCase();b.removeData(a,"datepicker");if(i=="input"){h.append.remove();h.trigger.remove();e.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",
  this._doKeyUp)}else if(i=="div"||i=="span")e.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var e=b(a),h=b.data(a,"datepicker");if(e.hasClass(this.markerClassName)){var i=a.nodeName.toLowerCase();if(i=="input"){a.disabled=false;h.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(i=="div"||i=="span")e.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=b.map(this._disabledInputs,
  function(j){return j==a?null:j})}},_disableDatepicker:function(a){var e=b(a),h=b.data(a,"datepicker");if(e.hasClass(this.markerClassName)){var i=a.nodeName.toLowerCase();if(i=="input"){a.disabled=true;h.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(i=="div"||i=="span")e.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=b.map(this._disabledInputs,function(j){return j==a?null:
  j});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]==a)return true;return false},_getInst:function(a){try{return b.data(a,"datepicker")}catch(e){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(a,e,h){var i=this._getInst(a);if(arguments.length==2&&typeof e=="string")return e=="defaults"?b.extend({},b.datepicker._defaults):i?e=="all"?b.extend({},
  i.settings):this._get(i,e):null;var j=e||{};if(typeof e=="string"){j={};j[e]=h}if(i){this._curInst==i&&this._hideDatepicker();var n=this._getDateDatepicker(a,true);g(i.settings,j);this._attachments(b(a),i);this._autoSize(i);this._setDateDatepicker(a,n);this._updateDatepicker(i)}},_changeDatepicker:function(a,e,h){this._optionDatepicker(a,e,h)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,e){if(a=this._getInst(a)){this._setDate(a,e);
  this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a,e){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a,e);return a?this._getDate(a):null},_doKeyDown:function(a){var e=b.datepicker._getInst(a.target),h=true,i=e.dpDiv.is(".ui-datepicker-rtl");e._keyEvent=true;if(b.datepicker._datepickerShowing)switch(a.keyCode){case 9:b.datepicker._hideDatepicker();h=false;break;case 13:h=b("td."+b.datepicker._dayOverClass+":not(."+b.datepicker._currentClass+")",e.dpDiv);h[0]?
  b.datepicker._selectDay(a.target,e.selectedMonth,e.selectedYear,h[0]):b.datepicker._hideDatepicker();return false;case 27:b.datepicker._hideDatepicker();break;case 33:b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(e,"stepBigMonths"):-b.datepicker._get(e,"stepMonths"),"M");break;case 34:b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(e,"stepBigMonths"):+b.datepicker._get(e,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey)b.datepicker._clearDate(a.target);h=a.ctrlKey||
  a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey)b.datepicker._gotoToday(a.target);h=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,i?+1:-1,"D");h=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(e,"stepBigMonths"):-b.datepicker._get(e,"stepMonths"),"M");break;case 38:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,-7,"D");h=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,
  i?-1:+1,"D");h=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(e,"stepBigMonths"):+b.datepicker._get(e,"stepMonths"),"M");break;case 40:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,+7,"D");h=a.ctrlKey||a.metaKey;break;default:h=false}else if(a.keyCode==36&&a.ctrlKey)b.datepicker._showDatepicker(this);else h=false;if(h){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var e=b.datepicker._getInst(a.target);if(b.datepicker._get(e,
  "constrainInput")){e=b.datepicker._possibleChars(b.datepicker._get(e,"dateFormat"));var h=String.fromCharCode(a.charCode==c?a.keyCode:a.charCode);return a.ctrlKey||a.metaKey||h<" "||!e||e.indexOf(h)>-1}},_doKeyUp:function(a){a=b.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal)try{if(b.datepicker.parseDate(b.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,b.datepicker._getFormatConfig(a))){b.datepicker._setDateFromField(a);b.datepicker._updateAlternate(a);b.datepicker._updateDatepicker(a)}}catch(e){b.datepicker.log(e)}return true},
  _showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=b("input",a.parentNode)[0];if(!(b.datepicker._isDisabledDatepicker(a)||b.datepicker._lastInput==a)){var e=b.datepicker._getInst(a);b.datepicker._curInst&&b.datepicker._curInst!=e&&b.datepicker._curInst.dpDiv.stop(true,true);var h=b.datepicker._get(e,"beforeShow");g(e.settings,h?h.apply(a,[a,e]):{});e.lastVal=null;b.datepicker._lastInput=a;b.datepicker._setDateFromField(e);if(b.datepicker._inDialog)a.value="";if(!b.datepicker._pos){b.datepicker._pos=
  b.datepicker._findPos(a);b.datepicker._pos[1]+=a.offsetHeight}var i=false;b(a).parents().each(function(){i|=b(this).css("position")=="fixed";return!i});if(i&&b.browser.opera){b.datepicker._pos[0]-=document.documentElement.scrollLeft;b.datepicker._pos[1]-=document.documentElement.scrollTop}h={left:b.datepicker._pos[0],top:b.datepicker._pos[1]};b.datepicker._pos=null;e.dpDiv.empty();e.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});b.datepicker._updateDatepicker(e);h=b.datepicker._checkOffset(e,
  h,i);e.dpDiv.css({position:b.datepicker._inDialog&&b.blockUI?"static":i?"fixed":"absolute",display:"none",left:h.left+"px",top:h.top+"px"});if(!e.inline){h=b.datepicker._get(e,"showAnim");var j=b.datepicker._get(e,"duration"),n=function(){b.datepicker._datepickerShowing=true;var q=e.dpDiv.find("iframe.ui-datepicker-cover");if(q.length){var l=b.datepicker._getBorders(e.dpDiv);q.css({left:-l[0],top:-l[1],width:e.dpDiv.outerWidth(),height:e.dpDiv.outerHeight()})}};e.dpDiv.zIndex(b(a).zIndex()+1);b.effects&&
  b.effects[h]?e.dpDiv.show(h,b.datepicker._get(e,"showOptions"),j,n):e.dpDiv[h||"show"](h?j:null,n);if(!h||!j)n();e.input.is(":visible")&&!e.input.is(":disabled")&&e.input.focus();b.datepicker._curInst=e}}},_updateDatepicker:function(a){var e=this,h=b.datepicker._getBorders(a.dpDiv);a.dpDiv.empty().append(this._generateHTML(a));var i=a.dpDiv.find("iframe.ui-datepicker-cover");i.length&&i.css({left:-h[0],top:-h[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",
  function(){b(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!e._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0])){b(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=
  -1&&b(this).addClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();h=this._getNumberOfMonths(a);i=h[1];i>1?a.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",17*i+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");a.dpDiv[(h[0]!=1||h[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,
  "isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==b.datepicker._curInst&&b.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var j=a.yearshtml;setTimeout(function(){j===a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);j=a.yearshtml=null},0)}},_getBorders:function(a){var e=function(h){return{thin:1,medium:2,thick:3}[h]||h};return[parseFloat(e(a.css("border-left-width"))),
  parseFloat(e(a.css("border-top-width")))]},_checkOffset:function(a,e,h){var i=a.dpDiv.outerWidth(),j=a.dpDiv.outerHeight(),n=a.input?a.input.outerWidth():0,q=a.input?a.input.outerHeight():0,l=document.documentElement.clientWidth+b(document).scrollLeft(),k=document.documentElement.clientHeight+b(document).scrollTop();e.left-=this._get(a,"isRTL")?i-n:0;e.left-=h&&e.left==a.input.offset().left?b(document).scrollLeft():0;e.top-=h&&e.top==a.input.offset().top+q?b(document).scrollTop():0;e.left-=Math.min(e.left,
  e.left+i>l&&l>i?Math.abs(e.left+i-l):0);e.top-=Math.min(e.top,e.top+j>k&&k>j?Math.abs(j+q):0);return e},_findPos:function(a){for(var e=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||b.expr.filters.hidden(a));)a=a[e?"previousSibling":"nextSibling"];a=b(a).offset();return[a.left,a.top]},_hideDatepicker:function(a){var e=this._curInst;if(!(!e||a&&e!=b.data(a,"datepicker")))if(this._datepickerShowing){a=this._get(e,"showAnim");var h=this._get(e,"duration"),i=function(){b.datepicker._tidyDialog(e);
  this._curInst=null};b.effects&&b.effects[a]?e.dpDiv.hide(a,b.datepicker._get(e,"showOptions"),h,i):e.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?h:null,i);a||i();if(a=this._get(e,"onClose"))a.apply(e.input?e.input[0]:null,[e.input?e.input.val():"",e]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(b.blockUI){b.unblockUI();b("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},
  _checkExternalClick:function(a){if(b.datepicker._curInst){a=b(a.target);a[0].id!=b.datepicker._mainDivId&&a.parents("#"+b.datepicker._mainDivId).length==0&&!a.hasClass(b.datepicker.markerClassName)&&!a.hasClass(b.datepicker._triggerClass)&&b.datepicker._datepickerShowing&&!(b.datepicker._inDialog&&b.blockUI)&&b.datepicker._hideDatepicker()}},_adjustDate:function(a,e,h){a=b(a);var i=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(i,e+(h=="M"?this._get(i,"showCurrentAtPos"):
  0),h);this._updateDatepicker(i)}},_gotoToday:function(a){a=b(a);var e=this._getInst(a[0]);if(this._get(e,"gotoCurrent")&&e.currentDay){e.selectedDay=e.currentDay;e.drawMonth=e.selectedMonth=e.currentMonth;e.drawYear=e.selectedYear=e.currentYear}else{var h=new Date;e.selectedDay=h.getDate();e.drawMonth=e.selectedMonth=h.getMonth();e.drawYear=e.selectedYear=h.getFullYear()}this._notifyChange(e);this._adjustDate(a)},_selectMonthYear:function(a,e,h){a=b(a);var i=this._getInst(a[0]);i._selectingMonthYear=
  false;i["selected"+(h=="M"?"Month":"Year")]=i["draw"+(h=="M"?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10);this._notifyChange(i);this._adjustDate(a)},_clickMonthYear:function(a){var e=this._getInst(b(a)[0]);e.input&&e._selectingMonthYear&&setTimeout(function(){e.input.focus()},0);e._selectingMonthYear=!e._selectingMonthYear},_selectDay:function(a,e,h,i){var j=b(a);if(!(b(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(j[0]))){j=this._getInst(j[0]);j.selectedDay=j.currentDay=
  b("a",i).html();j.selectedMonth=j.currentMonth=e;j.selectedYear=j.currentYear=h;this._selectDate(a,this._formatDate(j,j.currentDay,j.currentMonth,j.currentYear))}},_clearDate:function(a){a=b(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,e){a=this._getInst(b(a)[0]);e=e!=null?e:this._formatDate(a);a.input&&a.input.val(e);this._updateAlternate(a);var h=this._get(a,"onSelect");if(h)h.apply(a.input?a.input[0]:null,[e,a]);else a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);
  else{this._hideDatepicker();this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var e=this._get(a,"altField");if(e){var h=this._get(a,"altFormat")||this._get(a,"dateFormat"),i=this._getDate(a),j=this.formatDate(h,i,this._getFormatConfig(a));b(e).each(function(){b(this).val(j)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var e=
  a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((e-a)/864E5)/7)+1},parseDate:function(a,e,h){if(a==null||e==null)throw"Invalid arguments";e=typeof e=="object"?e.toString():e+"";if(e=="")return null;var i=(h?h.shortYearCutoff:null)||this._defaults.shortYearCutoff;i=typeof i!="string"?i:(new Date).getFullYear()%100+parseInt(i,10);for(var j=(h?h.dayNamesShort:null)||this._defaults.dayNamesShort,n=(h?h.dayNames:null)||this._defaults.dayNames,q=(h?h.monthNamesShort:null)||this._defaults.monthNamesShort,
  l=(h?h.monthNames:null)||this._defaults.monthNames,k=h=-1,m=-1,p=-1,o=false,r=function(w){(w=y+1<a.length&&a.charAt(y+1)==w)&&y++;return w},s=function(w){var B=r(w);w=new RegExp("^\\d{1,"+(w=="@"?14:w=="!"?20:w=="y"&&B?4:w=="o"?3:2)+"}");w=e.substring(v).match(w);if(!w)throw"Missing number at position "+v;v+=w[0].length;return parseInt(w[0],10)},t=function(w,B,I){w=r(w)?I:B;for(B=0;B<w.length;B++)if(e.substr(v,w[B].length).toLowerCase()==w[B].toLowerCase()){v+=w[B].length;return B+1}throw"Unknown name at position "+
  v;},u=function(){if(e.charAt(v)!=a.charAt(y))throw"Unexpected literal at position "+v;v++},v=0,y=0;y<a.length;y++)if(o)if(a.charAt(y)=="'"&&!r("'"))o=false;else u();else switch(a.charAt(y)){case "d":m=s("d");break;case "D":t("D",j,n);break;case "o":p=s("o");break;case "m":k=s("m");break;case "M":k=t("M",q,l);break;case "y":h=s("y");break;case "@":var A=new Date(s("@"));h=A.getFullYear();k=A.getMonth()+1;m=A.getDate();break;case "!":A=new Date((s("!")-this._ticksTo1970)/1E4);h=A.getFullYear();k=A.getMonth()+
  1;m=A.getDate();break;case "'":if(r("'"))u();else o=true;break;default:u()}if(h==-1)h=(new Date).getFullYear();else if(h<100)h+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h<=i?0:-100);if(p>-1){k=1;m=p;do{i=this._getDaysInMonth(h,k-1);if(m<=i)break;k++;m-=i}while(1)}A=this._daylightSavingAdjust(new Date(h,k-1,m));if(A.getFullYear()!=h||A.getMonth()+1!=k||A.getDate()!=m)throw"Invalid date";return A},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",
  RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(a,e,h){if(!e)return"";var i=(h?h.dayNamesShort:null)||this._defaults.dayNamesShort,j=(h?h.dayNames:null)||this._defaults.dayNames,n=(h?h.monthNamesShort:null)||this._defaults.monthNamesShort;h=(h?h.monthNames:null)||this._defaults.monthNames;var q=function(r){(r=o+1<a.length&&
  a.charAt(o+1)==r)&&o++;return r},l=function(r,s,t){s=""+s;if(q(r))for(;s.length<t;)s="0"+s;return s},k=function(r,s,t,u){return q(r)?u[s]:t[s]},m="",p=false;if(e)for(var o=0;o<a.length;o++)if(p)if(a.charAt(o)=="'"&&!q("'"))p=false;else m+=a.charAt(o);else switch(a.charAt(o)){case "d":m+=l("d",e.getDate(),2);break;case "D":m+=k("D",e.getDay(),i,j);break;case "o":m+=l("o",(e.getTime()-(new Date(e.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":m+=l("m",e.getMonth()+1,2);break;case "M":m+=k("M",
  e.getMonth(),n,h);break;case "y":m+=q("y")?e.getFullYear():(e.getYear()%100<10?"0":"")+e.getYear()%100;break;case "@":m+=e.getTime();break;case "!":m+=e.getTime()*1E4+this._ticksTo1970;break;case "'":if(q("'"))m+="'";else p=true;break;default:m+=a.charAt(o)}return m},_possibleChars:function(a){for(var e="",h=false,i=function(n){(n=j+1<a.length&&a.charAt(j+1)==n)&&j++;return n},j=0;j<a.length;j++)if(h)if(a.charAt(j)=="'"&&!i("'"))h=false;else e+=a.charAt(j);else switch(a.charAt(j)){case "d":case "m":case "y":case "@":e+=
  "0123456789";break;case "D":case "M":return null;case "'":if(i("'"))e+="'";else h=true;break;default:e+=a.charAt(j)}return e},_get:function(a,e){return a.settings[e]!==c?a.settings[e]:this._defaults[e]},_setDateFromField:function(a,e){if(a.input.val()!=a.lastVal){var h=this._get(a,"dateFormat"),i=a.lastVal=a.input?a.input.val():null,j,n;j=n=this._getDefaultDate(a);var q=this._getFormatConfig(a);try{j=this.parseDate(h,i,q)||n}catch(l){this.log(l);i=e?"":i}a.selectedDay=j.getDate();a.drawMonth=a.selectedMonth=
  j.getMonth();a.drawYear=a.selectedYear=j.getFullYear();a.currentDay=i?j.getDate():0;a.currentMonth=i?j.getMonth():0;a.currentYear=i?j.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,e,h){var i=function(n){var q=new Date;q.setDate(q.getDate()+n);return q},j=function(n){try{return b.datepicker.parseDate(b.datepicker._get(a,"dateFormat"),n,b.datepicker._getFormatConfig(a))}catch(q){}var l=
  (n.toLowerCase().match(/^c/)?b.datepicker._getDate(a):null)||new Date,k=l.getFullYear(),m=l.getMonth();l=l.getDate();for(var p=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,o=p.exec(n);o;){switch(o[2]||"d"){case "d":case "D":l+=parseInt(o[1],10);break;case "w":case "W":l+=parseInt(o[1],10)*7;break;case "m":case "M":m+=parseInt(o[1],10);l=Math.min(l,b.datepicker._getDaysInMonth(k,m));break;case "y":case "Y":k+=parseInt(o[1],10);l=Math.min(l,b.datepicker._getDaysInMonth(k,m));break}o=p.exec(n)}return new Date(k,
  m,l)};if(e=(e=e==null||e===""?h:typeof e=="string"?j(e):typeof e=="number"?isNaN(e)?h:i(e):new Date(e.getTime()))&&e.toString()=="Invalid Date"?h:e){e.setHours(0);e.setMinutes(0);e.setSeconds(0);e.setMilliseconds(0)}return this._daylightSavingAdjust(e)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,e,h){var i=!e,j=a.selectedMonth,n=a.selectedYear;e=this._restrictMinMax(a,this._determineDate(a,e,new Date));a.selectedDay=
  a.currentDay=e.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=e.getMonth();a.drawYear=a.selectedYear=a.currentYear=e.getFullYear();if((j!=a.selectedMonth||n!=a.selectedYear)&&!h)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(i?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var e=new Date;e=this._daylightSavingAdjust(new Date(e.getFullYear(),
  e.getMonth(),e.getDate()));var h=this._get(a,"isRTL"),i=this._get(a,"showButtonPanel"),j=this._get(a,"hideIfNoPrevNext"),n=this._get(a,"navigationAsDateFormat"),q=this._getNumberOfMonths(a),l=this._get(a,"showCurrentAtPos"),k=this._get(a,"stepMonths"),m=q[0]!=1||q[1]!=1,p=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),o=this._getMinMaxDate(a,"min"),r=this._getMinMaxDate(a,"max");l=a.drawMonth-l;var s=a.drawYear;if(l<0){l+=12;s--}if(r){var t=
  this._daylightSavingAdjust(new Date(r.getFullYear(),r.getMonth()-q[0]*q[1]+1,r.getDate()));for(t=o&&t<o?o:t;this._daylightSavingAdjust(new Date(s,l,1))>t;){l--;if(l<0){l=11;s--}}}a.drawMonth=l;a.drawYear=s;t=this._get(a,"prevText");t=!n?t:this.formatDate(t,this._daylightSavingAdjust(new Date(s,l-k,1)),this._getFormatConfig(a));t=this._canAdjustMonth(a,-1,s,l)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+f+".datepicker._adjustDate('#"+a.id+"', -"+k+", 'M');\" title=\""+t+'"><span class="ui-icon ui-icon-circle-triangle-'+
  (h?"e":"w")+'">'+t+"</span></a>":j?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+t+'"><span class="ui-icon ui-icon-circle-triangle-'+(h?"e":"w")+'">'+t+"</span></a>";var u=this._get(a,"nextText");u=!n?u:this.formatDate(u,this._daylightSavingAdjust(new Date(s,l+k,1)),this._getFormatConfig(a));j=this._canAdjustMonth(a,+1,s,l)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+f+".datepicker._adjustDate('#"+a.id+"', +"+k+", 'M');\" title=\""+u+'"><span class="ui-icon ui-icon-circle-triangle-'+
  (h?"w":"e")+'">'+u+"</span></a>":j?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+u+'"><span class="ui-icon ui-icon-circle-triangle-'+(h?"w":"e")+'">'+u+"</span></a>";k=this._get(a,"currentText");u=this._get(a,"gotoCurrent")&&a.currentDay?p:e;k=!n?k:this.formatDate(k,u,this._getFormatConfig(a));n=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+f+'.datepicker._hideDatepicker();">'+this._get(a,
  "closeText")+"</button>":"";i=i?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(h?n:"")+(this._isInRange(a,u)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+f+".datepicker._gotoToday('#"+a.id+"');\">"+k+"</button>":"")+(h?"":n)+"</div>":"";n=parseInt(this._get(a,"firstDay"),10);n=isNaN(n)?0:n;k=this._get(a,"showWeek");u=this._get(a,"dayNames");this._get(a,"dayNamesShort");var v=this._get(a,"dayNamesMin"),y=
  this._get(a,"monthNames"),A=this._get(a,"monthNamesShort"),w=this._get(a,"beforeShowDay"),B=this._get(a,"showOtherMonths"),I=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var L=this._getDefaultDate(a),J="",F=0;F<q[0];F++){for(var M="",G=0;G<q[1];G++){var N=this._daylightSavingAdjust(new Date(s,l,a.selectedDay)),z=" ui-corner-all",C="";if(m){C+='<div class="ui-datepicker-group';if(q[1]>1)switch(G){case 0:C+=" ui-datepicker-group-first";z=" ui-corner-"+(h?"right":"left");break;case q[1]-
  1:C+=" ui-datepicker-group-last";z=" ui-corner-"+(h?"left":"right");break;default:C+=" ui-datepicker-group-middle";z="";break}C+='">'}C+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+z+'">'+(/all|left/.test(z)&&F==0?h?j:t:"")+(/all|right/.test(z)&&F==0?h?t:j:"")+this._generateMonthYearHeader(a,l,s,o,r,F>0||G>0,y,A)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var D=k?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";for(z=0;z<7;z++){var x=
  (z+n)%7;D+="<th"+((z+n+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+u[x]+'">'+v[x]+"</span></th>"}C+=D+"</tr></thead><tbody>";D=this._getDaysInMonth(s,l);if(s==a.selectedYear&&l==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,D);z=(this._getFirstDayOfMonth(s,l)-n+7)%7;D=m?6:Math.ceil((z+D)/7);x=this._daylightSavingAdjust(new Date(s,l,1-z));for(var O=0;O<D;O++){C+="<tr>";var P=!k?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(x)+"</td>";for(z=0;z<7;z++){var H=
  w?w.apply(a.input?a.input[0]:null,[x]):[true,""],E=x.getMonth()!=l,K=E&&!I||!H[0]||o&&x<o||r&&x>r;P+='<td class="'+((z+n+6)%7>=5?" ui-datepicker-week-end":"")+(E?" ui-datepicker-other-month":"")+(x.getTime()==N.getTime()&&l==a.selectedMonth&&a._keyEvent||L.getTime()==x.getTime()&&L.getTime()==N.getTime()?" "+this._dayOverClass:"")+(K?" "+this._unselectableClass+" ui-state-disabled":"")+(E&&!B?"":" "+H[1]+(x.getTime()==p.getTime()?" "+this._currentClass:"")+(x.getTime()==e.getTime()?" ui-datepicker-today":
  ""))+'"'+((!E||B)&&H[2]?' title="'+H[2]+'"':"")+(K?"":' onclick="DP_jQuery_'+f+".datepicker._selectDay('#"+a.id+"',"+x.getMonth()+","+x.getFullYear()+', this);return false;"')+">"+(E&&!B?"&#xa0;":K?'<span class="ui-state-default">'+x.getDate()+"</span>":'<a class="ui-state-default'+(x.getTime()==e.getTime()?" ui-state-highlight":"")+(x.getTime()==p.getTime()?" ui-state-active":"")+(E?" ui-priority-secondary":"")+'" href="#">'+x.getDate()+"</a>")+"</td>";x.setDate(x.getDate()+1);x=this._daylightSavingAdjust(x)}C+=
  P+"</tr>"}l++;if(l>11){l=0;s++}C+="</tbody></table>"+(m?"</div>"+(q[0]>0&&G==q[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");M+=C}J+=M}J+=i+(b.browser.msie&&parseInt(b.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");a._keyEvent=false;return J},_generateMonthYearHeader:function(a,e,h,i,j,n,q,l){var k=this._get(a,"changeMonth"),m=this._get(a,"changeYear"),p=this._get(a,"showMonthAfterYear"),o='<div class="ui-datepicker-title">',
  r="";if(n||!k)r+='<span class="ui-datepicker-month">'+q[e]+"</span>";else{q=i&&i.getFullYear()==h;var s=j&&j.getFullYear()==h;r+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+f+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" onclick=\"DP_jQuery_"+f+".datepicker._clickMonthYear('#"+a.id+"');\">";for(var t=0;t<12;t++)if((!q||t>=i.getMonth())&&(!s||t<=j.getMonth()))r+='<option value="'+t+'"'+(t==e?' selected="selected"':"")+">"+l[t]+"</option>";r+="</select>"}p||(o+=r+(n||!(k&&
  m)?"&#xa0;":""));a.yearshtml="";if(n||!m)o+='<span class="ui-datepicker-year">'+h+"</span>";else{l=this._get(a,"yearRange").split(":");var u=(new Date).getFullYear();q=function(v){v=v.match(/c[+-].*/)?h+parseInt(v.substring(1),10):v.match(/[+-].*/)?u+parseInt(v,10):parseInt(v,10);return isNaN(v)?u:v};e=q(l[0]);l=Math.max(e,q(l[1]||""));e=i?Math.max(e,i.getFullYear()):e;l=j?Math.min(l,j.getFullYear()):l;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+f+".datepicker._selectMonthYear('#"+
  a.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+f+".datepicker._clickMonthYear('#"+a.id+"');\">";e<=l;e++)a.yearshtml+='<option value="'+e+'"'+(e==h?' selected="selected"':"")+">"+e+"</option>";a.yearshtml+="</select>";if(b.browser.mozilla)o+='<select class="ui-datepicker-year"><option value="'+h+'" selected="selected">'+h+"</option></select>";else{o+=a.yearshtml;a.yearshtml=null}}o+=this._get(a,"yearSuffix");if(p)o+=(n||!(k&&m)?"&#xa0;":"")+r;o+="</div>";return o},_adjustInstDate:function(a,e,h){var i=
  a.drawYear+(h=="Y"?e:0),j=a.drawMonth+(h=="M"?e:0);e=Math.min(a.selectedDay,this._getDaysInMonth(i,j))+(h=="D"?e:0);i=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(i,j,e)));a.selectedDay=i.getDate();a.drawMonth=a.selectedMonth=i.getMonth();a.drawYear=a.selectedYear=i.getFullYear();if(h=="M"||h=="Y")this._notifyChange(a)},_restrictMinMax:function(a,e){var h=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");e=h&&e<h?h:e;return e=a&&e>a?a:e},_notifyChange:function(a){var e=this._get(a,
  "onChangeMonthYear");if(e)e.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,e){return this._determineDate(a,this._get(a,e+"Date"),null)},_getDaysInMonth:function(a,e){return 32-this._daylightSavingAdjust(new Date(a,e,32)).getDate()},_getFirstDayOfMonth:function(a,e){return(new Date(a,e,1)).getDay()},_canAdjustMonth:function(a,e,h,i){var j=this._getNumberOfMonths(a);
  h=this._daylightSavingAdjust(new Date(h,i+(e<0?e:j[0]*j[1]),1));e<0&&h.setDate(this._getDaysInMonth(h.getFullYear(),h.getMonth()));return this._isInRange(a,h)},_isInRange:function(a,e){var h=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!h||e.getTime()>=h.getTime())&&(!a||e.getTime()<=a.getTime())},_getFormatConfig:function(a){var e=this._get(a,"shortYearCutoff");e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);return{shortYearCutoff:e,dayNamesShort:this._get(a,
  "dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,e,h,i){if(!e){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}e=e?typeof e=="object"?e:this._daylightSavingAdjust(new Date(i,h,e)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),e,this._getFormatConfig(a))}});b.fn.datepicker=
  function(a){if(!this.length)return this;if(!b.datepicker.initialized){b(document).mousedown(b.datepicker._checkExternalClick).find("body").append(b.datepicker.dpDiv);b.datepicker.initialized=true}var e=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this[0]].concat(e));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,
  [this[0]].concat(e));return this.each(function(){typeof a=="string"?b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this].concat(e)):b.datepicker._attachDatepicker(this,a)})};b.datepicker=new d;b.datepicker.initialized=false;b.datepicker.uuid=(new Date).getTime();b.datepicker.version="1.9m4";window["DP_jQuery_"+f]=b})(jQuery);
  (function(b,c){var d={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},g={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true};b.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",of:window,collision:"fit",using:function(f){var a=b(this).css(f).offset().top;
  a<0&&b(this).css("top",f.top-a)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var f=this,a=f.options,e=a.title||"&#160;",h=b.ui.dialog.getTitleId(f.element),i=(f.uiDialog=b("<div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+a.dialogClass).css({zIndex:a.zIndex}).attr("tabIndex",
  -1).css("outline",0).keydown(function(q){if(a.closeOnEscape&&q.keyCode&&q.keyCode===b.ui.keyCode.ESCAPE){f.close(q);q.preventDefault()}}).attr({role:"dialog","aria-labelledby":h}).mousedown(function(q){f.moveToTop(false,q)});f.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(i);var j=(f.uiDialogTitlebar=b("<div>")).addClass("ui-dialog-titlebar  ui-widget-header  ui-corner-all  ui-helper-clearfix").prependTo(i),n=b("<a href='#'></a>").addClass("ui-dialog-titlebar-close  ui-corner-all").attr("role",
  "button").click(function(q){q.preventDefault();f.close(q)}).appendTo(j);(f.uiDialogTitlebarCloseText=b("<span>")).addClass("ui-icon ui-icon-closethick").text(a.closeText).appendTo(n);b("<span>").addClass("ui-dialog-title").attr("id",h).html(e).prependTo(j);j.find("*").add(j).disableSelection();this._hoverable(n);this._focusable(n);a.draggable&&b.fn.draggable&&f._makeDraggable();a.resizable&&b.fn.resizable&&f._makeResizable();f._createButtons(a.buttons);f._isOpen=false;b.fn.bgiframe&&i.bgiframe()},
  _init:function(){this.options.autoOpen&&this.open()},_destroy:function(){var f=this;f.overlay&&f.overlay.destroy();f.uiDialog.hide();f.element.removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");f.uiDialog.remove();f.originalTitle&&f.element.attr("title",f.originalTitle)},widget:function(){return this.uiDialog},close:function(f){var a=this,e,h;if(false!==a._trigger("beforeClose",f)){a.overlay&&a.overlay.destroy();a.uiDialog.unbind("keypress.ui-dialog");a._isOpen=false;if(a.options.hide)a.uiDialog.hide(a.options.hide,
  function(){a._trigger("close",f)});else{a.uiDialog.hide();a._trigger("close",f)}b.ui.dialog.overlay.resize();if(a.options.modal){e=0;b(".ui-dialog").each(function(){if(this!==a.uiDialog[0]){h=b(this).css("z-index");isNaN(h)||(e=Math.max(e,h))}});b.ui.dialog.maxZ=e}return a}},isOpen:function(){return this._isOpen},moveToTop:function(f,a){var e=this,h=e.options;if(h.modal&&!f||!h.stack&&!h.modal)return e._trigger("focus",a);if(h.zIndex>b.ui.dialog.maxZ)b.ui.dialog.maxZ=h.zIndex;if(e.overlay){b.ui.dialog.maxZ+=
  1;b.ui.dialog.overlay.maxZ=b.ui.dialog.maxZ;e.overlay.$el.css("z-index",b.ui.dialog.overlay.maxZ)}f={scrollTop:e.element.attr("scrollTop"),scrollLeft:e.element.attr("scrollLeft")};b.ui.dialog.maxZ+=1;e.uiDialog.css("z-index",b.ui.dialog.maxZ);e.element.attr(f);e._trigger("focus",a);return e},open:function(){if(!this._isOpen){var f=this,a=f.options,e=f.uiDialog;f.overlay=a.modal?new b.ui.dialog.overlay(f):null;f._size();f._position(a.position);e.show(a.show);f.moveToTop(true);a.modal&&e.bind("keypress.ui-dialog",
  function(h){if(h.keyCode===b.ui.keyCode.TAB){var i=b(":tabbable",this),j=i.filter(":first");i=i.filter(":last");if(h.target===i[0]&&!h.shiftKey){j.focus(1);return false}else if(h.target===j[0]&&h.shiftKey){i.focus(1);return false}}});b(f.element.find(":tabbable").get().concat(e.find(".ui-dialog-buttonpane :tabbable").get().concat(e.get()))).eq(0).focus();f._isOpen=true;f._trigger("open");return f}},_createButtons:function(f){var a=this,e=false,h=b("<div>").addClass("ui-dialog-buttonpane  ui-widget-content ui-helper-clearfix"),
  i=b("<div>").addClass("ui-dialog-buttonset").appendTo(h);a.uiDialog.find(".ui-dialog-buttonpane").remove();typeof f==="object"&&f!==null&&b.each(f,function(){return!(e=true)});if(e){b.each(f,function(j,n){n=b.isFunction(n)?{click:n,text:j}:n;j=b("<button type='button'>").attr(n,true).unbind("click").click(function(){n.click.apply(a.element[0],arguments)}).appendTo(i);b.fn.button&&j.button()});h.appendTo(a.uiDialog)}},_makeDraggable:function(){function f(j){return{position:j.position,offset:j.offset}}
  var a=this,e=a.options,h=b(document),i;a.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(j,n){i=e.height==="auto"?"auto":b(this).height();b(this).height(b(this).height()).addClass("ui-dialog-dragging");a._trigger("dragStart",j,f(n))},drag:function(j,n){a._trigger("drag",j,f(n))},stop:function(j,n){e.position=[n.position.left-h.scrollLeft(),n.position.top-h.scrollTop()];b(this).removeClass("ui-dialog-dragging").height(i);
  a._trigger("dragStop",j,f(n));b.ui.dialog.overlay.resize()}})},_makeResizable:function(f){function a(j){return{originalPosition:j.originalPosition,originalSize:j.originalSize,position:j.position,size:j.size}}f=f===c?this.options.resizable:f;var e=this,h=e.options,i=e.uiDialog.css("position");f=typeof f==="string"?f:"n,e,s,w,se,sw,ne,nw";e.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:e.element,maxWidth:h.maxWidth,maxHeight:h.maxHeight,minWidth:h.minWidth,minHeight:e._minHeight(),
  handles:f,start:function(j,n){b(this).addClass("ui-dialog-resizing");e._trigger("resizeStart",j,a(n))},resize:function(j,n){e._trigger("resize",j,a(n))},stop:function(j,n){b(this).removeClass("ui-dialog-resizing");h.height=b(this).height();h.width=b(this).width();e._trigger("resizeStop",j,a(n));b.ui.dialog.overlay.resize()}}).css("position",i).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var f=this.options;return f.height==="auto"?f.minHeight:Math.min(f.minHeight,
  f.height)},_position:function(f){var a=[],e=[0,0],h;if(f){if(typeof f==="string"||typeof f==="object"&&"0"in f){a=f.split?f.split(" "):[f[0],f[1]];if(a.length===1)a[1]=a[0];b.each(["left","top"],function(i,j){if(+a[i]===a[i]){e[i]=a[i];a[i]=j}});f={my:a.join(" "),at:a.join(" "),offset:e.join(" ")}}f=b.extend({},b.ui.dialog.prototype.options.position,f)}else f=b.ui.dialog.prototype.options.position;(h=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.position(f);h||this.uiDialog.hide()},
  _setOptions:function(f){var a=this,e={},h=false;b.each(f,function(i,j){a._setOption(i,j);if(i in d)h=true;if(i in g)e[i]=j});h&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",e)},_setOption:function(f,a){var e=this,h=e.uiDialog;switch(f){case "buttons":e._createButtons(a);break;case "closeText":e.uiDialogTitlebarCloseText.text(""+a);break;case "dialogClass":h.removeClass(e.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+a);
  break;case "disabled":a?h.addClass("ui-dialog-disabled"):h.removeClass("ui-dialog-disabled");break;case "draggable":var i=h.is(":data(draggable)");i&&!a&&h.draggable("destroy");!i&&a&&e._makeDraggable();break;case "position":e._position(a);break;case "resizable":(i=h.is(":data(resizable)"))&&!a&&h.resizable("destroy");i&&typeof a==="string"&&h.resizable("option","handles",a);!i&&a!==false&&e._makeResizable(a);break;case "title":b(".ui-dialog-title",e.uiDialogTitlebar).html(""+(a||"&#160;"));break}this._super("_setOption",
  f,a)},_size:function(){var f=this.options,a,e,h=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(f.minWidth>f.width)f.width=f.minWidth;a=this.uiDialog.css({height:"auto",width:f.width}).height();e=Math.max(0,f.minHeight-a);if(f.height==="auto")if(b.support.minHeight)this.element.css({minHeight:e,height:"auto"});else{this.uiDialog.show();f=this.element.css("height","auto").height();h||this.uiDialog.hide();this.element.height(Math.max(f,e))}else this.element.height(Math.max(f.height-
  a,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});b.extend(b.ui.dialog,{version:"1.9m4",uuid:0,maxZ:0,getTitleId:function(f){f=f.attr("id");if(!f){this.uuid+=1;f=this.uuid}return"ui-dialog-title-"+f},overlay:function(f){this.$el=b.ui.dialog.overlay.create(f)}});b.extend(b.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:b.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(f){return f+".dialog-overlay"}).join(" "),
  create:function(f){if(this.instances.length===0){setTimeout(function(){b.ui.dialog.overlay.instances.length&&b(document).bind(b.ui.dialog.overlay.events,function(e){if(b(e.target).zIndex()<b.ui.dialog.overlay.maxZ)return false})},1);b(document).bind("keydown.dialog-overlay",function(e){if(f.options.closeOnEscape&&e.keyCode&&e.keyCode===b.ui.keyCode.ESCAPE){f.close(e);e.preventDefault()}});b(window).bind("resize.dialog-overlay",b.ui.dialog.overlay.resize)}var a=(this.oldInstances.pop()||b("<div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),
  height:this.height()});b.fn.bgiframe&&a.bgiframe();this.instances.push(a);return a},destroy:function(f){var a=b.inArray(f,this.instances);a!==-1&&this.oldInstances.push(this.instances.splice(a,1)[0]);this.instances.length===0&&b([document,window]).unbind(".dialog-overlay");f.remove();var e=0;b.each(this.instances,function(){e=Math.max(e,this.css("z-index"))});this.maxZ=e},height:function(){var f,a;if(b.browser.msie&&b.browser.version<7){f=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);
  a=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return f<a?b(window).height()+"px":f+"px"}else return b(document).height()+"px"},width:function(){var f,a;if(b.browser.msie&&b.browser.version<7){f=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);a=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return f<a?b(window).width()+"px":f+"px"}else return b(document).width()+"px"},resize:function(){var f=b([]);b.each(b.ui.dialog.overlay.instances,
  function(){f=f.add(this)});f.css({width:0,height:0}).css({width:b.ui.dialog.overlay.width(),height:b.ui.dialog.overlay.height()})}});b.extend(b.ui.dialog.overlay.prototype,{destroy:function(){b.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
  (function(b){var c=0;b.widget("ui.menu",{defaultElement:"<ul>",_create:function(){var d=this;this.menuId=this.element.attr("id")||"ui-menu-"+c++;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({id:this.menuId,role:"listbox"}).bind("click.menu",function(g){if(d.options.disabled)return false;if(b(g.target).closest(".ui-menu-item a").length){g.preventDefault();d.select(g)}}).bind("mouseover.menu",function(g){if(!d.options.disabled){var f=b(g.target).closest(".ui-menu-item");
  f.length&&f.parent()[0]===d.element[0]&&d.activate(g,f)}}).bind("mouseout.menu",function(g){if(!d.options.disabled){var f=b(g.target).closest(".ui-menu-item");f.length&&f.parent()[0]===d.element[0]&&d.deactivate(g)}});this.refresh();if(!this.options.input)this.options.input=this.element.attr("tabIndex",0);this.options.input.bind("keydown.menu",function(g){if(!d.options.disabled)switch(g.keyCode){case b.ui.keyCode.PAGE_UP:d.previousPage();g.preventDefault();g.stopImmediatePropagation();break;case b.ui.keyCode.PAGE_DOWN:d.nextPage();
  g.preventDefault();g.stopImmediatePropagation();break;case b.ui.keyCode.UP:d.previous();g.preventDefault();g.stopImmediatePropagation();break;case b.ui.keyCode.DOWN:d.next();g.preventDefault();g.stopImmediatePropagation();break;case b.ui.keyCode.ENTER:d.select();g.preventDefault();g.stopImmediatePropagation();break}})},_destroy:function(){this.element.removeClass("ui-menu ui-widget ui-widget-content ui-corner-all").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-activedescendant");this.element.children(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").children("a").removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").unbind(".menu")},
  refresh:function(){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)},activate:function(d,g){var f=this;this.deactivate();if(this._hasScroll()){var a=parseFloat(b.curCSS(this.element[0],"borderTopWidth",true))||0,e=parseFloat(b.curCSS(this.element[0],"paddingTop",true))||0;a=g.offset().top-this.element.offset().top-a-e;e=this.element.attr("scrollTop");var h=this.element.height(),i=g.height();
  if(a<0)this.element.attr("scrollTop",e+a);else a+i>h&&this.element.attr("scrollTop",e+a-h+i)}this.active=g.first().children("a").addClass("ui-state-hover").attr("id",function(j,n){return f.itemId=n||f.menuId+"-activedescendant"}).end();this.element.removeAttr("aria-activedescendant").attr("aria-activedescendant",f.itemId);this._trigger("focus",d,{item:g})},deactivate:function(d){if(this.active){var g=this;this.active.children("a").removeClass("ui-state-hover");b("#"+g.menuId+"-activedescendant").removeAttr("id");
  this.element.removeAttr("aria-activedescenant");this._trigger("blur",d);this.active=null}},next:function(d){this._move("next",".ui-menu-item","first",d)},previous:function(d){this._move("prev",".ui-menu-item","last",d)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(d,g,f,a){if(this.active){d=this.active[d+"All"](".ui-menu-item").eq(0);d.length?this.activate(a,d):this.activate(a,
  this.element.children(g)[f]())}else this.activate(a,this.element.children(g)[f]())},nextPage:function(d){if(this._hasScroll())if(!this.active||this.last())this.activate(d,this.element.children(".ui-menu-item").first());else{var g=this.active.offset().top,f=this.element.height(),a;this.active.nextAll(".ui-menu-item").each(function(){a=b(this);return b(this).offset().top-g-f<0});this.activate(d,a)}else this.activate(d,this.element.children(".ui-menu-item")[!this.active||this.last()?"first":"last"]())},
  previousPage:function(d){if(this._hasScroll())if(!this.active||this.first())this.activate(d,this.element.children(".ui-menu-item").last());else{var g=this.active.offset().top,f=this.element.height(),a;this.active.prevAll(".ui-menu-item").each(function(){a=b(this);return b(this).offset().top-g+f>0});this.activate(d,a)}else this.activate(d,this.element.children(".ui-menu-item")[!this.active||this.first()?":last":":first"]())},_hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},
  select:function(d){this._trigger("select",d,{item:this.active})}});b.ui.menu.version="1.9m4"})(jQuery);
  (function(b){b.ui=b.ui||{};var c=/left|center|right/,d=/top|center|bottom/,g=b.fn.position,f=b.fn.offset;b.fn.position=function(a){if(!a||!a.of)return g.apply(this,arguments);a=b.extend({},a);var e=b(a.of),h=e[0],i=(a.collision||"flip").split(" "),j=a.offset?a.offset.split(" "):[0,0],n,q,l;if(h.nodeType===9){n=e.width();q=e.height();l={top:0,left:0}}else if(b.isWindow(h)){n=e.width();q=e.height();l={top:e.scrollTop(),left:e.scrollLeft()}}else if(h.preventDefault){a.at="left top";n=q=0;l={top:a.of.pageY,
  left:a.of.pageX}}else{n=e.outerWidth();q=e.outerHeight();l=e.offset()}b.each(["my","at"],function(){var k=(a[this]||"").split(" ");if(k.length===1)k=c.test(k[0])?k.concat(["center"]):d.test(k[0])?["center"].concat(k):["center","center"];k[0]=c.test(k[0])?k[0]:"center";k[1]=d.test(k[1])?k[1]:"center";a[this]=k});if(i.length===1)i[1]=i[0];j[0]=parseInt(j[0],10)||0;if(j.length===1)j[1]=j[0];j[1]=parseInt(j[1],10)||0;if(a.at[0]==="right")l.left+=n;else if(a.at[0]==="center")l.left+=n/2;if(a.at[1]==="bottom")l.top+=
  q;else if(a.at[1]==="center")l.top+=q/2;l.left+=j[0];l.top+=j[1];return this.each(function(){var k=b(this),m=k.outerWidth(),p=k.outerHeight(),o=parseInt(b.curCSS(this,"marginLeft",true))||0,r=parseInt(b.curCSS(this,"marginTop",true))||0,s=m+o+(parseInt(b.curCSS(this,"marginRight",true))||0),t=p+r+(parseInt(b.curCSS(this,"marginBottom",true))||0),u=b.extend({},l),v;if(a.my[0]==="right")u.left-=m;else if(a.my[0]==="center")u.left-=m/2;if(a.my[1]==="bottom")u.top-=p;else if(a.my[1]==="center")u.top-=
  p/2;u.left=Math.round(u.left);u.top=Math.round(u.top);v={left:u.left-o,top:u.top-r};b.each(["left","top"],function(y,A){b.ui.position[i[y]]&&b.ui.position[i[y]][A](u,{targetWidth:n,targetHeight:q,elemWidth:m,elemHeight:p,collisionPosition:v,collisionWidth:s,collisionHeight:t,offset:j,my:a.my,at:a.at})});b.fn.bgiframe&&k.bgiframe();k.offset(b.extend(u,{using:a.using}))})};b.ui.position={fit:{left:function(a,e){var h=b(window);h=e.collisionPosition.left+e.collisionWidth-h.width()-h.scrollLeft();a.left=
  h>0?a.left-h:Math.max(a.left-e.collisionPosition.left,a.left)},top:function(a,e){var h=b(window);h=e.collisionPosition.top+e.collisionHeight-h.height()-h.scrollTop();a.top=h>0?a.top-h:Math.max(a.top-e.collisionPosition.top,a.top)}},flip:{left:function(a,e){if(e.at[0]!=="center"){var h=b(window);h=e.collisionPosition.left+e.collisionWidth-h.width()-h.scrollLeft();var i=e.my[0]==="left"?-e.elemWidth:e.my[0]==="right"?e.elemWidth:0,j=e.at[0]==="left"?e.targetWidth:-e.targetWidth,n=-2*e.offset[0];a.left+=
  e.collisionPosition.left<0?i+j+n:h>0?i+j+n:0}},top:function(a,e){if(e.at[1]!=="center"){var h=b(window);h=e.collisionPosition.top+e.collisionHeight-h.height()-h.scrollTop();var i=e.my[1]==="top"?-e.elemHeight:e.my[1]==="bottom"?e.elemHeight:0,j=e.at[1]==="top"?e.targetHeight:-e.targetHeight,n=-2*e.offset[1];a.top+=e.collisionPosition.top<0?i+j+n:h>0?i+j+n:0}}}};if(!b.offset.setOffset){b.offset.setOffset=function(a,e){if(/static/.test(b.curCSS(a,"position")))a.style.position="relative";var h=b(a),
  i=h.offset(),j=parseInt(b.curCSS(a,"top",true),10)||0,n=parseInt(b.curCSS(a,"left",true),10)||0;i={top:e.top-i.top+j,left:e.left-i.left+n};"using"in e?e.using.call(a,i):h.css(i)};b.fn.offset=function(a){var e=this[0];if(!e||!e.ownerDocument)return null;if(a)return this.each(function(){b.offset.setOffset(this,a)});return f.call(this)}}})(jQuery);
  (function(b,c){b.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=b("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
  this.valueDiv.remove()},value:function(d){if(d===c)return this._value();this._setOption("value",d);return this},_setOption:function(d,g){if(d==="value"){this.options.value=g;this._refreshValue();this._value()===this.options.max&&this._trigger("complete")}this._super("_setOption",d,g)},_value:function(){var d=this.options.value;if(typeof d!=="number")d=0;return Math.min(this.options.max,Math.max(this.min,d))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var d=
  this.value(),g=this._percentage();if(this.oldValue!==d){this.oldValue=d;this._trigger("change")}this.valueDiv.toggleClass("ui-corner-right",d===this.options.max).width(g.toFixed(0)+"%");this.element.attr("aria-valuenow",d)}});b.extend(b.ui.progressbar,{version:"1.9m4"})})(jQuery);
  (function(b){b.widget("ui.slider",b.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var c=this,d=this.options;this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");d.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");
  this.range=b([]);if(d.range){if(d.range===true){this.range=b("<div></div>");if(!d.values)d.values=[this._valueMin(),this._valueMin()];if(d.values.length&&d.values.length!==2)d.values=[d.values[0],d.values[0]]}else this.range=b("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(d.range==="min"||d.range==="max")this.range.addClass("ui-slider-range-"+d.range);this.range.addClass("ui-widget-header")}b(".ui-slider-handle",this.element).length===0&&b("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");
  if(d.values&&d.values.length)for(;b(".ui-slider-handle",this.element).length<d.values.length;)b("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");this.handles=b(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(g){g.preventDefault()}).hover(function(){d.disabled||b(this).addClass("ui-state-hover")},function(){b(this).removeClass("ui-state-hover")}).focus(function(){if(d.disabled)b(this).blur();
  else{b(".ui-slider .ui-state-focus").removeClass("ui-state-focus");b(this).addClass("ui-state-focus")}}).blur(function(){b(this).removeClass("ui-state-focus")});this.handles.each(function(g){b(this).data("index.ui-slider-handle",g)});this.handles.keydown(function(g){var f=true,a=b(this).data("index.ui-slider-handle"),e,h,i;if(!c.options.disabled){switch(g.keyCode){case b.ui.keyCode.HOME:case b.ui.keyCode.END:case b.ui.keyCode.PAGE_UP:case b.ui.keyCode.PAGE_DOWN:case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:f=
  false;if(!c._keySliding){c._keySliding=true;b(this).addClass("ui-state-active");e=c._start(g,a);if(e===false)return}break}i=c.options.step;e=c.options.values&&c.options.values.length?(h=c.values(a)):(h=c.value());switch(g.keyCode){case b.ui.keyCode.HOME:h=c._valueMin();break;case b.ui.keyCode.END:h=c._valueMax();break;case b.ui.keyCode.PAGE_UP:h=c._trimAlignValue(e+(c._valueMax()-c._valueMin())/5);break;case b.ui.keyCode.PAGE_DOWN:h=c._trimAlignValue(e-(c._valueMax()-c._valueMin())/5);break;case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:if(e===
  c._valueMax())return;h=c._trimAlignValue(e+i);break;case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(e===c._valueMin())return;h=c._trimAlignValue(e-i);break}c._slide(g,a,h);return f}}).keyup(function(g){var f=b(this).data("index.ui-slider-handle");if(c._keySliding){c._keySliding=false;c._stop(g,f);c._change(g,f);b(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");
  this._mouseDestroy();return this},_mouseCapture:function(c){var d=this.options,g,f,a,e,h;if(d.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();g=this._normValueFromMouse({x:c.pageX,y:c.pageY});f=this._valueMax()-this._valueMin()+1;e=this;this.handles.each(function(i){var j=Math.abs(g-e.values(i));if(f>j){f=j;a=b(this);h=i}});if(d.range===true&&this.values(1)===d.min){h+=1;a=b(this.handles[h])}if(this._start(c,
  h)===false)return false;this._mouseSliding=true;e._handleIndex=h;a.addClass("ui-state-active").focus();d=a.offset();this._clickOffset=!b(c.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:c.pageX-d.left-a.width()/2,top:c.pageY-d.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(c,h,g);return this._animateOff=true},_mouseStart:function(){return true},
  _mouseDrag:function(c){var d=this._normValueFromMouse({x:c.pageX,y:c.pageY});this._slide(c,this._handleIndex,d);return false},_mouseStop:function(c){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(c,this._handleIndex);this._change(c,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(c){var d;
  if(this.orientation==="horizontal"){d=this.elementSize.width;c=c.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{d=this.elementSize.height;c=c.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}d=c/d;if(d>1)d=1;if(d<0)d=0;if(this.orientation==="vertical")d=1-d;c=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+d*c)},_start:function(c,d){var g={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){g.value=
  this.values(d);g.values=this.values()}return this._trigger("start",c,g)},_slide:function(c,d,g){var f;if(this.options.values&&this.options.values.length){f=this.values(d?0:1);if(this.options.values.length===2&&this.options.range===true&&(d===0&&g>f||d===1&&g<f))g=f;if(g!==this.values(d)){f=this.values();f[d]=g;c=this._trigger("slide",c,{handle:this.handles[d],value:g,values:f});this.values(d?0:1);c!==false&&this.values(d,g,true)}}else if(g!==this.value()){c=this._trigger("slide",c,{handle:this.handles[d],
  value:g});c!==false&&this.value(g)}},_stop:function(c,d){var g={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){g.value=this.values(d);g.values=this.values()}this._trigger("stop",c,g)},_change:function(c,d){if(!this._keySliding&&!this._mouseSliding){var g={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){g.value=this.values(d);g.values=this.values()}this._trigger("change",c,g)}},value:function(c){if(arguments.length){this.options.value=
  this._trimAlignValue(c);this._refreshValue();this._change(null,0)}return this._value()},values:function(c,d){var g,f,a;if(arguments.length>1){this.options.values[c]=this._trimAlignValue(d);this._refreshValue();this._change(null,c)}if(arguments.length)if(b.isArray(arguments[0])){g=this.options.values;f=arguments[0];for(a=0;a<g.length;a+=1){g[a]=this._trimAlignValue(f[a]);this._change(null,a)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(c):this.value();
  else return this._values()},_setOption:function(c,d){var g,f=0;if(b.isArray(this.options.values))f=this.options.values.length;b.Widget.prototype._setOption.apply(this,arguments);switch(c){case "disabled":if(d){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")}break;case "orientation":this._detectOrientation();
  this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(g=0;g<f;g+=1)this._change(null,g);this._animateOff=false;break}},_value:function(){var c=this.options.value;return c=this._trimAlignValue(c)},_values:function(c){var d,g;if(arguments.length){d=this.options.values[c];
  return d=this._trimAlignValue(d)}else{d=this.options.values.slice();for(g=0;g<d.length;g+=1)d[g]=this._trimAlignValue(d[g]);return d}},_trimAlignValue:function(c){if(c<=this._valueMin())return this._valueMin();if(c>=this._valueMax())return this._valueMax();var d=this.options.step>0?this.options.step:1,g=(c-this._valueMin())%d;alignValue=c-g;if(Math.abs(g)*2>=d)alignValue+=g>0?d:-d;return parseFloat(alignValue.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},
  _refreshValue:function(){var c=this.options.range,d=this.options,g=this,f=!this._animateOff?d.animate:false,a,e={},h,i,j,n;if(this.options.values&&this.options.values.length)this.handles.each(function(q){a=(g.values(q)-g._valueMin())/(g._valueMax()-g._valueMin())*100;e[g.orientation==="horizontal"?"left":"bottom"]=a+"%";b(this).stop(1,1)[f?"animate":"css"](e,d.animate);if(g.options.range===true)if(g.orientation==="horizontal"){if(q===0)g.range.stop(1,1)[f?"animate":"css"]({left:a+"%"},d.animate);
  if(q===1)g.range[f?"animate":"css"]({width:a-h+"%"},{queue:false,duration:d.animate})}else{if(q===0)g.range.stop(1,1)[f?"animate":"css"]({bottom:a+"%"},d.animate);if(q===1)g.range[f?"animate":"css"]({height:a-h+"%"},{queue:false,duration:d.animate})}h=a});else{i=this.value();j=this._valueMin();n=this._valueMax();a=n!==j?(i-j)/(n-j)*100:0;e[g.orientation==="horizontal"?"left":"bottom"]=a+"%";this.handle.stop(1,1)[f?"animate":"css"](e,d.animate);if(c==="min"&&this.orientation==="horizontal")this.range.stop(1,
  1)[f?"animate":"css"]({width:a+"%"},d.animate);if(c==="max"&&this.orientation==="horizontal")this.range[f?"animate":"css"]({width:100-a+"%"},{queue:false,duration:d.animate});if(c==="min"&&this.orientation==="vertical")this.range.stop(1,1)[f?"animate":"css"]({height:a+"%"},d.animate);if(c==="max"&&this.orientation==="vertical")this.range[f?"animate":"css"]({height:100-a+"%"},{queue:false,duration:d.animate})}}});b.extend(b.ui.slider,{version:"1.9m4"})})(jQuery);
  (function(b){b.widget("ui.spinner",{defaultElement:"<input>",options:{incremental:true,max:null,min:null,numberformat:null,page:10,step:null,value:null},_create:function(){this._draw();this._markupOptions();this._mousewheel();this._aria()},_markupOptions:function(){var c=this;b.each({min:-Number.MAX_VALUE,max:Number.MAX_VALUE,step:1},function(d,g){if(c.options[d]===null){var f=c.element.attr(d);c.options[d]=typeof f=="string"&&f.length>0?c._parse(f):g}});this.value(this.options.value!==null?this.options.value:
  this.element.val()||0)},_draw:function(){var c=this,d=c.options,g=this.uiSpinner=c.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(c._uiSpinnerHtml()).parent().append(c._buttonHtml()).hover(function(){d.disabled||b(this).addClass("ui-state-hover");c.hovered=true},function(){b(this).removeClass("ui-state-hover");c.hovered=false});this.element.attr("role","spinbutton").bind("keydown.spinner",function(f){if(!c.options.disabled){if(c._start(f))return c._keydown(f);return true}}).bind("keyup.spinner",
  function(f){if(!c.options.disabled)if(c.spinning){c._stop(f);c._change(f)}}).bind("focus.spinner",function(){g.addClass("ui-state-active");c.focused=true}).bind("blur.spinner",function(){c.value(c.element.val());c.hovered||g.removeClass("ui-state-active");c.focused=false});this.buttons=g.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all").bind("mousedown",function(f){if(!c.options.disabled){if(c._start(f)===false)return false;c._repeat(null,b(this).hasClass("ui-spinner-up")?
  1:-1,f)}}).bind("mouseup",function(f){if(!c.options.disabled)if(c.spinning){c._stop(f);c._change(f)}}).bind("mouseenter",function(){if(!c.options.disabled)if(b(this).hasClass("ui-state-active")){if(c._start(event)===false)return false;c._repeat(null,b(this).hasClass("ui-spinner-up")?1:-1,event)}}).bind("mouseleave",function(){if(c.spinning){c._stop(event);c._change(event)}});d.disabled&&this.disable()},_keydown:function(c){var d=b.ui.keyCode;switch(c.keyCode){case d.UP:this._repeat(null,1,c);return false;
  case d.DOWN:this._repeat(null,-1,c);return false;case d.PAGE_UP:this._repeat(null,this.options.page,c);return false;case d.PAGE_DOWN:this._repeat(null,-this.options.page,c);return false;case d.ENTER:this.value(this.element.val())}return true},_mousewheel:function(){if(b.fn.mousewheel){var c=this;this.element.bind("mousewheel.spinner",function(d,g){if(!c.options.disabled){if(!c.spinning&&!c._start(d))return false;c._spin((g>0?1:-1)*c.options.step,d);clearTimeout(c.timeout);c.timeout=setTimeout(function(){if(c.spinning){c._stop(d);
  c._change(d)}},100);d.preventDefault()}})}},_uiSpinnerHtml:function(){return'<span class="ui-spinner ui-state-default ui-widget ui-widget-content ui-corner-all"></span>'},_buttonHtml:function(){return'<a class="ui-spinner-button ui-spinner-up ui-corner-tr"><span class="ui-icon ui-icon-triangle-1-n">&#9650;</span></a><a class="ui-spinner-button ui-spinner-down ui-corner-br"><span class="ui-icon ui-icon-triangle-1-s">&#9660;</span></a>'},_start:function(c){if(!this.spinning&&this._trigger("start",c)!==
  false){if(!this.counter)this.counter=1;return this.spinning=true}return false},_repeat:function(c,d,g){var f=this;c=c||500;clearTimeout(this.timer);this.timer=setTimeout(function(){f._repeat(40,d,g)},c);f._spin(d*f.options.step,g)},_spin:function(c,d){if(!this.counter)this.counter=1;c=this.value()+c*(this.options.incremental&&this.counter>20?this.counter>100?this.counter>200?100:10:2:1);if(this._trigger("spin",d,{value:c})!==false){this.value(c);this.counter++}},_stop:function(c){this.counter=0;this.timer&&
  window.clearTimeout(this.timer);this.element[0].focus();this.spinning=false;this._trigger("stop",c)},_change:function(c){this._trigger("change",c)},_setOption:function(c,d){if(c=="value"){d=this._parse(d);if(d<this.options.min)d=this.options.min;if(d>this.options.max)d=this.options.max}if(c=="disabled")if(d){this.element.attr("disabled",true);this.buttons.button("disable")}else{this.element.removeAttr("disabled");this.buttons.button("enable")}this._super("_setOption",c,d)},_setOptions:function(c){this._super("_setOptions",
  c);"value"in c&&this._format(this.options.value);this._aria()},_aria:function(){this.element.attr("aria-valuemin",this.options.min).attr("aria-valuemax",this.options.max).attr("aria-valuenow",this.options.value)},_parse:function(c){if(typeof c=="string")c=b.global&&this.options.numberformat?b.global.parseFloat(c):+c;return isNaN(c)?null:c},_format:function(c){this.element.val(b.global&&this.options.numberformat?b.global.format(c,this.options.numberformat):c)},destroy:function(){this.element.removeClass("ui-spinner-input").removeAttr("disabled").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
  this._super("destroy");this.uiSpinner.replaceWith(this.element)},stepUp:function(c){this._spin((c||1)*this.options.step)},stepDown:function(c){this._spin((c||1)*-this.options.step)},pageUp:function(c){this.stepUp((c||1)*this.options.page)},pageDown:function(c){this.stepDown((c||1)*this.options.page)},value:function(c){if(!arguments.length)return this._parse(this.element.val());this.option("value",c)},widget:function(){return this.uiSpinner}});b.ui.spinner.version="1.9m4"})(jQuery);
  (function(b,c){function d(){return++f}function g(){return++a}var f=0,a=0;b.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(e,h){if(e=="selected")this.options.collapsible&&
  h==this.options.selected||this.select(h);else{this.options[e]=h;this._tabify()}},_tabId:function(e){return e.title&&e.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+d()},_sanitizeSelector:function(e){return e.replace(/:/g,"\\:")},_cookie:function(){var e=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+g());return b.cookie.apply(null,[e].concat(b.makeArray(arguments)))},_ui:function(e,h){return{tab:e,panel:h,index:this.anchors.index(e)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var e=
  b(this);e.html(e.data("label.tabs")).removeData("label.tabs")})},_tabify:function(e){function h(o,r){o.css("display","");!b.support.opacity&&r.opacity&&o[0].style.removeAttribute("filter")}var i=this,j=this.options,n=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=b(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return b("a",this)[0]});this.panels=b([]);this.anchors.each(function(o,r){var s=b(r).attr("href"),t=s.split("#")[0],u;if(t&&(t===location.toString().split("#")[0]||
  (u=b("base")[0])&&t===u.href)){s=r.hash;r.href=s}if(n.test(s))i.panels=i.panels.add(i.element.find(i._sanitizeSelector(s)));else if(s&&s!=="#"){b.data(r,"href.tabs",s);b.data(r,"load.tabs",s.replace(/#.*$/,""));s=i._tabId(r);r.href="#"+s;r=i.element.find("#"+s);if(!r.length){r=b(j.panelTemplate).attr("id",s).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(i.panels[o-1]||i.list);r.data("destroy.tabs",true)}i.panels=i.panels.add(r)}else j.disabled.push(o)});if(e){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");
  this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(j.selected===c){location.hash&&this.anchors.each(function(o,r){if(r.hash==location.hash){j.selected=o;return false}});if(typeof j.selected!=="number"&&j.cookie)j.selected=parseInt(i._cookie(),10);if(typeof j.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)j.selected=
  this.lis.index(this.lis.filter(".ui-tabs-selected"));j.selected=j.selected||(this.lis.length?0:-1)}else if(j.selected===null)j.selected=-1;j.selected=j.selected>=0&&this.anchors[j.selected]||j.selected<0?j.selected:0;j.disabled=b.unique(j.disabled.concat(b.map(this.lis.filter(".ui-state-disabled"),function(o){return i.lis.index(o)}))).sort();b.inArray(j.selected,j.disabled)!=-1&&j.disabled.splice(b.inArray(j.selected,j.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
  if(j.selected>=0&&this.anchors.length){i.element.find(i._sanitizeSelector(i.anchors[j.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(j.selected).addClass("ui-tabs-selected ui-state-active");i.element.queue("tabs",function(){i._trigger("show",null,i._ui(i.anchors[j.selected],i.element.find(i._sanitizeSelector(i.anchors[j.selected].hash))[0]))});this.load(j.selected)}b(window).bind("unload",function(){i.lis.add(i.anchors).unbind(".tabs");i.lis=i.anchors=i.panels=null})}else j.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));
  this.element.toggleClass("ui-tabs-collapsible",j.collapsible);j.cookie&&this._cookie(j.selected,j.cookie);e=0;for(var q;q=this.lis[e];e++)b(q).toggleClass("ui-state-disabled",b.inArray(e,j.disabled)!=-1&&!b(q).hasClass("ui-tabs-selected"));j.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");this._focusable(this.lis);this._hoverable(this.lis);var l,k;if(j.fx)if(b.isArray(j.fx)){l=j.fx[0];k=j.fx[1]}else l=k=j.fx;var m=k?function(o,r,s){b(o).closest("li").addClass("ui-tabs-selected ui-state-active");
  r.hide().removeClass("ui-tabs-hide").animate(k,k.duration||"normal",function(){h(r,k);i._trigger("show",s,i._ui(o,r[0]))})}:function(o,r,s){b(o).closest("li").addClass("ui-tabs-selected ui-state-active");r.removeClass("ui-tabs-hide");i._trigger("show",s,i._ui(o,r[0]))},p=l?function(o,r){r.animate(l,l.duration||"normal",function(){i.lis.removeClass("ui-tabs-selected ui-state-active");r.addClass("ui-tabs-hide");h(r,l);i.element.dequeue("tabs")})}:function(o,r){i.lis.removeClass("ui-tabs-selected ui-state-active");
  r.addClass("ui-tabs-hide");i.element.dequeue("tabs")};this.anchors.bind(j.event+".tabs",function(o){o.preventDefault();var r=this,s=b(r).closest("li"),t=i.panels.filter(":not(.ui-tabs-hide)"),u=i.element.find(i._sanitizeSelector(r.hash));if(s.hasClass("ui-tabs-selected")&&!j.collapsible||s.hasClass("ui-state-disabled")||s.hasClass("ui-state-processing")||i.panels.filter(":animated").length||i._trigger("select",o,i._ui(this,u[0]))===false)this.blur();else{j.selected=i.anchors.index(this);i.abort();
  if(j.collapsible)if(s.hasClass("ui-tabs-selected")){j.selected=-1;j.cookie&&i._cookie(j.selected,j.cookie);i.element.queue("tabs",function(){p(r,t)}).dequeue("tabs");this.blur();return}else if(!t.length){j.cookie&&i._cookie(j.selected,j.cookie);i.element.queue("tabs",function(){m(r,u,o)});i.load(i.anchors.index(this));this.blur();return}j.cookie&&i._cookie(j.selected,j.cookie);if(u.length){t.length&&i.element.queue("tabs",function(){p(r,t)});i.element.queue("tabs",function(){m(r,u,o)});i.load(i.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";
  b.browser.msie&&this.blur()}});this.anchors.bind("click.tabs",function(o){o.preventDefault()})},_getIndex:function(e){if(typeof e=="string")e=this.anchors.index(this.anchors.filter("[href$="+e+"]"));return e},_destroy:function(){var e=this.options;this.abort();this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var h=b.data(this,
  "href.tabs");if(h)this.href=h;var i=b(this).unbind(".tabs");b.each(["href","load","cache"],function(j,n){i.removeData(n+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){b.data(this,"destroy.tabs")?b(this).remove():b(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});e.cookie&&this._cookie(null,e.cookie);return this},add:function(e,h,i){if(i===c)i=this.anchors.length;
  var j=this,n=this.options;h=b(n.tabTemplate.replace(/#\{href\}/g,e).replace(/#\{label\}/g,h));e=!e.indexOf("#")?e.replace("#",""):this._tabId(b("a",h)[0]);h.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var q=j.element.find("#"+e);q.length||(q=b(n.panelTemplate).attr("id",e).data("destroy.tabs",true));q.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(i>=this.lis.length){h.appendTo(this.list);q.appendTo(this.list[0].parentNode)}else{h.insertBefore(this.lis[i]);
  q.insertBefore(this.panels[i])}n.disabled=b.map(n.disabled,function(l){return l>=i?++l:l});this._tabify();if(this.anchors.length==1){n.selected=0;h.addClass("ui-tabs-selected ui-state-active");q.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){j._trigger("show",null,j._ui(j.anchors[0],j.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[i],this.panels[i]));return this},remove:function(e){e=this._getIndex(e);var h=this.options,i=this.lis.eq(e).remove(),j=this.panels.eq(e).remove();
  if(i.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(e+(e+1<this.anchors.length?1:-1));h.disabled=b.map(b.grep(h.disabled,function(n){return n!=e}),function(n){return n>=e?--n:n});this._tabify();this._trigger("remove",null,this._ui(i.find("a")[0],j[0]));return this},enable:function(e){e=this._getIndex(e);var h=this.options;if(b.inArray(e,h.disabled)!=-1){this.lis.eq(e).removeClass("ui-state-disabled");h.disabled=b.grep(h.disabled,function(i){return i!=e});this._trigger("enable",null,
  this._ui(this.anchors[e],this.panels[e]));return this}},disable:function(e){e=this._getIndex(e);var h=this.options;if(e!=h.selected){this.lis.eq(e).addClass("ui-state-disabled");h.disabled.push(e);h.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[e],this.panels[e]))}return this},select:function(e){e=this._getIndex(e);if(e==-1)if(this.options.collapsible&&this.options.selected!=-1)e=this.options.selected;else return this;this.anchors.eq(e).trigger(this.options.event+".tabs");return this},
  load:function(e){e=this._getIndex(e);var h=this,i=this.options,j=this.anchors.eq(e)[0],n=b.data(j,"load.tabs");this.abort();if(!n||this.element.queue("tabs").length!==0&&b.data(j,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(e).addClass("ui-state-processing");if(i.spinner){var q=b("span",j);q.data("label.tabs",q.html()).html(i.spinner)}this.xhr=b.ajax(b.extend({},i.ajaxOptions,{url:n,success:function(l,k){h.element.find(h._sanitizeSelector(j.hash)).html(l);h._cleanup();i.cache&&b.data(j,
  "cache.tabs",true);h._trigger("load",null,h._ui(h.anchors[e],h.panels[e]));try{i.ajaxOptions.success(l,k)}catch(m){}},error:function(l,k){h._cleanup();h._trigger("load",null,h._ui(h.anchors[e],h.panels[e]));try{i.ajaxOptions.error(l,k,e,j)}catch(m){}}}));h.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},
  url:function(e,h){this.anchors.eq(e).removeData("cache.tabs").data("load.tabs",h);return this},length:function(){return this.anchors.length}});b.extend(b.ui.tabs,{version:"1.9m4"})})(jQuery);
  (function(b){var c=0;b.widget("ui.tooltip",{options:{items:"[title]",content:function(){return b(this).attr("title")},position:{my:"left center",at:"right center",offset:"15 0"}},_create:function(){var d=this;this.tooltip=b("<div></div>").attr("id","ui-tooltip-"+c++).attr("role","tooltip").attr("aria-hidden","true").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content").appendTo(document.body).hide();this.tooltipContent=b("<div></div>").addClass("ui-tooltip-content").appendTo(this.tooltip);
  this.opacity=this.tooltip.css("opacity");this.element.bind("focus.tooltip mouseover.tooltip",function(g){d.open(g)}).bind("blur.tooltip mouseout.tooltip",function(g){d.close(g)})},enable:function(){this.options.disabled=false},disable:function(){this.options.disabled=true},_destroy:function(){this.tooltip.remove()},widget:function(){return this.element.pushStack(this.tooltip.get())},open:function(d){var g=b(d&&d.target||this.element).closest(this.options.items);if(!(this.current&&this.current[0]==
  g[0])){var f=this;this.current=g;this.currentTitle=g.attr("title");var a=this.options.content.call(g[0],function(e){setTimeout(function(){f.current==g&&f._show(d,g,e)},13)});a&&f._show(d,g,a)}},_show:function(d,g,f){if(f){g.attr("title","");if(!this.options.disabled){this.tooltipContent.html(f);this.tooltip.css({top:0,left:0}).show().position(b.extend({of:g},this.options.position)).hide();this.tooltip.attr("aria-hidden","false");g.attr("aria-describedby",this.tooltip.attr("id"));this.tooltip.stop(false,
  true).fadeIn();this._trigger("open",d)}}},close:function(d){if(this.current){var g=this.current;this.current=null;g.attr("title",this.currentTitle);if(!this.options.disabled){g.removeAttr("aria-describedby");this.tooltip.attr("aria-hidden","true");this.tooltip.stop(false,true).fadeOut();this._trigger("close",d)}}}});b.ui.tooltip.version="1.9m4"})(jQuery);
  