#endif #ifdef XP_MACOSX  defaultHeight -= 22; 
function BrowserStartup(){  gBrowser = document.getElementById("content");  var uriToLoad = null;  // Check for window.arguments[0]. If present, use that for uriToLoad.  if ("arguments" in window && window.arguments[0])    uriToLoad = window.arguments[0];  gIsLoadingBlank = uriToLoad == "about:blank";  prepareForStartup();#ifdef ENABLE_PAGE_CYCLER  appCore.startPageCycler();#else# only load url passed in when we're not page cycling  if (uriToLoad && !gIsLoadingBlank) {    if (window.arguments.length >= 3)      loadURI(uriToLoad, window.arguments[2], window.arguments[3] || null,              window.arguments[4] || false);    else      loadOneOrMoreURIs(uriToLoad);  }#endif  var sidebarSplitter;  if (window.opener && !window.opener.closed) {    var openerFindBar = window.opener.gFindBar;    if (openerFindBar && !openerFindBar.hidden &&        openerFindBar.findMode == gFindBar.FIND_NORMAL)      gFindBar.open();    var openerSidebarBox = window.opener.document.getElementById("sidebar-box");    // The opener can be the hidden window too, if we're coming from the state    // where no windows are open, and the hidden window has no sidebar box.    if (openerSidebarBox && !openerSidebarBox.hidden) {      var sidebarBox = document.getElementById("sidebar-box");      var sidebarTitle = document.getElementById("sidebar-title");      sidebarTitle.setAttribute("value", window.opener.document.getElementById("sidebar-title").getAttribute("value"));      sidebarBox.setAttribute("width", openerSidebarBox.boxObject.width);      var sidebarCmd = openerSidebarBox.getAttribute("sidebarcommand");      sidebarBox.setAttribute("sidebarcommand", sidebarCmd);      sidebarBox.setAttribute("src", window.opener.document.getElementById("sidebar").getAttribute("src"));      gMustLoadSidebar = true;      sidebarBox.hidden = false;      sidebarSplitter = document.getElementById("sidebar-splitter");      sidebarSplitter.hidden = false;      document.getElementById(sidebarCmd).setAttribute("checked", "true");    }  }  else {    var box = document.getElementById("sidebar-box");    if (box.hasAttribute("sidebarcommand")) {      var commandID = box.getAttribute("sidebarcommand");      if (commandID) {        var command = document.getElementById(commandID);        if (command) {          gMustLoadSidebar = true;          box.hidden = false;          sidebarSplitter = document.getElementById("sidebar-splitter");          sidebarSplitter.hidden = false;          command.setAttribute("checked", "true");        }        else {          // Remove the |sidebarcommand| attribute, because the element it           // refers to no longer exists, so we should assume this sidebar          // panel has been uninstalled. (249883)          box.removeAttribute("sidebarcommand");        }      }    }  }  // Certain kinds of automigration rely on this notification to complete their  // tasks BEFORE the browser window is shown.  var obs = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);  obs.notifyObservers(null, "browser-window-before-show", "");  // Set a sane starting width/height for all resolutions on new profiles.  if (!document.documentElement.hasAttribute("width")) {    var defaultWidth = 994, defaultHeight;    if (screen.availHeight <= 600) {      document.documentElement.setAttribute("sizemode", "maximized");      defaultWidth = 610;      defaultHeight = 450;    }    else {      // Create a narrower window for large or wide-aspect displays, to suggest      // side-by-side page view.      if ((screen.availWidth / 2) >= 800)        defaultWidth = (screen.availWidth / 2) - 20;      defaultHeight = screen.availHeight - 10;#ifdef MOZ_WIDGET_GTK2#define USE_HEIGHT_ADJUST#endif#ifdef USE_HEIGHT_ADJUST      // On X, we're not currently able to account for the size of the window      // border.  Use 28px as a guess (titlebar + bottom window border)      defaultHeight -= 28;#endif#ifdef XP_MACOSX      // account for the Mac OS X title bar      defaultHeight -= 22;#endif    }    document.documentElement.setAttribute("width", defaultWidth);    document.documentElement.setAttribute("height", defaultHeight);  }  setTimeout(delayedStartup, 0);}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/ffe2dbec39e2ca61b9c794ed72742a6628f19284/browser.js/clean/browser/base/content/browser.js