function vote(guid){
	$.ajax({
	   type: "GET",
	   url: "webservice/vote.php",
	   data: "id=" + guid,
	   cache: false,
	   success: function(msg){
				$("span#like-" + guid).html('- <span class="highlight">Thanks!</span>');
				getVoteCount(guid);
	   }
	 });	
}

function getVoteCount(guid){
	$.ajax({
	   type: "GET",
	   url: "webservice/vote_count.php",
	   data: "id=" + guid,
	   cache: false,
	   success: function(msg){
			if(msg.length > 0){
				$("span#votes-" + guid).html(msg);
				$("span#votes-" + guid + " strong").animate( { fontSize:"28px" }, 400, "swing", function(){
					$("span#votes-" + guid + " strong").animate( { fontSize:"11px" }, 500, "linear", function(){
						$("span#votes-" + guid + " strong").css("color","#EB5B21");
					});
				});
			}
	   }
	 });	
}