

function ajax_refresh_dispo(num){
	jQuery.ajax({
      url: 'ajax.asp',
      type: 'GET',
	  data: 'action=show-hotel&htlnum=' + num,
      success: function(html){
        $("#hotel_fiche_dispo").html(html);
		js_show_hotel();
		
	  }
    });
	

	return false;
}

function ajax_refresh_date(form, num, lg){
	
	jQuery.ajax({
	  url: 'ajax.asp',
      type: 'GET',
	  data: 'action=show-hotel&' + $(form).serialize() + '&lg='+lg,
      success: function(html){
		$("#hotel_fiche_dispo").html(html);
		js_show_hotel();
	  }
    });
	return false;
}

function ajax_refresh_search(form, lg){
	$('#src_ajax').html('');
	$("#loading").show();


	jQuery.ajax({
      url: 'ajax.asp',
      type: 'GET',
	  data: 'action=search-test&'+ $(form).serialize() + '&lg='+lg,

      success: function(data){
			$('#src_ajax').html(data);
			$("#loading").hide();
			$('#src_ajax').show();
	        
	  }
    });
	
	
	return false;
}

function js_search(critsup){
	$('#search_more_lien').click(function(){
		$('#search_options').show();
		$('#search_more').hide();
		return false;
	});
	
	$('#search_less_lien').click(function(){
		$('#search_options').hide();
		$('#search_more').show();
		return false;
	});
    
	if(critsup == 1){
		$('#search_options').show();
		$('#search_more').hide();
	}
	 
	$('#load_box_rechercher input[name=date_arrivee]').datepicker(datepicker_options_1);
	$('#load_box_rechercher input[name=date_depart]').datepicker(datepicker_options_2);
}

function ajax_refresh_box_rechercher(datas, critsup){
	jQuery.ajax({
      url: '/ajax/vues/show_box_rechercher.php',
      type: 'GET',
	  data: datas,
      success: function(html){
        $("#load_box_rechercher").html(html);
		$("#load_box_rechercher").show();
		
		$('#search_more_lien').click(function(){
			$('#search_options').show();
			$('#search_more').hide();
			return false;
		});
		
		$('#search_less_lien').click(function(){
			$('#search_options').hide();
			$('#search_more').show();
			return false;
		 });
		 
		 if(critsup == 1){
		 	$('#search_options').show();
			$('#search_more').hide();
		 }
		
		$('#load_box_rechercher input[name=date_arrivee]').datepicker(datepicker_options_1);
		$('#load_box_rechercher input[name=date_depart]').datepicker(datepicker_options_2);
	  }
    });
}

function ajax_refresh_box_rechercher_test(datas, critsup){
	jQuery.ajax({
      url: '/ajax/vues/show_box_rechercher_test.php',
      type: 'GET',
	  data: datas,
      success: function(html){
        $("#load_box_rechercher").html(html);
		$("#load_box_rechercher").show();
		
		$('#search_more_lien').click(function(){
			$('#search_options').show();
			$('#search_more').hide();
			return false;
		});
		
		$('#search_less_lien').click(function(){
			$('#search_options').hide();
			$('#search_more').show();
			return false;
		 });
		 
		 if(critsup == 1){
		 	$('#search_options').show();
			$('#search_more').hide();
		 }
		
		$('#load_box_rechercher input[name=date_arrivee]').datepicker(datepicker_options_1);
		$('#load_box_rechercher input[name=date_depart]').datepicker(datepicker_options_2);
	  }
    });
}



function js_show_hotel(){
		$('#fdarr').datepicker(datepicker_options_1);
		$('#fddep').datepicker(datepicker_options_2);
		
		//$('#new_search').hide();
		$('#more_comments').hide();
		$('#less_comments_lien').hide();
		
		$('#more_comments_lien').click(function(){
			$('#more_comments').toggle('slow');
			$('#more_comments_lien').toggle();
			$('#less_comments_lien').toggle();
			return false;
		 });
		 
		 $('#less_comments_lien').click(function(){
			$('#more_comments').toggle('slow');
			$('#more_comments_lien').toggle();
			$('#less_comments_lien').toggle();
			return false;
		 });
		 
		 $('#new_search_change_lien').hide();
		 
		// $('#new_search_change_lien').click(function(){
		//	$('#new_search').toggle('slow');
		//	return false;
		// });
		 
		//GetMap();
		
		$("#fiche_photos a.group").fancybox();
		//$(".table_dispo").effect('highlight');
}


function js_col_3_1(){
		$('#ul_quartiers_paris').slideUp();
		$('#ul_quartiers').slideUp();
		
		$('#ul_quartiers_paris_lien').click(function(){
			$('#ul_quartiers_paris').toggle('slow');
			return false;
		 });
		 
		$('#ul_quartiers_lien').click(function(){
			$('#ul_quartiers').toggle('slow');
			return false;
		});

		 
}



