Agrego que debes ademas especificar la unidad en pixeles para que funcione correctamente.
    
Código javascript
:
Ver originalfunction mover()
      {
          x=parseInt(document.getElementById('Capa').style.left);
          if (x < 990)
              document.getElementById('Capa').style.left = ( x+2 ) + "px";
          else
              document.getElementById('Capa').style.left = -800  + "px";
 
          setTimeout("mover()",2);
      }
  
Exitos