title: scroll up/down jquery
body: <p>I want to scroll down to a div in my page, and then scroll a bit up.</p>
  
  <p>using jquery.</p>
  
  <p>I got this onclick bind:</p>
  
  <pre><code>{
   $.scrollTo( $('#theDestDiv'), 1000);
   window.scrollTo(0, (window.pageYOffset)-100 );
  }
  </code></pre>
  
  <p>Problem is: the window.scroll fires before the page finishes the scroll to theDestDiv
  and then the pageYOffset gets the wrong value.</p>
  
  <p>I tried setTimeout and that works only if the timeout is for the time it takes to scroll down. </p>
  
  <p>Any ideas how to fix?</p>