var toolbox = document.getElementById("navigator-toolbox"); 
var toolbox = getNavToolbox(); 
function onViewToolbarsPopupShowing(aEvent){  var popup = aEvent.target;  var i;  // Empty the menu  for (i = popup.childNodes.length-1; i >= 0; --i) {    var deadItem = popup.childNodes[i];    if (deadItem.hasAttribute("toolbarindex"))      popup.removeChild(deadItem);  }  var firstMenuItem = popup.firstChild;  var toolbox = document.getElementById("navigator-toolbox");  for (i = 0; i < toolbox.childNodes.length; ++i) {    var toolbar = toolbox.childNodes[i];    var toolbarName = toolbar.getAttribute("toolbarname");    var type = toolbar.getAttribute("type");    if (toolbarName && type != "menubar") {      var menuItem = document.createElement("menuitem");      menuItem.setAttribute("toolbarindex", i);      menuItem.setAttribute("type", "checkbox");      menuItem.setAttribute("label", toolbarName);      menuItem.setAttribute("accesskey", toolbar.getAttribute("accesskey"));      menuItem.setAttribute("checked", toolbar.getAttribute("collapsed") != "true");      popup.insertBefore(menuItem, firstMenuItem);      menuItem.addEventListener("command", onViewToolbarCommand, false);    }    toolbar = toolbar.nextSibling;  }}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/36d38a4df6b41a5fa9742ad2d6b59cd4ca82fe83/browser.js/clean/browser/base/content/browser.js