rem: var wentSomewhere = false;  if ("arguments" in window && 0 in window.arguments && typeof window.arguments[0] == "object" && "url" in window.arguments[0]) { url = window.arguments[0].url; if (url.search(/^irc:\/?\/?$/i) == -1) { /* if the url is not irc: irc:/ or irc: gotoIRCURL (url); wentSomewhere = true; } }  if (!wentSomewhere) { /* if we had nowhere else to go, connect to any default urls */ ary = client.INITIAL_URLS.split(/\s*;\s*/).reverse(); for (var i in ary) { if (ary[i] && ary[i] != "irc: gotoIRCURL (ary[i]); } }  if (client.viewsArray.length > 1 && !isStartupURL("irc: { var tb = getTabForObject (client); deleteTab(tb); }  
context: function initStatic(){    var obj;    const nsISound = Components.interfaces.nsISound;    client.sound =        Components.classes["@mozilla.org/sound;1"].createInstance(nsISound);    if (client.CHARSET)        setCharset(client.CHARSET);        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("keypress", onInputKeyPress, false);    obj = document.getElementById("multiline-input");    obj.addEventListener("keypress", onMultilineInputKeyPress, false);    obj = document.getElementById("channel-topicedit");    obj.addEventListener("keypress", onTopicKeyPress, false);    obj.active = false;    window.onkeypress = onWindowKeyPress;    setMenuCheck ("menu-dmessages",                  client.eventPump.getHook ("event-tracer").enabled);    setMenuCheck ("menu-munger-global", !client.munger.enabled);    setMenuCheck ("menu-colors", client.enableColors);    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["header"] =        setMenuCheck ("menu-view-header", isVisible("header-bar-tbox"));    client.uiState["status"] =        setMenuCheck ("menu-view-status", isVisible("status-bar"));    client.statusBar = new Object();        client.statusBar["header-url"] =        document.getElementById ("header-url");    client.statusBar["server-nick"] =        document.getElementById ("server-nick");    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-topicedit"] =        document.getElementById ("channel-topicedit");    client.statusElement = document.getElementById ("status-text");    client.defaultStatus = getMsg ("defaultStatus");        onSortCol ("usercol-nick");    client.display (getMsg("welcome"), "HELLO");    setCurrentObject (client);    client.onInputNetworks();    client.onInputCommands();    ary = client.INITIAL_VICTIMS.split(/\s*;\s*/);    for (i in ary)    {        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 ("arguments" in window &&        0 in window.arguments && typeof window.arguments[0] == "object" &&        "url" in window.arguments[0])    {        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 */        ary = client.INITIAL_URLS.split(/\s*;\s*/).reverse();        for (var i in ary)        {            if (ary[i] && ary[i] != "irc://")                gotoIRCURL (ary[i]);        }    }        if (client.viewsArray.length > 1 && !isStartupURL("irc://"))    {        var tb = getTabForObject (client);        deleteTab(tb);    }            setInterval ("onNotifyTimeout()", client.NOTIFY_TIMEOUT);    }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b78133bb8ec2475acd4aba9a7c677591dd0262fe/static.js/clean/extensions/irc/xul/content/static.js