rem: imc_mapAction(currentTool, 
add: imc_bm_action(currentTool, 
context: function stopZoombox(e){	// get the current cursor position	var pX = Event.pointerX(e);	var pY = Event.pointerY(e);		// get map image offset	var offset = Position.cumulativeOffset($('im_mapImg'));	var offsetX = offset[0];	var offsetY = offset[1];            var w = $('im_mapImg').clientWidth;            var h = $('im_mapImg').clientHeight;	setStatus('busy');		imc_mapAction(currentTool,		Math.min(pX, startX) - offsetX, // xmin		Math.max(pY, startY) - offsetY, // ymax		Math.max(pX, startX) - offsetX, // xmax		Math.min(pY, startY) - offsetY,  // ymin		w,h	);		// remove listeners and div	Event.stopObserving(document, 'mousemove', resizeZoombox);	Event.stopObserving(document, 'mouseup', stopZoombox);	Element.remove($('im_zoombox'));}
meta: 6986	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6986/89c44cd74f750c14597ab0be12fc5a5a913a0982/im_bigmap.js/buggy/web/intermap/scripts/im_bigmap.js