function likeComment(cid){
	removetips();
	$("#commentlikes"+cid).html('<img src="/images/load2.gif">');
	$.ajax({
		url:"/likes/likecomment/"+cid,
		type:"get",
		success:function(r){
			if (r == "nice"){
				$("#commentlikes"+cid).html(r);
			}
			else{
				$("#commentlikes"+cid).html(r);
			}
			$('a[rel=tipsy]').tipsy({fade: true, gravity: 'n'});
		}
	})
}
function ShowHiddenNames(cid){
	$("#hiddenNamesTrigger"+cid).hide();
	$("#hiddenNames"+cid).show();
}
function ShowHiddenNamesP(){
	$("#hiddenNamesTriggerP").hide();
	$("#hiddenNamesP").show('fast');
}
function likePost(pid, did){
	removetips();
	$("#likepost"+did).html('<img src="/images/load2.gif">');
	$.ajax({
		url:"/likes/likepost/"+pid+"/"+did,
		type:"get",
		success:function(r){
			$("#likepost"+did).html(r);
			$('a[rel=tipsy]').tipsy({fade: true, gravity: 'n'});	
		}
	})
}
function likeWall(id){
	removetips();
	$("#likewall"+id).html('<img src="/images/load2.gif">');
	$.ajax({
		url:"/likes/likewallpost/"+id,
		type:"get",
		success:function(r){
			$("#likewall"+id).html(r);
			$('a[rel=tipsy]').tipsy({fade: true, gravity: 'n'});	
		}
	})
}
function likePostM(pid){
	removetips();
	$("#postlikes"+pid).html('<img src="/images/load2.gif">');
	$.ajax({
		url:"/likes/likepostm/"+pid,
		type:"get",
		success:function(r){
			$("#postlikes"+pid).html(r);
			$('a[rel=tipsy]').tipsy({fade: true, gravity: 'n'});
		}
	})
}

function removetips(){
	$(".tipsy").hide();
}
