
/*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 ventanita(pagina){
	var alto=0;
	var ancho=0;
	alto = screen.height;
	ancho = screen.width;
	lf = alto/3;
	tp = ancho/3;
	ventana2 = window.open(pagina, "_blank","resizable=no,height=324,width=429,top="+lf+",left="+tp+",screenX=0,screenY=0");
	/*ventana2.moveTo(tp,lf);*/
}


function maximiza(pagina)
{
	var height=0; var width=0;
	width = screen.width;
	height = screen.height;
	ventana3 = window.open(pagina, "_blank", "scrollbars=yes, resizable=yes, height="+height+", width="+width+", top=0, left=0, screenX=0, screenY=0");
}




function inicio(pagina)
{
ancho=280
alto=330
fin=420
x=0
y=0
ventana2 = window.open(pagina, "_blank","resizable=no,height=100,width=100,top=x,left=y,screenX=x,screenY=y");
abre();
}

function abre()
{
	if (ancho<=fin)
	{
	ventana2.moveTo(x,y);
	ventana2.resizeTo(ancho,alto);
	x+=5
	y+=5
	ancho+=17
	alto+=20
	timer= setTimeout("abre()",1)
	}
	else
	{
	clearTimeout(timer)
	}
}
