// JavaScript Document


var bt_menu =new Array("bt_academicos","bt_laborales","bt_carpeta","bt_demos","bt_contacto");

var seccionActual="inicio"


function rollOver(elboton){
	
	if(apagador == true){
		document.getElementById(elboton).style.color="#FFF";
		document.getElementById(elboton).style.backgroundColor="#333";
	}
	
	}

//***************************************************
function rollOut(elbotonX){
	
	if(elbotonX != elBotonPresionado ){
	document.getElementById(elbotonX).style.color="#900";
	document.getElementById(elbotonX).style.backgroundColor="transparent";
	}
	
	if (elBotonPresionado == 1){
		document.getElementById("bt_academicos").style.color="#FFF";
		document.getElementById("bt_academicos").style.backgroundColor="#333";
		}
	
	if (elBotonPresionado == 2){
		document.getElementById("bt_demos").style.color="#FFF";
		document.getElementById("bt_demos").style.backgroundColor="#333";
		}
		
	if (elBotonPresionado == 4){
		document.getElementById("bt_laborales").style.color="#FFF";
		document.getElementById("bt_laborales").style.backgroundColor="#333";
		}
		
	
	if (elBotonPresionado == 5){
		document.getElementById("bt_carpeta").style.color="#FFF";
		document.getElementById("bt_carpeta").style.backgroundColor="#333";
		}

	
	
	
	
	}

//********************************************************************

elBotonPresionado="";

function botonActual(elbotonZ){
	//alert (elbotonZ);
	
	elBotonPresionado= elbotonZ;
	
	
	
	for(u=0; u<= bt_menu.length-1; u++){
			document.getElementById(bt_menu[u]).style.color="#900";
			document.getElementById(bt_menu[u]).style.backgroundColor="transparent";
		}
	
	
	
	if (elbotonZ == 1){
		document.getElementById("bt_academicos").style.color="#FFF";
		document.getElementById("bt_academicos").style.backgroundColor="#333";
		
		}
	
	if (elbotonZ == 2){
		document.getElementById("bt_demos").style.color="#FFF";
		document.getElementById("bt_demos").style.backgroundColor="#333";
		}
		
	
		
		
	if (elbotonZ == 4){
		document.getElementById("bt_laborales").style.color="#FFF";
		document.getElementById("bt_laborales").style.backgroundColor="#333";
		}
		
	
	if (elbotonZ == 5){
		document.getElementById("bt_carpeta").style.color="#FFF";
		document.getElementById("bt_carpeta").style.backgroundColor="#333";
		}

	
	}


//******************************************************************


function cerrarEmial() {
	document.getElementById('email').style.top=-600+"px";

//elemento4=document.getElementById('CapaFondo');
//elemento4.style.top=-1500+"px";
/*document.getElementById('AumentarDisminuirLB').style.top=-100+"px";*/

/*document.getElementById(capa).style.opacity=0.0;
document.getElementById(capa).style.MozOpacity=0.0;
	if (navigator.appName.indexOf("Explorer") != -1){
	/* para IE6&7 */ 
	/*document.getElementById(capa).filters.alpha.opacity=0;
	}*/

elemento4=document.getElementById('CapaFondo');
elemento4.style.height=1+"px";


}




// *********************************************************************************

function abrirEmial() {
	document.getElementById('email').style.top=30+"%";
	document.getElementById('email').style.marginTop=-220+"px";





alturabody=screen.height+200;

alturabody2=document.body.scrollWidth;


elemento4=document.getElementById('CapaFondo');


if (document.all){elemento4.style.height=alturabody+"px";}
else if (document.getElementById){elemento4.style.height= window.innerHeight+"px";} 

//document.getElementById('CapaFondo').style.height=300+"px";

document.getElementById('CapaFondo').style.opacity=.60;
document.getElementById('CapaFondo').style.MozOpacity=.60;
if (navigator.appName.indexOf("Explorer") != -1){
document.getElementById('CapaFondo').filters.alpha.opacity=60;
}


}
