rem: var mousePosition = getMousePosition(e); if (mouseOffset == null) {  eltPos = getEltPosition(movingElt); mouseOffset = {x:(mousePosition.x - eltPos.x + parseInt(movingElt.style.marginLeft)), y:(mousePosition.y - eltPos.y + parseInt(movingElt.style.marginTop))}; } else { movingElt.style.left = (mousePosition.x - mouseOffset.x) + "px"; movingElt.style.top = (mousePosition.y - mouseOffset.y) + "px"; } 
add: var mousePosition = getMousePosition(e); if (mouseOffset == null) {  eltPos = getEltPosition(movingElt); mouseOffset = {x:(mousePosition.x - eltPos.x + parseInt(movingElt.style.marginLeft)), y:(mousePosition.y - eltPos.y + parseInt(movingElt.style.marginTop))}; } else { movingElt.style.left = (mousePosition.x - mouseOffset.x) + "px"; movingElt.style.top = (mousePosition.y - mouseOffset.y) + "px"; } 
context:   function moveElt(e)   {	moved = true;    var mousePosition = getMousePosition(e);    if (mouseOffset == null) {        // we are just starting to drag, so figure out the offset        eltPos = getEltPosition(movingElt);        mouseOffset = {x:(mousePosition.x - eltPos.x + parseInt(movingElt.style.marginLeft)), y:(mousePosition.y - eltPos.y + parseInt(movingElt.style.marginTop))};    } else {        movingElt.style.left = (mousePosition.x - mouseOffset.x) + "px";        movingElt.style.top = (mousePosition.y - mouseOffset.y) + "px";    }  }//end moveElt()
meta: 5635	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5635/4e9088420cde0b5d0efe0e6d0fb4719979e2a3c0/drag_n_drop.js/clean/packages/calendar/page_templates/page_calendar/js/drag_n_drop.js