/* Author: 

*/
// initialise plugins

$(document).ready(function() {
  jQuery(function(){
  	jQuery('ul.sf-menu').superfish();
  });
  
  $("a.bilderleiste").fancybox({
    'transitionIn'  : 'elastic',
    'transitionOut' : 'elastic',
    'speedIn'   : 500, 
    'speedOut'    : 300, 
    'overlayShow' : true
  });

  $("a.fancybox-image").fancybox({
    'transitionIn'  : 'elastic',
    'transitionOut' : 'elastic',
    'speedIn'   : 500, 
    'speedOut'    : 300, 
    'overlayShow' : true
  });

  $('.Formhidden').hide();

  $('#toggleForm').click(function () {
    $('.Formhidden').slideToggle('slow');
  });

  $("p").addClass("hyphenate");
  Hyphenator.run();
  
  $('a.back').click(function(){
    if(document.referrer.indexOf(window.location.hostname) != -1){
      parent.history.back();
      return false;
    }
  });

// Bilderanimation
  $('#Impressionen').cycle({
      timeout:       4000,  // milliseconds between slide transitions (0 to disable auto advance)
      speed:         4000,  // speed of the transition (any valid fx speed value)
      delay:         -5000,     // additional delay (in ms) for first transition (hint: can be negative)
      fx:           'fade',
      easing:       'easeInOutQuart'
  });


  
});


























