I need to find the distance between the element and the bottom of the browser window
<p>I need to find the distance between the element and the bottom of the browser window.</p>

<p>So when I select the element, and the distance between the element and the bottom of the browser window is smaller than 50px, i want to make the window scroll automatically.</p>

<p>Any Ideas?</p>

<p>Wish Jquery...</p>
