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.setAttribute('x', this.startx);
this.setAttribute('y', this.starty);
this.bringToFront();
this.setAttribute('visible', 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.setAttribute('applied', true);
lz.Track.activate(this.dropgroup);
if (dropped) {
this.setAttribute('visible', false);
} else {
var anm = this.animate('x', startx, 200);
this.animate('y', starty, 200);
if ( !this._onstopdel ) this._onstopdel = new lz.Delegate( this, 'hideme' );
this._onstopdel.register( anm, 'onstop' );
}
ds.setAttribute('applied', false);
lz.Track.deactivate(this.dropgroup);
setAttribute('visible', false);
this.dropped = true;