var AutoSlidingTabs = SlidingTabs.extend({
  initialize: function(buttonContainer, slideContainer, options) {
    this.options.autoSlideDelay = 3; // atraso em segundos
    this.options.autoSlideDirection = 'next'; // ou 'previous'
    this.autoSlide = true;
    
    this.parent.apply(this, arguments);
    
    this.autoSlider = (function() {
      if (this.autoSlide == true) {
        this[this.options.autoSlideDirection]();
        this.autoSlide = true;
      }
    }).periodical(this.options.autoSlideDelay * 1000, this);
  },
  
  changeTo: function(param) {
    this.parent(param);
    this.autoSlide = false;
  }
});
