(function(d){function c(a){d(a).addClass("droppable");d(a).bind("_dragenter",function(b,e){d.data(a,"droppable").options.onDragEnter.apply(a,[b,e])});d(a).bind("_dragleave",function(b,e){d.data(a,"droppable").options.onDragLeave.apply(a,[b,e])});d(a).bind("_dragover",function(b,e){d.data(a,"droppable").options.onDragOver.apply(a,[b,e])});d(a).bind("_drop",function(b,e){d.data(a,"droppable").options.onDrop.apply(a,[b,e])})}d.fn.droppable=function(a,b){if(typeof a=="string"){return d.fn.droppable.methods[a](this,b)}a=a||{};return this.each(function(){var f=d.data(this,"droppable");if(f){d.extend(f.options,a)}else{c(this);d.data(this,"droppable",{options:d.extend({},d.fn.droppable.defaults,a)})}})};d.fn.droppable.methods={};d.fn.droppable.defaults={accept:null,onDragEnter:function(a,b){},onDragOver:function(a,b){},onDragLeave:function(a,b){},onDrop:function(a,b){}}})(jQuery);