rem: top_item.setAttribute('style','display:none'); bottom_item.removeAttribute('style'); 
add: top_item.setAttribute('hidden','true'); bottom_item.removeAttribute('hidden'); 
context: function updateHeaders(index) {  var top_headers    = document.getElementById('sidebar-panels').childNodes;  var bottom_headers = document.getElementById('sidebar-panels-bottom').childNodes;  for (var ii=1; ii < top_headers.length; ii++) {    var top_item    = top_headers.item(ii);    var bottom_item = bottom_headers.item(ii);    if (ii < index) {       top_item.removeAttribute('selected');      top_item.removeAttribute('style');      bottom_item.setAttribute('style','display:none');    } else if (ii == index) {      top_item.setAttribute('selected','true');      top_item.removeAttribute('style');      bottom_item.setAttribute('style','display:none');    } else {      top_item.setAttribute('style','display:none');      bottom_item.removeAttribute('style');      bottom_item.removeAttribute('selected');    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/450826235f925bb726236129f9b575568b7b85f6/sidebarOverlay.js/buggy/xpfe/components/sidebar/resources/sidebarOverlay.js