rem: gPanelContainer().addEventListener("mousedown",onMouseDown,true); 
add: gPanelContainer().addEventListener("mousedown",izOnMouseDown,true); 
context: function initImageZoom() {	// Check the version to display initilisation page if appropriate	var oldVersion = nsIPrefBranchObj.getCharPref("version");	if (oldVersion < version) {		nsIPrefBranchObj.setCharPref("version", version);		try {			// try to save the prefs because we don't want to reset the home page if prefs can't be saved			nsIPrefServiceObj.savePrefFile(null);			nsIPrefServiceObj.readUserPrefs(null);			if (nsIPrefBranchObj.getCharPref("version") == version)				window.openDialog("chrome://imagezoom/content/install.xul", "", "chrome,centerscreen", oldVersion);		} catch(e) {			//alert(e);		}	}	// For Mozilla and Firefox    if (document.getElementById("contentAreaContextMenu")){        document.getElementById("contentAreaContextMenu").addEventListener("popupshowing", imageZoomMenu, false);    }    // For Thunderbird    else if (document.getElementById("messagePaneContext")){        document.getElementById("messagePaneContext").addEventListener("popupshowing", imageZoomMenu, false);    }    // Add events for the mouse functions	gPanelContainer().addEventListener("mousedown",onMouseDown,true);	// Add Image Zooming to text reduce command	var cmdZoomReduce = document.getElementById("cmd_textZoomReduce");	var prevCmd = cmdZoomReduce.getAttribute("oncommand");	cmdZoomReduce.setAttribute("oncommand", prevCmd + " ZoomImageManager.prototype.getInstance().pageLoad();");	// Add Image Zooming to text enlarge command	var cmdZoomEnlarge = document.getElementById("cmd_textZoomEnlarge");	prevCmd = cmdZoomEnlarge.getAttribute("oncommand");	cmdZoomEnlarge.setAttribute("oncommand", prevCmd + " ZoomImageManager.prototype.getInstance().pageLoad();");	// Add Image Zooming to text reset command	var cmdZoomReset = document.getElementById("cmd_textZoomReset");	prevCmd = cmdZoomReset.getAttribute("oncommand");	cmdZoomReset.setAttribute("oncommand", prevCmd + " ZoomImageManager.prototype.getInstance().pageLoad();");		imagezoomBundle = document.getElementById("bundle_ImageZoom");	}
meta: 4558	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4558/60032bc73862fab348ac8712f7f7930416b117f4/overlay.js/buggy/source/chrome/content/overlay.js