title: Jquery fade in / out looping more than once
body: <p>I've been using jquery to do some image swapping and fading.</p>
  
  <p>I have a div, with and id of cup-builder-error</p>
  
  <p>I use jquery to load images into divs, then on error fade in and out the error div</p>
  
  <pre><code>$("#imgShell").attr("src","products/components/" + idArray[2] + ".png").error(
                                          function(){
                                              $("#cup-builder-error").fadeIn('fast');                                             
                                              $("#cup-builder-error").fadeOut('slow');
                                          });
  </code></pre>
  
  <p>that code is surrounded by <code>$("a").click(
            function(event){</code></p>
  
  <p>What happens is the fade in / out routine loops the number of time that the error happens.  </p>
  
  <p>What did I do wrong? </p>
  
  <p>Thanks for the help!</p>