rem: tree.selectItem(selected); tree.ensureElementIsVisible(selected); 
add: tree.treeBoxObject.selection.select(index-1); tree.treeBoxObject.ensureRowIsVisible(index-1); 
context: function MoveUp() {  var tree = document.getElementById('current-panels');  if (tree.selectedItems.length == 1) {    var selected = tree.selectedItems[0];    var before = selected.previousSibling    if (before) {      before.parentNode.insertBefore(selected, before);      tree.selectItem(selected);      tree.ensureElementIsVisible(selected);    }  }  enable_buttons_for_current_panels();}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/e0d74dbab0591d49321454ee7cde5f57910c4047/customize.js/buggy/suite/common/sidebar/customize.js