reference an array from using an object name
<p>Lets say I have a function <code>foo(bar){}</code> and the parameter <code>bar</code> accepts a jQuery object. Lets say I pass in <code>bubbleOne</code> as the parameter. </p>

<p>Additionally I have an array called <code>bubbleOneDetails[]</code> that holds a lot of information about the <code>bubbleOne</code> object.</p>

<p>How can I "reference" the array <code>bubbleOneDetails[]</code> only using my jQuery object <code>bubbleOne</code> ?</p>

<p>basically I need something like "bubbleOne"+"Details"<a href="http://jsfiddle.net/77S98/3/" rel="nofollow">1</a>;</p>

<hr>

<p><strong>EDIT:</strong></p>

<p>I have <code>function doAnimations(bubbleObject)</code></p>

<p>I pass in <code>leftBubble</code> where <code>leftBubble = $('#leftBubble')</code></p>

<p>I also have <code>leftBubblePrams = ["115px", "111px", "0px", "0px", "0.0", "37px"]</code></p>

<p>I need to be able to do something like this</p>

<pre><code>bubbleObject.animate({margin-top:'bubbleObject.Prams[0]'});
</code></pre>

<p><a href="http://jsfiddle.net/77S98/3/" rel="nofollow">Fiddle</a></p>
