title: Show a message box which slides out, delays for 3 seconds and slides in with Mootools?
body: <p>I'm creating a error message displaying box which slides out, delays for 3 seconds and then slides in with Mootools. This is what I'm currently doing now, how can I correct it to get it work for me?</p>
  
  <pre><code>var slide = new Fx.Slide($("error"));
  slide.slideOut('horizontal').chain(function(){
      $("error").set("text", message);
  }).chain(function(){
      this.slideIn('horizontal').delay(3000);
  }).chain(function(){
      this.slideOut('horizontal');
  });
  </code></pre>