In IE7, the popup div appears above where it should. IE's interpretation of offsetTop seems to differ from everyone else's. That'll need a fix, and while I'm doing that I can add the fix for the popup scrolling off the bottom of the page, which will also require some browser-specific code, I think.