persistentOnly.hidden = (window.content.document.preferredStylesheetSet) ? haveAltSheets : false; 
persistentOnly.hidden = (window.content.document.preferredStyleSheetSet) ? haveAltSheets : false; 
function stylesheetFillPopup(menuPopup){  var noStyle = menuPopup.firstChild;  var persistentOnly = noStyle.nextSibling;  var sep = persistentOnly.nextSibling;  while (sep.nextSibling)    menuPopup.removeChild(sep.nextSibling);  var styleSheets = getAllStyleSheets(window.content);  var currentStyleSheets = [];  var styleDisabled = getMarkupDocumentViewer().authorStyleDisabled;  var haveAltSheets = false;  var altStyleSelected = false;  for (var i = 0; i < styleSheets.length; ++i) {    var currentStyleSheet = styleSheets[i];    // Skip any stylesheets that don't match the screen media type.    var media = currentStyleSheet.media.mediaText.toLowerCase();    if (media && (media.indexOf("screen") == -1) && (media.indexOf("all") == -1))        continue;    if (currentStyleSheet.title) {      if (!currentStyleSheet.disabled)        altStyleSelected = true;      haveAltSheets = true;      var lastWithSameTitle = null;      if (currentStyleSheet.title in currentStyleSheets)        lastWithSameTitle = currentStyleSheets[currentStyleSheet.title];      if (!lastWithSameTitle) {        var menuItem = document.createElement("menuitem");        menuItem.setAttribute("type", "radio");        menuItem.setAttribute("label", currentStyleSheet.title);        menuItem.setAttribute("data", currentStyleSheet.title);        menuItem.setAttribute("checked", !currentStyleSheet.disabled && !styleDisabled);        menuPopup.appendChild(menuItem);        currentStyleSheets[currentStyleSheet.title] = menuItem;      } else {        if (currentStyleSheet.disabled)          lastWithSameTitle.removeAttribute("checked");      }    }  }  noStyle.setAttribute("checked", styleDisabled);  persistentOnly.setAttribute("checked", !altStyleSelected && !styleDisabled);  persistentOnly.hidden = (window.content.document.preferredStylesheetSet) ? haveAltSheets : false;  sep.hidden = (noStyle.hidden && persistentOnly.hidden) || !haveAltSheets;  return true;}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/867068ef8a2bf3580f2efdd69b14027428c764b0/browser.js/buggy/browser/base/content/browser.js