(function(B){B.dimensions={version:"@VERSION"};B.each(["Height","Width"],function(D,C){B.fn["inner"+C]=function(){if(!this[0]){return }var F=C=="Height"?"Top":"Left",E=C=="Height"?"Bottom":"Right";return this[C.toLowerCase()]()+A(this,"padding"+F)+A(this,"padding"+E)};B.fn["outer"+C]=function(F){if(!this[0]){return }var G=C=="Height"?"Top":"Left",E=C=="Height"?"Bottom":"Right";F=B.extend({margin:false},F||{});return this[C.toLowerCase()]()+A(this,"border"+G+"Width")+A(this,"border"+E+"Width")+A(this,"padding"+G)+A(this,"padding"+E)+(F.margin?(A(this,"margin"+G)+A(this,"margin"+E)):0)}});B.each(["Left","Top"],function(D,C){B.fn["scroll"+C]=function(E){if(!this[0]){return }return E!=undefined?this.each(function(){this==window||this==document?window.scrollTo(C=="Left"?E:B(window)["scrollLeft"](),C=="Top"?E:B(window)["scrollTop"]()):this["scroll"+C]=E}):this[0]==window||this[0]==document?self[(C=="Left"?"pageXOffset":"pageYOffset")]||B.boxModel&&document.documentElement["scroll"+C]||document.body["scroll"+C]:this[0]["scroll"+C]}});B.fn.extend({position:function(){var H=0,G=0,F=this[0],I,C,E,D;if(F){E=this.offsetParent();I=this.offset();C=E.offset();I.top-=A(F,"marginTop");I.left-=A(F,"marginLeft");C.top+=A(E,"borderTopWidth");C.left+=A(E,"borderLeftWidth");D={top:I.top-C.top,left:I.left-C.left}}return D},offsetParent:function(){var C=this[0].offsetParent;while(C&&(!/^body|html$/i.test(C.tagName)&&B.css(C,"position")=="static")){C=C.offsetParent}return B(C)}});var A=function(C,D){return parseInt(B.css(C.jquery?C[0]:C,D))||0}})(jQuery);(function(A){A.ui=A.ui||{};A.fn.dialog=function(B){return this.each(function(){if(!A(this).is(".ui-dialog")){new A.ui.dialog(this,B)}})};A.fn.dialogOpen=function(){return this.each(function(){var B;if(A(this).parents(".ui-dialog").length){B=this}if(!B&&A(this).is(".ui-dialog")){B=A(".ui-dialog-content",this)[0]}A.ui.dialogOpen(B)})};A.fn.dialogClose=function(){return this.each(function(){var B;if(A(this).parents(".ui-dialog").length){B=this}if(!B&&A(this).is(".ui-dialog")){B=A(".ui-dialog-content",this)[0]}A.ui.dialogClose(B)})};A.ui.dialog=function(D,B){var L={width:300,height:200,position:"center",buttons:[],modal:false,drag:true,resize:true,shadow:false};var B=B||{};A.extend(L,B);this.element=D;var K=this;A.data(this.element,"ui-dialog",this);var E=A(D).addClass("ui-dialog-content").wrap(document.createElement("div")).wrap(document.createElement("div"));var H=E.parent().addClass("ui-dialog-container").css({position:"relative"});var J=H.parent().addClass("ui-dialog").addClass(E.attr("className")).css({position:"absolute",width:L.width,height:L.height,"z-index":999});if(L.modal==false&&L.resize==true){J.append("<div class='ui-resizable-n ui-resizable-handle'></div>").append("<div class='ui-resizable-s ui-resizable-handle'></div>").append("<div class='ui-resizable-e ui-resizable-handle'></div>").append("<div class='ui-resizable-w ui-resizable-handle'></div>").append("<div class='ui-resizable-ne ui-resizable-handle'></div>").append("<div class='ui-resizable-se ui-resizable-handle'></div>").append("<div class='ui-resizable-sw ui-resizable-handle'></div>").append("<div class='ui-resizable-nw ui-resizable-handle'></div>");J.resizable()}H.prepend('<div class="ui-dialog-titlebar"></div>');var C=A(".ui-dialog-titlebar",H);var I=(L.title)?L.title:(E.attr("title"))?E.attr("title"):"";C.append('<span class="ui-dialog-title">'+I+"</span>");C.append('<div class="ui-dialog-titlebar-close"></div>');A(".ui-dialog-titlebar-close",C).hover(function(){A(this).addClass("ui-dialog-titlebar-close-hover")},function(){A(this).removeClass("ui-dialog-titlebar-close-hover")}).mousedown(function(M){M.stopPropagation()}).click(function(){K.close()});var F=0;A.each(L.buttons,function(){F=1;return false});if(F==1){J.append('<div class="ui-dialog-buttonpane"></div>');var G=A(".ui-dialog-buttonpane",J);A.each(L.buttons,function(M,O){var N=A(document.createElement("button")).text(M).click(O);G.append(N)})}if(L.modal==false&&L.drag==true){J.draggable({handle:".ui-dialog-titlebar"})}this.open=function(){var M=Math.max(document.documentElement.scrollTop,document.body.scrollTop)+25;J.css({top:M,left:10});J.appendTo("body").show()};this.close=function(){J.hide()};J.show();this.open();if(L.shadow&&A.fn.shadow!=undefined){J.shadow()}};A.ui.dialogOpen=function(B){A.data(B,"ui-dialog").open()};A.ui.dialogClose=function(B){A.data(B,"ui-dialog").close()}})(jQuery);(function($){$.extend($.expr[":"],{resizable:"(' '+a.className+' ').indexOf(' ui-resizable ')"});$.fn.resizable=function(o){return this.each(function(){if(!$(this).is(".ui-resizable")){new $.ui.resizable(this,o)}})};var methods="destroy,enable,disable".split(",");for(var i=0;i<methods.length;i++){var cur=methods[i],f;eval('f = function() { var a = arguments; return this.each(function() { if(jQuery(this).is(".ui-resizable")) jQuery.data(this, "ui-resizable")["'+cur+'"](a); if(jQuery(this.parentNode).is(".ui-resizable")) jQuery.data(this, "ui-resizable")["'+cur+'"](a); }); }');$.fn["resizable"+cur.substr(0,1).toUpperCase()+cur.substr(1)]=f}$.fn.resizableInstance=function(){if($(this[0]).is(".ui-resizable")||$(this[0].parentNode).is(".ui-resizable")){return $.data(this[0],"ui-resizable")}return false};$.ui.resizable=function(el,o){var options={};o=o||{};$.extend(options,o);this.element=el;var self=this;$.data(this.element,"ui-resizable",this);if(options.proxy){var helper=function(e,that){var helper=$("<div></div>").css({width:$(this).width(),height:$(this).height(),position:"absolute",left:that.options.co.left,top:that.options.co.top}).addClass(that.options.proxy);return helper}}else{var helper="original"}if(el.nodeName.match(/textarea|input|select|button|img/i)){options.destructive=true}if(options.destructive){$(el).wrap('<div class="ui-wrapper"  style="position: relative; width: '+$(el).outerWidth()+"px; height: "+$(el).outerHeight()+';"></div>');var oel=el;el=el.parentNode;this.element=el;$(el).css({marginLeft:$(oel).css("marginLeft"),marginTop:$(oel).css("marginTop"),marginRight:$(oel).css("marginRight"),marginBottom:$(oel).css("marginBottom")});$(oel).css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});o.proportionallyResize=o.proportionallyResize||[];o.proportionallyResize.push(oel);var b=[parseInt($(oel).css("borderTopWidth")),parseInt($(oel).css("borderRightWidth")),parseInt($(oel).css("borderBottomWidth")),parseInt($(oel).css("borderLeftWidth"))]}else{var b=[0,0,0,0]}if(options.destructive||!$(".ui-resizable-handle",el).length){var t=function(a,b){$(el).append("<div class='ui-resizable-"+a+" ui-resizable-handle' style='"+b+"'></div>")};t("e","right: "+b[1]+"px;"+(options.zIndex?"z-index: "+options.zIndex+";":""));t("s","bottom: "+b[1]+"px;"+(options.zIndex?"z-index: "+options.zIndex+";":""));t("se","bottom: "+b[2]+"px; right: "+b[1]+"px;"+(options.zIndex?"z-index: "+options.zIndex+";":""))}options.modifyThese=[];if(o.proportionallyResize){options.proportionallyResize=o.proportionallyResize.slice(0);var propRes=options.proportionallyResize;for(var i in propRes){if(propRes[i].constructor==String){propRes[i]=$(propRes[i],el)}if(!$(propRes[i]).length){continue}var x=$(propRes[i]).width()-$(el).width();var y=$(propRes[i]).height()-$(el).height();options.modifyThese.push([$(propRes[i]),x,y])}}options.handles={};if(!o.handles){o.handles={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"}}for(var i in o.handles){options.handles[i]=o.handles[i]}for(var i in options.handles){if(options.handles[i].constructor==String){options.handles[i]=$(options.handles[i],el)}if(!$(options.handles[i]).length){continue}$(options.handles[i]).bind("mousedown",function(e){self.interaction.options.axis=this.resizeAxis})[0].resizeAxis=i}if(o.autohide){$(this.element).addClass("ui-resizable-autohide").hover(function(){$(this).removeClass("ui-resizable-autohide")},function(){if(self.interaction.options.autohide&&!self.interaction.init){$(this).addClass("ui-resizable-autohide")}})}$.extend(options,{helper:helper,nonDestructive:true,dragPrevention:"input,button,select",minHeight:options.minHeight||50,minWidth:options.minWidth||100,startCondition:function(e){if(self.disabled){return false}for(var i in options.handles){if($(options.handles[i])[0]==e.target){return true}}return false},_start:function(h,p,c,t,e){self.start.apply(t,[self,e])},_beforeStop:function(h,p,c,t,e){self.stop.apply(t,[self,e])},_drag:function(h,p,c,t,e){self.drag.apply(t,[self,e])}});this.interaction=new $.ui.mouseInteraction(el,options);$(this.element).addClass("ui-resizable")};$.extend($.ui.resizable.prototype,{plugins:{},prepareCallbackObj:function(self){return{helper:self.helper,resizable:self,axis:self.options.axis,options:self.options}},destroy:function(){$(this.element).removeClass("ui-resizable").removeClass("ui-resizable-disabled");this.interaction.destroy()},enable:function(){$(this.element).removeClass("ui-resizable-disabled");this.disabled=false},disable:function(){$(this.element).addClass("ui-resizable-disabled");this.disabled=true},start:function(that,e){this.options.originalSize=[$(this.element).width(),$(this.element).height()];this.options.originalPosition=$(this.element).css("position");this.options.originalPositionValues=$(this.element).position();this.options.modifyThese.push([$(this.helper),0,0]);$(that.element).triggerHandler("resizestart",[e,that.prepareCallbackObj(this)],this.options.start);return false},stop:function(that,e){var o=this.options;$(that.element).triggerHandler("resizestop",[e,that.prepareCallbackObj(this)],this.options.stop);if(o.proxy){$(this.element).css({width:$(this.helper).width(),height:$(this.helper).height()});if(o.originalPosition=="absolute"||o.originalPosition=="fixed"){$(this.element).css({top:$(this.helper).css("top"),left:$(this.helper).css("left")})}}return false},drag:function(that,e){var o=this.options;var rel=(o.originalPosition!="absolute"&&o.originalPosition!="fixed");var co=rel?o.co:this.options.originalPositionValues;var p=o.originalSize;this.pos=rel?[this.rpos[0]-o.cursorAt.left,this.rpos[1]-o.cursorAt.top]:[this.pos[0]-o.cursorAt.left,this.pos[1]-o.cursorAt.top];var nw=p[0]+(this.pos[0]-co.left);var nh=p[1]+(this.pos[1]-co.top);if(o.axis){switch(o.axis){case"e":nh=p[1];break;case"s":nw=p[0];break;case"n":case"ne":if(!o.proxy&&(o.originalPosition!="absolute"&&o.originalPosition!="fixed")){return false}if(o.axis=="n"){nw=p[0]}var mod=(this.pos[1]-co.top);nh=nh-(mod*2);mod=nh<=o.minHeight?p[1]-o.minHeight:(nh>=o.maxHeight?0-(o.maxHeight-p[1]):mod);$(this.helper).css("top",co.top+mod);break;case"w":case"sw":if(!o.proxy&&(o.originalPosition!="absolute"&&o.originalPosition!="fixed")){return false}if(o.axis=="w"){nh=p[1]}var mod=(this.pos[0]-co.left);nw=nw-(mod*2);mod=nw<=o.minWidth?p[0]-o.minWidth:(nw>=o.maxWidth?0-(o.maxWidth-p[0]):mod);$(this.helper).css("left",co.left+mod);break;case"nw":if(!o.proxy&&(o.originalPosition!="absolute"&&o.originalPosition!="fixed")){return false}var modx=(this.pos[0]-co.left);nw=nw-(modx*2);modx=nw<=o.minWidth?p[0]-o.minWidth:(nw>=o.maxWidth?0-(o.maxWidth-p[0]):modx);var mody=(this.pos[1]-co.top);nh=nh-(mody*2);mody=nh<=o.minHeight?p[1]-o.minHeight:(nh>=o.maxHeight?0-(o.maxHeight-p[1]):mody);$(this.helper).css({left:co.left+modx,top:co.top+mody});break}}if(e.shiftKey){nh=nw*(p[1]/p[0])}if(o.minWidth){nw=nw<=o.minWidth?o.minWidth:nw}if(o.minHeight){nh=nh<=o.minHeight?o.minHeight:nh}if(o.maxWidth){nw=nw>=o.maxWidth?o.maxWidth:nw}if(o.maxHeight){nh=nh>=o.maxHeight?o.maxHeight:nh}if(e.shiftKey){nh=nw*(p[1]/p[0])}var modifier=$(that.element).triggerHandler("resize",[e,that.prepareCallbackObj(this)],o.resize);if(!modifier){modifier={}}for(var i in this.options.modifyThese){var c=this.options.modifyThese[i];c[0].css({width:modifier.width?modifier.width+c[1]:nw+c[1],height:modifier.height?modifier.height+c[2]:nh+c[2]})}return false}})})($);(function(C){C.ui=C.ui||{};C.extend(C.ui,{plugin:{add:function(F,I,H,G){var E=C.ui[F].prototype;if(!E.plugins[I]){E.plugins[I]=[]}E.plugins[I].push([H,G])},call:function(E,F,H){var K=E.plugins[F];if(!K){return }var J=E.interaction?E.interaction.options:E.options;var I=E.interaction?E.interaction.element:E.element;for(var G=0;G<K.length;G++){if(J[K[G][0]]){K[G][1].apply(I,H)}}}}});C.fn.mouseInteractionDestroy=function(){this.each(function(){if(C.data(this,"ui-mouse")){C.data(this,"ui-mouse").destroy()}})};C.ui.mouseInteraction=function(F,G){if(!G){var G={}}this.element=F;C.data(this.element,"ui-mouse",this);this.options={};C.extend(this.options,G);C.extend(this.options,{handle:G.handle?(C(G.handle,F)[0]?C(G.handle,F):C(F)):C(F),helper:G.helper||"original",preventionDistance:G.preventionDistance||0,dragPrevention:G.dragPrevention?G.dragPrevention.toLowerCase().split(","):["input","textarea","button","select","option"],cursorAt:{top:((G.cursorAt&&G.cursorAt.top)?G.cursorAt.top:0),left:((G.cursorAt&&G.cursorAt.left)?G.cursorAt.left:0),bottom:((G.cursorAt&&G.cursorAt.bottom)?G.cursorAt.bottom:0),right:((G.cursorAt&&G.cursorAt.right)?G.cursorAt.right:0)},cursorAtIgnore:(!G.cursorAt)?true:false,appendTo:G.appendTo||"parent"});G=this.options;if(!this.options.nonDestructive&&(G.helper=="clone"||G.helper=="original")){G.margins={top:parseInt(C(F).css("marginTop"))||0,left:parseInt(C(F).css("marginLeft"))||0,bottom:parseInt(C(F).css("marginBottom"))||0,right:parseInt(C(F).css("marginRight"))||0};if(G.cursorAt.top!=0){G.cursorAt.top=G.margins.top}if(G.cursorAt.left!=0){G.cursorAt.left+=G.margins.left}if(G.cursorAt.bottom!=0){G.cursorAt.bottom+=G.margins.bottom}if(G.cursorAt.right!=0){G.cursorAt.right+=G.margins.right}if(G.helper=="original"){G.wasPositioned=C(F).css("position")}}else{G.margins={top:0,left:0,right:0,bottom:0}}var E=this;this.mousedownfunc=function(H){return E.click.apply(E,[H])};G.handle.bind("mousedown",this.mousedownfunc);if(C.browser.msie){C(this.element).attr("unselectable","on")}};C.extend(C.ui.mouseInteraction.prototype,{plugins:{},currentTarget:null,lastTarget:null,timer:null,slowMode:false,init:false,destroy:function(){this.options.handle.unbind("mousedown",this.mousedownfunc)},trigger:function(E){return this.click.apply(this,arguments)},click:function(H){var I=this.options;window.focus();if(H.which!=1){return true}var G=(H.target)?H.target.nodeName.toLowerCase():H.srcElement.nodeName.toLowerCase();for(var F=0;F<I.dragPrevention.length;F++){if(G==I.dragPrevention[F]){return true}}if(I.startCondition&&!I.startCondition.apply(this,[H])){return true}var E=this;this.mouseup=function(K){return E.stop.apply(E,[K])};this.mousemove=function(K){return E.drag.apply(E,[K])};var J=function(){C(document).bind("mouseup",E.mouseup);C(document).bind("mousemove",E.mousemove);E.opos=[H.pageX,H.pageY]};if(I.preventionTimeout){if(this.timer){clearInterval(this.timer)}this.timer=setTimeout(function(){J()},I.preventionTimeout);return false}J();return false},start:function(G){var H=this.options;var E=this.element;H.co=C(E).offset();this.helper=typeof H.helper=="function"?C(H.helper.apply(E,[G,this]))[0]:(H.helper=="clone"?C(E).clone()[0]:E);if(H.appendTo=="parent"){var F=E.parentNode;while(F){if(F.style&&(C(F).css("position")=="relative"||C(F).css("position")=="absolute")){H.pp=F;H.po=C(F).offset();H.ppOverflow=!!(C(H.pp).css("overflow")=="auto"||C(H.pp).css("overflow")=="scroll");break}F=F.parentNode?F.parentNode:null}if(!H.pp){H.po={top:0,left:0}}}this.pos=[this.opos[0],this.opos[1]];this.rpos=[this.pos[0],this.pos[1]];if(H.cursorAtIgnore){H.cursorAt.left=this.pos[0]-H.co.left+H.margins.left;H.cursorAt.top=this.pos[1]-H.co.top+H.margins.top}if(H.pp){this.pos[0]-=H.po.left;this.pos[1]-=H.po.top}this.slowMode=(H.cursorAt&&(H.cursorAt.top-H.margins.top>0||H.cursorAt.bottom-H.margins.bottom>0)&&(H.cursorAt.left-H.margins.left>0||H.cursorAt.right-H.margins.right>0))?true:false;if(!H.nonDestructive){C(this.helper).css("position","absolute")}if(H.helper!="original"){C(this.helper).appendTo((H.appendTo=="parent"?E.parentNode:H.appendTo)).show()}if(H.cursorAt.right&&!H.cursorAt.left){H.cursorAt.left=this.helper.offsetWidth+H.margins.right+H.margins.left-H.cursorAt.right}if(H.cursorAt.bottom&&!H.cursorAt.top){H.cursorAt.top=this.helper.offsetHeight+H.margins.top+H.margins.bottom-H.cursorAt.bottom}this.init=true;if(H._start){H._start.apply(E,[this.helper,this.pos,H.cursorAt,this,G])}this.helperSize={width:D(this.helper),height:B(this.helper)};return false},stop:function(G){var H=this.options;var E=this.element;var F=this;C(document).unbind("mouseup",F.mouseup);C(document).unbind("mousemove",F.mousemove);if(this.init==false){return this.opos=this.pos=null}if(H._beforeStop){H._beforeStop.apply(E,[this.helper,this.pos,H.cursorAt,this,G])}if(this.helper!=E&&!H.beQuietAtEnd){C(this.helper).remove();this.helper=null}if(!H.beQuietAtEnd){if(H._stop){H._stop.apply(E,[this.helper,this.pos,H.cursorAt,this,G])}}this.init=false;this.opos=this.pos=null;return false},drag:function(E){if(!this.opos||(C.browser.msie&&!E.button)){return this.stop.apply(this,[E])}var F=this.options;this.pos=[E.pageX,E.pageY];if(this.rpos&&this.rpos[0]==this.pos[0]&&this.rpos[1]==this.pos[1]){return false}this.rpos=[this.pos[0],this.pos[1]];if(F.pp){this.pos[0]-=F.po.left;this.pos[1]-=F.po.top}if((Math.abs(this.rpos[0]-this.opos[0])>F.preventionDistance||Math.abs(this.rpos[1]-this.opos[1])>F.preventionDistance)&&this.init==false){this.start.apply(this,[E])}else{if(this.init==false){return false}}if(F._drag){F._drag.apply(this.element,[this.helper,this.pos,F.cursorAt,this,E])}return false}});var A=function(E,F){return parseInt(C.css(E.jquery?E[0]:E,F))||0};function D(I){var G=C(I),E=G.width();for(var F=0,H=["borderLeftWidth","paddingLeft","paddingRight","borderRightWidth"];F<H.length;F++){E+=A(G,H[F])}return E}function B(H){var F=C(H),I=F.width();for(var E=0,G=["borderTopWidth","paddingTop","paddingBottom","borderBottomWidth"];E<G.length;E++){I+=A(F,G[E])}return I}})($);(function($){$.extend($.expr[":"],{draggable:"(' '+a.className+' ').indexOf(' ui-draggable ')"});var methods="destroy,enable,disable".split(",");for(var i=0;i<methods.length;i++){var cur=methods[i],f;eval('f = function() { var a = arguments; return this.each(function() { if(jQuery(this).is(".ui-draggable")) jQuery.data(this, "ui-draggable")["'+cur+'"](a); }); }');$.fn["draggable"+cur.substr(0,1).toUpperCase()+cur.substr(1)]=f}$.fn.draggableInstance=function(){if($(this[0]).is(".ui-draggable")){return $.data(this[0],"ui-draggable")}return false};$.fn.draggable=function(o){return this.each(function(){new $.ui.draggable(this,o)})};$.ui.ddmanager={current:null,droppables:[],prepareOffsets:function(t,e){var dropTop=$.ui.ddmanager.dropTop=[];var dropLeft=$.ui.ddmanager.dropLeft;var m=$.ui.ddmanager.droppables;for(var i=0;i<m.length;i++){if(m[i].item.disabled){continue}m[i].offset=$(m[i].item.element).offset();if(t&&m[i].item.options.accept(t.element)){m[i].item.activate.call(m[i].item,e)}}},fire:function(oDrag,e){var oDrops=$.ui.ddmanager.droppables;var oOvers=$.grep(oDrops,function(oDrop){if(!oDrop.item.disabled&&$.ui.intersect(oDrag,oDrop,oDrop.item.options.tolerance)){oDrop.item.drop.call(oDrop.item,e)}});$.each(oDrops,function(i,oDrop){if(!oDrop.item.disabled&&oDrop.item.options.accept(oDrag.element)){oDrop.out=1;oDrop.over=0;oDrop.item.deactivate.call(oDrop.item,e)}})},update:function(oDrag,e){if(oDrag.options.refreshPositions){$.ui.ddmanager.prepareOffsets()}var oDrops=$.ui.ddmanager.droppables;var oOvers=$.grep(oDrops,function(oDrop){if(oDrop.item.disabled){return false}var isOver=$.ui.intersect(oDrag,oDrop,oDrop.item.options.tolerance);if(!isOver&&oDrop.over==1){oDrop.out=1;oDrop.over=0;oDrop.item.out.call(oDrop.item,e)}return isOver});$.each(oOvers,function(i,oOver){if(oOver.over==0){oOver.out=0;oOver.over=1;oOver.item.over.call(oOver.item,e)}})}};$.ui.draggable=function(el,o){var options={};$.extend(options,o);var self=this;$.extend(options,{_start:function(h,p,c,t,e){self.start.apply(t,[self,e])},_beforeStop:function(h,p,c,t,e){self.stop.apply(t,[self,e])},_drag:function(h,p,c,t,e){self.drag.apply(t,[self,e])},startCondition:function(e){return !(e.target.className.indexOf("ui-resizable-handle")!=-1||self.disabled)}});$.data(el,"ui-draggable",this);if(options.ghosting==true){options.helper="clone"}$(el).addClass("ui-draggable");this.interaction=new $.ui.mouseInteraction(el,options)};$.extend($.ui.draggable.prototype,{plugins:{},currentTarget:null,lastTarget:null,destroy:function(){$(this.interaction.element).removeClass("ui-draggable").removeClass("ui-draggable-disabled");this.interaction.destroy()},enable:function(){$(this.interaction.element).removeClass("ui-draggable-disabled");this.disabled=false},disable:function(){$(this.interaction.element).addClass("ui-draggable-disabled");this.disabled=true},prepareCallbackObj:function(self){return{helper:self.helper,position:{left:self.pos[0],top:self.pos[1]},offset:self.options.cursorAt,draggable:self,options:self.options}},start:function(that,e){var o=this.options;$.ui.ddmanager.current=this;$.ui.plugin.call(that,"start",[e,that.prepareCallbackObj(this)]);$(this.element).triggerHandler("dragstart",[e,that.prepareCallbackObj(this)],o.start);if(this.slowMode&&$.ui.droppable&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(this,e)}return false},stop:function(that,e){var o=this.options;$.ui.plugin.call(that,"stop",[e,that.prepareCallbackObj(this)]);$(this.element).triggerHandler("dragstop",[e,that.prepareCallbackObj(this)],o.stop);if(this.slowMode&&$.ui.droppable&&!o.dropBehaviour){$.ui.ddmanager.fire(this,e)}$.ui.ddmanager.current=null;$.ui.ddmanager.last=this;return false},drag:function(that,e){var o=this.options;$.ui.ddmanager.update(this,e);this.pos=[this.pos[0]-o.cursorAt.left,this.pos[1]-o.cursorAt.top];$.ui.plugin.call(that,"drag",[e,that.prepareCallbackObj(this)]);var nv=$(this.element).triggerHandler("drag",[e,that.prepareCallbackObj(this)],o.drag);var nl=(nv&&nv.left)?nv.left:this.pos[0];var nt=(nv&&nv.top)?nv.top:this.pos[1];$(this.helper).css("left",nl+"px").css("top",nt+"px");return false}})})($)