function animate(id) {
element=document.getElementById(id);
start=new Date()
setTimeout(function() {
now=new Date() - start;
progress=now / 100;
result=-1*progress;
element.style.backgroundPosition=result+"mm 0mm";
setTimeout(arguments.callee,1);
},10);
}