function vote(slug, vtype) {
	$.get(
		$("#base_url").val() + "tendence/balso/" + slug + "/" + vtype,
  	function(data){
     	if (data.length > 0) {
     		$(".trendvote:contains('Vērtē')").fadeOut(500);
     		if (vtype == "par")
     			$(".trendmeta > strong:contains('+')").html("+" + (parseInt($(".trendmeta > strong:contains('+')").html().replace("+", "")) + 1));
     		if (vtype == "pret")
     			$(".trendmeta > strong:contains('-')").html("-" + (parseInt($(".trendmeta > strong:contains('-')").html().replace("-", "")) + 1));
     	}
  });
}
