//  FADING HEADERBILDER

$(document).ready(function() {
  $('#faded').cycle({
    fx: 'fade',
    timeout: 6000,
    speed: 'slow' 
  });  
});


$(document).ready(function() {
  $('#angebot-slider').cycle({
    fx: 'scrollLeft',
    timeout: 6000,
    speed: 'slow',
    pause: 1
  });  
});






//  SUBNAV-STEUERUNG

$(document).ready(function() {
  $("ul.sf-menu li.hotel").hover(function() {
    $(this).find("#subnav-hotel") .stop(true, true) .fadeIn("slow");
  } , function() {
    $(this).find("#subnav-hotel") .stop(true, true) .fadeOut("fast");
  });  
});

$(document).ready(function() {
  $("ul.sf-menu li.preise").hover(function() {
    $(this).find("#subnav-preise") .stop(true, true) .fadeIn("slow");
  } , function() {
    $(this).find("#subnav-preise") .stop(true, true) .fadeOut("fast");
  });  
});

$(document).ready(function() {
  $("ul.sf-menu li.umgebung").hover(function() {
    $(this).find("#subnav-umgebung") .stop(true, true) .fadeIn("slow");
  } , function() {
    $(this).find("#subnav-umgebung") .stop(true, true) .fadeOut("fast");
  });
});

//  COLORBOX-STEUERUNG

$(document).ready(function(){

      $("a[rel='bildbox']").colorbox();
      $("a[rel='bildboxfade']").colorbox({transition:"fade"});
      $("a[rel='lyteframe[Wohnung]']").colorbox({width:"800px", height:"650px", iframe:true});
      $("a[rel='example4']").colorbox({slideshow:true});
      $(".example5").colorbox();
      $(".example6").colorbox({iframe:true, innerWidth:425, innerHeight:344});
      $(".htmliframe").colorbox({width:"80%", height:"80%", iframe:true});
});


//  ACCORDION-STEUERUNG


  ddaccordion.init({
  headerclass: "block_h1", 
  contentclass: "block_p", 
  collapseprev: true, 
  defaultexpanded: [0], 
  animatedefault: false, 
  persiststate: true, 
  toggleclass: ["box-zu", "box-offen"],
  togglehtml: ["prefix", "<img src='/_extern/layout/zu.png' />", "<img src='/_extern/layout/auf.png' />"],
  animatespeed: "fast"
  })


