jQuery get document scrolltop
var top = ($(window).scrollTop() || $("body").scrollTop());
Agreeable Addax
var top = ($(window).scrollTop() || $("body").scrollTop());