add:  if (gCollapsedHeaderViewMode) toggleHeaderView.setAttribute("state", "true"); else toggleHeaderView.setAttribute("state", "false"); 
context: function ToggleHeaderView (){  var expandedNode = document.getElementById("expandedHeaderView");  var collapsedNode = document.getElementById("collapsedHeaderView");  if (gCollapsedHeaderViewMode)  {              gCollapsedHeaderViewMode = false;    // hide the current view    hideHeaderView(gCollapsedHeaderView);    // update the current view    updateHeaderViews();        // now uncollapse / collapse the right views    expandedNode.removeAttribute("collapsed");    collapsedNode.setAttribute("collapsed", "true");  }  else  {    gCollapsedHeaderViewMode = true;    // hide the current view    hideHeaderView(gExpandedHeaderView);    // update the current view    updateHeaderViews();        // now uncollapse / collapse the right views    collapsedNode.removeAttribute("collapsed");    expandedNode.setAttribute("collapsed", "true");  }  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/bc366114680dbc32da43aaffcada7a6aa619b9a5/msgHdrViewOverlay.js/buggy/mailnews/base/resources/content/msgHdrViewOverlay.js