// MonkeyPhysics: Drag.Ghost
// this is a minified version, for production use
// source, updates and documentation available @ http://www.monkeyphysics.com/mootools

Drag.Ghost=new Class({Extends:Drag.Move,options:{opacity:0.65},start:function(event){this.ghost();this.parent(event);},cancel:function(event){if(event)this.deghost();this.parent(event);},stop:function(event){this.deghost();this.parent(event);},ghost:function(){this.element=this.element.clone().setStyles({'opacity':this.options.opacity,'position':'absolute','top':this.element.getCoordinates()['top'],'left':this.element.getCoordinates()['left']}).inject(document.body).store('parent',this.element);},deghost:function(){var e=this.element.retrieve('parent');this.element.destroy();this.element=e;}});Element.implement({makeGhostDraggable:function(options){return new Drag.Ghost(this,options);}});
