function rotaYX(){
isnYX = new Array()
alYX = new Array()
icoYX= new String();

imagYX= new String();
imgYX= new String();
imag2YX= new String();
alttYX= new String();
iiYX=10;
mmYX=0;

YXnomefile="enomefile";
YXrig=erig;
YXcol=ecol;
YXtesto="etesto";
YXicon="eicon";
YXimg="eimg";
YXlink="elink";
YXalt="ealt";

for (i=YXrig; i>0; i--){
				for (n=1; n<YXcol+1; n++){
					mmYX++;
					imagYX=eval(YXimg+i+"_"+n);
					if (imagYX!=""){
						imgYX="aggiorna/"+imagYX;
						imag2YX="'"+imgYX+"','shipYX'"
						isnYX[mmYX]=new Image();
						icoYX="aggiorna/"+eval(YXicon+i+"_"+n);
						isnYX[mmYX].src=icoYX;
						alttYX=eval(YXalt+i+"_"+n);
						alYX[mmYX]=alttYX;
						} 
					else {mmYX--;}
					}
			}
randomYX();
}

function randomYX(){
mmYX=Math.round(Math.random()*100)
if (mmYX>isnYX.length-1){randomYX();}
if (mmYX==0){randomYX(); }
}


function rotatYX(){
document.getElementById("texYX").innerHTML=alYX[mmYX];
document.shipYX.src=isnYX[mmYX].src;
wh=document.body.clientWidth*0.15;
document.shipYX.width=wh;
dYX="alpha(opacity="+iiYX+");"
shipYX.style.filter=dYX;

 if (iiYX>=100){	   
 			iiYX=10;
			randomYX();
			setTimeout("rotatYX()",2000);
			}
else	{ 	  
			iiYX=iiYX+10;
			setTimeout("rotatYX()",100);
		}
}


	document.write('<table border="0" ><tr><td align="center"><table border="1" ><tr><td><img border="1" src="" name="shipYX" ></td></tr></table>')
	document.write('<br><font  id="texYX" class="link"></font></td></tr></table>');
	rotaYX();
	rotatYX();

