Why do Drupal.behaviours and document.ready behave differently?
Drupal.behaviours are similar to document.ready but Drupal make sures that on every ajax call code written in a Drupal.behaviour is executed again. While code written in document.ready is called once on page load.