rem:  sidebarOverlayInit(); 
context:   function Startup()  {    // Position window.    var win = document.getElementById( "main-window" );    var x = win.getAttribute( "x" );    var y = win.getAttribute( "y" );    // dump(" move to "+x+" "+y+"\n");    window.moveTo( x, y );    //  TileWindow();    // Make sure window fits on screen initially   // FitToScreen();		// Set default home page	 var pref = Components.classes['component://netscape/preferences'];     if (pref)     {     	pref = pref.getService();     	// dump("QIing for pref interface\n");     	     	pref = pref.QueryInterface(Components.interfaces.nsIPref);      	if ( pref )      	{         	var homebutton = document.getElementById("home-button")      		if ( homebutton )      		{      			var defaultURL = homebutton.getAttribute("defaultURL" );      		//	dump("Set default homepage to +"+defaultURL+" \n");      			pref.SetDefaultCharPref( "browser.startup.homepage",defaultURL);      		}      	}      }	    // Create the browser instance component.    createBrowserInstance();    if (appCore == null) {        // Give up.        window.close();    }    // Initialize browser instance..    appCore.setWebShellWindow(window);        tryToSetContentWindow();	    // Add a capturing event listener to the content window so we'll    // be notified when onloads complete.    window.addEventListener("load", UpdateHistory, true);    window.addEventListener("load", UpdateBookmarksLastVisitedDate, true);	 // Check for window.arguments[0].  If present, go to that url.    if ( window.arguments && window.arguments[0] ) {        // Load it using yet another psuedo-onload handler.        onLoadViaOpenDialog();    }       sidebarOverlayInit();  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/7faffbd33c77264b56a876e1b4fd67fe6123be18/navigator.js/clean/suite/browser/navigator.js