

function precarga_imagenes(seccion, idioma) {

	var i;
	
	var imagenes = new Array("images/b1_2_" + idioma + ".gif",
							"images/b2_2_" + idioma + ".gif",
							"images/b3_2_" + idioma + ".gif",
							"images/b4_2_" + idioma + ".gif",
							"images/b5_2_" + idioma + ".gif",
							"images/b6_2_" + idioma + ".gif");
							
	var lista_imagenes = new Array();

	if (seccion == "presentacion") {
		imagenes[7] = "images/bb2_2h_" + idioma + ".gif";
		imagenes[8] = "images/bb2_3h_" + idioma + ".gif";
	} else if (seccion == "experiencia") {
		imagenes[7] = "images/bb3_1h_" + idioma + ".gif";
		imagenes[8] = "images/bb3_2h_" + idioma + ".gif";
	} else if (seccion == "experiencia") {
		imagenes[7] = "images/bb3_1h_" + idioma + ".gif";
		imagenes[8] = "images/bb3_2h_" + idioma + ".gif";
	} else if (seccion == "trabajos") {
		imagenes[7] = "images/bb4_1h_" + idioma + ".gif";
		imagenes[8] = "images/bb4_2h_" + idioma + ".gif";
	}
	
					
	for(i in imagenes){
		lista_imagenes[i] = new Image();
		lista_imagenes[i].src = imagenes[i];

	}


}



function puesto_vista(id_puesto, ln) {

	$.ajax({
		type: "GET",
        url: "ajax.php?objeto=puesto&funcion=plantilla_larga&ln=" + ln + "&id_puesto=" + id_puesto,
        success: respuesta 
        
	});
	
	function respuesta(datos) {
		$('#puesto_' + id_puesto).html(datos); 
	}

}



function puesto_vista_cerrar(id_puesto, ln) {

	$.ajax({
		type: "GET",
        url: "ajax.php?objeto=puesto&funcion=plantilla&ln=" + ln + "&id_puesto=" + id_puesto,
        success: respuesta 
        
	});
	
	function respuesta(datos) {
		$('#puesto_' + id_puesto).html(datos); 
	}

}




function region_elegir(ln) {

	var id_region = document.getElementById('region').value;

	document.location.href = "index.php?modulo=experiencia&sub=region&region=" + id_region + "&ln=" + ln;
	
}




function usuario_hola() {
	$.ajax({
		type: "POST",
        url: "ajax.php",
        data: "objeto=usuario&funcion=hola",
        beforeSend: antes,
        success: respuesta 
        
	});
	
	

	function antes() {
		document.getElementById('caca').innerHTML = "antes";	
	}
	
	function respuesta(html) {
		document.getElementById('caca').innerHTML = "html";	
	}
}


