function creeDecalage(element, taille) {
    element.before('<div class="decalage noPrint" style="padding-bottom:' + taille + 'px"></div>');
}

$(function() {
  $("#notes > *").each(function(){
      var note = $(this);
      var topNote = note.offset().top;
      var idLien = note.find(".spip_note").attr("href");
      var topTexte = $(idLien).offset().top;
      if(topNote < topTexte) {
          creeDecalage(note, topTexte - topNote);
      }
  });
});


