// Function for setting dates in the DIRS form
function getTheDay(i)
	{
		var today = new Date();
		var year = today.getYear();

                if ((navigator.appName == "Microsoft Internet Explorer") && (year < 2000))
                year=1900 + year;
                
                if (navigator.appName == "Netscape")
                year=1900 + year;

		var month = today.getMonth()+1;
		var day = today.getDate()+i;

		if (day > 31)
			{
				day= day-31;
				month++;
			}

		if (day < 10)
			{
				day= "0" + day;
			}

		if (month < 10)
			{
				month= "0" + month;
			}

		var thisDate=day +"."+ month +"."+ year;
		return (thisDate);
	}

	function setDates()
	{
		document.frm_dirs.anreise.value=getTheDay(1);
		document.frm_dirs.abreise.value=getTheDay(3);
	}

	window.onload=setDates;


// FANCY.BOX

  $(document).ready(function() { 

  /* This is basic - uses default settings */ 
  $("a#single_image").fancybox(); 

  /* Using custom settings */ 

  $("a#inline").fancybox({ 
    'hideOnContentClick': true 
  }); 
  $("a.group").fancybox({ 
    'zoomSpeedIn': 300, 
    'zoomSpeedOut': 300, 
    'overlayShow': false 
  });
  
});


