var speedtag={ open:function() { window.open("chrome://speedtag/content/speedtag.html"); /* window.open("chrome://speedtrans/content/transcribe.html", "annot", "chrome,centerscreen,resizable=yes,toolbar=no,menubar=no"); */ } } function getMainWindow() { return window.QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebNavigation) .QueryInterface(Components.interfaces.nsIDocShellTreeItem) .rootTreeItem .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIDOMWindow); }