imageindex1=0;
imageindex2=0;
imageindex3=0;


function f_statechange() {
te1=setInterval("f_changecolor1()",5000)
te2=setInterval("f_changecolor2()",4000)
te3=setInterval("f_changecolor3()",6000)
}
function f_changecolor1() {
imCham1.filters.blendTrans.Apply();
imCham1.src = image1[imageindex1];
imageindex1=(imageindex1+1)%image1.length;
imCham1.filters.blendTrans.Play();
}


function f_changecolor2() {
imCham2.filters.blendTrans.Apply();
imCham2.src = image2[imageindex2];
imageindex2=(imageindex2+1)%image2.length;
imCham2.filters.blendTrans.Play();
}

function f_changecolor3() {
imCham3.filters.blendTrans.Apply();
imCham3.src = image3[imageindex3];
imageindex3=(imageindex3+1)%image3.length;
imCham3.filters.blendTrans.Play();
}
