Well, I have an image which animates by moving to the left by 1000px. Once it stops, this image is replaced to another image. My code:

```
function image1() {
    $('#photo').animate({left: '1000px'}, 40000, function() {
        $('#photo').attr('src', 'image2.jpg');
       setTimeout(image1, "2000")
    });
}

```

The image doe move, but when it stops, it does not change.. :(