javascript, jQuery: how to save values instead of the references
<p>I'm using the following lines to store the location of an object.</p>

<pre><code>var lightboxTop = $('#lightbox').css('top');
var lightboxLeft = $('#lightbox').css('left');
</code></pre>

<p>I'm successively moving this object in my element, and I want to restore it previous position with the stored variables.</p>

<p>But, I'm afraid javascript is saving the values by reference so I lose the initial positions. Am I correct ? How can I solve this ?</p>

<p>thanks</p>
