code: function(index) {
          var nextIndex = index + 1;
          if (nextIndex < this.order.length) {
              var nextElement = OpenLayers.Util.getElement(this.order[nextIndex]);
              if (nextElement == undefined) {
                  nextElement = this.getNextElement(nextIndex);
              }
              return nextElement;
          } else {
              return null;
          } 
      }
docs: APIMethod: getNextElement
  Get the next element in the order stack.
  
  Parameters:
  index - {Integer} The index of the current node in this.order.
  
  Returns:
  {DOMElement} the node following the index passed in, or
  null.