function affiche(ref){
		$(document).ready(function() 
		{
			$("#loader").show();
			$(".regions").hide();
			$(".element3").slideDown("normal"); 
		
		$("#ajaxmapmonde").removeClass();
		$("#ajaxmapmonde").addClass("map"+ref);
		$(".titre3").removeClass("select");
		$(".lien"+ref).addClass("select");
		
			$("."+ref).show();
		});
	}


	/* active ou désactive le bouton ajouter au panier  quand une quantité est selectionner */
	function checkForm()
	{
		var quantite = document.getElementById( 'quantite' ).value; // mettre id="quantite" au select concerné
		
		var btn = document.getElementById( 'btImg' );
		if ( quantite.length > 0 && quantite != '' )
		{
			document.getElementById("btImg" ).disabled = false; 
			btn.src = '../images/boutons/ajout_panier.jpg';
		}
		else
		{	
			document.getElementById("btImg" ).disabled = true; 
			btn.src = '../images/boutons/ajout_panier_off.png';
		}
	}
	/**************************************************/
	
	/* sur un carré d'illustration change ça class au clique(Le Reste ce fais dans les CSS) */
	function select_illustration(element)
	{
		var classtruc = document.getElementsByClassName('illustration_carre_select');
		for(var i=0; i<classtruc.length ; i++)
			classtruc[i].className = "illustration_carre";
		document.getElementsByClassName('illustration_carre').className = "illustration_carre_select";
		if(element.className  == "illustration_carre_select")
			element.className = "illustration_carre";
		else
			element.className = "illustration_carre_select";
	}
	/* ************************************************ */

$(document).ready(function()
{
	$(".regions").hide();
	
hs.graphicsDir = './lib/highslide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.wrapperClassName = 'dark borderless floating-caption';
	hs.fadeInOut = true;
	hs.dimmingOpacity = .75;
	hs.showCredits = false;
 

	// Add the controlbar
	if (hs.addSlideshow) hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
			opacity: .6,
			position: 'bottom center',
			hideOnMouseOut: true
		}
	});

	
	/* Personalisation du select  fonctionne avec le fichier jquery.stylish-select.js*/
		$('select.design').sSelect({ddMaxHeight: '400px'});
	/* ****************************************************** */
	
	/* Personalisation du Menu en LAVALAMP fonctionne avec le fichier jquery.lavalamp.js*/
	 $(function() {
                    $("#slide").lavaLamp({
                        fx: "backout",
                        speed: 700,
                        click: function(event, menuItem) {
                            return true;
                        }
                    });
                });
	/* ****************************************************** */
	
	
	//Sous menu en Accordéon à PLUSIEURS niveaux
	$(".element2").hide();
	$(".element3").hide();
	$(".element4").hide();
	$(".element5").hide();

	$(".open").show();

	$('.accordeon').next(".element").slideDown("normal");

	$('.toggler1').click(function() 
	{
		$(".element2").slideUp("normal"); 
		if($(this).next(".element2:visible").length == 0)
		{
			$(this).next(".element2").slideDown("normal"); 
			return false;
		}
		else
		{
			$(this).next(".element2").slideUp("normal"); 
			return false;
		}
	});
	
	$('.toggler2').click(function() 
	{
		$(".element3").slideUp("normal"); 
		if($(this).next(".element3:visible").length == 0)
		{
			$(this).next(".element3").slideDown("normal"); 
			return false;
		}
		else
		{
			$(this).next(".element3").slideUp("normal"); 
			return false;
		}
	});

	$('.toggler3').click(function() 
	{
		$(".element4").slideUp("normal"); 
		if($(this).next(".element4:visible").length == 0)
		{
			$(this).next(".element4").slideDown("normal"); 
			return false;
		}
		else
		{
			$(this).next(".element4").slideUp("normal"); 
			return false;
		}
	});
	
	$('.toggler4').click(function() 
	{
		$(".element5").slideUp("normal"); 
		if($(this).next(".element5:visible").length == 0)
		{
			$(this).next(".element5").slideDown("normal"); 
			return false;
		}
		else
		{
			$(this).next(".element5").slideUp("normal"); 
			return false;
		}
	});
	//*******************************************************************
	
	//DIAPORAMA qui attend que les images soit chargé avant de ce lancer utilise le fichier jquery.cycle.js
	window.onload = function () {
	   $('.diaporama_fond').cycle( 
		{
			fx:     'fade', 
			speed:   3000, 
			timeout: 2000
		});
	}
	

});
