I'm trying to create a div that stays fixed on top when a user scrolls down and when he scrolls back up, goes back to the original position. 

I need this exact same behaviour that 9gag offers -> <http://9gag.com/gag/293756>

Thanks!