var PointsTooltip;
PointsTooltip = function() {

    this.show = function() {
        var playerId = $(this).attr("class").replace("playerPoints", "").trim();
        var content = getContent(playerId);
        Tip(content);
    };

    this.hide = function(){
        UnTip();
    }

    getContent = function(playerId) {
        return $("div.pointsTooltip." + playerId).html();
    }
};

pointsTooltip = new PointsTooltip();
