pole=new Array("c","b","a","9","8","7","6","5","4","3");
pole2=new Array("3","4","5","6","7","8","9","a","b","c");

e=0;f=0;g=0;h=0;i=0;j=0;k=0;l=0;m=0;n=0;o=0;p=0;q=0;r=0;s=0;t=0;u=0;v=0;w=0;x=0;y=0;z=0;je=2;gg=0;hh=0;aa=0;bb=0;tt=0;rr=0;ss=0;vv=0;

function pozadi2112(to2112) {
	tdvanact.style.color='white';
	rr=rr+1;
	ss=pole[rr];
	barva2112=ss+ss+ss+ss+ss+ss;
	to2112.style.backgroundColor=barva2112;
	co2112=to2112;
	fce2112=window.setTimeout("pozadi2112(co2112)",15);
	if (rr==9) {rr=0;window.clearTimeout(fce2112);}
}

function pozadi2122(to2122) {
	tdvanact.style.color='black';
	tt=tt+1;
	uu=pole2[tt];
	barva2122=uu+uu+uu+uu+uu+uu;
	to2122.style.backgroundColor=barva2122;
	co2122=to2122;
	fce2122=window.setTimeout("pozadi2122(co2122)",15);
	if (tt==9) {tt=0;window.clearTimeout(fce2122);}

}



function pozadi211(to211) {
	tjedenact.style.color='white';
	gg=gg+1;
	aa=pole[gg];
	barva211=aa+aa+aa+aa+aa+aa;
	to211.style.backgroundColor=barva211;
	co211=to211;
	fce211=window.setTimeout("pozadi211(co211)",15);
	if (gg==9) {gg=0;window.clearTimeout(fce211);}
}

function pozadi212(to212) {
	tjedenact.style.color='black';
	hh=hh+1;
	bb=pole2[hh];
	barva212=bb+bb+bb+bb+bb+bb;
	to212.style.backgroundColor=barva212;
	co212=to212;
	fce212=window.setTimeout("pozadi212(co212)",15);
	if (hh==9) {hh=0;window.clearTimeout(fce212);}

}

function pozadi11(to11) {
	tjedna.style.color='white';
	g=g+1;
	a=pole[g];
	barva11=a+a+a+a+a+a;
	to11.style.backgroundColor=barva11;
	co11=to11;
	fce11=window.setTimeout("pozadi11(co11)",15);
	if (g==9) {g=0;window.clearTimeout(fce11);}
}

function pozadi12(to12) {
	tjedna.style.color='black';
	h=h+1;
	b=pole2[h];
	barva12=b+b+b+b+b+b;
	to12.style.backgroundColor=barva12;
	co12=to12;
	fce12=window.setTimeout("pozadi12(co12)",15);
	if (h==9) {h=0;window.clearTimeout(fce12);}

}

function pozadi21(to21) {
	tdva.style.color='white';
	e=e+1;
	a=pole[e];
	barva21=a+a+a+a+a+a;
	to21.style.backgroundColor=barva21;
	co21=to21;
	fce21=window.setTimeout("pozadi21(co21)",15);
	if (e==9) {e=0;window.clearTimeout(fce21)};
}

function pozadi22(to22) {
	tdva.style.color='black';
	f=f+1;
	b=pole2[f];
	barva22=b+b+b+b+b+b;
	to22.style.backgroundColor=barva22;
	co22=to22;
	fce22=window.setTimeout("pozadi22(co22)",15);
	if (f==9) {f=0;window.clearTimeout(fce22)};

}

function pozadi31(to31) {
	ttri.style.color='white';
	i=i+1;
	a=pole[i];
	barva31=a+a+a+a+a+a;
	to31.style.backgroundColor=barva31;
	co31=to31;
	fce31=window.setTimeout("pozadi31(co31)",15);
	if (i==9) {i=0;window.clearTimeout(fce31)};
}

function pozadi32(to32) {
	ttri.style.color='black';
	j=j+1;
	b=pole2[j];
	barva32=b+b+b+b+b+b;
	to32.style.backgroundColor=barva32;
	co32=to32;
	fce32=window.setTimeout("pozadi32(co32)",15);
	if (j==9) {j=0;window.clearTimeout(fce32)};

}

function pozadi41(to41) {
	tctyri.style.color='white';
	k=k+1;
	a=pole[k];
	barva41=a+a+a+a+a+a;
	to41.style.backgroundColor=barva41;
	co41=to41;
	fce41=window.setTimeout("pozadi41(co41)",15);
	if (k==9) {k=0;window.clearTimeout(fce41)};
}

function pozadi42(to42) {
	tctyri.style.color='black';
	l=l+1;
	b=pole2[l];
	barva42=b+b+b+b+b+b;
	to42.style.backgroundColor=barva42;
	co42=to42;
	fce42=window.setTimeout("pozadi42(co42)",15);
	if (l==9) {l=0;window.clearTimeout(fce42)};

}

function pozadi51(to51) {
	tpet.style.color='white';
	m=m+1;
	a=pole[m];
	barva51=a+a+a+a+a+a;
	to51.style.backgroundColor=barva51;
	co51=to51;
	fce51=window.setTimeout("pozadi51(co51)",15);
	if (m==9) {m=0;window.clearTimeout(fce51)};
}

function pozadi52(to52) {
	tpet.style.color='black';
	n=n+1;
	b=pole2[n];
	barva52=b+b+b+b+b+b;
	to52.style.backgroundColor=barva52;
	co52=to52;
	fce52=window.setTimeout("pozadi52(co52)",15);
	if (n==9) {n=0;window.clearTimeout(fce52)};

}

function pozadi61(to61) {
	tsest.style.color='white';
	o=o+1;
	a=pole[o];
	barva61=a+a+a+a+a+a;
	to61.style.backgroundColor=barva61;
	co61=to61;
	fce61=window.setTimeout("pozadi61(co61)",15);
	if (o==9) {o=0;window.clearTimeout(fce61)};
}

function pozadi62(to62) {
	tsest.style.color='black';
	p=p+1;
	b=pole2[p];
	barva62=b+b+b+b+b+b;
	to62.style.backgroundColor=barva62;
	co62=to62;
	fce62=window.setTimeout("pozadi62(co62)",15);
	if (p==9) {p=0;window.clearTimeout(fce62)};

}

function pozadi71(to71) {
	tsedm.style.color='white';
	q=q+1;
	a=pole[q];
	barva71=a+a+a+a+a+a;
	to71.style.backgroundColor=barva71;
	co71=to71;
	fce71=window.setTimeout("pozadi71(co71)",15);
	if (q==9) {q=0;window.clearTimeout(fce71)};
}

function pozadi72(to72) {
	tsedm.style.color='black';
	r=r+1;
	b=pole2[r];
	barva72=b+b+b+b+b+b;
	to72.style.backgroundColor=barva72;
	co72=to72;
	fce72=window.setTimeout("pozadi72(co72)",15);
	if (r==9) {r=0;window.clearTimeout(fce72)};

}

function pozadi81(to81) {
	tosm.style.color='white';
	s=s+1;
	a=pole[s];
	barva81=a+a+a+a+a+a;
	to81.style.backgroundColor=barva81;
	co81=to81;
	fce81=window.setTimeout("pozadi81(co81)",15);
	if (s==9) {s=0;window.clearTimeout(fce81)};
}

function pozadi82(to82) {
	tosm.style.color='black';
	t=t+1;
	b=pole2[t];
	barva82=b+b+b+b+b+b;
	to82.style.backgroundColor=barva82;
	co82=to82;
	fce82=window.setTimeout("pozadi82(co82)",15);
	if (t==9) {t=0;window.clearTimeout(fce82)};

}

function pozadi91(to91) {
	tdevet.style.color='white';
	u=u+1;
	a=pole[u];
	barva91=a+a+a+a+a+a;
	to91.style.backgroundColor=barva91;
	co91=to91;
	fce91=window.setTimeout("pozadi91(co91)",15);
	if (u==9) {u=0;window.clearTimeout(fce91)};
}

function pozadi92(to92) {
	tdevet.style.color='black';
	w=w+1;
	b=pole2[w];
	barva92=b+b+b+b+b+b;
	to92.style.backgroundColor=barva92;
	co92=to92;
	fce92=window.setTimeout("pozadi92(co92)",15);
	if (w==9) {w=0;window.clearTimeout(fce92)};

}

function pozadi01(to01) {
	tdeset.style.color='white';
	x=x+1;
	a=pole[x];
	barva01=a+a+a+a+a+a;
	to01.style.backgroundColor=barva01;
	co01=to01;
	fce01=window.setTimeout("pozadi01(co01)",15);
	if (x==9) {x=0;window.clearTimeout(fce01)};
}

function pozadi02(to02) {
	tdeset.style.color='black';
	y=y+1;
	b=pole2[y];
	barva02=b+b+b+b+b+b;
	to02.style.backgroundColor=barva02;
	co02=to02;
	fce02=window.setTimeout("pozadi02(co02)",15);
	if (y==9) {y=0;window.clearTimeout(fce02)};

}




