add: attachmentText.setAttribute('collapsed', true); } 
context: function displayAttachmentsForExpandedView(){  var numAttachments = currentAttachments.length;  if (numAttachments > 0 && !gBuildAttachmentsForCurrentMsg)  {    var attachmentList = document.getElementById('attachmentsBody');    var row, cell, item;    for (index in currentAttachments)    {      var attachment = currentAttachments[index];      // we need to create a tree item, a tree row and a tree cell to insert the attachment      // into the attachment tree..	  item = document.createElement("treeitem");	  row = document.createElement("treerow");	  cell = document.createElement("treecell");      cell.setAttribute('class', "treecell-iconic");       cell.setAttribute("label", attachment.displayName);      cell.setAttribute("tooltip", "attachmentTreeTooltip");      item.setAttribute("commandSuffix", generateCommandSuffixForAttachment(attachment)); // set the command suffix on the tree item...      setApplicationIconForAttachment(attachment, cell);	  row.appendChild(cell);	  item.appendChild(row);	  attachmentList.appendChild(item);    } // for each attachment    gBuildAttachmentsForCurrentMsg = true;  }  var attachmentNode = document.getElementById('expandedAttachmentBox');  if (numAttachments > 0)  // make sure the attachment button is visible    attachmentNode.removeAttribute('collapsed');  else    attachmentNode.setAttribute('collapsed', true);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/eb13ead84fdade33b3cd5ba4c3b36e78105134a5/msgHdrViewOverlay.js/buggy/mailnews/base/resources/content/msgHdrViewOverlay.js