// JavaScript Document
function MM_jumpMenu(targ,selObj,restore)
{
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore)
	{
		selObj.selectedIndex=0;
	}
}

//Reloj 
function actualizaReloj()
{ 
	marcacion = new Date() 
	Hora      = marcacion.getHours() 
	Minutos   = marcacion.getMinutes()
	Segundos  = marcacion.getSeconds() 

	if (Hora<=9)
	{ 
		Hora = "0" + Hora;
	}
	if (Minutos<=9)
	{ 
		Minutos = "0" + Minutos;
	}	
	if (Segundos<=9) 
	{
		Segundos = "0" + Segundos 
	}

	/* Coemienza eń Script de la Fecha */ 
	var Dia = new Array(
						"Dom", 
						"Lun", 
						"Mar", 
						"Mie",
						"Jue",
						"Vie",
						"Sab", 
						"Dom"
						); 
	var Mes = new Array(
						"Ene",
						"Feb",
						"Mar",
						"Abr",
						"May",
						"Jun",
						"Jul",
						"Ago",
						"Sep",
						"Oct",
						"Nov",
						"Dic"
						); 
	var Hoy   = new Date(); 
	var Anio  = Hoy.getFullYear(); 
	var Fecha = Dia[Hoy.getDay()]+", "+Hoy.getDate()+" "+Mes[Hoy.getMonth()]+" "+Anio+ " "; 

	var Inicio, Script, Final, Total ;

	Script = Fecha + Hora + ":" + Minutos;
	
	document.getElementById('Fecha_Reloj').innerHTML = Script;
	setTimeout("actualizaReloj()",1000);
} 


function MM_openBrWindow(theURL,winName,features) 
{ //v2.0
  window.open(theURL,winName,features);
}

//////////////////////////////////////////////////////////////////////////////////////////////////
//Menu desplegable de la seccion de la izquierda
//////////////////////////////////////////////////////////////////////////////////////////////////
function MM_findObj(n, d)
{ //v4.01
	var p,i,x; 
	if(!d)
	{
		d=document;
	}
	if((p=n.indexOf("?"))>0&&parent.frames.length)
	{
		d=parent.frames[n.substring(p+1)].document;
		n=n.substring(0,p);
	}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function mmLoadMenus()
{
	if (window.sociedad)
		return;
  	
	window.sociedad = new Menu("root",110,21,"Arial, Helvetica, sans-serif",11,"#666666","#ffffff","#ffffff","#006589","left","middle",5,0,500,-5,7,true,true,true,0,true,true);
	sociedad.addMenuItem("::&nbsp;inicio","window.open('index.php', '_self');");
	sociedad.addMenuItem("::&nbsp;presentaci&oacute;n","window.open('presenta.html', '_self');");
	sociedad.addMenuItem("::&nbsp;comit&eacute;&nbsp;directivo","window.open('comite.html', '_self');");
	sociedad.addMenuItem("::&nbsp;objetivos","window.open('objetivos.html', '_self');");
	sociedad.addMenuItem("::&nbsp;estatutos","window.open('estatutos.html', '_self');");
	sociedad.addMenuItem("::&nbsp;logo&nbsp;y&nbsp;lema","window.open('logolema.html', '_self');");
	sociedad.fontWeight="bold";
	sociedad.hideOnMouseOut=true;
	sociedad.menuBorder=1;
	sociedad.menuLiteBgColor='#ffffff';
	sociedad.menuBorderBgColor='#efefef';
	sociedad.bgColor='#555555';
	
  window.alumnos = new Menu("root",105,21,"Arial, Helvetica, sans-serif",11,"#666666","#ffffff","#ffffff","#006589","left","middle",5,0,500,-5,7,true,true,true,0,true,true);
  alumnos.addMenuItem("::&nbsp;inmunologia","location='alumnos.php'");
  alumnos.addMenuItem("::&nbsp;neurociencias","location='alumnos_neuro.php'");
   alumnos.fontWeight="bold";
   alumnos.hideOnMouseOut=true;
   alumnos.menuBorder=1;
   alumnos.menuLiteBgColor='#ffffff';
   alumnos.menuBorderBgColor='#efefef';
   alumnos.bgColor='#555555';

  window.egresados = new Menu("root",105,21,"Arial, Helvetica, sans-serif",11,"#666666","#ffffff","#ffffff","#006589","left","middle",5,0,500,-5,7,true,true,true,0,true,true);
  egresados.addMenuItem("::&nbsp;inmunolog&iacute;a","location='egresados_inmuno.php'");
  egresados.addMenuItem("::&nbsp;neurociencias","location='egresados_neuro.php'");
   egresados.fontWeight="bold";
   egresados.hideOnMouseOut=true;
   egresados.menuBorder=1;
   egresados.menuLiteBgColor='#ffffff';
   egresados.menuBorderBgColor='#efefef';
   egresados.bgColor='#555555';

  window.actividades = new Menu("root",152,21,"Arial, Helvetica, sans-serif",11,"#666666","#ffffff","#ffffff","#006589","left","middle",5,0,500,-5,7,true,true,true,0,true,true);
  actividades.addMenuItem("::&nbsp;cient&iacute;fico&nbsp;/&nbsp;academicas","location='act_cientificas.html'");
  actividades.addMenuItem("::&nbsp;culturales&nbsp;/&nbsp;deport&iacute;vas","location='culturales.html'");
   actividades.fontWeight="bold";
   actividades.hideOnMouseOut=true;
   actividades.menuBorder=1;
   actividades.menuLiteBgColor='#ffffff';
   actividades.menuBorderBgColor='#efefef';
   actividades.bgColor='#555555';
   
  window.ligas = new Menu("root",152,21,"Arial, Helvetica, sans-serif",11,"#666666","#ffffff","#ffffff","#006589","left","middle",5,0,500,-5,7,true,true,true,0,true,true);
  ligas.addMenuItem("::&nbsp;ligas&nbsp;SAEDCB","location='ligas.php'");
  ligas.addMenuItem("::&nbsp;noticias&nbsp;SAEDCB","location='noticias.php'");
  ligas.addMenuItem("::&nbsp;contacto","location='contacto.html'");
   ligas.fontWeight="bold";
   ligas.hideOnMouseOut=true;
   ligas.menuBorder=1;
   ligas.menuLiteBgColor='#ffffff';
   ligas.menuBorderBgColor='#efefef';
   ligas.bgColor='#555555';
   
   actividades.writeMenus();
}