rem: document.getElementById("expander").setAttribute("class",willCollapse?"down":"up"); 
add: gExpander.setAttribute("class",willCollapse?"down":"up"); gExpander.setAttribute("tooltiptext", gExpander.getAttribute("tooltiptext"+(willCollapse?"down":"up"))); 
context: function expandTree(){  setFolderTreeHeight();  var willCollapse = !gBookmarksTree.collapsed;  document.getElementById("expander").setAttribute("class",willCollapse?"down":"up");  if (willCollapse)    document.documentElement.buttons = "accept,cancel";  else {    document.documentElement.buttons = "accept,cancel,extra2";#   always open the bookmark root folder    if (!gBookmarksTree.treeBoxObject.view.isContainerOpen(0))      gBookmarksTree.treeBoxObject.view.toggleOpenState(0);    selectFolder(gSelectedFolder);    gBookmarksTree.focus();  }  gBookmarksTree.collapsed = willCollapse;  sizeToContent();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/4d0d06496a443b2d30638e09764a241c57951fa1/addBookmark2.js/buggy/browser/components/bookmarks/content/addBookmark2.js