var t
var t1

var k
var tr
t=0
t1=0

k=16
function init(){
for(i=0;i<81;i++){
	eval("ima"+i+"=new Image")
	eval("ima"+i+".src='afb6/aia"+i+".png'")	
}

eval("img1_1.src=ima"+t+".src")
eval("img1_8.src=ima"+t+".src")
eval("img1_10.src=ima"+t+".src")

t1=32
tr=41

start()

}

function start(){
eval("img1_1.src=ima"+(t+parseInt(Math.random()*tr))%81+".src")
eval("img1_2.src=ima"+(t1+parseInt(Math.random()*tr))%81+".src")
eval("img1_3.src=ima"+(t+parseInt(Math.random()*tr))%81+".src")
eval("img1_8.src=ima"+(t1+parseInt(Math.random()*tr))%81+".src")
eval("img1_9.src=ima"+(t+parseInt(Math.random()*tr))%81+".src")
eval("img1_10.src=ima"+(t1+parseInt(Math.random()*tr))%81+".src")

t+=1
if (t>80){
	t=0

}


t1-=1

if (t1<0){
	t1=81
}
if(tr>0){
	tr-=0.5
}
Id = window.setTimeout("start()",k)
}



a1=new Array
a1[1]=3
a1[2]=5
a1[3]=11
a1[4]=12
a1[5]=13

function f_mm1(i){
	eval("dv1.style.visibility='visible'")

}
function f_mo1(i){
	eval("dv1.style.visibility='hidden'")
}
function f_mm2(i){
	if(document.all){
		eval("img1_"+a1[i]+".style.filter='alpha(opacity=100)'")
	}
	else{
		eval("img1_"+a1[i]+".style.opacity=1")
	}
	eval("img1_"+a1[i]+".src='afb6/pia"+i+"a.png'")
}
function f_mo2(i){
	eval("img1_"+a1[i]+".src='afb6/pia"+i+".png'")
}
