
function mostrar_cocinero(id,lang){

	var foto=document.getElementById("foto_cocinero");
	foto.style.backgroundImage="url(img/cocinero_"+id+".jpg)";
	var cocinero_color=document.getElementById("foto_amigos_color");
	cocinero_color.style.backgroundImage="url(img/cocinero_"+id+".png)";
	
	var foto=document.getElementById("nombre_cocinero_lateral");
	foto.style.backgroundImage="url(img/nombre_cocinero"+id+".jpg)";
	
	if(lang=="es")
		texto_es(id);
	else if(lang=="eu")
		texto_eu(id);
	else if(lang=="en")
		texto_en(id);
	else if(lang=="fr")
		texto_fr(id);
}

function ocultar_cocinero(lang){
	
	var foto=document.getElementById("foto_cocinero");
	foto.style.backgroundImage= "url(img/cocinero_principal.jpg)";
	var cocinero_color=document.getElementById("foto_amigos_color");
	cocinero_color.style.backgroundImage="none";
	
	var foto=document.getElementById("nombre_cocinero_lateral");
	foto.style.backgroundImage="url(img/nombre_cocinero_principal.jpg)";
	
	if(lang=="es")
		defecto_es();
	else if(lang=="eu")
		defecto_eu();
	else if(lang=="en")
		defecto_en();
	else if(lang=="fr")
		defecto_fr();
		
}

function texto_es(id)
{
	var texto_cocinero=new Array(17);
	texto_cocinero[0]="Restaurante Sebasti&aacute;n";
	texto_cocinero[1]="Restaurante Alameda";
	texto_cocinero[2]="Restaurante Gaztelumendi";
	texto_cocinero[3]="Brasil Irunen";
	texto_cocinero[4]="Bar \"The Corner\"";
	texto_cocinero[5]="Restaurante Kupela";
	texto_cocinero[6]="Caf&eacute; Sirimiri";
	texto_cocinero[7]="Restaurante Ibaiondo";
	texto_cocinero[8]="Restaurante Ficoba";
	texto_cocinero[9]="Restaurante Loreduna Berri";
	texto_cocinero[10]="Restaurante Itsaspe";
	texto_cocinero[11]="Restaurante Atalaia";
	texto_cocinero[12]="Restaurante Sugarri";
	texto_cocinero[13]="Restaurante Abarka";
	texto_cocinero[14]="Restaurante Arroka Berri";
	texto_cocinero[15]="Restaurante Danako";
	texto_cocinero[16]="Caf&eacute; La Canasta";
	
	var texto=document.getElementById("texto_cocinero");
	texto.innerHTML=texto_cocinero[id-1];
}

function texto_eu(id)
{
	var texto_cocinero=new Array(17);
	texto_cocinero[0]="Sebasti&aacute;n jatetxea";	
	texto_cocinero[1]="Alameda jatetxea";
	texto_cocinero[2]="Gaztelumendi jatetxea";
	texto_cocinero[3]="Brasil Irunen";
	texto_cocinero[4]="\"The Corner\" taberna";	
	texto_cocinero[5]="Kupela jatetxea";
	texto_cocinero[6]="Sirimiri kafetegia";
	texto_cocinero[7]="Ibaiondo jatetxea";
	texto_cocinero[8]="Ficoba jatetxea";
	texto_cocinero[9]="Loreduna Berri jatetxea";
	texto_cocinero[10]="Itsaspe jatetxea";
	texto_cocinero[11]="Atalaia jatetxea";
	texto_cocinero[12]="Sugarri jatetxea";
	texto_cocinero[13]="Abarka jatetxea";
	texto_cocinero[14]="Arroka Berri jatetxea";
	texto_cocinero[15]="Danako jatetxea";
	texto_cocinero[16]="La Canasta kafetegia";
	
	var texto=document.getElementById("texto_cocinero");
	texto.innerHTML=texto_cocinero[id-1];
}

function texto_en(id)
{
	var texto_cocinero=new Array(17);
	texto_cocinero[0]="Restaurant Sebasti&aacute;n";
	texto_cocinero[1]="Restaurant Alameda";
	texto_cocinero[2]="Restaurant Gaztelumendi";
	texto_cocinero[3]="Brasil Irunen";
	texto_cocinero[4]="Bar \"The Corner\"";
	texto_cocinero[5]="Restaurant Kupela";
	texto_cocinero[6]="Caf&eacute; Sirimiri";
	texto_cocinero[7]="Restaurant Ibaiondo";
	texto_cocinero[8]="Restaurant Ficoba";
	texto_cocinero[9]="Restaurant Loreduna Berri";
	texto_cocinero[10]="Restaurant Itsaspe";
	texto_cocinero[11]="Restaurant Atalaia";
	texto_cocinero[12]="Restaurant Sugarri";
	texto_cocinero[13]="Restaurant Abarka";
	texto_cocinero[14]="Restaurant Arroka Berri";
	texto_cocinero[15]="Restaurant Danako";
	texto_cocinero[16]="Caf&eacute; La Canasta";
	
	var texto=document.getElementById("texto_cocinero");
	texto.innerHTML=texto_cocinero[id-1];
}

function texto_fr(id)
{
	var texto_cocinero=new Array(17);
	texto_cocinero[0]="Restaurant Sebasti&aacute;n";
	texto_cocinero[1]="Restaurant Alameda";
	texto_cocinero[2]="Restaurant Gaztelumendi";
	texto_cocinero[3]="Brasil Irunen";
	texto_cocinero[4]="Bar \"The Corner\"";
	texto_cocinero[5]="Restaurant Kupela";
	texto_cocinero[6]="Caf&eacute; Sirimiri";
	texto_cocinero[7]="Restaurant Ibaiondo";
	texto_cocinero[8]="Restaurant Ficoba";
	texto_cocinero[9]="Restaurant Loreduna Berri";
	texto_cocinero[10]="Restaurant Itsaspe";
	texto_cocinero[11]="Restaurant Atalaia";
	texto_cocinero[12]="Restaurant Sugarri";
	texto_cocinero[13]="Restaurant Abarka";
	texto_cocinero[14]="Restaurant Arroka Berri";
	texto_cocinero[15]="Restaurant Danako";
	texto_cocinero[16]="Caf&eacute; La Canasta";
	
	var texto=document.getElementById("texto_cocinero");
	texto.innerHTML=texto_cocinero[id-1];
}

function defecto_es()
{
	var texto_por_defecto="Koldo Salinas, al igual que los grandes maestros culinarios, tiene sus propias f&oacute;rmulas con las que les da a sus creaciones un sabor imposible de encontrar en otros  productos.";
	
	var texto=document.getElementById("texto_cocinero");
	texto.innerHTML=texto_por_defecto;
}

function defecto_eu()
{
	var texto_por_defecto="Koldo Salinasek, sukaldaritzako maisu handiek bezalaxe, bere formulak ditu bere sorkuntzei beste produktu batzuetan aurkitu ezin daitekeen zaporea emateko.";
	
	var texto=document.getElementById("texto_cocinero");
	texto.innerHTML=texto_por_defecto;
}

function defecto_en()
{
	var texto_por_defecto="Koldo Salinas, as the great culinary masters, has his own ways to give his creations a taste that cannot be found in any other product.";
	
	var texto=document.getElementById("texto_cocinero");
	texto.innerHTML=texto_por_defecto;
}

function defecto_fr()
{
	var texto_por_defecto="Koldo Salinas, comme tous les grands ma&icirc;tres culinaires, poss&egrave;de ses propres formules qui lui permettent de donner &agrave; ses cr&eacute;ations une saveur impossible &agrave; trouver dans d'autres produits.";
	
	var texto=document.getElementById("texto_cocinero");
	texto.innerHTML=texto_por_defecto;
}

function mostrar_cocinero_jpg(id){

	var foto=document.getElementById("foto_cocinero");
	foto.style.backgroundImage="url(img/cocinero_"+id+".jpg)";
	var cocinero_color=document.getElementById("foto_amigos_color");
	cocinero_color.style.backgroundImage="url(img/cocinero_color"+id+".jpg)";
}

function idioma_marron(id){
	var img=document.getElementById(id);
	var nombre_img=new String(img.src);
	nombre_img=nombre_img.slice(0,-4);
	var ext="_2.jpg";
	var nombre_img_nuevo=nombre_img.concat(ext);
	img.src=nombre_img_nuevo;
	
}

function idioma_naranja(id){
	var img=document.getElementById(id);
	var nombre_img=new String(img.src);
	nombre_img=nombre_img.slice(0,-6);
	var ext=".jpg";
	var nombre_img_nuevo=nombre_img.concat(ext);
	img.src=nombre_img_nuevo;
}

function sel_marron(id,ln){
	var img=document.getElementById(id);
	img.src="img/sel_marron_"+ln+".jpg";
}

function sel_blanco(id,ln){
	var img=document.getElementById(id);
	img.src="img/sel_blanco_"+ln+".jpg";
}

