rem:  const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound);  const nsIGlobalHistory = Components.interfaces.nsIGlobalHistory; const GHIST_CONTRACTID = "@mozilla.org/browser/global-history;1"; client.globalHistory = Components.classes[GHIST_CONTRACTID].getService(nsIGlobalHistory);  const nsISDateFormat = Components.interfaces.nsIScriptableDateFormat; const DTFMT_CID = "@mozilla.org/intl/scriptabledateformat;1"; client.dtFormatter = Components.classes[DTFMT_CID].createInstance(nsISDateFormat); 
context: function initStatic(){    CIRCServer.prototype.VERSION_RPLY =        getMsg(MSG_VERSION_REPLY, [__cz_version, navigator.userAgent]);    client.mainWindow = window;    const nsISound = Components.interfaces.nsISound;    client.sound =        Components.classes["@mozilla.org/sound;1"].createInstance(nsISound);    const nsIGlobalHistory = Components.interfaces.nsIGlobalHistory;    const GHIST_CONTRACTID = "@mozilla.org/browser/global-history;1";    client.globalHistory =        Components.classes[GHIST_CONTRACTID].getService(nsIGlobalHistory);    const nsISDateFormat = Components.interfaces.nsIScriptableDateFormat;    const DTFMT_CID = "@mozilla.org/intl/scriptabledateformat;1";    client.dtFormatter =         Components.classes[DTFMT_CID].createInstance(nsISDateFormat);        // Mmmm, fun. This ONLY affects the ChatZilla window, don't worry!    Date.prototype.toStringInt = Date.prototype.toString;    Date.prototype.toString = function() {        var dtf = client.dtFormatter;        return dtf.FormatDateTime("", dtf.dateFormatLong,                                   dtf.timeFormatSeconds,                                   this.getFullYear(), this.getMonth() + 1,                                   this.getDate(), this.getHours(),                                   this.getMinutes(), this.getSeconds()                                 );    }        multilineInputMode(client.prefs["multiline"]);    if (client.prefs["showModeSymbols"])        setListMode("symbol");    else        setListMode("graphic");    setDebugMode(client.prefs["debugMode"]);        var ary = navigator.userAgent.match (/(rv:[^;)\s]+).*?Gecko\/(\d+)/);    if (ary)    {        client.userAgent = "ChatZilla " + __cz_version + " [Mozilla " +             ary[1] + "/" + ary[2] + "]";    }    else    {        client.userAgent = "ChatZilla " + __cz_version + " [" +             navigator.userAgent + "]";    }    client.statusBar = new Object();        client.statusBar["server-nick"] = document.getElementById ("server-nick");    client.statusElement = document.getElementById ("status-text");    client.defaultStatus = MSG_DEFAULT_STATUS;    client.logFile = null;    setInterval("onNotifyTimeout()", client.NOTIFY_TIMEOUT);        client.defaultCompletion = client.COMMAND_CHAR + "help ";    client.deck = document.getElementById('output-deck');}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/7e998d1a2e81d56757ccb1d104bf94e8be456a0d/static.js/clean/extensions/irc/xul/content/static.js