function cycleImages(){   
   if($('ImageBanner') == null) return;
   var images = $('ImageBanner').select('img');
   if(images.length > 1)
   {
      var currentDelay = 0;
      var delay = 3000;
      var fadeDuration = 1.5;
      var firstImage = images[0];
      images.each(function(image){
	window.setTimeout(function(){
            this.fade({ duration: fadeDuration });
	}.bind(image), currentDelay);
	var nextImage = image.next('img');
	if(!nextImage) nextImage = firstImage;
	if(nextImage )
	{
	   window.setTimeout(function(){
               this.appear({ duration: fadeDuration });
   	   }.bind(nextImage), currentDelay);
	}
	currentDelay += delay;
      });
   };
   window.setTimeout(cycleImages, currentDelay);
}
Event.observe(window, 'load', function() { 
	window.setTimeout(cycleImages,1200); 
});