/*******************************************************
DataProcessor Object:

- formats specific data values for proper display
*******************************************************/
	 
DataProcessor = function(){}

DataProcessor.prototype.getTeam = function(n){ 
	var output = "";
	// prepend clinch symbol if it exists
	if(n.clinch=="#"||n.clinch=="&"||n.clinch=="@"||n.clinch=="w"||n.clinch=="x"||n.clinch=="y"||n.clinch=="z") output = "<span class='textXs'>" + n.clinch + "&ndash;</span>";
	if (currentClub == n.code) output += "<strong>" + n.league_sensitive_team_name + "</strong>";
	else output += n.league_sensitive_team_name;	
	return output; 
}
DataProcessor.prototype.getWins = function(n){ 
	var output = "";
	if (currentClub == n.code) output = "<strong>" + n.w + "</strong>";
	else output = n.w;	
	return output; 
}
DataProcessor.prototype.getLosses = function(n){ 
	var output = "";
	if (currentClub == n.code) output = "<strong>" + n.l + "</strong>";
	else output = n.l;	
	return output; 
}
DataProcessor.prototype.getPercentage = function(n){ 
	var output = "";
	if (currentClub == n.code) output = "<strong>" + n.pct + "</strong>";
	else output = n.pct;	
	return output; 
}
DataProcessor.prototype.getGamesBack = function(n){ 
	var output = "";
	if (currentClub == n.code) output = "<strong>" + n.gb + "</strong>";
	else output = n.gb;	
	return output; 
}

   