	function rateComment(votes,ranking,newvote,comment)
	{
	  cook = GetCookie(comment);
	  if(cook == comment+'voted')
	  {
            $('.tooltipcomment'+comment).fadeIn(1000).fadeOut(1000);
            } else{
	  	$.ajax({
	    	url: '/petition/vote-comment',
	    	type: 'GET',
	    	data: 'votes='+votes+'&ranking='+ranking+'&newvote='+newvote+'&comment='+comment,
	    	timeout: 1000,
	    	success: function (result){
	      		$('#vote-'+comment).html('<img src="/static/images/star'+result+'.gif" alt="votes" />');
	      		$.cookie(comment, comment+'voted', { expires: 3, path: '/' });
                },
	    	error: function(error){
	      		alert('Error!'+error);
	    	}
	  	}); 
	  }
	 }

$(function() {
    //$('#toPdf img').tooltip();
//    $('.line-comment').tipTip({maxWidth: '250px', defaultPosition: 'right'});
});
