jquery .bind() and/or .ready() not working
<p>So I have this code:</p>

<pre><code>var bindAll;
bindAll = function ()
{
    $('#somediv').bind('mouseover', function(){do something});
};

var init;
init = function ()
{
    bindAll();
    ...
};

$(document).ready(init());
</code></pre>

<p>and it does not work. But if I put the bind on a timer by replacing:</p>

<pre><code>bindAll();
</code></pre>

<p>with </p>

<pre><code>tt = setTimeout('bindAll()', 1000);
</code></pre>

<p>It suddenly works perfectly. What!??</p>
