var newSlide = new Class({
  
  options : {
    "transition" : Fx.Transitions.Quad.easeInOut,
    "duration" : 500,
    "openHeight":61,
    "closeHeight":20,
    "opacity0":0, /* Opacité proche de zéro */
    "opacity1":1 /* Opacité proche de un */
  },
  
  initialize: function(el, options){
    this.el = $(el);
    if(this.el != null){
      this.setOptions(options);
      
      this.el.setStyle('overflow', 'hidden');
      this.myFX = new Fx.Morph(this.el, {
        duration : this.options.duration,
        transition : this.options.transition
      }).set({
        height : this.options.openHeight,
        'margin-top': (this.el.getStyle('margin-top').toInt())-(this.options.openHeight-this.options.closeHeight)
      });
    
      this.initClick();
    }
  },
  
  initClick : function(){
    this.link = this.el.getElement('a');
    
    this.link.addEvent('click', function(){
      this.toggle();
      return false;
    }.bind(this));
  },
  
  toggle : function(){
    var h = this.el.getStyle('height').toInt();
    var t = this.el.getStyle('margin-top').toInt();
    
    if(t == 0){
      this.closeNew(t);
    }else{
      this.openNew(t);
    }
  },
  
  openNew : function(marginTop){
    this.myFX.start({
      //height : [this.options.closeHeight, this.options.openHeight],
      "margin-top": [marginTop, 0]
    });
  },
  
  closeNew : function(marginTop){
    this.myFX.start({
      //height : [this.options.openHeight, this.options.closeHeight],
      "margin-top": [0, -(this.options.openHeight-this.options.closeHeight)]
    });
  }
})
newSlide.implement(new Options, new Events);