rem: client.deck.selectedIndex = vk; 
add: client.deck.selectedPanel = obj.frame; 
context: function setCurrentObject (obj){    if (!ASSERT(obj.messages, "INVALID OBJECT passed to setCurrentObject **"))        return;    if ("currentObject" in client && client.currentObject == obj)        return;    // Set window.content to make screenreader apps find the chat content.    if (obj.frame && getContentWindow(obj.frame))        window.content = getContentWindow(obj.frame);    var tb, userList;    userList = document.getElementById("user-list");    if ("currentObject" in client && client.currentObject)        tb = getTabForObject(client.currentObject);    if (tb)        tb.setAttribute("state", "normal");    client.currentObject = obj;    /* If the splitter's collapsed, the userlist *isn't* visible, but we'll not     * get told when it becomes visible, so update it even if it's only the     * splitter visible. */    if (isVisible("user-list-box") || isVisible("main-splitter"))    {        userList.view = null;        if (obj.TYPE == "IRCChannel")        {            userList.view = obj.userList;            updateUserList();        }    }    tb = dispatch("create-tab-for-view", { view: obj });    if (tb)    {        tb.parentNode.selectedItem = tb;        tb.setAttribute("state", "current");    }    var vk = Number(tb.getAttribute("viewKey"));    delete client.activityList[vk];    client.deck.selectedIndex = vk;    // Style userlist and the like:    updateAppMotif(obj.prefs["motif.current"]);    updateTitle();    updateProgress();    updateSecurityIcon();    scrollDown(obj.frame, false);    // Input area should have the same direction as the output area    if (("frame" in client.currentObject) &&        client.currentObject.frame &&        getContentDocument(client.currentObject.frame) &&        ("body" in getContentDocument(client.currentObject.frame)) &&        getContentDocument(client.currentObject.frame).body)    {        var contentArea = getContentDocument(client.currentObject.frame).body;        client.input.setAttribute("dir", contentArea.getAttribute("dir"));    }    client.input.focus();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/16ec0dd056fe66350dbfd2db3d2c89bf59f238ea/static.js/clean/extensions/irc/xul/content/static.js