rem:       var updateItem = document.getElementById("softwareupdate-item"); updateItem.parentNode.removeChild(updateItem);  #ifdef XP_MACOSX var theToolbar = document.getElementById("mail-bar"); #else var theToolbar = document.getElementById("mail-toolbar-menubar"); #endif if (theToolbar.lastChild.id == "throbber-box") theToolbar.insertBefore(updateItem, document.getElementById("throbber-box")); else theToolbar.appendChild(updateItem); 
context: function delayedOnLoadMessenger(){  pref.QueryInterface(Components.interfaces.nsIPrefBranch2);  pref.addObserver("mail.pane_config.dynamic", MailPrefObserver, false);  pref.addObserver("mail.showFolderPaneColumns", MailPrefObserver, false);  AddMailOfflineObserver();  CreateMailWindowGlobals();  verifyAccounts(null);      ShowThreadPane();  InitMsgWindow();  messenger.SetWindow(window, msgWindow);  InitializeDataSources();  InitPanes();  accountManager.setSpecialFolders();  accountManager.loadVirtualFolders();  accountManager.addIncomingServerListener(gThreePaneIncomingServerListener);  AddToSession();  //need to add to session before trying to load start folder otherwise listeners aren't  //set up correctly.  // argument[0] --> folder uri  // argument[1] --> optional message key  // argument[2] --> optional email address; //will come from aim; needs to show msgs from buddy's email address    if ("arguments" in window)  {    // filter our any feed urls that came in as arguments to the new window...    if (window.arguments.length && /^feed:/i.test(window.arguments[0] ))    {      var feedHandler = Components.classes["@mozilla.org/newsblog-feed-downloader;1"].getService(Components.interfaces.nsINewsBlogFeedDownloader);      if (feedHandler)        feedHandler.subscribeToFeed(window.arguments[0], null, msgWindow);      gStartFolderUri = null;    }    else      gStartFolderUri = (window.arguments.length > 0) ? window.arguments[0] : null;    gStartMsgKey = (window.arguments.length > 1) ? window.arguments[1]: nsMsgKey_None;    gSearchEmailAddress = (window.arguments.length > 2) ? window.arguments[2] : null;  }  setTimeout("loadStartFolder(gStartFolderUri);", 0);  // FIX ME - later we will be able to use onload from the overlay  OnLoadMsgHeaderPane();  gHaveLoadedMessage = false;  gNotifyDefaultInboxLoadedOnStartup = true;  //Set focus to the Thread Pane the first time the window is opened.  SetFocusThreadPane();  // initialize the customizeDone method on the customizeable toolbar  var toolbox = document.getElementById("mail-toolbox");  toolbox.customizeDone = MailToolboxCustomizeDone;  var toolbarset = document.getElementById('customToolbars');  toolbox.toolbarset = toolbarset;  // Ensure the Software Update item is visible on the menubar on Windows and   // Linux, and on the navigation toolbar on MacOSX (since we can't put items on  // the menubar on OS X)...   // We don't use a customizable item for the updates item so we can always be  // sure it's present.  var updateItem = document.getElementById("softwareupdate-item");  updateItem.parentNode.removeChild(updateItem);#ifdef XP_MACOSX  var theToolbar = document.getElementById("mail-bar");#else  var theToolbar = document.getElementById("mail-toolbar-menubar");#endif  if (theToolbar.lastChild.id == "throbber-box")    theToolbar.insertBefore(updateItem, document.getElementById("throbber-box"));  else    theToolbar.appendChild(updateItem);}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/9428666664c1f518e12a45013eda16dbc5906a75/msgMail3PaneWindow.js/clean/mail/base/content/msgMail3PaneWindow.js