


$(document).ready(function() {
	$("#commentForm").validate();
});

$(function() {
	$('.csc-textpic-image div a').lightBox();
	$('.lightbox').lightBox();
	
});

$(document).ready(function() {
$("#next2").click(function() {
		$("#zelle32 div span").fadeOut("slow");
		$("#zelle32 div span").fadeIn("slow");
		
		$("#zelle42 div span").fadeOut("slow");
		$("#zelle42 div span").fadeIn("slow");
		
		$("#zelle52 div span").fadeOut("slow");
		$("#zelle52 div span").fadeIn("slow")
});

$("#back2").click(function() {
		$("#zelle32 div span").fadeOut("slow");
		$("#zelle32 div span").fadeIn("slow");
		
		$("#zelle42 div span").fadeOut("slow");
		$("#zelle42 div span").fadeIn("slow");
		
		$("#zelle52 div span").fadeOut("slow");
		$("#zelle52 div span").fadeIn("slow")
});

$("#next1").click(function() {
		$("#zelle31 div span").fadeOut("slow");
		$("#zelle31 div span").fadeIn("slow");
		
		$("#zelle41 div span").fadeOut("slow");
		$("#zelle41 div span").fadeIn("slow");
		
		$("#zelle51 div span").fadeOut("slow");
		$("#zelle51 div span").fadeIn("slow")
});

$("#back1").click(function() {
		$("#zelle31 div span").fadeOut("slow");
		$("#zelle31 div span").fadeIn("slow");
		
		$("#zelle41 div span").fadeOut("slow");
		$("#zelle41 div span").fadeIn("slow");
		
		$("#zelle51 div span").fadeOut("slow");
		$("#zelle51 div span").fadeIn("slow")
});





$('.belegtertag6, .belegtertag6stop, .belegtertag6start').qtip(
   {
      content: {
         title: {
            text: 'Auf Anfrage!',
            button: 'close'
         },
         text: 'Liebe G&auml;ste, <br>' +
         'in der gew&uuml;nschten Zeit haben wir wenig zur Auswahl, sie k&ouml;nnen vielleicht noch etwas <a href="http://www.kenners-landlust.de/preise/online-buchen.html">online buchen</a>, eine <a href="http://www.kenners-landlust.de/pauschalen/unverbindliche-anfrage.html">Anfrage</a> senden oder uns anrufen unter +49 5855 - 979300. Wir haben auch Zimmer, die nicht online buchbar sind, da diese nur in kleinen Mengen verf&uuml;gbar sind.' +
         'Herzliche Gr&uuml;&szlig;e Familie Kenner'
      },
      position: {
         target: $(document.body), // Position it via the document body...
         corner: 'center' // ...at the center of the viewport
      },
      show: {
         when: 'click', // Show it on click
         solo: true // And hide all other tooltips
      },
      hide: false,
      style: {
         width: { max: 350 },
         padding: '14px',
         border: {
            width: 9,
            radius: 9,
            color: '#666666'
         },
         name: 'light'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the modal "blanket" using the defined show speed
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the modal "blanket" using the defined hide speed
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });
   
   

$('.belegtertag1, .belegtertag1stop, .belegtertag1start').qtip(
   {
      content: {
         title: {
            text: 'Freie und belegte Zeiten!',
            button: 'close'
         },
         text: 'Liebe G&auml;ste, <br>'+
         'in der gew&uuml;nschten Zeit haben wir vieles zur Auswahl, sie k&ouml;nnen <a href="http://www.kenners-landlust.de/preise/online-buchen.html">hier online buchen</a>, hier eine <a href="http://www.kenners-landlust.de/pauschalen/unverbindliche-anfrage.html">Anfrage senden</a> oder uns anrufen unter +49 5855 - 979300.<br>' +
         'Herzliche Gr&uuml;&szlig;e Familie Kenner'
      },
      position: {
         target: $(document.body), // Position it via the document body...
         corner: 'center' // ...at the center of the viewport
      },
      show: {
         when: 'click', // Show it on click
         solo: true // And hide all other tooltips
      },
      hide: false,
      style: {
         width: { max: 350 },
         padding: '14px',
         border: {
            width: 9,
            radius: 9,
            color: '#666666'
         },
         name: 'light'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the modal "blanket" using the defined show speed
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the modal "blanket" using the defined hide speed
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });
   
   

$('.belegtertag4, .belegtertag4stop, .belegtertag4start').qtip(
   {
      content: {
         title: {
            text: 'Belegt!',
            button: 'close'
         },
         text: 'Liebe G&auml;ste, <br>' +
         'in der gew&uuml;nschten Zeit sind wir leider ausgebucht. Vielleicht gef&auml;llt Ihnen ja auch ein anderer Zeitraum ... Auch Zimmer, die nicht online buchbar sind, sind hier ausgebucht.<br>'+
         'Herzliche Gr&uuml;&szlig;e Familie Kenner'
      },
      position: {
         target: $(document.body), // Position it via the document body...
         corner: 'center' // ...at the center of the viewport
      },
      show: {
         when: 'click', // Show it on click
         solo: true // And hide all other tooltips
      },
      hide: false,
      style: {
         width: { max: 350 },
         padding: '14px',
         border: {
            width: 9,
            radius: 9,
            color: '#666666'
         },
         name: 'light'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the modal "blanket" using the defined show speed
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the modal "blanket" using the defined hide speed
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });





   // Create the modal backdrop on document load so all modal tooltips can use it
   $('<div id="qtip-blanket">')
      .css({
         position: 'absolute',
         top: $(document).scrollTop(), // Use document scrollTop so it's on-screen even if the window is scrolled
         left: 0,
         height: $(document).height(), // Span the full document height...
         width: '100%', // ...and full width

         opacity: 0.7, // Make it slightly transparent
         backgroundColor: 'black',
         zIndex: 5000  // Make sure the zIndex is below 6000 to keep it below tooltips!
      })
      .appendTo(document.body) // Append to the document body
      .hide(); // Hide it initially




	
				
$("#start").datepicker(
	{ 
		minDate: new Date(),
		numberOfMonths: 2,showAnim: 'slideDown',
        speed: 'fast',
        onSelect: function(date) {  
		             $('#stop').val(date);  
		}  
	});
	
    $("#stop").datepicker(
    {
    	numberOfMonths: 2,
    	showAnim: 'slideDown',
        speed: 'fast',
        beforeShow: function (input) { 
        return {
          minDate: $('#start').datepicker('getDate') ? new Date($('#start').datepicker('getDate')) : null
        }
      }
    });

});
