Ok Here's the <div> that displays the pages.
As you can see page0 is displayed as defualt. Then with javascript I change the visibility and display properties of the other pages which are both larger than the <div>s' window. When I have page1 or page2 displayed and I scroll the page in the <div> and then toggle the other page to be displayed(page1 or page2) then the scrolled position stays the same. I doesn't reset to the top of the page like I want it to.