rem: { var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); 
context:   onProfileStartup: function(aProfileName)  {    debug("onProfileStartup");      var prefs = Components.classes["@mozilla.org/preferences-service;1"].        getService(Components.interfaces.nsIPrefBranch);        gOfflineStartupMode = prefs.getIntPref(kOfflineStartupPref);    if (gOfflineStartupMode == kRememberLastState)    {          var prefs = Components.classes["@mozilla.org/preferences-service;1"].        getService(Components.interfaces.nsIPrefBranch);      var offline = !prefs.getBoolPref("network.online");        var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);        ioService.offline = offline;      var observerService = Components.        classes["@mozilla.org/observer-service;1"].        getService(Components.interfaces.nsIObserverService);      observerService.addObserver(this, "network:offline-status-changed", false);      observerService.addObserver(this, "quit-application", false);      observerService.addObserver(this, "xpcom-shutdown", false);    }    else if (gOfflineStartupMode == kAskForOnlineState)    {      var promptService = Components.        classes["@mozilla.org/embedcomp/prompt-service;1"].        getService(Components.interfaces.nsIPromptService);            var bundle = getBundle(kBundleURI);      if (!bundle)        return;      var title = bundle.GetStringFromName("title");      var desc = bundle.GetStringFromName("desc");      var button0Text = bundle.GetStringFromName("workOnline");      var button1Text = bundle.GetStringFromName("workOffline");      var checkVal = {value:0};      var result = promptService.confirmEx(null, title, desc,         (promptService.BUTTON_POS_0 * promptService.BUTTON_TITLE_IS_STRING) +        (promptService.BUTTON_POS_1 * promptService.BUTTON_TITLE_IS_STRING),        button0Text, button1Text, null, null, checkVal);      debug ("result = " + result + "\n");      if (result == 1)      {        var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);        ioService.offline = true;      }    }  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/e9760ac5cfe60606ffeb54170e9e0f7cf63f78c8/offlineStartup.js/clean/mailnews/extensions/offline-startup/js/offlineStartup.js