$(document).ready(function()
{
    // Loop over each tooltip link
    $('.homeProfile').each(function()
    {
        // get the tooltip attribute
        var toolTipwidth = $(this).attr('tooltipWidth');

        // Get the id
        var id = this.id.replace('profileTooltip_', '');

        // Attach tooltip to the current class
        $('.jt_' + id).cluetip({
            width : parseInt(toolTipwidth),
            cluetipClass: 'shadow',
            arrows: false,
            dropShadow: false,
            hoverIntent: false,
            sticky: false,
            mouseOutClose: true,
            closePosition: 'title',
            closeText: '<img src="' + baseUrl + 'img/cross.png" alt="close" />',
            showTitle: false,
            positionBy: 'mouse',
            splitTitle: '|'
        });
    });
});
