rem: mouseOffset = {x:(mousePosition.x - eltPos.x + parseInt(movingElt.style.marginLeft)), y:(mousePosition.y - eltPos.y + parseInt(movingElt.style.marginTop))}; 
add: mouseOffset = { x:(parseInt(mousePosition.x) - parseInt(eltPos.x)), y:(parseInt(mousePosition.y) - parseInt(eltPos.y)) }; var ml = parseInt(movingElt.style.marginLeft) if (!isNaN(ml)) mouseOffset.x += ml; var mt = parseInt(movingElt.style.marginTop) if (!isNaN(mt)) mouseOffset.y += mt; 
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/effbefddf3b9559d60b45ec83bc1a92708368ed6/drag_n_drop.js/clean/packages/calendar/page_templates/page_calendar/js/drag_n_drop.js