A cross-browser JS function to get the viewport's scroll top value (http://stackoverflow.com/questions/871399/cross-browser-method-for-detecting-the-scrolltop-of-the-browser-window)