var imagen = new armarvector ("01egip3.jpg","02egip3.jpg","03egip3.jpg","04egip3.jpg","05egip3.jpg","06egip3.jpg","07egip3.jpg","08egip3.jpg","09egip3.jpg","10egip3.jpg","11egip3.jpg","12egip3.jpg","13egip3.jpg","14egip3.jpg","15egip3.jpg","16egip3.jpg","17egip3.jpg","18egip3.jpg","19egip3.jpg","20egip3.jpg","21egip3.jpg","22egip3.jpg","23egip3.jpg","24egip3.jpg","25egip3.jpg","26egip3.jpg","27egip3.jpg","28egip3.jpg","29egip3.jpg","30egip3.jpg","31egip3.jpg","32egip3.jpg","33egip3.jpg","34egip3.jpg","35egip3.jpg","36egip3.jpg","37egip3.jpg","38egip3.jpg","39egip3.jpg","40egip3.jpg","41egip3.jpg","42egip3.jpg","43egip3.jpg","44egip3.jpg","45egip3.jpg","46egip3.jpg","47egip3.jpg","48egip3.jpg","49egip3.jpg","50egip3.jpg","51egip3.jpg","52egip3.jpg","53egip3.jpg","54egip3.jpg","55egip3.jpg","56egip3.jpg","57egip3.jpg","58egip3.jpg","59egip3.jpg","60egip3.jpg","61egip3.jpg","62egip3.jpg","63egip3.jpg","64egip3.jpg","65egip3.jpg","66egip3.jpg","67egip3.jpg","68egip3.jpg","69egip3.jpg","70egip3.jpg","71egip3.jpg","72egip3.jpg","73egip3.jpg","74egip3.jpg","75egip3.jpg","76egip3.jpg","77egip3.jpg","78egip3.jpg");

function armarvector (v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26,v27,v28,v29,v30,v31,v32,v33,v34,v35,v36,v37,v38,v39,v40,v41,v42,v43,v44,v45,v46,v47,v48,v49,v50,v51,v52,v53,v54,v55,v56,v57,v58,v59,v60,v61,v62,v63,v64,v65,v66,v67,v68,v69,v70,v71,v72,v73,v74,v75,v76,v77,v78) {
 this[1]=v1;
 this[2]=v2;
 this[3]=v3;
 this[4]=v4;
 this[5]=v5;
 this[6]=v6;
 this[7]=v7;
 this[8]=v8;
 this[9]=v9;
 this[10]=v10;
 this[11]=v11;
 this[12]=v12;
 this[13]=v13;
 this[14]=v14;
 this[15]=v15;
 this[16]=v16;
 this[17]=v17;
 this[18]=v18;
 this[19]=v19;
 this[20]=v20;
 this[21]=v21;
 this[22]=v22;
 this[23]=v23;
 this[23]=v24;
 this[25]=v25;
 this[26]=v26;
 this[27]=v27;
 this[28]=v28;
 this[29]=v29;
 this[30]=v30;
 this[31]=v31;
 this[32]=v32;
 this[33]=v33;
 this[34]=v34;
 this[35]=v35;
 this[23]=v23;
 this[24]=v24;
 this[25]=v25;
 this[26]=v26;
 this[27]=v27;
 this[28]=v28;
 this[29]=v29;
 this[30]=v30;
 this[31]=v31;
 this[32]=v32;
 this[33]=v33;
 this[34]=v34;
 this[35]=v35;
 this[36]=v36;
 this[37]=v37;
 this[38]=v38;
 this[39]=v39;
 this[40]=v40;
 this[41]=v41;
 this[42]=v42;
 this[43]=v43;
 this[44]=v44;
 this[45]=v45;
 this[46]=v46;
 this[47]=v47;
 this[48]=v48;
 this[49]=v49;
 this[50]=v50;
 this[51]=v51;
 this[52]=v52;
 this[53]=v53;
 this[54]=v54;
 this[55]=v55;
 this[56]=v56;
 this[57]=v57;
 this[58]=v58;
 this[59]=v59;
 this[60]=v60;
 this[61]=v61;
 this[62]=v62;
 this[63]=v63;
 this[64]=v64;
 this[65]=v65;
 this[66]=v66;
 this[67]=v67;
 this[68]=v68;
 this[69]=v69;
 this[70]=v70;
 this[71]=v71;
 this[72]=v72;
 this[73]=v73;
 this[74]=v74;
 this[75]=v75;
 this[76]=v76;
 this[77]=v77;
 this[78]=v78;
}

function RandomNumber() {
hoy= new Date();
maximo=78; //La cantidad de imagenes que poseemos.
segundos=hoy.getSeconds();

if (segundos==0) {segundos=1}
	 while (segundos>maximo) {segundos=segundos-maximo}


pasa1=segundos
carta1="" + imagen[segundos]
//document.form1.imagen1.width=100
//document.form1.imagen1.height=200
document.form1.imagen1.border=1
c1=""
if((segundos==10)||(segundos>60)){
if (segundos*2>24){
carta1="r" + imagen[segundos]
document.form1.imagen1.border=1
c1="invertido"
}
}
nombres()
nombre1=nombre
c=c1
derechorevez()
intertarot1=inter1


pasa2=segundos
if(pasa2=pasa1){segundos=segundos+8;if(segundos>maximo){segundos=segundos-maximo}}
carta2="" + imagen[segundos]
//document.form1.imagen2.width=100
//document.form1.imagen2.height=200
document.form1.imagen2.border=1
c2=""
if (segundos*2>30){
carta2="r" + imagen[segundos]
document.form1.imagen2.border=1
c2="invertido"
}
nombres()
nombre2=nombre
c=c2
derechorevez()
intertarot2=inter1

pasa3=segundos
if((pasa3=pasa1)||(pasa3=pasa2)) {segundos=segundos+3;if(segundos>maximo){segundos=segundos-maximo}}
carta3="" + imagen[segundos]
//document.form1.imagen3.width=100
//document.form1.imagen3.height=200
document.form1.imagen3.border=1
c3=""
if((segundos==5)||(segundos>18)){
if (segundos*2>22){
carta3="r" + imagen[segundos]
document.form1.imagen3.border=1
c3="invertido"
}
}
nombres()
nombre3=nombre
c=c3
derechorevez()
intertarot3=inter1

pasa4=segundos
if((pasa4=pasa1)||(pasa4=pasa2)||(pasa4=pasa3)) {segundos=segundos+7;if(segundos>maximo){segundos=segundos-maximo}}
carta4="" + imagen[segundos]
//document.form1.imagen4.width=100
//document.form1.imagen4.height=200
document.form1.imagen4.border=1
c4=""
if (segundos*2<44){
carta4="r" + imagen[segundos]
document.form1.imagen4.border=1
c4="invertido"
}
nombres()
nombre4=nombre
c=c4
derechorevez()
intertarot4=inter1

pasa5=segundos
if((pasa5=pasa1)||(pasa5=pasa2)||(pasa5=pasa3)||(pasa5=pasa4)) {segundos=segundos+5;if(segundos>maximo){segundos=segundos-maximo}}
carta5="e" + imagen[segundos]
//document.form1.imagen5.width=100
//document.form1.imagen5.height=200
document.form1.imagen5.border=1
c5=""
if (segundos*2<64){
carta4="r" + imagen[segundos]
document.form1.imagen4.border=1
c4="invertido"
}
nombres()
nombre5=nombre
c=c5
derechorevez()
intertarot5=inter1



}

function nombres(){
switch(segundos){
case 1:inter="Mago"
break;
case 2:inter="Sacerdotisa"
break;
case 3:inter="Emperatriz"
break;
case 4:inter="Emperador"
break;
case 5:inter="Hierofante"
break;
case 6:inter="Indecision"
break;
case 7:inter="Carro"
break;
case 8:inter="Justicia"
break;
case 9:inter="Hermita"
break;
case 10:inter="Rueda"
break;
case 11:inter="Fuerza"
break;
case 12:inter="Apostolado"
break;
case 13:inter="Muerte"
break;
case 14:inter="Templanza"
break;
case 15:inter="Mal"
break;
case 16:inter="Fragilidad"
break;
case 17:inter="Esperanza"
break;
case 18:inter="Luna"
break;
case 19:inter="Sol"
break;
case 20:inter="Juicio"
break;
case 21:inter="Transmutacion"
break;
case 22:inter="Loco"
break;
case 23:inter="Labrador"
break;
case 24:inter="Laboriosidad"
break;
case 25:inter="Viajero"
break;
case 26:inter="Fortuna"
break;
case 27:inter="Imprevisto"
break;
case 28:inter="Desesperacion"
break;
case 29:inter="Tranquilidad"
break;
case 30:inter="Comercio"
break;
case 31:inter="Dificultades"
break;
case 32:inter="Generosidad"
break;
case 33:inter="Acuerdos"
break;
case 34:inter="Cambio"
break;
case 35:inter="Tristeza"
break;
case 36:inter="Guerra"
break;
case 37:inter="Arte"
break;
case 38:inter="Infidelidad"
break;
case 39:inter="Herencia"
break;
case 40:inter="Presentimiento"
break;
case 41:inter="Angustia"
break;
case 42:inter="Constancia"
break;
case 43:inter="Alucinacion"
break;
case 44:inter="Pensamiento"
break;
case 45:inter="Regeneracion"
break;
case 46:inter="Patrimonio"
break;
case 47:inter="Conjetura"
break;
case 48:inter="Logro"
break;
case 49:inter="Duplicidad"
break;
case 50:inter="Compenetracion"
break;
case 51:inter="Asesoramiento"
break;
case 52:inter="Prevision"
break;
case 53:inter="Venganza"
break;
case 54:inter="Estudio"
break;
case 55:inter="Arrepentimiento"
break;
case 56:inter="Busqueda"
break;
case 57:inter="Rivalidad"
break;
case 58:inter="Recapacitacion"
break;
case 59:inter="Descubrimiento"
break;
case 60:inter="Progreso"
break;
case 61:inter="Soledad"
break;
case 62:inter="Autoridad"
break;
case 63:inter="Comunion"
break;
case 64:inter="Condescendencia"
break;
case 65:inter="Aprendizaje"
break;
case 66:inter="Perplejidad"
break;
case 67:inter="Amistad"
break;
case 68:inter="Inversion"
break;
case 69:inter="Azar"
break;
case 70:inter="Ayuda"
break;
case 71:inter="Codicia"
break;
case 72:inter="Purificacion"
break;
case 73:inter="Amordeseo"
break;
case 74:inter="Ofrenda"
break;
case 75:inter="Reparto"
break;
case 76:inter="Dispensador"
break;
case 77:inter="Desconcierto"
break;
case 78:inter="Renacimiento"
break;
}
nombre=inter
}


