var colgroup = document.createElement( "colgroup" );  for( var i = level + 2; i > 0; i-- ) { var col = document.createElement( "col" );  col.setAttribute( "width", "0*" ); colgroup.appendChild( col ); } leaf.appendChild( colgroup ); 
leaf.appendChild( hop_tree_make_colgroup( level ) ); 
function hop_make_tree_leaf( tree, content, value, icon ) {   var level = tree.level + 1;   var leaf = document.createElement( "table" );   leaf.setAttribute( "cellpadding", 0 );   leaf.setAttribute( "cellspacing", 0 );   leaf.setAttribute( "border", 0 );   leaf.className = "hop-tree-leaf";   /* the colgroup for the left padding and icons */   var colgroup = document.createElement( "colgroup" );      for( var i = level + 2; i > 0; i-- ) {      var col = document.createElement( "col" );         col.setAttribute( "width", "0*" );      colgroup.appendChild( col );   }   leaf.appendChild( colgroup );   /* the body of the table */   var tb = document.createElement( "tbody" );   var row = document.createElement( "tr" );    row.className = "hop-tree-row-unselected";   row.setAttribute( "align", "left" );   /* build the left vertical lines */   hop_push_vlines( tree, row, level );   /* space */   var td1 = document.createElement( "td" );   td1.className = "hop-tree";   td1.setAttribute( "nowrap", "nowrap" );      var join = document.createElement( "img" );   join.className = "hop-tree";   join.src = tree.iconjoin;      td1.appendChild( join );   row.appendChild( td1 );   /* add the folder icon */   var td2 = document.createElement( "td" );      /* the icon assiocated with the node */   if( icon ) {      var fimg = document.createElement( "img" );            if( (icon instanceof String) || (typeof icon == "string") ) {	 fimg.src = icon;      } else {	 fimg.src = hop_tree_default_file_icon;      }      fimg.className = "hop-tree";            td2.appendChild( fimg );   }   td2.className = "hop-tree";   td2.onclick = function() {hop_tree_row_toggle_selected( tree, row );}   row.appendChild( td2 );   row.value = value;   /* the content */   var td3 = document.createElement( "td" );   td3.classname = "hop-tree";   td3.onclick = function() {hop_tree_row_toggle_selected( tree, row );}   td3.innerHTML= content;      row.appendChild( td2 );   row.appendChild( td3 );   tb.appendChild( row );   leaf.appendChild( tb );   /* the attribute of the leaf */   leaf.parent = tree;   leaf.row = row;   leaf.last = true;   leaf.img_join = join;      /* append the leaf to the tree */   hop_tree_add( tree, leaf );      return leaf;}
4636	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4636/a3ec8117a7c9dfa38ec622eb016f9c5b604a1831/hop-tree.js/buggy/share/hop-tree.js