// vim: set autoindent shiftwidth=2 tabstop=8:
Object.extend(Autocompleter.Base.prototype, {
  markPrevious: function() {
    if(this.index > 0) this.index--;
      else this.index = this.entryCount-1;
    var element = this.getEntry(this.index);
    new Effect.ScrollElement(element, window, {duration: 0.2});
  },

  markNext: function() {
    if(this.index < this.entryCount-1) this.index++;
      else this.index = 0;
    var element = this.getEntry(this.index);
    new Effect.ScrollElement(element, window, {duration: 0.2});
  }
});

