function aparece(cont) 
{  
  if (cont == 1) {
    Opc1.style.display='block';
    p01.style.display='';
    return true;
  }
  if (cont == 2) {
    Opc2.style.display='block';
    p02.style.display='';
   	return true;
  }
  if (cont == 3) {
    Opc3.style.display='block';
    p03.style.display='';
   	return true;
  }
  if (cont == 4) {
    Opc4.style.display='block';
    p04.style.display='';
   	return true;
  }
  if (cont == 5) {
    Opc5.style.display='block';
    p05.style.display='';
   	return true;
  }
  if (cont == 6) {
    Opc6.style.display='block';
   	return true;
  }
  if (cont == 7) {
    Opc7.style.display='block';
   	return true;
  } 
  if (cont == 8) {
    Opc8.style.display='block';
   	return true;
  }
  if (cont == 9) {
    Opc9.style.display='block';
   	return true;
  }
}

function desaparece(cont)
{
  if (cont== 1) {
    Opc1.style.display='none';
    p01.style.display='none';
		return true;
	}
  if (cont == 2) {
    Opc2.style.display='none';
    p02.style.display='none';
		return true;
	}
  if (cont == 3) {
    Opc3.style.display='none';
    p03.style.display='none';
		return true;
	}
  if (cont == 4) {
    Opc4.style.display='none';
    p04.style.display='none';
		return true;
	}
  if (cont == 5) {
    Opc5.style.display='none';
    p05.style.display='none';
		return true;
	}
  if (cont == 6) {
    Opc6.style.display='none';
		return true;
	}
  if (cont == 7) {
    Opc7.style.display='none';
		return true;
	}
  if (cont == 8) {
    Opc8.style.display='none';
		return true;
	}
  if (cont == 9) {
    Opc9.style.display='none';
		return true;
	}

}

function mostrar() 
   { 
     var  dia = new Date(); 
     var  hora = dia.getHours(); 
     var  minutos = dia.getMinutes(); 
     var  segundos = dia.getSeconds();

     if ((hora >= 0)&&(hora <= 9)){ 
      hora="0"+hora; 
     }

     if ((minutos >= 0)&&(minutos <= 9)){ 
      minutos="0"+minutos; 
     }

     if ((segundos >= 0)&&(segundos <= 9)){ 
      segundos="0"+segundos; 
     }
     window.hora.innerText="Bienvenido "  + hora 
      + ":" + minutos + ":"    + segundos; 
    
     window.setTimeout("mostrar()",1000); 
   }


function inicio(pagina)
{
ancho=340
alto=330
fin=400
x=0
y=0
ventana = window.open(pagina, "_blank","resizable,height=1,width=1,top=x,left=y,screenX=x,screenY=y");
abre();
}
function abre()
{	if (ancho<=fin)
	{
	ventana.moveTo(x,y);
	ventana.resizeTo(ancho,alto);
	x+=5
	y+=5
	ancho+=20
	alto+=20
	timer= setTimeout("abre()",1)
	}
	else
	{
	clearTimeout(timer)
	}
}
