function listeMagasin () {
// par defaut

	/*	$("#d01").show();
		$("#d02").show();
		$("#d03").show();
		$("#d04").show();
		$("#d05").show();*/
		
		$("#pays1").show();
		$("#pays2").show();
		$("#pays3").show();
		
		var currentDepart = $("#d01");
		
		
		var next;
		/*currentDepart.hide();*/
		
		
		jQuery('select.#pays').change(function() {
		
		/*$("#d01").hide();
		$("#d02").hide();
		$("#d03").hide();
		$("#d04").hide();
		$("#d05").hide();*/
		
		$("#pays1").hide();
		$("#pays2").hide();
		$("#pays3").hide();
		
		
			var str = "";
			
			$("select.#pays option:selected").each(function () {
                str = $(this).attr("value");
               
			});
			
			
			  
			if (str != '#pays2' && str != 0 ) { // autre que la france 
				document.getElementById("divproch").style.display = "none";
				nbr = $(str+" dl").length;
				
				
				if (nbr > 1){

					txt = "RÉSULTATS";	
					
				}else {
						txt = "RÉSULTAT";	
				}
				
				$(".result h3").text(txt+' ('+nbr+')');
				
				next = str;
				$("#region").fadeOut("slow");
				$(currentDepart).fadeOut("slow", function() {
					// on affiche la zone "cible"
					
					currentDepart = next;
					$(str).fadeIn("slow", function() { 
						 if ($.browser.msie) 
							 this.style.removeAttribute('filter'); 
					 }); 
					
					

				});
	document.getElementById('region').selectedIndex = 0;
				return false;
		
				

			}else if (str == 0) { // aucune selection 
				document.getElementById("divproch").style.display = "none";
	
				$(".result h3").text("RÉSULTAT");
					
				$(currentDepart).fadeOut("slow", function() {
				
					$("#region").fadeOut("slow");
					
					// on affiche la zone "cible"
					currentDepart = next;
					$(str).fadeIn("slow", function() { 
						 if ($.browser.msie) 
							 this.style.removeAttribute('filter'); 
					 }); 

					document.getElementById('region').selectedIndex = 0;
					
					$("#d01").hide();
					
					$("#d02").fadeIn("slow",function() { 
						 if ($.browser.msie) 
							 this.style.removeAttribute('filter'); 
					 }); 

					$("#d03").fadeIn("slow",function() { 
						 if ($.browser.msie) 
							 this.style.removeAttribute('filter'); 
					 }); 

					$("#d04").fadeIn("slow",function() { 
						 if ($.browser.msie) 
							 this.style.removeAttribute('filter'); 
					 }); 

					$("#d05").fadeIn("slow",function() { 
						 if ($.browser.msie) 
							 this.style.removeAttribute('filter'); 
					 }); 

					$("#pays1").fadeIn("slow",function() { 
						 if ($.browser.msie) 
							 this.style.removeAttribute('filter'); 
					 }); 

					$("#pays3").fadeIn("slow",function() { 
						 if ($.browser.msie) 
							 this.style.removeAttribute('filter'); 
					 }); 


				});
				return false;

			
			}else if (str == '#pays2') { // france 
				document.getElementById("divproch").style.display = "block";
			
			//alert ('ici');
				/*$("#d01").show();
				$("#d02").show();
				$("#d03").show();
				$("#d04").show();
				$("#d05").show();*/
				$("#pays2").show(); 
				//alert ('la');
				$("#d01").fadeIn("slow",function() { 
					 if ($.browser.msie) 
						 this.style.removeAttribute('filter'); 
				 }); 
					
				$("#d02").fadeIn("slow",function() { 
					 if ($.browser.msie) 
						 this.style.removeAttribute('filter'); 
				 }); 

				$("#d03").fadeIn("slow",function() { 
					 if ($.browser.msie) 
						 this.style.removeAttribute('filter'); 
				 }); 

				$("#d04").fadeIn("slow",function() { 
					 if ($.browser.msie) 
						 this.style.removeAttribute('filter'); 
				 }); 

				$("#d05").fadeIn("slow",function() { 
					 if ($.browser.msie) 
						 this.style.removeAttribute('filter'); 
				 }); 

				
				$(".result h3").text("RÉSULTAT");

				$("#region").fadeIn("slow",function() { 
						 if ($.browser.msie) 
							 this.style.removeAttribute('filter'); 
					 }); 

				$("#hollande").fadeOut("slow");
				$("#belgique").fadeOut("slow");
				$(".result h3").text("RÉSULTATS");
		
			}	

		});
		
		
		
		jQuery('select.#region').change(function() {
			
			var depart = "";
			
			$("select.#region option:selected").each(function () {
				//alert (currentDepart);
				$("#pays2").show();
				$("#d01").hide();
				$("#d02").hide();
				$("#d03").hide();
				$("#d04").hide();
				$("#d05").hide();
				
                depart = $(this).attr("value");

				// nombre d'elements dans le bloc
				nbr = $(depart+ " dl").length;
				
				if (nbr > 1){
					
						txt = "RÉSULTATS";
					
				}else {
						txt = "RÉSULTAT";
				
				}
				$(".result h3").text(txt+' ('+nbr+')');
				
				
				next = depart;
				$(currentDepart).fadeOut("slow", function() {
					// on affiche la zone "cible"
					currentDepart = next;
					$(depart).fadeIn("slow",function() { 
						 if ($.browser.msie) 
							 this.style.removeAttribute('filter'); 
					 }); 


				});
				// on finit par annuler l'action sur le lien
				return false;
			
				
			});
			
		});
		
}
