Also, take a look at the SortableObserver object in dragdrop.js, which uses the same observer functions described in the above link.
TAG