add:   var outlinedElem; if (focusableElems[newIndex] == client.input.inputField) outlinedElem = client.input.parentNode.id; else if (focusableElems[newIndex] == userList) outlinedElem = "user-list-box" else outlinedElem = "browser-box";   if (("focusedElemTimeout" in client) && client.focusedElemTimeout) clearTimeout(client.focusedElemTimeout); outlineFocusedElem(outlinedElem); client.focusedElemTimeout = setTimeout(outlineFocusedElem, 1000, ""); 
context: function advanceKeyboardFocus(amount){    var contentWin = getContentWindow(client.currentObject.frame);    var contentDoc = getContentDocument(client.currentObject.frame);    var userList = document.getElementById("user-list");    // Focus userlist, inputbox and outputwindow in turn:    var focusableElems = [userList, client.input.inputField, contentWin];    var elem = document.commandDispatcher.focusedElement;    // Finding focus in the content window is "hard". It's going to be null    // if the window itself is focused, and "some element" inside of it if the    // user starts tabbing through.    if (!elem || (elem.ownerDocument == contentDoc))        elem = contentWin;    var newIndex = (arrayIndexOf(focusableElems, elem) * 1 + 3 + amount) % 3;    focusableElems[newIndex].focus();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/4709288299ca36f68f2c7427d1541f71fbe1c230/static.js/buggy/extensions/irc/xul/content/static.js