rem: var expandedNode = document.getElementById("expandedHeaderView"); var collapsedNode = document.getElementById("collapsedHeaderView"); var toggleHeaderView = document.getElementById("msgHeaderView"); 
add: gCollapsedHeaderViewMode = !gCollapsedHeaderViewMode;   document.getElementById('msgHeaderViewDeck').selectedPanel.collapsed = true;  UpdateMessageHeaders();   document.getElementById('msgHeaderViewDeck').selectedIndex = gCollapsedHeaderViewMode ? 0 : 1; 
context: function ToggleHeaderView (){  var expandedNode = document.getElementById("expandedHeaderView");  var collapsedNode = document.getElementById("collapsedHeaderView");  var toggleHeaderView = document.getElementById("msgHeaderView");  if (gCollapsedHeaderViewMode)  {              gCollapsedHeaderViewMode = false;    // hide the current view    hideHeaderView(gCollapsedHeaderView);    // update the current view    UpdateMessageHeaders();        // now uncollapse / collapse the right views    expandedNode.collapsed = false;    collapsedNode.collapsed = true;  }  else  {    gCollapsedHeaderViewMode = true;    // hide the current view    hideHeaderView(gExpandedHeaderView);    // update the current view    UpdateMessageHeaders();        // now uncollapse / collapse the right views    collapsedNode.collapsed = false;    expandedNode.collapsed = true;  }    if (gCollapsedHeaderViewMode)    toggleHeaderView.setAttribute("state", "true");  else    toggleHeaderView.setAttribute("state", "false");}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/587ff04a2403c5bc5e3b6765278aff820072d3b7/msgHdrViewOverlay.js/clean/mail/base/content/msgHdrViewOverlay.js