rem: document.getElementById("context-zoomsub").hidden = false; 
add: { var oizImage = new izImage(document.popupNode); var izMenuItem = document.getElementById("context-zoomsub") izMenuItem.setAttribute("label", contextSubMenuLabel.replace(/%zoom%/, oizImage.zoomFactor())); izMenuItem.hidden = false; } 
context: function imageZoomMenu(e) {	var MenuItems = new Array("context-zoom-zin","context-zoom-zout","context-zoom-zreset","context-zoom-zcustom","context-zoom-dcustom","context-zoom-fit","zoomsub-zin","zoomsub-zout","zoomsub-zreset","zoomsub-zcustom","zoomsub-dcustom","zoomsub-fit","zoomsub-z400","zoomsub-z200","zoomsub-z150","zoomsub-z125","zoomsub-z100","zoomsub-z75","zoomsub-z50","zoomsub-z25","zoomsub-z10");	var OptionItems = new Array("mmZoomIO","mmZoomIO","mmReset","mmCustomZoom","mmCustomDim","mmFitWindow","smZoomIO","smZoomIO","smReset","smCustomZoom","smCustomDim","smFitWindow","smZoomPcts","smZoomPcts","smZoomPcts","smZoomPcts","smZoomPcts","smZoomPcts","smZoomPcts","smZoomPcts","smZoomPcts");	// Display the correct menu items depending on options and whether an image was clicked	for (var i=0;i<MenuItems.length;i++)		document.getElementById(MenuItems[i]).setAttribute("hidden", (!gContextMenu.onImage || !nsIPrefBranchObj.getBoolPref(OptionItems[i])));	var subPopUp = document.getElementById("zoompopup");	// Insert the necesary separators if needed in the sub menu	var subItems =  document.getElementById("zoompopup").getElementsByTagName("*");	for (var i=0; i<subItems.length; i++) {		if (subItems[i].tagName == "menuseparator")			subItems[i].setAttribute("hidden", !insertSeparator(subItems, i));	}	// Show the Zoom Image container if there are subitems visible, else hide	if (subPopUp.getElementsByAttribute("hidden", false).length > 0)		document.getElementById("context-zoomsub").hidden = false;	else		document.getElementById("context-zoomsub").hidden = true;}
meta: 4558	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4558/e489e354b1213409655801966c81d316ac463134/overlay.js/buggy/source/chrome/content/overlay.js