http://jsfiddle.net/md7Ae/

I think it's popping back and forth between "position: fixed" and "position: static" every other scroll.

This happened before I added the else statement.

A live example is at: http://fbookhire.me/index2.php