var rector=2
var stopit=true
var a=0
var t=false

function init(which){
stopit=false;
shake=which
}

function rattleimage(){
if((!document.all&&!document.getElementById)||stopit) return
if(a==0){shake.style.top=rector+'px'}
else if(a==1){shake.style.left=rector+'px'}
else if(a==2){shake.style.top=-rector+'px'}
else{shake.style.left=-rector+'px'}
a =(a+1)%4
t=setTimeout("rattleimage()",50)
}

function stoprattle(which){
stopit=true
which.style.left=0;
which.style.top=0;
if(t)clearTimeout(t)
}