title: onScroll event not firing else{} function
body: <p>I'm trying to run a simple "onScroll do something" function.</p>
  
  <p>When the visitor scrolls more than 20px away from the top window position the header is supposed to shrink down in size (along with it's content).
  When the visitor scrolls back to the top (or &lt;20px) the header is supposed to go back to it's original size (auto).</p>
  
  <p>For some reason nothing I do seems to be working. The header (and the content) shrinks down fine, but the else{ } portion of the function does not fire. The header size does not change. It's like the size in the if{ } portion overrides everything else.</p>
  
  <p>I just want to make a simple fixed header bar that shrinks (minimizes) once you scroll down the page and flips back to it's original size if you go back to the top.</p>
  
  <p>I'd appreciate any help! Thanks a bunch!</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;header&gt;
      &lt;img src="http://froggyadventures.com/wp-content/uploads/galleries/post-93/full/placeholder%20-%20Copy%20(3).gif" /&gt;
  &lt;/header&gt;
  &lt;section&gt;
      &lt;p&gt;At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.&lt;/p&gt;
  &lt;/section&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code>$(window).scroll(function () {
      var topW = $(window).stop().scrollTop();
      if (topW &gt; 20) {
          $('header').animate({"height": "15%"}),
          $('header img').css({"height": "10%","width": "10%"});
      } else {
          $('header').animate("height", auto);
      }
  });
  </code></pre>
  
  <p><a href="http://jsfiddle.net/jwarddesign/NphFw/3/" rel="nofollow"><strong>Demo Fiddle</strong> — http://jsfiddle.net/jwarddesign/NphFw/3/</a></p>