function imageRotate() {
	im1=document.getElementById('i0').src;
	im2=document.getElementById('i1').src;
	
	i=Math.round(Math.random()*1);
	
	do {
		do {
			j=Math.round(Math.random()*50);
		} while(img[i].length<(j+1));
		//if(i==1) alert(i+' '+j+'-');
	} while(!(img[i][j].src) && !(img[i][j].src!=im1 && img[i][j].src!=im2));
	if(document.getElementById('i'+i).filters) document.getElementById('i'+i).filters.blendTrans.Apply();
	document.getElementById('i'+i).src=img[i][j].src;
	if(document.getElementById('i'+i).filters) document.getElementById('i'+i).filters.blendTrans.Play();
	j=(Math.round(Math.random()*10)+4)*500;
	setTimeout('imageRotate()',j);
}