var m = new Array(0,100);
var n = new Array(0,100);
var t = new Array();
function next() {
m[0]+=20;
m[1]-=20;
n[0]+=5;
n[1]-=5;
document.getElementById("a2").style.opacity = n[1]/100;
document.getElementById("a1").style.filter="alpha(opacity="+m[1]+")";
document.getElementById("a1").style.opacity =  n[1]/100;
document.getElementById("a2").style.filter="alpha(opacity="+m[1]+")";
t[0] = setTimeout("next()",5);
}


