function right(){
if(!document.getElementById("ims").style.marginLeft){ marg = 0; } else {
marg = parseInt(document.getElementById("ims").style.marginLeft); }
marg -= 1;
if(parseInt(width+marg)>parseInt(document.getElementById("holder").style.width)){
document.getElementById("ims").style.marginLeft = marg; }
tout = setTimeout("right()",0);
}

function left(){
if(!document.getElementById("ims").style.marginLeft){ marg = 0; } else {
marg = parseInt(document.getElementById("ims").style.marginLeft); }
if(marg < 0){
marg += 1;
document.getElementById("ims").style.marginLeft = marg;
tout = setTimeout("left()",0);
}

}
function pause(){
clearTimeout(tout)
}
