function getMostFavedPosts(limit, offset){
	$.ajax({
		type: "GET",
		url: "/interface/mostfaved.php",
		data: "limit="+limit+"&offset="+offset,
		beforeSend: function(){
			$('#loading').show();
		},
		success: function(msg){
			$('#loading').hide();
			$('#center-items').html(msg);
		}
	})
}

function getMostDiscussedPosts(limit, offset){
	$.ajax({
		type: "GET",
		url: "/interface/mostdiscussed.php",
		data: "limit="+limit+"&offset="+offset,
		beforeSend: function(){
			$('#loading').show();
		},
		success: function(msg){
			$('#loading').hide();
			$('#center-items').html(msg);
		}
	})
}

function getMostSharedPosts(limit, offset){
	$.ajax({
		type: "GET",
		url: "/interface/mostshared.php",
		data: "limit="+limit+"&offset="+offset,
		beforeSend: function(){
			$('#loading').show();
		},
		success: function(msg){
			$('#loading').hide();
			$('#center-items').html(msg);
		}
	})
}

