rem: if(event.attrName == 'collapsed') { if(event.target.getAttribute('class') == 'sameplace-area') {  var xulArea = event.target; var xulSplitter = document.getElementById( xulArea.id.replace(/^sameplace-area/, 'sameplace-splitter')); xulSplitter.hidden = (event.newValue.toString() == 'true'); } else if(event.target.nodeName == 'iframe') {  var xulArea = event.currentTarget; var xulContactsView = xulArea.getElementsByAttribute('class', 'sameplace-contacts')[0]; var xulConversationsView = xulArea.getElementsByAttribute('class', 'sameplace-conversations')[0]; xulArea.collapsed = (xulContactsView.collapsed && xulConversationsView.collapsed); } } }, false); 
add: if(!(event.attrName == 'collapsed' && event.target == areaFor('conversations'))) return;  if(event.newValue == 'true' && viewFor('conversations').isReceivingInput()) { var contentArea = (document.getElementById('content') || document.getElementById('messagepane')); if(contentArea) contentArea.focus();  } }, false); 
context:             'DOMAttrModified', function(event) {                if(event.attrName == 'collapsed') {                    if(event.target.getAttribute('class') == 'sameplace-area') {                        // When area is collapsed, hide corresponding splitter.                        var xulArea =                            event.target;                        var xulSplitter = document.getElementById(                            xulArea.id.replace(/^sameplace-area/, 'sameplace-splitter'));                        xulSplitter.hidden = (event.newValue.toString() == 'true');                    } else if(event.target.nodeName == 'iframe') {                        // When view is collapsed, possibly hide containing area too.                        var xulArea =                            event.currentTarget;                        var xulContactsView =                            xulArea.getElementsByAttribute('class', 'sameplace-contacts')[0];                        var xulConversationsView =                            xulArea.getElementsByAttribute('class', 'sameplace-conversations')[0];                        xulArea.collapsed =                             (xulContactsView.collapsed && xulConversationsView.collapsed);                    }                }            }, false);
meta: 1705	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1705/b377029af1266d41269d52077506d9342bb24992/overlay_impl.js/clean/chrome/content/overlay_impl.js