

function mostrar1(capa) {
	document.getElementById('opcion3').style.display = 'none';
	document.getElementById('img_opcion3').src='img/btn_menu3.gif';
	document.getElementById(capa).style.display = 'block';
    document.getElementById('img_opcion1').src='img/btn_menu1_roll_flecha.gif';
}

function mostrar3(capa) {
	document.getElementById('opcion1').style.display = 'none';
	document.getElementById('img_opcion1').src='img/btn_menu1.gif';
	document.getElementById(capa).style.display = 'block';
    document.getElementById('img_opcion3').src='img/btn_menu3_roll_flecha.gif';
}

function rollover1() {
	var carpeta = document.getElementById('img_opcion1').src.lastIndexOf('/');
	var firstpos = carpeta+25;
	directorio=document.getElementById('img_opcion1').src.substring(firstpos,carpeta);
	if (directorio=='/btn_menu1.gif'){
	    document.getElementById('img_opcion1').src='img/btn_menu1_roll.gif';
	}		
}

function rollout1() {
	var carpeta = document.getElementById('img_opcion1').src.lastIndexOf('/');
	var firstpos = carpeta+25;
	directorio=document.getElementById('img_opcion1').src.substring(firstpos,carpeta);
	if (directorio=='/btn_menu1_roll.gif'){
	    document.getElementById('img_opcion1').src='img/btn_menu1.gif';
	}		
}

function rollover3() {
	var carpeta = document.getElementById('img_opcion3').src.lastIndexOf('/');
	var firstpos = carpeta+25;
	directorio=document.getElementById('img_opcion3').src.substring(firstpos,carpeta);
	if (directorio=='/btn_menu3.gif'){
	    document.getElementById('img_opcion3').src='img/btn_menu3_roll.gif';
	}		
}

function rollout3() {
	var carpeta = document.getElementById('img_opcion3').src.lastIndexOf('/');
	var firstpos = carpeta+25;
	directorio=document.getElementById('img_opcion3').src.substring(firstpos,carpeta);
	if (directorio=='/btn_menu3_roll.gif'){
	    document.getElementById('img_opcion3').src='img/btn_menu3.gif';
	}		
}

function ocultartodas() {
	document.getElementById('opcion1').style.display = 'none';
	document.getElementById('img_opcion1').src='img/btn_menu1.gif';
	document.getElementById('opcion3').style.display = 'none';
	document.getElementById('img_opcion3').src='img/btn_menu3.gif';
	
}


function abrirPopUp(page,ancho,alto){window.open(page,null,"height="+alto+","+"width="+ancho, scrollbars="yes");}	


function nav(){
	document.getElementById('lista2').style.display= 'block';
	var carpeta = document.location.href.lastIndexOf('/');
	var firstpos = carpeta-5;
	directorio=document.location.href.substring(firstpos,carpeta);	
}




/************/


function menu(capa) {
	/*var expr
	for (i=1; i<5; i++) {
	expr = "document.getElementById(" + 'olmenusecundario'+ i + ").style.display = 'none'"
	eval(expr)
	}
*/
	/*vista = (document.getElementById(capa).style.display == 'none') ? 'block' : 'none';*/
	document.getElementById(capa).style.display = 'block';
	
}


	

function OnOpcion(Capa) {
 document.getElementById(Capa).style.color= 'c31010';
}


function mostrar(capa) {
	
	document.getElementById(capa).style.display = 'block';
	
}

function ocultar(capa) {
	
	document.getElementById(capa).style.display = 'none';
	
}



function todos_off() {

	//for (i=1;i<=1;i++){
//		document.getElementById('menu'+i).src='/img/menu/menu_off_0'+i+'.jpg';
//	}
}


