if (!showPlugins || !showLocales) { 
if (!showLocales) { 
function updateOptionalViews() {  var ds = gExtensionsView.database;  var rdfs = Components.classes["@mozilla.org/rdf/rdf-service;1"]                   .getService(Components.interfaces.nsIRDFService);  var ctr = Components.classes["@mozilla.org/rdf/container;1"]                      .createInstance(Components.interfaces.nsIRDFContainer);  ctr.Init(ds, rdfs.GetResource(RDFURI_ITEM_ROOT));  var elements = ctr.GetElements();  var showLocales = false;  var showPlugins = false;  var showUpdates = false;  var showInstalls = false;  while (elements.hasMoreElements()) {    var e = elements.getNext().QueryInterface(Components.interfaces.nsIRDFResource);    if (!showPlugins || !showLocales) {      var typeArc = rdfs.GetResource(PREFIX_NS_EM + "type");      var type = ds.GetTarget(e, typeArc, true);      if (type && type instanceof Components.interfaces.nsIRDFInt) {        if (type.Value & nsIUpdateItem.TYPE_PLUGIN)          showPlugins = true;        if (type.Value & nsIUpdateItem.TYPE_LOCALE)          showLocales = true;      }    }    var stateArc = rdfs.GetResource(PREFIX_NS_EM + "state");    var state = ds.GetTarget(e, stateArc, true);    if (state) {      showInstalls = true;      if (state instanceof Components.interfaces.nsIRDFLiteral &&          state.Value != "success" && state.Value != "failure")        gInstallCount++;    }    if (!showUpdates) {      var updateURLArc = rdfs.GetResource(PREFIX_NS_EM + "availableUpdateURL");      var updateURL = ds.GetTarget(e, updateURLArc, true);      if (updateURL) {        var updateableArc = rdfs.GetResource(PREFIX_NS_EM + "updateable");        var updateable = ds.GetTarget(e, updateableArc, true);        updateable = updateable.QueryInterface(Components.interfaces.nsIRDFLiteral);        if (updateable.Value == "true")          showUpdates = true;      }    }  }  document.getElementById("locales-view").hidden = !showLocales;  document.getElementById("plugins-view").hidden = !showPlugins;  document.getElementById("updates-view").hidden = !showUpdates;  document.getElementById("installs-view").hidden = !showInstalls;}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/a7a6f5232c3b99d4f5526b68063366a4160b9e8b/extensions.js/buggy/toolkit/mozapps/extensions/content/extensions.js