window.focus();
function sobre(cell)
{ if (!cell.contains(event.fromElement)) { cell.style.cursor = 'hand'; cell.bgColor = '#9999ff'; } }
function fuera(cell)
{ if (!cell.contains(event.toElement)) { cell.style.cursor = 'default'; cell.bgColor = '#0022ad'; } }
function pulsar(cell)
{ if(event.srcElement.tagName=='TD') { cell.children.tags('A')[0].click(); } }

// abre ventana
function abrir(url)
{ ventana=window.open(url,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=400"); }

function abrir_invitacion(url)
{ ventana=window.open(url,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=700,height=400"); }

// fecha completa
function fecha()
{ today = new Date();
  day = today.getDay();
  if ( day == 0 ) { document.write("Domingo "); }
  if ( day == 1 ) { document.write("Lunes "); }
  if ( day == 2 ) { document.write("Martes "); }
  if ( day == 3 ) { document.write("Miércoles "); }
  if ( day == 4 ) { document.write("Jueves "); }
  if ( day == 5 ) { document.write("Viernes "); }
  if ( day == 6 ) { document.write("Sábado "); }
  today = new Date();
  hours = today.getHours();
  minutes = today.getMinutes();
  zerom = '';
  zeroh = '';
  if ( minutes < 10 ) { zerom = 0 }
  if ( hours < 10 ) { zeroh = 0 }
  if ( today.getMonth() == 0 )  { month = "Enero" }
  if ( today.getMonth() == 1 )  { month = "Febrero" }
  if ( today.getMonth() == 2 )  { month = "Marzo" }
  if ( today.getMonth() == 3 )  { month = "Abril" }
  if ( today.getMonth() == 4 )  { month = "Mayo" }
  if ( today.getMonth() == 5 )  { month = "Junio" }
  if ( today.getMonth() == 6 )  { month = "Julio" }
  if ( today.getMonth() == 7 )  { month = "Agosto" }
  if ( today.getMonth() == 8 )  { month = "Septiembre" }
  if ( today.getMonth() == 9 )  { month = "Octubre" }
  if ( today.getMonth() == 10 ) { month = "Noviembre" }
  if ( today.getMonth() == 11 ) { month = "Diciembre" }
  document.write( today.getDate()," de ",month," de 2003." );
}

// capas
function MM_findObj(n, d) 
{ 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); return x;
}
function MM_showHideLayers() 
{ var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) 
  { v=args[i+2];
    if (obj.style) 
    { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; 
    }
    obj.visibility=v;
  }
}

// redirecciona
function selecampo()
{ if (document.seleccion.campo.selectedIndex == 0) return
  var URL = document.seleccion.campo.options[document.seleccion.campo.selectedIndex].value
  window.location.href = URL
}

// texto flash
var message="Espere un momento...      ";
var speed=400;
var visible=0;
function Flash() {
if (visible == 0) {
window.status=message;
visible=1;
} else {
window.status="";
visible=0;
}
setTimeout('Flash()', speed);
}
