rem: var oObserverService = Components.classes["component: 
add: var oObserverService = Components.classes["@mozilla.org/observer-service;1"].getService(); 
context: function Init(){	// Initialize the Related Links panel	// Install our navigation observer so we can track the main client window.	oContentWindow = window._content;	oFrame = document.getElementById('daFrame');	if (oContentWindow && oFrame) {		window.setTimeout('window._content.resizeBy(0,1);window._content.resizeBy(0,-1);',0);		var oObserverService = Components.classes["component://netscape/observer-service"].getService();		oObserverService = oObserverService.QueryInterface(Components.interfaces.nsIObserverService);		oNavObserver = new NavObserver(oFrame,oContentWindow);		oNavObserver.TrackContext(''+oContentWindow.location);		if (oObserverService && oNavObserver) {			oObserverService.AddObserver(oNavObserver, "StartDocumentLoad");			oObserverService.AddObserver(oNavObserver, "EndDocumentLoad");			oObserverService.AddObserver(oNavObserver, "FailDocumentLoad");			debug("added observer\n");		} else {			oNavObserver = null;			debug("FAILURE to get observer service\n");		}	}}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/96cde4474fe82e4dacdcc727eaebd9308fd70684/related-panel.js/buggy/suite/common/related/related-panel.js