jQuery: Timeout after trigger()
<p>I using a mesh of organic tabs and a image rotator. When the user clicks on one of the thumbnails, the image rotator stops auto-advancing. When the user clicks on a tab, the auto-advance starts again. However, without a timeout or pause, the auto-advance may change simultaniously when the user clicks on a tab.</p>

<p>jQuery Code:</p>

<pre><code>current=-1;
$('.years li:first a', tab).trigger('click',[true]);
current=1;
</code></pre>

<p>Current is used as a flag. When it's -1, the auto-advance function will return false. How do I add a delay before setting current to 1? I was thinking something like:</p>

<pre><code>$('.years li:first a', tab).trigger('click',[true]).setTimeout(function(){current=1},1000);
</code></pre>

<p>But this obviously doesn't work.</p>
