function refreshContent(id,vote,list) {
	(typeof(refreshContent.count) == 'undefined') ? refreshContent.count = 0 : ++refreshContent.count;
	$("#" + id).fadeOut("slow", function() {
		$("#" + list + " ul").append("<div id=\"new_content_" + refreshContent.count + "\"></div>");
		$("#new_content_" + refreshContent.count).load("more.php?" + vote + "=" + id + "&list=" + list, false, function() {
 		 	$(this).hide();
 		 	$(this).fadeIn("slow");
 		 	if(vote == "y") {
 		 		var listID = "#likes";
 		 		var liID = "like_" + id;
 		 	} else {
 		 		var listID = "#dislikes";
 		 		var liID = "dislike_" + id;
 		 	}
 		 	if($(listID + " li").size() >= 3) {
 		 		$(listID + " li:first").fadeOut("slow", function() {
 		 			$(listID + " li:first").remove();
 		 			$(listID).append("<li id=\"" + liID + "\"><a class=\"white-link\" href=\"/" + id + "\">&#35;" + id + "</a></li>");
 		 			$("#" + liID).hide();			
 		 			$("#" + liID).fadeIn("slow");
 		 		});
 		 	} else {
 		 		$(listID).fadeTo("slow", "0", function() {
 		 			$(listID).css("visibility", "visible");
 		 			$(listID).append("<li id=\"" + liID + "\"><a class=\"white-link\" href=\"/" + id + "\">&#35;" + id + "</a></li>"); 				
 		 			$(listID).fadeTo("slow", "1");
 		 		});
 		 	}
 		 });
  	});
	return false;
}
function doVote(id,vote) {
	$("#vote-row-" + id).fadeTo("slow", "0", function() {
		$("#vote-row-" + id).load("vote.php?" + vote + "=" + id, false, function() {
			$("#vote-row-" + id).fadeTo("slow", "1");
		});
	});
	return false;
}
