title: How to create Hash object/array using jquery?
body: <p>I know there is a Hash() object in the Javascript prototype framework, but is there anything in Jquery like this?</p>
  
  <p>As I would like to stick with one javascript framework, rather than mixing the Prototype Frame work and the JQuery framework and use at the same time, as I worry there will be conflict and create side-effects.</p>
  
  <p>So my question is: how to create Hash object/array using jquery?</p>
  
  <p>Here is my function:</p>
  
  <pre><code>/* prototype framework, I want to change this to jQuery! */
  var starSaves = new Hash();
  
  function myHover(id, pos)
  {
      var starStrip = $('star_strip_' + id);    
      if (starSaves.keys().indexOf(id) == -1)
      {
          var starSave = new Array();
          var imgs = starStrip.select("img")
          alert(imgs);
          for (var i = 0; i &lt; imgs.length; i++)
          {
              starSave[starSave.length] = imgs[i].src;
              if (i &lt; pos)
                  imgs[i].src = "/images/star_1.gif";
              else
                  imgs[i].src = "/images/star_0.gif";
  
          }
          starSaves.set(id, starSave);
      }
  }
  </code></pre>