
$(document).ready(function() {
    
	$('.slideshowstart').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});

//Video
$('#openvideo').click(function() {
	$('#gm1tv_content').show();
	$('#video').fadeIn();
});

$('#close').click(function() {
	$('#gm1tv_content').hide();
	$('#video').fadeOut();
});

//Submenu fold
 $('ul.mainmenu li ul').css({'display':'block'}).hide();
 $('ul.mainmenu li').hover(
  function(e){
   $(this).children('ul').slideDown(100);
  },
  function(e){
   $(this).children('ul').slideUp(50);
  }
 );


//Von Aktuelles Parent Class entfernen
$('.mainmenu li:nth-child(2)').removeClass('parent');
	


//Buchungsformular Datepicker
$("#datepicker").datepicker({ dateFormat: 'dd.mm. yy' });
$("#datepicker2").datepicker({ dateFormat: 'dd.mm. yy' });


//Formular Altersangaben der Kinder anzeigen
$("#kf_kinderzahl").change(function() {
	
	var auswahl = $("#kf_kinderzahl option:selected").text();
	
	$(".childage").hide();
	$("#kf_angeboted").text(auswahl);
	if (auswahl == "4") {$(".first").show(); $(".second").show(); $(".third").show(); $(".fourth").show();} 		
	if(auswahl == "3") {$(".first").show(); $(".second").show(); $(".third").show();}
	if (auswahl == "2") {$(".first").show(); $(".second").show();}
	if (auswahl == "1") {$(".first").show();}
});


$("#angebote").change(function() {
	
	var auswahl = $("#angebote option:selected").text();

	$("#kf_angebote").val(auswahl);
});
	
});



