/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
 
function obtener_notas(id_selec){


	if(id_selec != 0){
		$('#instrumetos').html('<span class=load >&nbsp;Cargando...</span>');
	}else{
		$('#centro').html('');
		$('#instrumetos').html('');
		return;
	}


	$.ajax({
		type: "POST",
		url: './ajax/x_notas_p.php',
		data: 'accion=' + id_selec,
		success: function(msg){

			 //alert("hola");
			$('#div_notas_pre').html(msg);

		}
	})

}

function obtener_quienes_somos(){


	$.ajax({
		type: "POST",
		url: './ajax/x_quienes_somos.php',
		data: "accion=1",
		success: function(msg){

			 //alert("hola");
			$('#contenido_inicio').html(msg);

		}
	})

}

function obtener_avisos_p(articulos){


	$.ajax({
		type: "POST",
		url: './ajax/x_avisos_p.php',
		data: 'accion=' + articulos,
		success: function(msg){

			 //alert("hola");
			$('#contenido_inicio').html(msg);

		}
	})

}

function obtener_revista(){


	$.ajax({
		type: "POST",
		url: './ajax/x_revista.php',
		data: "accion=1",
		success: function(msg){

			 //alert("hola");
			$('#contenido_inicio').html(msg);

		}
	})

}


function obtener_posters(poster){


	$.ajax({
		type: "POST",
		url: './ajax/x_posters.php',
		data: 'accion=' + poster,
		success: function(msg){

			 //alert("hola");
			$('#contenido_inicio').html(msg);

		}
	})

}
function obtener_proyecto(proyecto){


	$.ajax({
		type: "POST",
		url: './ajax/x_proyectos.php',
		data: 'accion=' + proyecto,
		success: function(msg){

			 //alert("hola");
			$('#contenido_inicio').html(msg);

		}
	})

}
function obtener_direccion_investigacion(area){


	$.ajax({
		type: "POST",
		url: './ajax/x_direccion_investigacion.php',
		data: 'accion=' + area,
		success: function(msg){

			 //alert("hola");
			$('#contenido_inicio').html(msg);

		}
	})

}

function obtener_public(){


	$.ajax({
		type: "POST",
		url: './ajax/x_publicaciones.php',
		data: "accion=1",
		success: function(msg){

			 //alert("hola");
			$('#contenido_inicio').html(msg);

		}
	})

}

jQuery(document).ready(function() {

     $('#menu1').menuTree();

 

});


//tmp
function obtener_publica(dato){


	$.ajax({
		type: "POST",
		url: './tmp/publica_portada.php',
		data: 'accion=' + dato,
		success: function(msg){

			 //alert("hola");
			$('#contenido_inicio').html(msg);

		}
	})

}

function obtener_archivos_historicos(area){


	$.ajax({
		type: "POST",
		url: './ajax/x_archivos_historicos.php',
		data: 'accion=' + area,
		success: function(msg){

			 //alert("hola");
			$('#contenido_inicio').html(msg);

		}
	})

}

function obtener_publica_h(dato){


	$.ajax({
		type: "POST",
		url: './historicos/publica_portada.php',
		data: 'accion=' + dato,
		success: function(msg){

			 //alert("hola");
			$('#contenido_inicio').html(msg);

		}
	})

}


