I would like to move images in a div so the containing div displays them exactly their size
<pre><code>function mov_left() {
    if (parseInt(document.getElementById('fold').style.left, 10) == 430) {
        clearInterval(animel);
    }
    document.getElementById('fold').style.left = (parseInt(document.getElementById('fold').style.left, 10) - 10) + 'px';
}

animel = setInterval('mov_left()', 100);
</code></pre>

<p>This is the code I'm trying to use to move a <code>&lt;div&gt;</code> containing 2 images so they can display the two images one at a time. However, the image just keeps moving to the left ignoring the <code>if</code> statement in the function.</p>

<p>Help please.</p>
