Outline of Drupal 6 theme() function (PDF) and overview of Drupal theme files.