function initDocument (h4update) {
   
  /* Alle Checkboxen aktivieren / deaktivieren in #formblock_02 */
  if ($('#formblock_02 > li > input').size() > 0) {
    CheckAll.init({
        appendLinkTo:'#search_in',
        selector:'#formblock_02 > li > input'
    });
  }
  
  /* Alle Checkboxen aktivieren / deaktivieren in table.choice */
  else if ($('table.choice input[@type=checkbox]').size() > 0) {
    CheckAll.init({selector:'table.choice input[@type=checkbox]'});
  }
  
  /* Überschriften mit .box01 ein- / ausblenden */
  if ($('h4').size() > 0) {
      Headlines.init(h4update);
  }
  if ($('h5').size() > 0) {
      Headlines.initH5();
  }
  
  initNavigation ();
  
  
//  var shitUrls = new Array("eins", "zwei", "drei", "vier", "fünf", "sechs");
  /* Paging-Funktion bei Einzeltreffern (#col3_content) */
  if ($('table.searchItem').size() > 0) {
    ItemPaging.init({length:shitUrls.length, url:shitUrls, activePos:activePos, startPos:startPos, prevList:prevList, nextList:nextList});
    //ItemPaging.init(a);
  }
  
  /* Lightbox mit Tastendruck schließen (ESC) */
  if ('function' == typeof hideLightbox) {
    $(document).keydown(function(event) {
        if (27 == event.keyCode) {
            hideLightbox(); /* close lightbox by ESC */
        }
    });
  }
  
  /* Selectboxen automatisch auslösen */
  if($('form.navForm').size()){
    $('form.navForm').dropdownmenu();
  }
};

function initNavigation () {
  /* Linke Spalte ein- / ausblenden (#col1) */
  if ($('#col1').size() > 0) {
    LeftNavigation.init();
  }
};