function thetips(clase)
{ 
   
    var elresaltado = $('resaltado');
    
    if (elresaltado) {
        var hideresaltado = new Fx.Tween(elresaltado, {duration: 250, wait: false}).set('opacity', 1);
    }
    
    var Tips2 = new Tips($$(clase), {
    
    
    
        
        onShow: function(toolTip) {
            if (hideresaltado) {
                hideresaltado.start('opacity', 0);
            }
            
            new Fx.Tween(toolTip, {duration: 500, wait: false}).set('opacity', 1);
            //fx.start('opacity', 1);
        },
        onHide: function(toolTip) {
            //fx.start(0);
            new Fx.Tween(toolTip, {duration: 500, wait: false}).set('opacity', 0);
            if (hideresaltado) {
                hideresaltado.start('opacity', 1);
            }
            
        },
        
        text: function(tip){
            return tip.title.split('::')[1].trim();
        },
        
        title: function(tip){
           return tip.title.split('::')[0].trim();
        },
    });	
}

window.addEvent('domready', function(){
    thetips('.tips2');
});
