$(document).ready(function() {
	$(".paginator").click(function() {
		$(".paginator").each(function() {
			$(".paginator").removeClass("atual");
		});
		limit = $(this).attr('atr');
		$(this).addClass("atual");
		$.ajax({
			type: "GET",
			url: "includes/index_eventos.asp?limit="+limit,
			dataType: "html",
			error: function (xhr, ajaxOptions, thrownError){
				$("#exibeEventos").html("Ocorreu um erro");
			},
			success: function(msg){
				$("#exibeEventos").html(msg);
			},
			beforeSend: function(){
				$("#exibeEventos").html("<div class=\"loader_pag center\"><img src=\"img/loader.gif\" /></div>");
			}
		});
	});
});
