var referenciaEstilo = "style.";
var capaVisible = "visible";
var navegador = "Explorer";

//if (navigator.appName == "Netscape") {
//  referenciaEstilo = "";
//  capaVisible="show";
//  navegador = "Netscape";}
//else {
//  referenciaEstilo = "style.";
//  capaVisible="visible";
//  navegador = "Explorer";  }

  referenciaEstilo = "style.";
  capaVisible="visible";
  navegador = "Explorer"; 

function referenciaCapa(nombreCapa) {
  if (navegador=="Netscape")
    return "document.layers['"+nombreCapa+"'].";
  else
    return "document.all['"+nombreCapa+"'].";
}

  function ocultarCapa(nombreCapa) {
    eval(referenciaCapa(nombreCapa)+referenciaEstilo+'visibility = "hidden"');
  }

  function mostrarCapa(nombreCapa) {
    eval(referenciaCapa(nombreCapa)+referenciaEstilo+'visibility = "visible"');
  }

  function ocultarCapas() {
    eval(referenciaCapa('enlaces1')+referenciaEstilo+'visibility = "hidden"');
    eval(referenciaCapa('enlaces2')+referenciaEstilo+'visibility = "hidden"');
    eval(referenciaCapa('enlace21')+referenciaEstilo+'visibility = "hidden"');
//    eval(referenciaCapa('enlace22')+referenciaEstilo+'visibility = "hidden"');
    eval(referenciaCapa('enlace51')+referenciaEstilo+'visibility = "hidden"');
    eval(referenciaCapa('enlaces3')+referenciaEstilo+'visibility = "hidden"');
    eval(referenciaCapa('enla315')+referenciaEstilo+'visibility = "hidden"');
    eval(referenciaCapa('enlaces4')+referenciaEstilo+'visibility = "hidden"');
    eval(referenciaCapa('enlaces5')+referenciaEstilo+'visibility = "hidden"');
    eval(referenciaCapa('enlaces6')+referenciaEstilo+'visibility = "hidden"');
    eval(referenciaCapa('enlaces7')+referenciaEstilo+'visibility = "hidden"');
  }


function cambiaFondo(t,img) { 
if (img==1) { t.background="images/p_btn033.gif";}
if (img==0) { t.background="";}
}


function mailpage() {
mail_str = "mailto:brafa@brafa.org?subject=Solicitud de Información: " + document.title;
mail_str += "&body=Deseo recibir Información referente al curso [  ....  ] a nombre de = [...]  ";
mail_str += "";
mail_str += "Tambien deseo recibir información de su revista. (www.brafa.org) - - " + document.title;
mail_str += " Enlace: "+ location.href;
location.href = mail_str;
}

function popUp(URL) {
day= new Date();
id = day.getTime();
mq = id
mm = 'toolbar=0, scrollbars=0, location=0, statusbar=0, menubar=0,resizable=0,width=625,height=380';
eval( "page"+id+"= window.open(URL, '" + id + "','toolbar=0, scrollbars=0, location=0, statusbar=0, menubar=0,resizable=0,width=625,height=380');");
}

function time() {
hoy = new Date();
ann = hoy.getFullYear();
mes = hoy.getMonth()+1;
dia = hoy.getDate();
hor = hoy.getHours();
min = hoy.getMinutes();
seg = hoy.getSeconds();
if (min<10) min ="0"+min
if (min<10) seg ="0"+seg
window.status = "Escuela Fundación Deportiva Brafa.  [ Dia: "+dia+"/"+mes+"/"+ann+" Hora: "+hor+":"+min+":"+seg+" ]"
setTimeout('time()',1001);
}



var message = "";
function clickIE(){
    if (document.all){
     (message);
     return false;
    }
   }
function clickNS(e){
    if (document.layers || (document.getElementById && !document.all)){
     if (e.which == 2 || e.which == 3){
      (message);
      return false;
     }
    }
   }
if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = clickNS;
   } else {
    document.onmouseup = clickNS;
    document.oncontextmenu = clickIE;
   }
   document.oncontextmenu = new Function("return false")
