function menuOver(id){ document.getElementById('menu'+id).src = 'img/btn0'+id+'over.gif'; }
function menuOut(id){ document.getElementById('menu'+id).src = 'img/btn0'+id+'off.gif'; }
function menu(id){
	switch(id){
	case 1: document.location.href="01AbdonP01.asp"; break;
	case 2: document.location.href="01areasEsp01.asp"; break;
	case 3: document.location.href="01formacion01.asp"; break;
	case 4: document.location.href="01nuestrosProf01.asp"; break;
	case 5: document.location.href="01publicaciones01a.asp"; break;
	case 6: document.location.href="01unete01.asp"; break;
	case 7: document.location.href="01sedes01.asp"; break;
	}
}
function submenuOver(id){ document.getElementById('submenu'+id).style.color = '#000000'; }
function submenuOut(id){ document.getElementById('submenu'+id).style.color = '#999999'; }
function submenuOutR(id){ document.getElementById('submenu'+id).style.backgroundColor = '#dca96f';document.getElementById('submenu'+id).style.color = '#000000'; }
function submenu(menu,id){
	switch(menu){
	case 1: //ABDON PEDRAJAS
		document.location.href="01abdonP0"+id+".asp";
	break;
	case 2: //AREAS DE ACTIVIDAD
		document.location.href="01areasEsp0"+id+".asp";
	break;
	case 3: //FORMACIÓN
		document.location.href="01formacion0"+id+".asp";
	break;
	case 5: //NOVEDADES
		document.location.href="01publicaciones0"+id+".asp";
	break;
	case 6: //ÚNETE
		document.location.href="01unete0"+id+".asp";
	break;
	}
}
function publicaciones(val){
	if(publi == val) return;
	publi = val;
	var aux = document.getElementById('publiCont').innerHTML;
	document.getElementById('publiCont').innerHTML = document.getElementById('publiContAux').innerHTML;
	document.getElementById('publiContAux').innerHTML = aux;
	if(val){
		document.getElementById('btnPubli1').src = 'img/btnPubli01on.gif';
		document.getElementById('btnPubli2').src = 'img/btnPubli02off.gif';
	}else{
		document.getElementById('btnPubli1').src = 'img/btnPubli01off.gif';
		document.getElementById('btnPubli2').src = 'img/btnPubli02on.gif';
	}
}
function colocaPie(){
  var myHeight = 0, scrOfY = 0;
  if(typeof(window.innerWidth ) == 'number' ) { 
	myHeight = window.innerHeight; //Non-IE
  }else if(document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	myHeight = document.documentElement.clientHeight; //IE 6+ in 'standards compliant mode'
  }else if(document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	myHeight = document.body.clientHeight; //IE 4 compatible
  }
  if(typeof(window.pageYOffset) == 'number' ) {
	scrOfY = window.pageYOffset; //Netscape compliant
  }else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
	scrOfY = document.body.scrollTop; //DOM compliant
  }else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
	scrOfY = document.documentElement.scrollTop; //IE6 standards compliant mode
  }
  document.getElementById("piePag").style.top = myHeight + scrOfY - 40;
  document.getElementById("piePag").style.visibility = "visible";
}