﻿window.addEvent('domready', function() {
    var t = new Tips('.tip');

    $$('.tip').each(function(tip) {
        var imgSrc = tip.retrieve('tip:text');
        var imgAlt = tip.retrieve('tip:title');
        tip.store('tip:text', new Element('img', { 'src': imgSrc, 'alt': imgAlt }));
    });

    var tb = new Tips('.tipbasic');

    $$('.tipbasic').each(function(tip) {
        tip.store('tip:text');
    });
});
