rem: {       setTimeout(onDelayAlertLoad, 0); 
add: {  try { var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService(); prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService); var prefBranch = prefService.getBranch(null); gSlideIncrement = prefBranch.getIntPref("alerts.slideIncrement"); gSlideTime = prefBranch.getIntPref("alerts.slideIncrementTime"); gOpenTime = prefBranch.getIntPref("alerts.totalOpenTime"); } catch (ex) {}  sizeToContent();  gFinalHeight = window.outerHeight;  window.outerHeight = 1;   window.moveTo( (screen.availLeft + screen.availWidth - window.outerWidth) - 10, screen.availTop + screen.availHeight - window.outerHeight);  setTimeout(animateAlert, gSlideTime); 
context: function onAlertLoad(){   // this delay is required because the folder summary element  // ends up dynamically creating an arbitrary number of folderSummaryMessage xbl widgets  // and we have to fire a timeout to wait for the various properties and methods on the folderSummaryMessage widget  // before we can actually initialize it. Because of that timeout, we don't know the total width of the alert  // dialog when onAlertLoad is called, so we have to delay again. This work around in turn causes the alert to flash up in the middle  // of your window for a second until onDelayAlertLoad gets called and moves the window to the right position.  setTimeout(onDelayAlertLoad, 0);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/be1fdf9137c07d63046662d8ec1264db925be711/newmailalert.js/clean/mail/base/content/newmailalert.js