toggle function happening on second click
<pre><code>function toggleDiv()
    {
        $('#myDiv').toggle(function()
        {
            $('.pnlMyarea').slideDown();
            $('#separator').hide();
            $('#manualInsert').css('margin-top', '15px');
        },
        function()
        {
            $('.pnlMyarea').slideUp();
            $('#separator').show();
            $('#manualInsert').css('margin-top', '42px');
        });
    }
</code></pre>

<p>i am using this function to toggle my panel but this is happening on the second click not on the first what is the error.</p>
