")).addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),(this.uiButtonSet=h("
")).addClass("ui-dialog-buttonset").appendTo(s),n.attr({role:"dialog","aria-labelledby":i.attr("id")}),t.find("*").add(t).disableSelection(),this._hoverable(e),this._focusable(e),o.draggable&&h.fn.draggable&&this._makeDraggable(),o.resizable&&h.fn.resizable&&this._makeResizable(),this._createButtons(o.buttons),this._isOpen=!1,h.fn.bgiframe&&n.bgiframe(),this._on(n,{keydown:function(t){if(o.modal&&t.keyCode===h.ui.keyCode.TAB){var e=h(":tabbable",n),i=e.filter(":first"),s=e.filter(":last");return t.target!==s[0]||t.shiftKey?t.target===i[0]&&t.shiftKey?(s.focus(1),!1):void 0:(i.focus(1),!1)}}})},_init:function(){this.options.autoOpen&&this.open()},_destroy:function(){var t,e=this.oldPosition;this.overlay&&this.overlay.destroy(),this.uiDialog.hide(),this.element.removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},close:function(t){var e,i,s=this;if(this._isOpen&&!1!==this._trigger("beforeClose",t))return this._isOpen=!1,this.overlay&&this.overlay.destroy(),this.options.hide?this._hide(this.uiDialog,this.options.hide,function(){s._trigger("close",t)}):(this.uiDialog.hide(),this._trigger("close",t)),h.ui.dialog.overlay.resize(),this.options.modal&&(e=0,h(".ui-dialog").each(function(){this!==s.uiDialog[0]&&(i=h(this).css("z-index"),isNaN(i)||(e=Math.max(e,i)))}),h.ui.dialog.maxZ=e),this},isOpen:function(){return this._isOpen},moveToTop:function(t,e){var i,s=this.options;return s.modal&&!t||!s.stack&&!s.modal?this._trigger("focus",e):(s.zIndex>h.ui.dialog.maxZ&&(h.ui.dialog.maxZ=s.zIndex),this.overlay&&(h.ui.dialog.maxZ+=1,h.ui.dialog.overlay.maxZ=h.ui.dialog.maxZ,this.overlay.$el.css("z-index",h.ui.dialog.overlay.maxZ)),i={scrollTop:this.element.scrollTop(),scrollLeft:this.element.scrollLeft()},h.ui.dialog.maxZ+=1,this.uiDialog.css("z-index",h.ui.dialog.maxZ),this.element.attr(i),this._trigger("focus",e),this)},open:function(){if(!this._isOpen){var t,e=this.options,i=this.uiDialog;return this._size(),this._position(e.position),i.show(e.show),this.overlay=e.modal?new h.ui.dialog.overlay(this):null,this.moveToTop(!0),(t=this.element.find(":tabbable")).length||(t=this.uiDialogButtonPane.find(":tabbable")).length||(t=i),t.eq(0).focus(),this._isOpen=!0,this._trigger("open"),this}},_createButtons:function(t){var n=this,e=!1;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),"object"==typeof t&&null!==t&&h.each(t,function(){return!(e=!0)}),e?(h.each(t,function(t,e){var i,s;e=h.isFunction(e)?{click:e,text:t}:e,e=h.extend({type:"button"},e),s=e.click,e.click=function(){s.apply(n.element[0],arguments)},i=h("",e).appendTo(n.uiButtonSet),h.fn.button&&i.button()}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog)):this.uiDialog.removeClass("ui-dialog-buttons")},_makeDraggable:function(){var i=this,s=this.options;function n(t){return{position:t.position,offset:t.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(t,e){h(this).addClass("ui-dialog-dragging"),i._trigger("dragStart",t,n(e))},drag:function(t,e){i._trigger("drag",t,n(e))},stop:function(t,e){s.position=[e.position.left-i.document.scrollLeft(),e.position.top-i.document.scrollTop()],h(this).removeClass("ui-dialog-dragging"),i._trigger("dragStop",t,n(e)),h.ui.dialog.overlay.resize()}})},_makeResizable:function(t){t=void 0===t?this.options.resizable:t;var i=this,s=this.options,e=this.uiDialog.css("position"),n="string"==typeof t?t:"n,e,s,w,se,sw,ne,nw";function a(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:s.maxWidth,maxHeight:s.maxHeight,minWidth:s.minWidth,minHeight:this._minHeight(),handles:n,start:function(t,e){h(this).addClass("ui-dialog-resizing"),i._trigger("resizeStart",t,a(e))},resize:function(t,e){i._trigger("resize",t,a(e))},stop:function(t,e){h(this).removeClass("ui-dialog-resizing"),s.height=h(this).height(),s.width=h(this).width(),i._trigger("resizeStop",t,a(e)),h.ui.dialog.overlay.resize()}}).css("position",e).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(t){var e,i=[],s=[0,0];t=t?(("string"==typeof t||"object"==typeof t&&"0"in t)&&(1===(i=t.split?t.split(" "):[t[0],t[1]]).length&&(i[1]=i[0]),h.each(["left","top"],function(t,e){+i[t]===i[t]&&(s[t]=i[t],i[t]=e)}),t={my:i[0]+(s[0]<0?s[0]:"+"+s[0])+" "+i[1]+(s[1]<0?s[1]:"+"+s[1]),at:i.join(" ")}),h.extend({},h.ui.dialog.prototype.options.position,t)):h.ui.dialog.prototype.options.position,(e=this.uiDialog.is(":visible"))||this.uiDialog.show(),this.uiDialog.position(t),e||this.uiDialog.hide()},_setOptions:function(t){var i=this,s={},n=!1;h.each(t,function(t,e){i._setOption(t,e),t in a&&(n=!0),t in o&&(s[t]=e)}),n&&this._size(),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(t,e){var i,s,n=this.uiDialog;switch(t){case"buttons":this._createButtons(e);break;case"closeText":this.uiDialogTitlebarCloseText.text(""+e);break;case"dialogClass":n.removeClass(this.options.dialogClass).addClass(l+e);break;case"disabled":e?n.addClass("ui-dialog-disabled"):n.removeClass("ui-dialog-disabled");break;case"draggable":(i=n.is(":data(draggable)"))&&!e&&n.draggable("destroy"),!i&&e&&this._makeDraggable();break;case"position":this._position(e);break;case"resizable":(s=n.is(":data(resizable)"))&&!e&&n.resizable("destroy"),s&&"string"==typeof e&&n.resizable("option","handles",e),s||!1===e||this._makeResizable(e);break;case"title":h(".ui-dialog-title",this.uiDialogTitlebar).html(""+(e||" "))}this._super(t,e)},_size:function(){var t,e,i,s=this.options,n=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0}),s.minWidth>s.width&&(s.width=s.minWidth),t=this.uiDialog.css({height:"auto",width:s.width}).outerHeight(),e=Math.max(0,s.minHeight-t),"auto"===s.height?h.support.minHeight?this.element.css({minHeight:e,height:"auto"}):(this.uiDialog.show(),i=this.element.css("height","auto").height(),n||this.uiDialog.hide(),this.element.height(Math.max(i,e))):this.element.height(Math.max(s.height-t,0)),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}}),h.extend(h.ui.dialog,{uuid:0,maxZ:0,getTitleId:function(t){var e=t.attr("id");return e||(this.uuid+=1,e=this.uuid),"ui-dialog-title-"+e},overlay:function(t){this.$el=h.ui.dialog.overlay.create(t)}}),h.extend(h.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:h.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(t){return t+".dialog-overlay"}).join(" "),create:function(i){0===this.instances.length&&(setTimeout(function(){h.ui.dialog.overlay.instances.length&&h(document).bind(h.ui.dialog.overlay.events,function(t){if(h(t.target).zIndex()").addClass("ui-widget-overlay");return h(document).bind("keydown.dialog-overlay",function(t){var e=h.ui.dialog.overlay.instances;0!==e.length&&e[e.length-1]===s&&i.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===h.ui.keyCode.ESCAPE&&(i.close(t),t.preventDefault())}),s.appendTo(document.body).css({width:this.width(),height:this.height()}),h.fn.bgiframe&&s.bgiframe(),this.instances.push(s),s},destroy:function(t){var e=h.inArray(t,this.instances),i=0;-1!==e&&this.oldInstances.push(this.instances.splice(e,1)[0]),0===this.instances.length&&h([document,window]).unbind(".dialog-overlay"),t.height(0).width(0).remove(),h.each(this.instances,function(){i=Math.max(i,this.css("z-index"))}),this.maxZ=i},height:function(){var t;return h.ui.ie?(t=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight))
").css({position:"absolute",visibility:"visible",left:-s*p,top:-i*f}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:p,height:f,left:n+(u?o*p:0),top:a+(u?r*f:0),opacity:u?0:1}).animate({left:n+(u?0:o*p),top:a+(u?0:r*f),opacity:u?1:0},t.duration||500,t.easing,m)}}(jQuery),function(n){n.effects.effect.fade=function(t,e){var i=n(this),s=n.effects.setMode(i,t.mode||"toggle");i.animate({opacity:s},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}}(jQuery),function(v){v.effects.effect.fold=function(t,e){var i,s,n=v(this),a=["position","top","bottom","left","right","height","width"],o=v.effects.setMode(n,t.mode||"hide"),r="show"===o,h="hide"===o,l=t.size||15,c=/([0-9]+)%/.exec(l),u=!!t.horizFirst,d=r!=u,p=d?["width","height"]:["height","width"],f=t.duration/2,g={},m={};v.effects.save(n,a),n.show(),i=v.effects.createWrapper(n).css({overflow:"hidden"}),s=d?[i.width(),i.height()]:[i.height(),i.width()],c&&(l=parseInt(c[1],10)/100*s[h?0:1]),r&&i.css(u?{height:0,width:l}:{height:l,width:0}),g[p[0]]=r?s[0]:l,m[p[1]]=r?s[1]:0,i.animate(g,f,t.easing).animate(m,f,t.easing,function(){h&&n.hide(),v.effects.restore(n,a),v.effects.removeWrapper(n),e()})}}(jQuery),function(o){o.effects.effect.highlight=function(t,e){var i=o(this),s=["backgroundImage","backgroundColor","opacity"],n=o.effects.setMode(i,t.mode||"show"),a={backgroundColor:i.css("backgroundColor")};"hide"===n&&(a.opacity=0),o.effects.save(i,s),i.show().css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(a,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===n&&i.hide(),o.effects.restore(i,s),e()}})}}(jQuery),function(p){p.effects.effect.pulsate=function(t,e){var i,s=p(this),n=p.effects.setMode(s,t.mode||"show"),a="show"===n,o="hide"===n,r=a||"hide"===n,h=2*(t.times||5)+(r?1:0),l=t.duration/h,c=0,u=s.queue(),d=u.length;for(!a&&s.is(":visible")||(s.css("opacity",0).show(),c=1),i=1;i
').appendTo(document.body).addClass(t.className).css({top:c.top-o,left:c.left-r,height:i.innerHeight(),width:i.innerWidth(),position:n?"fixed":"absolute"}).animate(l,t.duration,t.easing,function(){u.remove(),e()})}}(jQuery),function(h){var i=!1;h.widget("ui.menu",{version:"1.9.2",defaultElement:"