    window.addEvent('domready', function(){        
    var as = [];
    $$('a').each(function(a){
        if (a.getAttribute('title')) as.push(a)
    });
    $$('img').each(function(i){
        if (i.getAttribute('title')) { 
          i.setAttribute('alt', i.getAttribute('title'));
          i.removeAttribute('title');
          } ;
    });   
     
    var tipsvilicotel = new Tips(as, {
	className: 'custom',
	hideDelay: 50,
	showDelay: 50,
	initialize:function(){
	  this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
	},
	onShow: function(toolTip) {
  	  this.fx.start(1);
	},
	onHide: function(toolTip) {
	  this.fx.start(0);
	}      
      });
    }); 
