function overMenu(obj){
	obj.style.cursor = 'hand';
	obj.style.backgroundColor = '#CCCCCC';
	obj.style.color = 'black';
}
function outMenu(obj){
	obj.style.cursor = 'default';
	obj.style.backgroundColor = '#0000AA';
	obj.style.color = 'white';
}
function clickMenu(obj){
	var num = obj.id.substring(2);
	switch (num){
		case "1": cargar("presentacion.html"); break;
		case "2": cargar("consejo.html"); break;
		case "3": cargar("organigrama.html"); break;
		case "4": cargar("lineas.html"); break;
		case "5": cargar("personalp.html"); break;
		case "6": cargar("personalt.html"); break;
		case "7": cargar("divisiones.html"); break;
		case "8": cargar("promo.html"); break;
		case "9": cargar("biblioteca.html"); break;
		case "10": cargar("servicios.html"); break;
		case "11": cargar("cursos.html"); break;
		case "12": cargar("estudios.php"); break;
	}
}
function cargar(strUrl){
	parent.Main.location.href=strUrl
}
function ventana(url,alto,ancho,titulo) {
   arriba = (window.screen.height/2)-(alto/2);
   izq = (window.screen.width/2)-(ancho/2);
   window.open(url,titulo,'width='+ancho+',height='+alto+',top='+arriba+',left='+izq+'resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,dependent=yes');
}
function ventana2(url,alto,ancho,titulo) {
   arriba = (window.screen.height/2)-(alto/2);
   izq = (window.screen.width/2)-(ancho/2);
   window.open(url,titulo,'width='+ancho+',height='+alto+',top='+arriba+',left='+izq+'resizable=no,scrollbars=yes,toolbar=no,menubar=no,location=no,dependent=yes');
}
function Login(formulario){
 formulario.target="_top";
 formulario.method="POST";
 formulario.action = "https://www.lnh-uni.org:2096/login";
 if (formulario.user.value.indexOf("@lnh-uni.org") == -1)
 formulario.user.value = formulario.user.value + "@lnh-uni.org";
 formulario.submit();
}

function showTblNws(fname){
       alto = 450;
       ancho = 800;
    document.getElementById('nwsTbl').innerHTML = 'Loading...';
    document.getElementById('nwsTbl').innerHTML = '<iframe src="'+fname+'" width="'+ancho+'" height="'+alto+'" frameborder=0>Cant display IFRAME? click</iframe>';
}

function cerrarPopup(pid) {
document.getElementById(pid).style.visibility = 'hidden';
}
function cambiarTR(pid,sid) {
document.getElementById(pid).style.background='url(./conferencias/20100311-' + sid + 'm.jpg)  no-repeat center center';
}

