rem: var rdf = Components.classes["component: 
add: var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(); 
context: function doEngineClick( event, aNode ){  // do toggling  var engineTabBox = document.getElementById("engineTabs");  var toggledEls = engineTabBox.getElementsByAttribute("toggled", "true");  for (var i = 0; i < toggledEls.length; i++)    toggledEls[i].removeAttribute("toggled");  event.target.setAttribute("toggled", "true");	var html = null;	var resultsTree = document.getElementById("internetresultstree");	var contentArea = document.getElementById("content");	var splitter = document.getElementById("results-splitter");	var engineURI = aNode.id;	if (engineURI == "allEngines") {		resultsTree.removeAttribute("hidden");		splitter.removeAttribute("hidden");	}	else	{		resultsTree.setAttribute("hidden", "true");		splitter.setAttribute("hidden", "true");		try		{			var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService();			if (rdf)   rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService);			if (rdf)			{				var internetSearchStore = rdf.GetDataSource("rdf:internetsearch");				if (internetSearchStore)				{					var src = rdf.GetResource(engineURI, true);					var htmlProperty = rdf.GetResource("http://home.netscape.com/NC-rdf#HTML", true);					html = internetSearchStore.GetTarget(src, htmlProperty, true);					if ( html )	html = html.QueryInterface(Components.interfaces.nsIRDFLiteral);					if ( html )	html = html.Value;				}			}		}		catch(ex)		{		}	}	if ( html )	{		var doc = frames[0].document;		if (doc)		{    		doc.open("text/html", "replace");	    	doc.writeln( html );		    doc.close();		}	}	else		frames[0].document.location = "chrome://communicator/locale/search/default.htm";}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4298da5af1e0bb711db1797ca3313ed84d1c901b/internetresults.js/clean/suite/common/search/internetresults.js