[jQuery] smartposition - a scrolling detection problem.
I'm using some code that I found in the K2 theme for WordPress.
function smartPosition(obj) {
// Detect if content is being scroll offscreen.
if ( (document.documentElement.scrollTop || document.body.scrollTop)