LANGUAGE="es";
tamano=100;

function objAjax(){
 if (window.XMLHttpRequest) {
 return new XMLHttpRequest();
 } else if (window.ActiveXObject) {
 try{
 return new ActiveXObjet("Msxml2.XMLHTTP");
 }catch (e) {
 try{
 return new ActiveXObject("Microsoft.XMLHTTP");
 } catch (e) {
 alert("Este navegador no soporta XMLHttpRequest");
 }
 }
 }
}

function cargaContenido(url,capa) {
	var peticion_http = objAjax();
	
	if(peticion_http) {		
		peticion_http.onreadystatechange = function(){
				muestraContenido(peticion_http,capa);				
			}
		peticion_http.open("GET", url, true);
		peticion_http.send(null);
	}
}

function muestraContenido(peticion_http,capa) {
	if(peticion_http.readyState == 4) {
		if(peticion_http.status == 200) {
			document.getElementById(capa).innerHTML=peticion_http.responseText;			
		}
	}
}
function Spanish(){	
	cargaContenido("./es/somos.html","divframe");
	cargaContenido("./es/menu.html","menu");
	language="es";
	document.getElementById("overlay").style.visibility="hidden";
}
function Aleman(){
	cargaContenido("./al/somos.html","divframe");
	cargaContenido("./al/menu.html","menu");
	language="al";
	document.getElementById("overlay").style.visibility="hidden";
}
function Holandes(){
	cargaContenido("./ho/somos.html","divframe");
	cargaContenido("./ho/menu.html","menu");
	language="ho";
	document.getElementById("overlay").style.visibility="hidden";
}
function Ingles(){
	cargaContenido("./en/somos.html","divframe");
	cargaContenido("./en/menu.html","menu");
	language="en";
	document.getElementById("overlay").style.visibility="hidden";
}
function Aviso(){
	cargaContenido("./aviso.html","divframe");
}
function enlace(ID){
	
	var variable=language+"/"+ID+".html";
	cargaContenido(variable,"divframe");
	document.getElementById("overlay").style.visibility="hidden";
}
function aumentar(){
	tamano = tamano + 20;
	document.getElementById("divframe").style.fontSize= tamano + "%";
}
function decrecer(){
	
	tamano = tamano - 20;
	if (tamano > 0){
		document.getElementById("divframe").style.fontSize= tamano + "%";
	}
}

window.onload = function() {
document.getElementById("Fespañol").onclick=Spanish;
document.getElementById("Faleman").onclick=Aleman;
document.getElementById("Fholandes").onclick=Holandes;
document.getElementById("Fingles").onclick=Ingles;
document.getElementById("Zmenos").onclick=decrecer;
document.getElementById("Zmas").onclick=aumentar;
}
