var imgBal=new Array();
imgBal[0]="photos/bal1.png";
imgBal[1]="photos/bal2.png";
imgBal[2]="photos/bal3.png";
imgBal[3]="photos/bal4.png";
imgBal[4]="photos/bal5.png";
imgBal[5]="photos/bal6.png";
imgBal[6]="photos/bal7.png";
imgBal[7]="photos/bal8.png";
var cpta=0;

var imgAme=new Array();
imgAme[0]="photos/ame1.png";
imgAme[1]="photos/ame2.png";
imgAme[2]="photos/ame3.png";
imgAme[3]="photos/ame4.png";
var cptb=0;

var imgSys=new Array();
imgSys[0]="photos/sys1.png";
imgSys[1]="photos/sys2.png";
imgSys[2]="photos/sys3.png";
imgSys[3]="photos/sys4.png";
var cptc=0;

function changeimages()
{
	i = Math.random()*3;
	if (i<1)
	{
		document.getElementById("ima").src=imgBal[cpta];
		cpta++;
	}
	if ((i<2)&&(i>=1))
	{
		document.getElementById("imb").src=imgAme[cptb];
		cptb++;
	}
	if ((i<3)&&(i>=2))
	{
		document.getElementById("imc").src=imgSys[cptc];
		cptc++;
	}
	if(cpta>=imgBal.length) cpta=0;
	if(cptb>=imgAme.length) cptb=0;
	if(cptc>=imgSys.length) cptc=0;
	setTimeout("changeimages()",2000);
}
