Javascript Unexpected token {
<p>i get a Unexpected token {  error on this line </p>

<pre><code>var isSplash =true;
//------DocReady-------------
---&gt;    $(document).ready{(function()};
 if(location.hash.length == 0)
    location.hash="!/"+$('#content &gt; ul &gt; li').eq(2).attr('id');
</code></pre>
