var SimpleFader1 = new Class({
  initialize:function(imagesWrapper1)
  {
    this.ImageWrappers1 = $(imagesWrapper1).getElements('div');
    this.ImageWrappers1[0].style.display="block";
    this.ImageWrappers1[1].style.display="none";
 	
    this.Els = [];
 
    $$("#" + imagesWrapper1 + " div").each(function(item)
    {
      this.Els.include(new Fx.Morph(item,{duration:6000, transitions:Fx.Transitions.Sine.easeOut, link:'cancel'}));
    }.bind(this));             
 
    this.currentEl = this.Els[0];
    this.current = 0;
    this.Fade.periodical(6000, this);
  },
 
  Fade:function()
  {
    this.currentEl.start({"display" : ["block", "none"]});
    (this.current != this.Els.length - 1)?this.current++:this.current=0;
 
    this.Els[this.current].start({"display" : ["none", "block"]});
    this.currentEl = this.Els[this.current];              
  }
}); 
 
window.addEvent('domready', function()
{
  //you should make an instance of the Fader class here:
  var fader1 = new SimpleFader1('imagesWrapper1');
});