$(document).ready(function(){
    jQuery.fx.off = false;
    
    /* slideshow */
    $('.cycles').cycle({fx: 'fade'});

    /* show information on click */
    $("#info-trigger").click(function(event){
        $("#reservation-info").toggle("slow");
        event.preventDefault();
    });
	$("#form-reservation-time").focus(function(event){
        $("#reservation-info").toggle("slow");
        event.preventDefault();
    });
    /* hide information on click */
    $("#reservation-info").click(function(event){$(this).toggle("slow")});
    
    /* sroll to reservation */
    $("#reservation-trigger").click(function(event){
        $("#footer, #footer-container").css({height: "531px"});
    });
	
	/* carousel */
	$("#carousel").infiniteCarousel({
		transitionSpeed: 2000,
		displayTime: 4000,
		imgWidth: 128,
		imgHeight: 122
	});
                        
    /* bind date picker */
    $('.date').datepick();
    
    /* init smoothAnchors */
    $.smoothAnchors(1000, "easeInOut", false);
    
    /* inputfill */
    $(".inputfill").focus(function(){
        if ($(this).val() == $(this).attr("alt")) $(this).val("");
    }).blur(function(){
        if ($(this).val() == '') $(this).val($(this).attr("alt"));
    });
    
    /* shadowbox */
    Shadowbox.init();
    
    /* noSpam */
    noSpam();
});
