// Drag.MoveQuad, built for MooTools v1.11. (c) 2007 Andrew Buckman, http://stormyfrog.com/mootools/
Drag.MoveQuad=Drag.Move.extend({drag:function(a){this.parent.parent.attempt(a,this);var b=this.out?false:this.droppables.filter(this.checkAgainst,this).getLast();if(this.overed!=b){if(this.overed)this.overed.fireEvent('leave',[this.element,this]);this.overed=b?b.fireEvent('over',[this.element,this]):null;if(b)this.overlast=this.overnow}else if(b){if(this.overlast.x!=this.overnow.x||this.overlast.y!=this.overnow.y){b.fireEvent('quadover',[this.element,this]);this.overlast=this.overnow}}return this},checkAgainst:function(a){a=a.getCoordinates(this.options.overflown);var b=this.mouse.now;var c=(b.x>a.left&&b.x<a.right&&b.y<a.bottom&&b.y>a.top);if(c){this.overnow={x:(b.x>((a.left+a.right)/2))?'right':'left',y:(b.y>((a.top+a.bottom)/2))?'bottom':'top'}}return c}});Element.extend({makeDraggableQuad:function(a){return new Drag.MoveQuad(this,a)}});