function index(){
	$.ajax({
		url: 'modulos/index/index.php',
		method: 'POST',
		async: true,
		beforeSend: function(html){
			$('body').css('cursor', 'wait');
		},
		success: function(datos){
			$("#cuerpo").html(datos);
			$('body').css('cursor', 'default');
			inicio();
        },
		error: function (xhr, desc, exceptionobj){
			$("#cuerpo").html(xhr.responseText);
			$('body').css('cursor', 'default');
        }
	});
}


function inicio(){
	$.ajax({
		url: 'modulos/index/inicio.php',
		method: 'POST',
		async: true,
		beforeSend: function(html){
			$('body').css('cursor', 'wait');
		},
		success: function(datos){
			$("#detalle").html(datos);
			$('body').css('cursor', 'default');
        },
		error: function (xhr, desc, exceptionobj){
			$("#detalle").html(xhr.responseText);
			$('body').css('cursor', 'default');
        }
	});
}


function detalleIntegrante(id,nombre){
	$.ajax({
		url: 'modulos/integrantes/detalleIntegrante.php',
		method: 'POST',
		async: true,
		data: 'id='+id+'&nombre='+nombre,
		beforeSend: function(html){
			$('body').css('cursor', 'wait');
		},
		success: function(datos){
			$("#detalle").html(datos);
			$('body').css('cursor', 'default');
        },
		error: function (xhr, desc, exceptionobj){
			$("#detalle").html(xhr.responseText);
			$('body').css('cursor', 'default');
        }
	});
}


function listadoNoticias(pag){
	$.ajax({
		url: 'modulos/noticias/listadoNoticias.php',
		method: 'POST',
		async: true,
		data: 'pag='+pag,
		beforeSend: function(html){
			$('body').css('cursor', 'wait');
		},
		success: function(datos){
			$("#detalle").html(datos);
			$('body').css('cursor', 'default');
        },
		error: function (xhr, desc, exceptionobj){
			$("#detalle").html(xhr.responseText);
			$('body').css('cursor', 'default');
        }
	});
}