rem: var tabs = np.childNodes[ 1 ]; var bodies = np.childNodes[ 2 ]; 
add: var tabs = null; var bodies = null; var i;  for( i = 0; i < np.childNodes.length; i++ ) { if( np.childNodes[ i ].className == "hop-notepad-body" ) { bodies = np.childNodes[ i ]; if( tabs != null ) break; } if( np.childNodes[ i ].className == "hop-notepad-tabs" ) { tabs = np.childNodes[ i ]; if( bodies !=null ) break; } } 
context: function hop_notepad_inner_select( np, to ) {   var tabs = np.childNodes[ 1 ];   var bodies = np.childNodes[ 2 ];   /* at creation time, tab 0 is active */   if( np.active_tab == undefined ) np.active_tab = 0;   /* invoke remote tab */   if( tabs.childNodes[ to ].lang == "delay" ) {      hop( np.onkeyup()( to ),	   function( http ) {	      hop_replace_inner( bodies.childNodes[ to ] )( http );	      hop_notepad_inner_toggle( np, to, tabs, bodies );           } );   } else {      hop_notepad_inner_toggle( np, to, tabs, bodies );   }}
meta: 4636	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a7285808c8ef0ca287654227a284151a9ce63dd8/hop-notepad.js/buggy/share/hop-notepad.js