function escondeSelects(){
if(!window.attachEvent) return false;
var selects = document.getElementsByTagName("select");
for( var i=0; i<selects .length; i++ ){
selects[i].style.display = "none";
}
}
function veSelects(){
if(!window.attachEvent) return false;
var selects = document.getElementsByTagName("select");
for( var i=0; i<selects .length; i++ ){
selects[i].style.display = "inline";
}
}
/* Funcion para Menu horizontal - el esconde es por Explorer que se ven los select a pesar de los z-index */
sobre = function() {
	var cuantos = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<cuantos.length; i++) {
		cuantos[i].onmouseover=function() {
			this.className+=" sobre";
			escondeSelects();
		}
		cuantos[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sobre\\b"), "");
			veSelects();
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sobre);
// Menu Vertical

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("verticalO");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;
// Fin Menu Vertical
// Fecha y Hora
// Array de los meses
var monthNames = new makeArray(12);
monthNames[0] = "Enero";
monthNames[1] = "Febrero";
monthNames[2] = "Marzo";
monthNames[3] = "Abril";
monthNames[4] = "Mayo";
monthNames[5] = "Junio";
monthNames[6] = "Julio";
monthNames[7] = "Agosto";
monthNames[8] = "Septiembre";
monthNames[9] = "Octubre";
monthNames[10] = "Noviembre";
monthNames[11] = "Diciembre";

// Array de los días

var dayNames = new makeArray(7);
dayNames[0] = "Domingo";
dayNames[1] = "Lunes";
dayNames[2] = "Martes";
dayNames[3] = "Mi&eacute;rcoles";
dayNames[4] = "Jueves";
dayNames[5] = "Viernes";
dayNames[6] = "S&aacute;bado";

var now = new Date();
var year = now.getYear();

if (year < 2000) year = year + 1900;

function makeArray(len) 
{
for (var i = 0; i < len; i++) this[i] = null;
this.length = len;
}
function reloj() {
	var Digital=new Date();
	var hora=Digital.getHours();
	var minuto=Digital.getMinutes();
	var segundo=Digital.getSeconds();
	//alert(hora+":"+minuto+":"+segundo);
	document.getElementById('mostrar').innerHTML = hora+":"+minuto+":"+segundo;
}
setInterval("reloj();", 1000);
//-->
// Fin Fecha y Hora
// Para tab de proyectos y Reuniones
function vertab(cual){

este = document.getElementById(cual);
este.style.display = "block";
estetab = document.getElementById('tab'+cual);
estetab.className = "activo";

}
function novertab(cual){

este = document.getElementById(cual);
este.style.display = "none";
estetab = document.getElementById('tab'+cual);
estetab.className = "inactivo";

}

function ver(cual){

este = document.getElementById(cual);
este.style.display = "block";
}
function nover(cual){

este = document.getElementById(cual);
este.style.display = "none";
}
function ninguno(hasta){
for (i=0; i < hasta; i++)
 {
 cual = 'P'+i;
este = document.getElementById(cual);
este.style.display = "none";
}
}
function todos(hasta){
for (i=0; i < hasta; i++)
 {
 cual = 'P'+i;
este = document.getElementById(cual);
este.style.display = "block";
}
}
// Fin de Tab