code: function(elTable) {
      if(elTable) {
          // Destroy previous
          this._destroyBdTheadEl();
  
          var elThead = elTable.insertBefore(document.createElement("thead"), elTable.firstChild);
          
          // Add TRs to the THEAD;
          var oColumnSet = this._oColumnSet,
              colTree = oColumnSet.tree,
              elTh, elTheadTr, oColumn, i, j, k, len;
  
          for(i=0, k=colTree.length; i<k; i++) {
              elTheadTr = elThead.appendChild(document.createElement("tr"));
      
              // ...and create TH cells
              for(j=0, len=colTree[i].length; j<len; j++) {
                  oColumn = colTree[i][j];
                  elTh = elTheadTr.appendChild(document.createElement("th"));
                  this._initBdThEl(elTh,oColumn,i,j);
              }
          }
          this._elBdThead = elThead;
      }
  }
docs: Initializes body THEAD element.
  
  @method _initBdTheadEl
  @param elTable {HTMLElement} TABLE element into which to create THEAD.
  @return {HTMLElement} Initialized THEAD element.
  @private