rem: if (treeitem.getAttribute('container') == 'true' || treeitem.getAttribute("type") == "http: 
add: if (treeitem.getAttribute("type") == "http: 
context: function openURL(event, root){  if( event.type == "click" &&       ( event.button != 1 || event.detail != 2 ) )     return false;  else if( event.type == "keypress" && event.which != 13 )    return false;  var treeitem = document.getElementById(root).selectedItems[0];	if (treeitem.getAttribute('container') == 'true' ||      treeitem.getAttribute("type") == "http://home.netscape.com/NC-rdf#BookmarkSeparator")		return(false);	var id = treeitem.getAttribute('id');	if (!id)	return(false);	// rjc: add support for anonymous resources; if the node has	// a "#URL" property, use it, otherwise default to using the id	try	{		var rootNode = document.getElementById(root);		var ds = null;		if (rootNode)		{			ds = rootNode.database;		}		var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService();		if (rdf)   rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService);		if (rdf)		{			if (ds)			{				var src = rdf.GetResource(id, true);				var prop = rdf.GetResource("http://home.netscape.com/NC-rdf#URL", true);				var target = ds.GetTarget(src, prop, true);				if (target)	target = target.QueryInterface(Components.interfaces.nsIRDFLiteral);				if (target)	target = target.Value;				if (target)	id = target;			}		}	}	catch(ex)	{	}	if(appCore)	{        // support session history (if appCore is available)        appCore.loadUrl(id);    }    else    {	    // fallback case (if appCore isn't available)	    ContentWindow.location = id;	}}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/dcc6335af54cb93538e9845bb47501a484cbbb01/related-panel.js/clean/suite/common/related/related-panel.js