$(function() {
    $('.tooltip').each(function(index, item) {
        var tParent = $(item).parent(),
            tWidth = $(item).width(),
            pHeight = tParent.height();

        $(item).css({
            'right': - tWidth - 10,
            'top': pHeight / 2 - 10
        });

        tParent.mouseover(function() {
            $(item).fadeIn(200);
        });

        $('.tt-close', $(item)).click(function(e) {
            e.preventDefault();
            $(item).hide();
        });
    });
});



