$(document).ready(function() {
});

function handleResponse(html) {
	$('#content').html(html);
	$('#ajax_loader').css("display", "none");
}

function link(loc, dat) {
	dat["signed_request"] = decodeURI($("#signed_request").html());
	$.ajax({
		type: "POST",
		data: dat,
		url: loc,
		success: handleResponse
	});
	$('#ajax_loader').css("display", "block");
}

