var toolbox = document.getElementById("navigator-toolbox"); 
var toolbox = getNavToolbox(); 
  showXULChrome: function(aTag, aShow)  {    var XULNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";    var els = document.getElementsByTagNameNS(XULNS, aTag);    for (var i = 0; i < els.length; ++i) {      // XXX don't interfere with previously collapsed toolbars      if (els[i].getAttribute("fullscreentoolbar") == "true") {        if (!aShow) {          var toolbarMode = els[i].getAttribute("mode");          if (toolbarMode != "text") {            els[i].setAttribute("saved-mode", toolbarMode);            els[i].setAttribute("saved-iconsize",                                els[i].getAttribute("iconsize"));            els[i].setAttribute("mode", "icons");            els[i].setAttribute("iconsize", "small");          }          // XXX See bug 202978: we disable the context menu          // to prevent customization while in fullscreen, which          // causes menu breakage.          els[i].setAttribute("saved-context",                              els[i].getAttribute("context"));          els[i].removeAttribute("context");          // Set the inFullscreen attribute to allow specific styling          // in fullscreen mode          els[i].setAttribute("inFullscreen", true);        }        else {          function restoreAttr(attrName) {            var savedAttr = "saved-" + attrName;            if (els[i].hasAttribute(savedAttr)) {              var savedValue = els[i].getAttribute(savedAttr);              els[i].setAttribute(attrName, savedValue);              els[i].removeAttribute(savedAttr);            }          }          restoreAttr("mode");          restoreAttr("iconsize");          restoreAttr("context"); // XXX see above          els[i].removeAttribute("inFullscreen");        }      } else {        // use moz-collapsed so it doesn't persist hidden/collapsed,        // so that new windows don't have missing toolbars        if (aShow)          els[i].removeAttribute("moz-collapsed");        else          els[i].setAttribute("moz-collapsed", "true");      }    }    var toolbox = document.getElementById("navigator-toolbox");    if (aShow)      toolbox.removeAttribute("inFullscreen");    else      toolbox.setAttribute("inFullscreen", true);#ifndef XP_MACOSX    var controls = document.getElementsByAttribute("fullscreencontrol", "true");    for (var i = 0; i < controls.length; ++i)      controls[i].hidden = aShow;#endif  }
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/36d38a4df6b41a5fa9742ad2d6b59cd4ca82fe83/browser.js/clean/browser/base/content/browser.js