saveRating = function(uuid, type, rating) {
	handler = function(data, status) {
		if (status === 'success') {
			jQuery('#ratingMessage').html(data.message);
			jQuery('#averageRating').css('width', (data.average / 5 * 100) + '%');
		}
	};
	jQuery.post('/social_widgets/ratings/rate', {'uuid':uuid, 'type':type, 'rating':rating}, handler, 'json');
};
