$(function() {
  
  $('#footer .top').after(' <a href=\"javascript:window.print();\">Seite drucken</a>');
  $('form.nav-form').dropdownmenu();
  $('a[rel*=lightbox]').lightBox();
  
  // Suche und Newsletter
  $('html[lang=de] input#suche').blur( function() { if(this.value=='') { this.value='Suchbegriff'; } } ).focus( function () { if(this.value=='Suchbegriff') { this.value=''; } } );
  
  /* Tabs */
  $('.jstabs').accessibleTabs({
    wrapperClass: 'jstabs-content',
    currentClass: 'current',
    tabhead: 'h4',
    tabbody: '.jstabs-body',
    fx: 'fadeIn',
    fxspeed: 'normal',
    currentInfoText: 'Aktueller Tab: ',
    currentInfoPosition: 'prepend',
    currentInfoClass: 'jstabs-current-info'
  });
  
  // externe Links
  $('#main p a[href^=http] img').parent('a').addClass('imageinside');
  $('#main p a[href^=http][class!=imageinside]').prepend('<img class="jsico" src=\"/C125755A00447570/files/ico_ext.png/$file/thumb_ico_ext.png\" alt=\"\" />');
  
});
