n4 = (document.layers)? true:false
ie = (document.all)? true:false
n6 = (document.getElementById)? true:false
var popTimer = 0;
var veces=0;
function OcultaTodos() {
 MasInfoHide('Menu03');
}
function MasInfoShow(Objeto,submenu) {
 clearTimeout(popTimer);
 OcultaTodos(submenu);
 if (n4)
  document.ventana.document.layers[Objeto].visibility="show"
 else if (ie)
  document.all[Objeto].style.visibility="visible"
 else if (n6)
  document.getElementById(Objeto).style.visibility="visible"
}
function LimpiaTimer() {
 clearTimeout(popTimer);
}
function MasInfoHide(Objeto) {
 if (Objeto==0)
  popTimer=setTimeout('OcultaTodos()', 100)
 else
  if (n4)
   document.ventana.document.layers[Objeto].visibility="hide"
  else if (ie)
   document.all[Objeto].style.visibility="hidden"
  else if (n6)
   document.getElementById(Objeto).style.visibility="hidden";
}
function Colorea(idcel,idtex,idccol,idtcol,submenu) {
 var c=eval("document.all."+idcel);
 var t=eval("document.all."+idtex);
 if (c && c.style) c.style.background=idccol;
 if (t && t.style) t.style.color=idtcol;
 if (submenu=='sc') MasInfoShow('Menu'+idcel.substring(1,3),submenu);
 if (submenu=='ct') clearTimeout(popTimer);
 if (submenu=='hc') MasInfoHide(0);
}

function MasInfoWeb(Cual) {
 AbrirPopUp('avisos/'+Cual+'.htm','MFPubWeb',716,500,25,25,1)
}
function AbrirPopUp(Cual,Nombre,width,height,left,top,sb) {
 if (sb==0){
  sb='no';
 } else {
  sb='yes';
 }
 Abre=open(Cual,Nombre,'width='+width+',height='+height+',left='+left+',top='+top+',scrollbars='+sb+',toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,titlebar=no');
}
function mOvr(src,cual) {
// if (!src.contains(event.fromElement)) {
  src.style.cursor='hand';
  if (cual==2) {
   src.bgColor='#ee4444';
  } else {
   src.bgColor='#777777';
  }
// }
}
function mOut(src,cual) {
// if (!src.contains(event.toElement)) {
  src.style.cursor='default';
  if (cual==2) {
   src.bgColor='#cc3333';
  } else {
   src.bgColor='#999999';
  }
// }
}
function mClk(src,cual) {
 if(event.srcElement.tagName=='TD'){
  src.children.tags('A')[0].click();
 }
}
function MostrarFoto(variable,ancho,alto){
 var variable, alto, ancho;
 alto=alto+25;
 ancho=ancho+20;
 window.open('mostrar.php?foto='+ variable,'',"toolbar=no,scrollbars=no,width="+ ancho +",height="+ alto);
}

