I need help with the $(this) context in jQuery
<p>I need some help in this code block:</p>

<pre><code>options.imgs.click(function() {
      var allImgs = $("#big img");
      $("#big img").each(function(n) {
       this.index = n;
      })
      animateImage(allImgs);
     })

    };

    function animateImage(images) {
     for(var i = 0; i &lt; images.length; i++) {
      if (images[i].index == 0) {
       alert($(this).index)
      }
     }
    }
</code></pre>

<p>My problem is: </p>

<pre><code>$(this).effect('scale', { percent: 200 }, 1000)
</code></pre>

<p>Isn't working. I want that statement to refer to the image with the index of 0, and scale it 200%. But <code>$(this)</code> isn't referring to the first image at all.</p>
