function lightCandle(blogName, postName) {
	$("#candles-" + postName + " .lightit-label").html("Lighting up your candle...");
	$("#candles-" + postName + " .lightit-button").hide();
	
	$.ajax({
		type: "GET",
		url: '/Blog/' + blogName + '/' + postName + '/Rate',
		dataType: 'json',
		cache: false,
		timeout: 60000,
		success: function(data) {
			if(typeof(data.error.status) == "undefined") {
				$("#candles-" + postName + " .lightit-label").html("Light a another candle?");
				
				$("#candles-" + postName + " .meter").html(data.Sum);
				
				var len50 = Math.floor(data.Sum / 50);
				var len10 = Math.floor((data.Sum - (len50 * 50)) / 10);
				var len1 = data.Sum - ((len50 * 50) + (len10 * 10));
				var div = $("#candles-" + postName + " .candles");
				div.html("");
				for(var i = 0 ; i < len50 ; i++) {
					div.append("<img src='/Content/Blog/Themes/PrayerForLife/Images/50-candles.jpg'> ");
				}
				for(var i = 0 ; i < len10 ; i++) {
					div.append("<img src='/Content/Blog/Themes/PrayerForLife/Images/10-candles.jpg'> ");
				}
				for(var i = 0 ; i < len1 ; i++) {
					div.append("<img src='/Content/Blog/Themes/PrayerForLife/Images/candle.gif'> ");
				}
				
				$("#candles-" + postName + " .lightit-button").show();
			}
			else if(data.error.status == "rate.toomuch") {
				$("#candles-" + postName + " .lightit-label").html("You've already reached the maximum of " + data.error.maxcount + " lighted candles for this prayer.");
			}
			else {
				$("#candles-" + postName + " .lightit-label").html("Sorry, we ran out of candles. Please try later");
			}
		},
		error: function(data) {
			$("#candles-" + postName + " .lightit-label").html("Sorry, we ran out of candles. Please try later");
		}
	});
}