function date () {
	window.document.headerreservation.datefin.value = window.document.headerreservation.datedeb.value;
}
function dates () {
	window.document.reservation.datefin.value = window.document.reservation.datedeb.value;
}
function datesidebar () {
	window.document.sidebarresa.datefin.value = window.document.sidebarresa.datedeb.value;
}

function memPagination(page, num){
	
	$.ajax({ 
		url: "ajax_pagination.php", 
		type: "post",
		data: "page="+page+"&num="+num,
		error: function(){
				
			alert("Erreur de mémorisation de la pagination ..."); 
		} 
	});
}

  jQuery.fn.extend({
	  	slideLeftHide: function() {
			return this.each(function() {
		  		$(this).hide('slide', {direction: 'left'}, 500);
			});
	  	},
	  	slideLeftShow: function() {
			return this.each(function() {
		  		$(this).show('slide', {direction: 'left'}, 500);
			});
	  	}
  });
  
  $(document).ready(function() { 
        
		$("#sidebar-sticky").stickySidebar({
            timer: 400
          , easing: "easeInOutBack"
        });
  });
  
  function slideIn() {
	  
	  $('#sidebar-form').slideLeftHide();
	  $('#sidebar-show').show('slow');
  }
  
  function slideOut() {
	  
	  $('#sidebar-show').hide();
	  $('#sidebar-form').slideLeftShow();
  }
