add function to onscroll event, 3 states scrolling over ad