Js javascript code problem
<p>Hi i have a problem with my js code. So, i include in 'head' in my site, script</p>

<pre><code>var Engine;

jQuery
(
    function($)
    {
        Engine = 
        {
            utils : 
            {   
                site : function(id)
                {
                    $('#content').html('&lt;strong&gt;Please wait..&lt;/strong&gt;').load('engine.php',{'site':id},function()
                    {
                        os = {adres:'drugi'};
                        history.pushState(os,'s',ts);
                    }
                    );                    
                },

                topnav : function()
                {
                    $('div li').bind('click',function()
                    {
                        Engine.utils.site($(this).attr('rel'));
                        unbind('click',false);
                    }
                    );
                }
            }
        };
        Engine.utils.topnav();
    }
);
</code></pre>

<p>Now i want call included script in index.php</p>

<pre><code>&lt;script language="JavaScript" type="text/javascript"&gt;
    Engine.utils.site(1);
&lt;/script&gt;
</code></pre>

<p>And here is a problem above code doesn't works.</p>

<p>But if i click on any 'li' element Engine.utils.site work's correctly.</p>

<p>Please help me i try fix it a few days.
Sory for my bad english</p>
