storing document in a variable
<p>I just wondered if I stored document into a variable whether there would be a speed enhancement so if I had </p>

<pre><code>var doc= document;
myElement = doc.getElementById('somethingSweet');
</code></pre>

<p>I know in this example it wouldn't make that much different but my thinking is that my variable would act as a "pointer" to document and so m scripts would not need to try and refer back to document.</p>
