Faites div coller en haut de la page après avoir défilé devant une autre div?

<div id="header"></div>
<div id="sticky"></div>
<div id="section"></div>
<div id="footer"></div>

<style>
  body { margin: 0px; background-color: #e3e3e3; }
  #header { background-color: #cb5454; height: 140px; }
  #sticky { background-color: #546bcb; height: 70px; }
  #section { height: 1500px; }
  #footer { background-color: #cb5454; height: 140px; }
</style>

Voici mon code: http://jsfiddle.net/uaqh018d/

Je veux #collants pour se coller en haut de la page, après le défilement passé #en-tête. Je veux aussi qu'il caché jusqu'à ce que coincé. Et puis, bien sûr, avoir de la décoller+se cacher à nouveau après le défilement en arrière jusqu'à nº d'en-tête.

Comment puis-je y parvenir?

source d'informationauteur John