dm.utils.dkp = (function() {

var pointAssignment = {
    straight    : "straight",
    redistrib   : "redistribute"
};

function switchPointDistribution(dist) {
    if (typeof showpoint == "function" && window.location.href.indexOf("newdkpraid.php") > -1) {
        switchPointDistribution = function(dist) {
            if (typeof dist !== "string") {
                dist = pointAssignment.redistrib;
            }
            
            showpoint(dist);
        }
        
        switchPointDistribution();
    }
}

return {
    switchToRedistribute : function() {
        switchPointDistribution(pointAssignment.redistrib);
    },
    switchToStraightAssignment : function () {
        switchPointDistribution(pointAssignment.straight);
    }
};
}());