Use prototypejs's viewport scrolloffset to determine whether the page was scrolled or not