rem: client.statusBar["server-lag"] = document.getElementById ("server-lag"); client.statusBar["last-ping"] = document.getElementById ("last-ping"); client.statusBar["channel-name"] = document.getElementById ("channel-name"); client.statusBar["channel-limit"] = document.getElementById ("channel-limit"); client.statusBar["channel-key"] = document.getElementById ("channel-key"); 
context: function initStatic(){    var obj;    const nsISound = Components.interfaces.nsISound;    client.sound =        Components.classes["@mozilla.org/sound;1"].createInstance(nsISound);        var ary = navigator.userAgent.match (/;\s*([^;\s]+\s*)\).*\/(\d+)/);    if (ary)        client.userAgent = "ChatZilla " + client.version + " [Mozilla " +             ary[1] + "/" + ary[2] + "]";    else        client.userAgent = "ChatZilla " + client.version + "[" +             navigator.userAgent + "]";    obj = document.getElementById("input");    obj.addEventListener("keyup", onInputKeyUp, false);    obj = document.getElementById("multiline-input");    obj.addEventListener("keyup", onMultilineInputKeyUp, false);    window.onkeypress = onWindowKeyPress;    setMenuCheck ("menu-dmessages",                   client.eventPump.getHook ("event-tracer").enabled);    setMenuCheck ("menu-munger-global", !client.munger.enabled);    setupMungerMenu(client.munger);    client.uiState["tabstrip"] =        setMenuCheck ("menu-view-tabstrip", isVisible("view-tabs"));    client.uiState["info"] =        setMenuCheck ("menu-view-info", isVisible("user-list-box"));    client.uiState["status"] =        setMenuCheck ("menu-view-status", isVisible("status-bar-tbar"));    client.statusBar = new Object();        client.statusBar["net-name"] =        document.getElementById ("net-name");    client.statusBar["server-name"] =        document.getElementById ("server-name");    client.statusBar["server-nick"] =        document.getElementById ("server-nick");    client.statusBar["server-lag"] =        document.getElementById ("server-lag");    client.statusBar["last-ping"] =        document.getElementById ("last-ping");    client.statusBar["channel-name"] =        document.getElementById ("channel-name");    client.statusBar["channel-limit"] =        document.getElementById ("channel-limit");    client.statusBar["channel-key"] =        document.getElementById ("channel-key");    client.statusBar["channel-mode"] =        document.getElementById ("channel-mode");    client.statusBar["channel-users"] =        document.getElementById ("channel-users");    client.statusBar["channel-topic"] =        document.getElementById ("channel-topic");    client.statusBar["channel-topicby"] =        document.getElementById ("channel-topicby");    onSortCol ("usercol-nick");    client.display (getMsg("welcome"), "HELLO");    setCurrentObject (client);    client.onInputNetworks();    client.onInputCommands();    ary = client.INITIAL_VICTIMS.split(";");    for (i in ary)    {        ary[i] = stringTrim(ary[i]);        if (ary[i])            client.stalkingVictims.push (ary[i]);    }    var m = document.getElementById ("menu-settings-autosave");    m.setAttribute ("checked", String(client.SAVE_SETTINGS));         var wentSomewhere = false;        if (window.arguments && window.arguments[0] && window.arguments[0].url)    {        url = window.arguments[0].url;        if (url.search(/^irc:\/?\/?$/i) == -1)        {            /* if the url is not irc: irc:/ or irc://, then go to it. */            gotoIRCURL (url);            wentSomewhere = true;        }    }        if (!wentSomewhere)    {        /* if we had nowhere else to go, connect to any default urls */        var ary = client.INITIAL_URLS.split(";");        for (var i in ary)            if ((ary[i] = stringTrim(ary[i])))                gotoIRCURL (ary[i]);    }    setInterval ("onNotifyTimeout()", client.NOTIFY_TIMEOUT);    }
meta: 1567	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1567/050cdabf1fdd264ec70170f737d010f1e60b30e3/static.js/buggy/xul/content/static.js