//MENU
function menu_cat_index(){
	
	var newHtml ='<div style="position:absolute; left:959px; top:27px; width:52px; height:10px;">'+
				'<div style="position:absolute; left:0px; top:0px; width:23px; height:10px;" class="cat_activo"></div>'+
				'<div style="position:absolute; left:23px; top:0px; width:5px; height:10px;" ><img src="img/cabecera/barra.jpg" width="5" height="10" ></div>'+
				'<a href="javascript:idioma_eng()" class="eng"><div style="position:absolute; left:28px; top:0px; width:24px; height:10px;" class="eng"></div></a>'+
				'<a href="index.htm" class="inici"><div style="position:absolute; left:24px; top:13px; width:28px; height:10px;" class="inici"></div></a>'+ 
				'<a href="javascript:history.back(-1)" class="retro"><div style="position:absolute; left:43px; top:30px; width:7px; height:13px;" class="retro"></div></a></div>' 


				document.getElementById('cabecera').innerHTML = newHtml;
}

function menu_eng_index(){
	
	var newHtml ='<div style="position:absolute; left:959px; top:27px; width:52px; height:10px;">'+
				'<a href="javascript:idioma_cat()" class="cat"><div style="position:absolute; left:0px; top:0px; width:23px; height:10px;" class="cat"></div></a>'+
				'<div style="position:absolute; left:23px; top:0px; width:5px; height:10px;" ><img src="img/cabecera/barra.jpg" width="5" height="10" ></div>'+
				'<div style="position:absolute; left:28px; top:0px; width:24px; height:10px;" class="eng_activo"></div>'+
				'<a href="index_eng.htm" class="home"><div style="position:absolute; left:22px; top:13px; width:33px; height:10px;" class="home"></div></a>'+ 
				'<a href="javascript:history.back(-1)" class="retro"><div style="position:absolute; left:43px; top:30px; width:7px; height:13px;" class="retro"></div></a></div>' 
		
	
				document.getElementById('cabecera').innerHTML = newHtml;
}
function cat_index(){
	
	var newHtml ='<div style="position:absolute; left:959px; top:27px; width:52px; height:10px;">'+
				'<div style="position:absolute; left:0px; top:0px; width:23px; height:10px;" class="cat_activo"></div>'+
				'<div style="position:absolute; left:23px; top:0px; width:5px; height:10px;" ><img src="img/cabecera/barra.jpg" width="5" height="10" ></div>'+
				'<a href="index_eng.htm" class="eng"><div style="position:absolute; left:28px; top:0px; width:24px; height:10px;" class="eng"></div></a></div>'
				
				document.getElementById('cabecera').innerHTML = newHtml;
}

function eng_index(){
	
	var newHtml ='<div style="position:absolute; left:959px; top:27px; width:52px; height:10px;">'+
				'<a href="index.htm" class="cat"><div style="position:absolute; left:0px; top:0px; width:23px; height:10px;" class="cat"></div></a>'+
				'<div style="position:absolute; left:23px; top:0px; width:5px; height:10px;" ><img src="img/cabecera/barra.jpg" width="5" height="10" ></div>'+
				'<div style="position:absolute; left:28px; top:0px; width:24px; height:10px;" class="eng_activo"></div></div>'
		
	
				document.getElementById('cabecera').innerHTML = newHtml;
}

//MENU

function menu_o(apt){
	if(apt=="1"){document.getElementById('m1').style.color = "#bb3c3c"; document.getElementById('boto1').src = "img/aptdos/Inici/pixel_transp_true.png"}
	if(apt=="2"){document.getElementById('m2').style.color = "#bb3c3c"; document.getElementById('boto2').src = "img/aptdos/Inici/pixel_transp_true.png"}
	if(apt=="3"){document.getElementById('m3').style.color = "#bb3c3c"; document.getElementById('boto3').src =  "img/aptdos/Inici/pixel_transp_true.png"}
	if(apt=="4"){document.getElementById('m4').style.color = "#bb3c3c";document.getElementById('m4b').style.color = "#FFFFFF";document.getElementById('boto4').src =  "img/aptdos/Inici/pixel_transp_true.png"}
	if(apt=="5"){document.getElementById('m5').style.color = "#bb3c3c";document.getElementById('boto5').src = "img/aptdos/Inici/pixel_transp_true.png"}
	if(apt=="6"){document.getElementById('m6').style.color = "#bb3c3c";document.getElementById('boto6').src =  "img/aptdos/Inici/pixel_transp_true.png"}
		if(apt=="7"){document.getElementById('m7').style.color = "#bb3c3c";document.getElementById('boto7').src =  "img/aptdos/Inici/pixel_transp_true.png"}
	
}
function menu_out(apt){
	if(apt=="1"){document.getElementById('m1').style.color = "#000000";document.getElementById('boto1').src = "img/aptdos/Inici/pixel_transp.png"}
	if(apt=="2"){document.getElementById('m2').style.color = "#000000";document.getElementById('boto2').src = "img/aptdos/Inici/pixel_transp.png"}
	if(apt=="3"){document.getElementById('m3').style.color = "#000000";document.getElementById('boto3').src =  "img/aptdos/Inici/pixel_transp.png"}
	if(apt=="4"){document.getElementById('m4').style.color = "#000000";document.getElementById('m4b').style.color = "#000000";document.getElementById('boto4').src =  "img/aptdos/Inici/pixel_transp.png"}
	if(apt=="5"){document.getElementById('m5').style.color = "#000000";document.getElementById('boto5').src =  "img/aptdos/Inici/pixel_transp.png"}
	if(apt=="6"){document.getElementById('m6').style.color = "#000000";document.getElementById('boto6').src =  "img/aptdos/Inici/pixel_transp.png"}
	if(apt=="7"){document.getElementById('m7').style.color = "#000000";document.getElementById('boto7').src =  "img/aptdos/Inici/pixel_transp.png"}
	
}

//IDIOMA

function idioma_eng(){
	var ruta = document.URL;
	var llarg = ruta.length;
	ruta = ruta.substring(0,llarg-4);
	ruta = ruta +"_eng.htm"
	window.location =ruta;

}

function idioma_cat(){
	var ruta = document.URL;
	var llarg = ruta.length;
	ruta = ruta.substring(0,llarg-8);
	ruta = ruta +".htm"
	window.location =ruta;
}

function blanc_o(blanc){
	document.getElementById(blanc).style.display = "none";
	document.getElementById("txt_"+blanc).style.color = "#bb3c3c";
	
}
function blanc_out(blanc){
	document.getElementById(blanc).style.display = "";
	document.getElementById("txt_"+blanc).style.color = "#000000";
	
}



