title: jQuery changing css on navigation when div # scrolls into view
body: <p>I'm looking to recreate the effect used on this site: <a href="http://www.brizk.com/" rel="noreferrer">http://www.brizk.com/</a></p>
  
  <p>The site uses one large page that scrolls down. As you scroll down and pass different sections the menu navigation on the left changes css class to "current" as the corresponding div comes into view.</p>
  
  <p>I presume this can be done with jQuery using $(window).height();</p>
  
  <p>I'm fairly new to jQuery and what I want to write is something like this (in laymans terms):</p>
  
  <ul>
  <li>Get height of browser window
  – if div#content1 is 100px from top and/or 200px from bottom change menu a#link1 to '.current'
  – else remove .current from all menu a links</li>
  </ul>
  
  <p>... and repeat for 4 different content divs.</p>
  
  <p>Can anyone point me in the right direction..?
  Thanks.</p>