/*****
 * BSkyB Daily Specific Recommend functionality
 * Requires: Pluck SiteLife, Sky Daily comments
 * Dependencies: pluckBlogComments.js, skydailyBlogComments.js
 * About: sky daily specific stylistic and structural blog post recommend HTML
 *****/
 
var skydailyRecommend = {};

//called from comments JS to populate the recommend links
skydailyRecommend.addRecommendLink = function(comment) {
	var recommendHTML = "";
	if(comment.CurrentUserHasRecommended === "False") {
		recommendHTML += "<div class='recommendLink'><a href='#none' onclick='pluckRecommend.RecommendCommentAction(arguments[0], \"" + comment.CommentKey.Key + "\")'>recommend (" + comment.NumberOfRecommendations + ")</a></div>";
	} else if (comment.CurrentUserHasRecommended === "True") {
		recommendHTML += "<div class='recommendLink'><span id='report-"+ comment.CommentKey.Key +"' class='recommended'>recommended (" + comment.NumberOfRecommendations + ")</span></div>";
	}
	return recommendHTML;
}