Mac: Apple dock bouncing effect
<p>I am looking for a bouncing effect of a bar.
If you have noticed in mac, the dock where all the applications are lined up. The minute you click on any of the application, the icon starts bouncing. I am looking for similar effect.
The bar needs to bounce 3 times and then stop for a second or two and again bounce 3 times.</p>

<p>Here is what I am doing currently which didn't help</p>

<pre><code>$(function () {
function bounceDiv(){
    $("#six").effect("bounce", { times:3, distance:20 }, 400);
}
setInterval(bounceDiv,1000);
});
</code></pre>

<p>Thanx in Advance.</p>
