animate with delay throwing error delay is not a method
<p>I want to animate a div from top to bottom 50 px , and wait 5 seconds
and bottom to top again, i am getting error saying delay is not supported</p>

<pre><code>$("#div").animate({ 
             top: "+=50px"                     
       }, 1000).delay(5000).animate({ 
           top: "-=50px" 
       },1000, function() { 
             // animation done
         });
</code></pre>

<p>any help will be appreciated </p>

<p>thanks</p>
