rem: select_index = 1; target = top_headers.item(1).getAttribute('iframe-src'); 
add: debug("selectPanel: target not found, choosing last panel, index "+top_headers.length+"\n"); select_index = pickDefaultPanel(top_headers); target = top_headers.item(select_index).getAttribute('iframe-src'); 
context: function selectPanel(target) {  var panels_top   = document.getElementById('sidebar-panels');  var iframe       = document.getElementById('sidebar-content');  var top_headers  = panels_top.childNodes;  debug("selectPanel("+target+")");  var select_index = findPanel(top_headers, target);  if (!select_index) {    // Target not found. Pick the first panel by default.    // It is at index 1 because the template is at index 0.    select_index = 1;    target = top_headers.item(1).getAttribute('iframe-src');  }  // Update the content area if necessary.  if (iframe.getAttribute('src') != target) {    iframe.setAttribute('src', target);  }  if (panels_top.getAttribute('open-panel-src') != target) {    panels_top.setAttribute('open-panel-src', target);  }  updateHeaders(select_index);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/450826235f925bb726236129f9b575568b7b85f6/sidebarOverlay.js/buggy/xpfe/components/sidebar/resources/sidebarOverlay.js