title: clearInterval(); not working
body: <p>I'm making an image scroller that automatically advances the image every few seconds (10 seconds for the sake of debugging) or when the user clicks the image. My code (shown below) works, although I'd like to "reset" the 10 second counter if a manual (click) advancement of the image is done. How can I do this? I seem to be having no luck with clearInterval.</p>
  
  <pre><code>... 
  setInterval('gallery()',10000);
  $("#gallery").click(function() {
  clearInverval();// &lt;--- not working
  gallery();
  });
  …
  </code></pre>
  
  <p>I see others defining a variable as (in my case) <code>setInterval('gallery()',10000);</code> but I couldn't get that to work either =/</p>
  
  <p>PS I have limited knowledge of languages other than C</p>