context: function toggleAffectedChrome(aHide){  // chrome to toggle includes:  //   (*) menubar  //   (*) navigation bar  //   (*) bookmarks toolbar  //   (*) browser messages  //   (*) sidebar  //   (*) find bar  //   (*) statusbar  var navToolbox = document.getElementById("navigator-toolbox");  navToolbox.hidden = aHide;  if (aHide)  {    gChromeState = {};    var sidebar = document.getElementById("sidebar-box");    gChromeState.sidebarOpen = !sidebar.hidden;    gSidebarCommand = sidebar.getAttribute("sidebarcommand");    var message = gBrowser.getMessageForBrowser(gBrowser.selectedBrowser, "top");    gChromeState.messageOpen = !message.hidden;    message.hidden = aHide;    var statusbar = document.getElementById("status-bar");    gChromeState.statusbarOpen = !statusbar.hidden;    statusbar.hidden = aHide;          var findBar = document.getElementById("FindToolbar");    gChromeState.findOpen = !findBar.hidden;    closeFindBar();  }  else {    if (gChromeState.messageOpen) {      var message = gBrowser.getMessageForBrowser(gBrowser.selectedBrowser, "top");      message.hidden = aHide;    }    if (gChromeState.statusbarOpen) {      var statusbar = document.getElementById("status-bar");      statusbar.hidden = aHide;    }    if (gChromeState.findOpen)      openFindBar();  }    if (gChromeState.sidebarOpen)    toggleSidebar(gSidebarCommand);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/2fb9feaadc992e3ccd442db789244b253d0427f8/browser.js/buggy/browser/base/content/browser.js