rem: if (pref.GetBoolPref(sidebar_pref + '.open')) { 
add: if (prefs.GetBoolPref(sidebar_pref + '.open')) { 
context: function init_sidebar(name, uri, width) {  sidebar_name  = name;  sidebar_uri   = uri;  sidebar_width = width;  sidebar_pref  = 'sidebar.' + name;  // Open/close sidebar based on saved pref.  // This may be replaced by another system by hyatt.  pref = Components.classes['component://netscape/preferences'];  if (prefs) {    prefs = prefs.getService();  }  if (prefs) {    prefs = prefs.QueryInterface(Components.interfaces.nsIPref);  }  if (prefs) {    prefs.SetDefaultBoolPref(sidebar_pref + '.open', false);    // The sidebar is closed by default, so open it only if the    //    preference is set to true.    if (pref.GetBoolPref(sidebar_pref + '.open')) {      toggle_open_close();    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/11d9156c6674c169f1b5fe970b84473e35fc2a47/contentframe.js/clean/xpfe/browser/src/contentframe.js