jQuery provides .position() and .offset() that give you the position of the element. Position gives you in relation to its offset parent, and Offset gives it to you relative to the entire page.
.scrollTop() gives you how far the entire page has been scrolled down, in effect the scrollbar itself, which in most simple tests will be zero and only becomes larger when there is content below screen.