$(function() {
  $('a.ext').prepend('<img class="jsico" src=\"images/ico_ext.gif\" alt=\"\" /> ');
  $('a[@rel*=lightbox]').lightBox();
  $('form.nav-form').dropdownmenu();

/*
  $('.hidebox').before('<a class="viewall" href="#">zusätzliche Informationen einblenden</a>').css('display','none');
  $(document).ready(function() {
    $('a.viewall').click( function() {
      $(this).next('div.hidebox').animate({ height: 'show', opacity: 'show' }, 'fast');
      $(this).remove();
      return false;
    });
  });
*/
  $('.hb-nav a').append('<span>&nbsp;einblenden</span>');
  
  $('.hidebox .hb-content').css('display','none');
  $('.hidebox h3').click( function () {
    $(this).toggleClass('hb-open');
    if ($(this).hasClass('hb-open')) { $(this).children('a').children('span').html('&nbsp;ausblenden'); $(this).next('.hb-content').animate({ height: 'show', opacity: 'show' }, 'fast'); } else { $(this).children('a').children('span').html('&nbsp;einblenden'); $(this).next('.hb-content').hide(); }
    return false;
  } );
  
  $('.faq dd').css('display','none');
  $('.faq dt').click( function () {
    $(this).toggleClass('faq-open');
    if ($(this).hasClass('faq-open')) { $(this).next('dd').animate({ height: 'show', opacity: 'show' }, 'fast'); } else { $(this).next('dd').hide('fast'); }
    return false;
  } );
  
});