    // JFlow Slider
            $(document).ready(function(){
                $("#slider").jFlow({
                    slides: "#slider_img",
                    controller: ".jFlowControl", // must be class, use . sign
                    slideWrapper : "#jFlowSlide", // must be id, use # sign
                    selectedWrapper: "jFlowSelected",  // just pure text, no sign
					width: "588px", 
                    height: "245px",
                    easing: "swing",
                    duration: 700,
                    prev: ".jFlowPrev", // must be class, use . sign
                    next: ".jFlowNext" // must be class, use . sign
                });
            });


jQuery.fn.tabs = function() {
    var elt = $(this[0]); // It's your element
	elt.children('div').hide();
	elt.children('div:first').show();
	
	elt.children('ul:first').children('li:first').addClass('active');
	elt.children('ul:first').children('li').children('a').click(function(){ 
		elt.children('ul').children('li').removeClass('active');
		$(this).parent().addClass('active'); 
		var currentTab = $(this).attr('href'); 
		elt.children('div').hide();
		$(currentTab).show();
		return false;
	});
};
    // VALIDATION CONTACT FORM //
    $(window).load(function() {
        $("#tabs").tabs();
        $("#pano-restau").tabs();

    });

	// Viewer Portfolio
	// This code allow to show the image in full size
	$(document).ready(function(){
		$(".viewer").click(function() {
			$('.image').toggleClass('imageshow');
			$('.viewer span').toggleClass("close");
			return false;
		});
	});
			

    // VALIDATION CONTACT FORM //
    $(document).ready(function() {
        $("#contactForm").validate(		{
			messages: {
				name: "Entrer votre nom",
				phone: "Entrer votre téléphone",
				message: "Rien à dire ?",
				check: "Résultat de l'opération ?", 
				email: {
					required: "Entrer un email valide",
					minlength: "Entrer un email valide"
				}
			},
		});
        $("#reply-form").validate();
        $("#hotel-form").validate(		{
			messages: {
				name: "Entrer votre nom",
				phone: "Entrer votre téléphone",
				debutsejour: "Entrer la date de début",
				finsejour: "Entrer la date de fin",
				check: "Résultat de l'opération ?", 
				email: {
					required: "Entrer un email valide",
					minlength: "Entrer un email valide"
				}
			},
		});
        $("#location-form").validate(		{
			messages: {
				name: "Entrer votre nom",
				phone: "Entrer votre téléphone",
				debutsejour: "Entrer la date de début",
				finsejour: "Entrer la date de fin",
				appartement: "Choisir un appartement",
				check: "Résultat de l'opération ?", 
				email: {
					required: "Entrer un email valide",
					minlength: "Entrer un email valide"
				}
			},
		});
        $("#restaurant-form").validate(		{
			messages: {
				name: "Entrer votre nom",
				phone: "Entrer votre téléphone",
				observations: "Merci de préciser (jours, nb convives, midi/soir)", 
				check: "Résultat de l'opération ?", 
				email: {
					required: "Entrer un email valide",
					minlength: "Entrer un email valide"
				}
			},
		});

    });	
$(function()
{
	$('.date-pick').datePicker()
	$('#debutsejour').bind(
		'dpClosed',
		function(e, selectedDates)
		{
			var d = selectedDates[0];
			if (d) {
				d = new Date(d);
				$('#finsejour').dpSetStartDate(d.addDays(1).asString());
			}
		}
	);
	$('#finsejour').bind(
		'dpClosed',
		function(e, selectedDates)
		{
			var d = selectedDates[0];
			if (d) {
				d = new Date(d);
				$('#debutsejour').dpSetEndDate(d.addDays(-1).asString());
			}
		}
	);
});


        $(document).ready(function() { 
			$('#map_canvas_hotel').googleMaps({
				latitude: 	45.700000,
				longitude: 6.503200,
				depth: 12,

				 markers: {
					  latitude: 	45.380561,
					  longitude: 6.503257,
				  }
			  }); 
		  }); 

		$(window).load(function() {
			$('.slider_content').nivoSlider({
				effect:'fold',
				slices:15,
				animSpeed:500,
				pauseTime:3000,
				startSlide:0, //Set starting Slide (0 index)
				directionNav:false, //Next and Prev
				directionNavHide:false, //Only show on hover
				controlNav:false, //1,2,3...
				controlNavThumbs:false, //Use thumbnails for Control Nav
				controlNavThumbsSearch: '.jpg', //Replace this with...
				controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
				keyboardNav:true, //Use left and right arrows
				pauseOnHover:true, //Stop animation while hovering
				manualAdvance:false, //Force manual transitions
				captionOpacity:0.8, //Universal caption opacity
				beforeChange: function(){},
				afterChange: function(){},
				slideshowEnd: function(){} //Triggers after all slides have been shown
			});
			$('.#slider-logo').nivoSlider({
				effect:'fold',
				slices:15,
				animSpeed:500,
				pauseTime:5000,
				startSlide:0, //Set starting Slide (0 index)
				directionNav:false, //Next and Prev
				directionNavHide:false, //Only show on hover
				controlNav:false, //1,2,3...
				controlNavThumbs:false, //Use thumbnails for Control Nav
				controlNavThumbsSearch: '.jpg', //Replace this with...
				controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
				keyboardNav:true, //Use left and right arrows
				pauseOnHover:true, //Stop animation while hovering
				manualAdvance:false, //Force manual transitions
				captionOpacity:0.8, //Universal caption opacity
				beforeChange: function(){},
				afterChange: function(){},
				slideshowEnd: function(){} //Triggers after all slides have been shown
			});
		});
