<!-- Coments for explorers under 4 versions
/****************************************************
	
	Company: RENOVATIO COMUNICACION feat Telefónica
			 www.renovatio-comunicacion.com

*****************************************************/

/*####################################################################

	Funciones para DIV Objects

#####################################################################*/
	

	/*-----------------------------------------------
		Function para determinar la visibilidad de un DIV
	-----------------------------------------------*/
	
	$(document).ready(function() {
		//Idioma
		var txt_amp="Mostrar";
		var txt_cer="Cerrar";

		var idioma = $("meta[name='language']").attr("content");
		if(idioma == "en"){
				txt_amp="Show";
				txt_cer="Close";
		}

	  //Inicializamos tamaños		
	  $(".despleg_texto > .despleg_contenido").hide();
	  $(".despleg_texto > .despleg_titular").click(function(e){
				$(this).next().slideToggle();
					
				$(this).find(".ampliarTexto").toggleClass("ampliarTexto_off");
				if($(this).find(".ampliarTexto").hasClass("ampliarTexto_off")){
					$(this).find(".ampliarTexto").html('<a id="aLink" href="#">'+txt_cer+'</a>');					
				}else{
					$(this).find(".ampliarTexto").html('<a id="aLink" href="#">'+txt_amp+'</a>');					
				}
				
				e.stopPropagation();
				e.preventDefault();
		});

		$('.open').slideToggle();
		
		 //PAISES TUS PROYECTOS PRONIÑO	
		$("#subx").hide();
		$("#aLinkx").click(function(e){
			$("#subx").toggle();			
		});
		


		
	});
	

//-->

