I want Pause and Resume for this jquery animation
<pre><code>$(document).ready(function() {
    setTimeout("wave()", 0);
});

function wave(){
$("#wave1")
    .animate({left:"100px", top:"400px" },2000) 
    .animate({left:"200px", top:"0px" },2000) 
    .animate({left:"300px", top:"400px" },2000) 
    .animate({left:"400px", top:"0px" },2000) 
    .animate({left:"500px", top:"400px" },2000) 
    .animate({left:"600px", top:"0px" },2000) 
    .animate({left:"500px", top:"400px" },2000) 
    .animate({left:"400px", top:"0px" },2000) 
    setTimeout("wave()")
} 
</code></pre>

<p>Is there a way I could somehow Pause/Resume my animation in jQuery?</p>
