title: Trigger Click when in Near Viewport
body: <p>I have a <em>"Load More"</em> button which is at footer.</p>
  
  <p>Now when i scroll my <code>body</code> and is <em>just above</em> <code>#loadSomeMoreCrap</code> i want to trigger <code>runthisfunction();</code>.</p>
  
  <p>Can anyone help me figure this out. I went through JScroll but didnt find my answer. Any help would be great Thanks.</p>
  
  <h2>HTML</h2>
  
  <pre><code>&lt;div id="PasteCrapHere"&gt;&lt;/div&gt;
  &lt;button id="loadSomeMoreCrap"&gt;Load More&lt;/button&gt;
  </code></pre>
  
  <p><strong>jQuery</strong></p>
  
  <pre><code>$('#loadSomeMoreCrap').click(function(){
     runthisfunction();
  });
  function runthisfunction(){
    //something done here! none your'e business
  }
  </code></pre>