rem: if (opts.forceDrop) { DragDrop.currentContainer = $(opts.forceDrop); }  
context: 	onDrag : function(nwPosition, sePosition, nwOffset, seOffset) {		var item = this;		var opts = item.dragOptions;		/*================================================================================*		 * Initialize on first drag		 *================================================================================*/		if (!item.initialized) {			/* Clone the media item so that a place holder appears */			var body = document.getElementsByTagName("body")[0];			var itemContainer = item.parentNode;			var clone = DragDrop.clone;			//var itemNw = Coordinates.northwestOffset(item, true);						if (is_ie) {				setSelectVisibility("hidden");			}			opts.origWidth = item.style.width;			opts.origHeight = item.style.height;			opts.origPosition = item.style.position;			opts.origRevert = opts.revert;			opts.scrollOffset = new Coordinate(0,0);			if (opts.container) {				var container = $(opts.container);				opts.scrollOffset.x = container.scrollLeft;				opts.scrollOffset.y = container.scrollTop;			}			clone = DragDrop.clone = item.cloneNode(opts.showClone ? true : false);			clone.dragOptions = new cloneObject(opts);			clone.style.left = "";			clone.style.top = "";			clone.style.zIndex = 0;						if (!opts.showClone) {				clone.style.height = item.offsetHeight + "px";				clone.style.width = item.offsetWidth + "px";			}			item.dragOptions.clone = clone;			item.style.width = item.offsetWidth + "px";			item.style.height = item.offsetHeight + "px";			itemContainer.insertBefore(clone, item);			itemContainer.removeChild(item);			if (opts.showClone || opts.ghosting) {				changeOpacity(item, 75);			}			item.style.position = "absolute";			item.style.zIndex = ZINDEX.DRAGITEM;			item.style.left = (nwOffset.x - opts.scrollOffset.x) + "px";			item.style.top = (nwOffset.y - opts.scrollOffset.y) + "px";			body.appendChild(item);			var dropList = DropZone.dropList;						dropList.foreach(function(item) {				if (item.dropOptions.inheritParent) {					item.style.height = item.parentNode.offsetHeight;				}			});			if (opts.forceDrop) {				DragDrop.currentContainer = $(opts.forceDrop);			}						DragDrop.lastOnDrop = null;			item.initialized = true;						/*================================================================================			 * Initialization done			 *================================================================================*/		}		else {			item.style.left = (parseInt(item.style.left) - opts.scrollOffset.x) + "px";			item.style.top = (parseInt(item.style.top) - opts.scrollOffset.y) + "px";		 			/*			 * Find current DropZone container			 */			var dropList = DropZone.dropList;			DragDrop.currentContainer = null;			for (var i = 0; i < dropList.length; i++) {				var dropContainer = dropList[i];								// make sure container is still part of document				if (!dropContainer.parentNode || typeof(dropContainer) == "undefined") {					dropList.splice(i, 1);					i--;					continue;				}								var isInsideContainer = mousePos.insideObject(dropContainer, true);								if (opts.highlightDropzones) {					if (DragDrop.accepts(item, dropContainer)) {						dropContainer.style.backgroundColor = opts.highlightDropzones;					}				}								if (isInsideContainer) {					DragDrop.currentContainer = dropContainer;					DragDrop.lastOnDrop = dropContainer.dropOptions.onDrop;				}			}				var cur = DragDrop.currentContainer;			var last = DragDrop.lastContainer;				if (cur) {				if (typeof(cur.dropOptions.onHoverOver) != "undefined") {					cur.dropOptions.onHoverOver(item);				}			}				if (cur != last) {				if (last) {					Element.removeClassName(last, last.dropOptions.hoverclass);						if (typeof(last.dropOptions.onHoverOut) != "undefined") {						last.dropOptions.onHoverOut(item);					}				}				if (cur) {					if (cur.dropOptions.hoverclass && cur != item &&						DragDrop.accepts(item, cur)) {						Element.addClassName(cur, cur.dropOptions.hoverclass);					}					}			}				DragDrop.lastContainer = DragDrop.currentContainer;		}	},
meta: 10143	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10143/d739abfaa52daa2fc32a76d0b1bbd10b12afb19c/dragdropzone.js/clean/portal-web/docroot/html/js/dragdrop/dragdropzone.js