rem: var id = null; var headerchoice = null; 
add: gHaveLoadedMessage = false; 
context: function OnLoadMessenger(){  AddMailOfflineObserver();  CreateMailWindowGlobals();  Create3PaneGlobals();  verifyAccounts(null);      HideAccountCentral();  loadStartPage();  InitMsgWindow();  messenger.SetWindow(window, msgWindow);  InitializeDataSources();  InitPanes();  accountManager.SetSpecialFoldersForIdentities();  accountManager.addIncomingServerListener(gThreePaneIncomingServerListener);  AddToSession();  //need to add to session before trying to load start folder otherwise listeners aren't  //set up correctly.  if ("arguments" in window && window.arguments[0])  {    gStartFolderUri = window.arguments[0].uri;    gStartMsgKey = window.arguments[0].key;  }  else  {    gStartFolderUri = null;    gStartMsgKey = -1;  }  setTimeout("loadStartFolder(gStartFolderUri);", 0);  // FIX ME - later we will be able to use onload from the overlay  OnLoadMsgHeaderPane();	var id = null;	var headerchoice = null;	try {		headerchoice = pref.getIntPref("mail.show_headers");	}	catch (ex) {		dump("failed to get the header pref\n");	}	switch (headerchoice) {		case 2:				id = "viewallheaders";			break;		case 0:			id = "viewbriefheaders";			break;		case 1:				id = "viewnormalheaders";			break;		default:			id = "viewnormalheaders";			break;	}	var menuitem = document.getElementById(id);	try {		// not working right yet.  see bug #??????		// menuitem.setAttribute("checked", "true"); 	}	catch (ex) {		dump("failed to set the view headers menu item\n");	}	gHaveLoadedMessage = false;	//Set focus to the Thread Pane the first time the window is opened.	SetFocusThreadPane();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d5abd91159a057669008509e4d3b22e34b6d49bb/msgMail3PaneWindow.js/clean/mailnews/base/resources/content/msgMail3PaneWindow.js