Move div element to the middle of the screen in animation
<p>How do you animate a div element to the middle of the screen from the left side</p>

<p>I get this invalid obect or prperty 
i can't seem to reference the jQuery(document) object through jQuery anymore </p>

<pre><code>form.each(function () {
    jQuery(this).animate({ marginLeft: jQuery(document).width / 2 }, 750); &lt;-- this line here gives me errors
    jQuery('input[name^=Next]').click(function () {

    });
});
</code></pre>
