code: function(index) {
              this.removeChild(YUD.getElementsByClassName(this.CLASSES.PANEL, this.CONFIG.ITEM_WRAPPER_TAG_NAME, this)[index]); 
              var aNewPanels = []; 
              var nLength = this._panels.length;
              for(var i=0;i<nLength;i++) {
                  if(i !== index) {
                      aNewPanels.push(this._panels[i]);
                  }
              }
              this._panels = aNewPanels;
              var t= YAHOO.lang.later(0, this, function(){this._fixTabIndexes();this.fireEvent(stateChangedEvent);});
          }
docs: Removes the specified Panel from the AccordionView.
  @method removePanel
  @param {Integer} index of the panel to be removed