5 && !this.dragging) { canvas[draggername].startdrag(this, xdoffset, ydoffset); this.dragging = true; } return newpos; ]]> this.startx = src.getAttributeRelative('x', canvas); this.starty = src.getAttributeRelative('y', canvas); this.setX(this.startx); this.setY(this.starty); this.bringToFront(); this.setVisible(true); this.source = src; this.dropped = false; // set up the offset from the source mouse offset if (this.xdoffset == null) this.xdoffset = xoffset; if (this.ydoffset == null) this.ydoffset = yoffset; ds.apply(); LzTrack.activate(this.dropgroup); if (dropped) { this.setVisible(false); } else { var anm = this.animate('x', startx, 200); this.animate('y', starty, 200); if ( !this._onstopdel ) this._onstopdel = new LzDelegate( this, 'hideme' ); this._onstopdel.register( anm, 'onstop' ); } ds.remove(); LzTrack.deactivate(this.dropgroup); setVisible(false); this.dropped = true;