// JavaScript Document

function displayFlashTransp(swf, hauteur, largeur)
{
	document.write('<object type="application/x-shockwave-flash" data="'+swf+'" width="'+hauteur+'" height="'+largeur+'">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+swf+'" />');
	document.write('<param name="quality" value="hight" />');
	document.write('<param name="WMode" value="Transparent" />');	
	document.write('</object>');
}

function ssmenu(calq)
{
	if(document.getElementById(calq).style.display == 'block')
		document.getElementById(calq).style.display = 'none';
	 else
		document.getElementById(calq).style.display = 'block';
}

function ChangeColor(color,nomteinte) {
  document.getElementById('jardin_detail_teinte').style.backgroundColor = color;
  document.getElementById('jardin_detail_nom_teinte').innerHTML = nomteinte;
  document.getElementById('jardin_detail_photo').style.display='none';
  document.getElementById('jardin_detail_nom_teinte').style.display='block';
} 

function Changephoto(nomfoto) {
    document.getElementById('jardin_detail_nom_teinte').style.display='none';
	document.getElementById('jardin_detail_photo').style.display='block';
	document.getElementById('jardin_detail_contenu_photo').src = '../img/partenaire_deco/' + nomfoto;
} 

function ChangeColor2(color,nomteinte) {
  document.getElementById('facade_detail_teinte').style.backgroundColor = color;
  document.getElementById('facade_detail_nom_teinte').innerHTML = nomteinte;
  document.getElementById('facade_detail_photo').style.display='none';
  document.getElementById('facade_detail_nom_teinte').style.display='block';
  document.getElementById('facade_code_a_transmettre').style.visibility='visible';
}

function ChangeColor3(color,nomteinte) {
  document.getElementById('facade_detail_teinte2').style.backgroundColor = color;
  document.getElementById('facade_detail_nom_teinte2').innerHTML = nomteinte;
  document.getElementById('facade_detail_photo2').style.display='none';
  document.getElementById('facade_detail_nom_teinte2').style.display='block';
  document.getElementById('facade_code_a_transmettre').style.visibility='visible';
} 

function Changephoto2(nomfoto) {
    document.getElementById('facade_detail_nom_teinte').style.display='none';
	document.getElementById('facade_detail_photo').style.display='block';
	document.getElementById('facade_detail_contenu_photo').src = '../img/partenaire_deco/' + nomfoto;
	document.getElementById('facade_code_a_transmettre').style.visibility='hidden';
} 

function Changephoto3(nomfoto) {
    document.getElementById('facade_detail_nom_teinte2').style.display='none';
	document.getElementById('facade_detail_photo2').style.display='block';
	document.getElementById('facade_detail_contenu_photo2').src = '../img/partenaire_deco/' + nomfoto;
	document.getElementById('facade_code_a_transmettre').style.visibility='hidden';
} 

function ChangeColor4(color,nomteinte) {
  document.getElementById('attitude_detail_teinte').style.backgroundColor = color;
  document.getElementById('attitude_detail_nom_teinte').innerHTML = nomteinte;
  document.getElementById('attitude_detail_nom_teinte').style.display='block';
  document.getElementById('attitude_detail_photo').style.display='none';
} 

function Changephoto4(nomfoto) {
    document.getElementById('attitude_detail_nom_teinte').style.display='none';
	document.getElementById('attitude_detail_photo').style.display='block';
	document.getElementById('attitude_detail_contenu_photo').src = '../img/partenaire_deco/' + nomfoto;
}

	
function StopBorder(maxi) {
	
	for(i=1; i<=9; i++){
		document.getElementById('couleurs_temps_detail_border0' + i ).style.border='none';
	}
	for(j=10; j<=maxi; j++){
		document.getElementById('couleurs_temps_detail_border' + j ).style.border='none';
	}
}

function CDT_ambiance(id) {
	ambiance = id;
}

function CDT_teinte(color,idmurale,nomambiance) {

			// Affichage couleur MURALE + nom teinte
		  document.getElementById('couleurs_temps_teinte_murale').style.backgroundColor = color;
		  document.getElementById('couleurs_temps_detail_nom_teinte').style.display='block';
		  
			// Border couleur MURALE
		  document.getElementById('couleurs_temps_detail_border'+idmurale).style.border="thin solid #cccccc";
		  if(ambiance == ""){ 
		  	ambiance = "1";
		  }
		  
if (nomambiance == 'metal-feu'){

		 if (ambiance == '1'){
		 
			if (color == "#ad4f57") {
				color2 = "#ffeda7";
				nomteinte2 = "Boiserie : <br/>Poussi&egrave;re d'&eacute;toile";
				nomteinte = "Murale : <br/>Rouge passion";
				idphoto = "_03";
				idbois = "13";
			}//1
			if (color == "#9d9b94") {
				color2 = "#ffe87e";
				nomteinte2 = "Boiserie : <br/>Jaune soleil";
				nomteinte = "Murale : <br/>Gris cendr&eacute;";
				idphoto = "_04";
				idbois = "08";
			}//2
			if (color == "#bbc1d4") {
				color2 = "#ad4f57";
				nomteinte2 = "Boiserie : <br/>Rose granit";
				nomteinte = "Murale : <br/>Nuit d'&eacute;t&eacute;";
				idphoto = "_05";
				idbois = "07";
			}//3
			if (color == "#f6dbca") {
				color2 = "#9d9b94";
				nomteinte2 = "Boiserie : <br/>Gris cendr&eacute;";
				nomteinte = "Murale : <br/>Tournaline";
				idphoto = "_02";
				idbois = "02";
			}//4
			if (color == "#fed87f") {
				color2 = "#bc0d1d";
				nomteinte2 = "Boiserie : <br/>Terre de feu";
				nomteinte = "Murale : <br/>Etincelle";
				idphoto = "_01";
				idbois = "06";
			}//5
			if (color == "#bc0d1d") {
				color2 = "#fed87f";
				nomteinte2 = "Boiserie : <br/>Etincelle";
				nomteinte = "Murale : <br/>Terre de feu";
				idphoto = "_09";
				idbois = "05";
			}//6
			if (color == "#ebc0b8") {
				color2 = "#ad4f57";
				nomteinte2 = "Boiserie : <br/>Rouge passion";
				nomteinte = "Murale : <br/>Rose granit";
				idphoto = "_10";
				idbois = "01";
			}//7
			if (color == "#ffe87e") {
				color2 = "#94141d";
				nomteinte2 = "Boiserie : <br/>V&eacute;suve";
				nomteinte = "Murale : <br/>Jaune soleil";
				idphoto = "_07";
				idbois = "11";
			}//8
			if (color == "#d8d9e9") {
				color2 = "#77526e";
				nomteinte2 = "Boiserie : <br/>Am&eacute;thyste";
				nomteinte = "Murale : <br/>Topaze";
				idphoto = "_08";
				idbois = "12";
			}//9
			if (color == "#7f878b") {
				color2 = "#f6dbca";
				nomteinte2 = "Boiserie : <br/>Tourmaline";
				nomteinte = "Murale : <br/>Gris Acier";
				idphoto = "_06";
				idbois = "04";
			}//10
			if (color == "#94141d") {
				color2 = "#7f878b";
				nomteinte2 = "Boiserie : <br/>Gris Acier";
				nomteinte = "Murale : <br/>V&eacute;suve";
				idphoto = "_13";
				idbois = "10";
			}//11
			if (color == "#77526e") {
				color2 = "#d8d9e9";
				nomteinte2 = "Boiserie : <br/>Topaze";
				nomteinte = "Murale : <br/>Am&eacute;thyste";
				idphoto = "_12";
				idbois = "09";
			}//12
			if (color == "#ffeda7") {
				color2 = "#bbc1d4";
				nomteinte2 = "Boiserie : <br/>Nuit d'&eacute;t&eacute;";
				nomteinte = "Murale : <br/>Poussi&egrave;re d'&eacute;toile";
				idphoto = "_11";
				idbois = "03";
			}//13
			
			
			if (color == "#fbc354") {
				color2 = "#ad4f57";
				nomteinte2 = "Boiserie : <br/>Rouge Passion";
				nomteinte = "Murale : <br/>Flamme";
				idphoto = "_14";
				idbois = "10";
			}//14
			if (color == "#c45864") {
				color2 = "#fbd8cb";
				nomteinte2 = "Boiserie : <br/>Or Rose";
				nomteinte = "Murale : <br/>Fusion";
				idphoto = "_15";
				idbois = "09";
			}//15
			if (color == "#fbd8cb") {
				color2 = "#9d9b94";
				nomteinte2 = "Boiserie : <br/>Gris Cendré";
				nomteinte = "Murale : <br/>Or rose";
				idphoto = "_16";
				idbois = "03";
			}//16
			
		 }
		 
		  if (ambiance == '2'){
		 
			
			if (color == "#ad4f57") {
				color2 = "#ffe87e";
				nomteinte2 = "Boiserie : <br/>Jaune soleil";
				nomteinte = "Murale : <br/>Rouge passion";
				idphoto = "_03";
				idbois = "08";
			}//1
			if (color == "#9d9b94") {
				color2 = "#94141d";
				nomteinte2 = "Boiserie : <br/>V&eacute;suve";
				nomteinte = "Murale : <br/>Gris cendr&eacute;";
				idphoto = "_04";
				idbois = "11";
			}//2
			if (color == "#bbc1d4") {
				color2 = "#ad4f57";
				nomteinte2 = "Boiserie : <br/>Rouge passion";
				nomteinte = "Murale : <br/>Nuit d'&eacute;t&eacute;";
				idphoto = "_05";
				idbois = "01";
			}//3
			if (color == "#f6dbca") {
				color2 = "#9d9b94";
				nomteinte2 = "Boiserie : <br/>Gris cendr&eacute;";
				nomteinte = "Murale : <br/>Tournaline";
				idphoto = "_02";
				idbois = "02";
			}//4
			if (color == "#fed87f") {
				color2 = "#77526e";
				nomteinte2 = "Boiserie : <br/>Am&eacute;thyste";
				nomteinte = "Murale : <br/>Etincelle";
				idphoto = "_01";
				idbois = "12";
			}//5
			if (color == "#bc0d1d") {
				color2 = "#ad4f57";
				nomteinte2 = "Boiserie : <br/>Rose granit";
				nomteinte = "Murale : <br/>Terre de feu";
				idphoto = "_09";
				idbois = "07";
			}//6
			if (color == "#ad4f57") {
				color2 = "#d2d4fc";
				nomteinte2 = "Boiserie : <br/>Topaze";
				nomteinte = "Murale : <br/>Rose granit";
				idphoto = "_10";
				idbois = "09";
			}//7
			if (color == "#ffe87e") {
				color2 = "#7f878b";
				nomteinte2 = "Boiserie : <br/>Gris Acier";
				nomteinte = "Murale : <br/>Jaune soleil";
				idphoto = "_07";
				idbois = "10";
			}//8
			if (color == "#d2d4fc") {
				color2 = "#fed87f";
				nomteinte2 = "Boiserie : <br/>Etincelle";
				nomteinte = "Murale : <br/>Topaze";
				idphoto = "_08";
				idbois = "05";
			}//9
			if (color == "#7f878b") {
				color2 = "#bc0d1d";
				nomteinte2 = "Boiserie : <br/>Terre de feu";
				nomteinte = "Murale : <br/>Gris Acier";
				idphoto = "_06";
				idbois = "06";
			}//10
			if (color == "#94141d") {
				color2 = "#f6dbca";
				nomteinte2 = "Boiserie : <br/>Tournaline";
				nomteinte = "Murale : <br/>V&eacute;suve";
				idphoto = "_13";
				idbois = "04";
			}//11
			if (color == "#77526e") {
				color2 = "#ffeda7";
				nomteinte2 = "Boiserie : <br/>Poussi&egrave;re d'&eacute;toile";
				nomteinte = "Murale : <br/>Am&eacute;thyste";
				idphoto = "_12";
				idbois = "13";
			}//12
			if (color == "#ffeda7") {
				color2 = "#bbc1d4";
				nomteinte2 = "Boiserie : <br/>Nuit d'&eacute;t&eacute;";
				nomteinte = "Murale : <br/>Poussi&egrave;re d'&eacute;toile";
				idphoto = "_11";
				idbois = "03";
			}//13
			if (color == "#fbc354") {
				color2 = "#ad4f57";
				nomteinte2 = "Boiserie : <br/>Rouge Passion";
				nomteinte = "Murale : <br/>Flamme";
				idphoto = "_14";
				idbois = "10";
			}//14
			if (color == "#c45864") {
				color2 = "#fbd8cb";
				nomteinte2 = "Boiserie : <br/>Or Rose";
				nomteinte = "Murale : <br/>Fusion";
				idphoto = "_15";
				idbois = "09";
			}//15
			if (color == "#fbd8cb") {
				color2 = "#9d9b94";
				nomteinte2 = "Boiserie : <br/>Gris Cendré";
				nomteinte = "Murale : <br/>Or rose";
				idphoto = "_16";
				idbois = "03";
			}//16
			
		 }
		 
		  if (ambiance == '3'){
		 
			
			if (color == "#ad4f57") {
				color2 = "#ffe87e";
				nomteinte2 = "Boiserie : <br/>Jaune soleil";
				nomteinte = "Murale : <br/>Rouge passion";
				idphoto = "_03";
				idbois = "08";
			}//1
			if (color == "#9d9b94") {
				color2 = "#bbc1d4";
				nomteinte2 = "Boiserie : <br/>Nuit d'&eacute;t&eacute";
				nomteinte = "Murale : <br/>Gris cendr&eacute;";
				idphoto = "_04";
				idbois = "11";
			}//2
			if (color == "#bbc1d4") {
				color2 = "#f6dbca";
				nomteinte2 = "Boiserie : <br/>Tournaline";
				nomteinte = "Murale : <br/>Nuit d'&eacute;t&eacute;";
				idphoto = "_05";
				idbois = "01";
			}//3
			if (color == "#f6dbca") {
				color2 = "#7f878b";
				nomteinte2 = "Boiserie : <br/>Gris Acier";
				nomteinte = "Murale : <br/>Tournaline";
				idphoto = "_02";
				idbois = "02";
			}//4
			if (color == "#fed87f") {
				color2 = "#9d9b94";
				nomteinte2 = "Boiserie : <br/>Gris cendr&eacute;";
				nomteinte = "Murale : <br/>Etincelle";
				idphoto = "_01";
				idbois = "12";
			}//5
			if (color == "#bc0d1d") {
				color2 = "#d2d4fc";
				nomteinte2 = "Boiserie : <br/>Topaze";
				nomteinte = "Murale : <br/>Terre de feu";
				idphoto = "_09";
				idbois = "07";
			}//6
			if (color == "#ad4f57") {
				color2 = "#fed87f";
				nomteinte2 = "Boiserie : <br/>Etincelle";
				nomteinte = "Murale : <br/>Rose granit";
				idphoto = "_10";
				idbois = "09";
			}//7
			if (color == "#ffe87e") {
				color2 = "#94141d";
				nomteinte2 = "Boiserie : <br/>V&eacute;suve";
				nomteinte = "Murale : <br/>Jaune soleil";
				idphoto = "_07";
				idbois = "10";
			}//8
			if (color == "#d2d4fc") {
				color2 = "#ad4f57";
				nomteinte2 = "Boiserie : <br/>Rouge passion";
				nomteinte = "Murale : <br/>Topaze";
				idphoto = "_08";
				idbois = "05";
			}//9
			if (color == "#7f878b") {
				color2 = "#ffeda7";
				nomteinte2 = "Boiserie : <br/>Poussi&egrave;re d'&eacute;toile";
				nomteinte = "Murale : <br/>Gris Acier";
				idphoto = "_06";
				idbois = "06";
			}//10
			if (color == "#94141d") {
				color2 = "#ffe87e";
				nomteinte2 = "Boiserie : <br/>Jaune soleil";
				nomteinte = "Murale : <br/>V&eacute;suve";
				idphoto = "_13";
				idbois = "04";
			}//11
			if (color == "#77526e") {
				color2 = "#bc0d1d";
				nomteinte2 = "Boiserie : <br/>Terre de feu";
				nomteinte = "Murale : <br/>Am&eacute;thyste";
				idphoto = "_12";
				idbois = "13";
			}//12
			if (color == "#ffeda7") {
				color2 = "#77526e";
				nomteinte2 = "Boiserie : <br/>Am&eacute;thyste";
				nomteinte = "Murale : <br/>Poussi&egrave;re d'&eacute;toile";
				idphoto = "_11";
				idbois = "03";
			}//13
			if (color == "#fbc354") {
				color2 = "#ad4f57";
				nomteinte2 = "Boiserie : <br/>Rouge Passion";
				nomteinte = "Murale : <br/>Flamme";
				idphoto = "_14";
				idbois = "10";
			}//14
			if (color == "#c45864") {
				color2 = "#fbd8cb";
				nomteinte2 = "Boiserie : <br/>Or Rose";
				nomteinte = "Murale : <br/>Fusion";
				idphoto = "_15";
				idbois = "09";
			}//15
			if (color == "#fbd8cb") {
				color2 = "#9d9b94";
				nomteinte2 = "Boiserie : <br/>Gris Cendré";
				nomteinte = "Murale : <br/>Or rose";
				idphoto = "_16";
				idbois = "03";
			}//16
		 }
}
if (nomambiance == 'eau-air'){

		 if (ambiance == '1'){
		 
			if (color == "#fff5a3") {
				color2 = "#dae1e0";
				nomteinte2 = "Boiserie : <br/>Ecume";
				nomteinte = "Murale : <br/>Jaune lumi&egrave;re";
				idphoto = "_09";
				idbois = "07";
			}//1
			if (color == "#fef4db") {
				color2 = "#101532";
				nomteinte2 = "Boiserie : <br/>Abysse";
				nomteinte = "Murale : <br/>Clair de lune";
				idphoto = "_08";
				idbois = "09";
			}//2
			if (color == "#c8dce2") {
				color2 = "#fff5a3";
				nomteinte2 = "Boiserie : <br/>Jaune lumi&egrave;re";
				nomteinte = "Murale : <br/>Bleu mistral";
				idphoto = "_05";
				idbois = "01";
			}//3
			if (color == "#cee6da") {
				color2 = "#ffffff";
				nomteinte2 = "Boiserie : <br/>Blanc nuage";
				nomteinte = "Murale : <br/>Vert d'eau";
				idphoto = "_04";
				idbois = "11";
			}//4
			if (color == "#dff0ed") {
				color2 = "#fef4db";
				nomteinte2 = "Boiserie : <br/>Clair de lune";
				nomteinte = "Murale : <br/>Bleu glacier";
				idphoto = "_03";
				idbois = "02";
			}//5
			if (color == "#fffdee") {
				color2 = "#dff0ed";
				nomteinte2 = "Boiserie : <br/>Bleu glacier";
				nomteinte = "Murale : <br/>Givr&eacute;";
				idphoto = "_01";
				idbois = "05";
			}//6
			if (color == "#dae1e0") {
				color2 = "#b0cad4";
				nomteinte2 = "Boiserie : <br/>Torrent";
				nomteinte = "Murale : <br/>Ecume";
				idphoto = "_07";
				idbois = "08";
			}//7
			if (color == "#b0cad4") {
				color2 = "#ddfdfb";
				nomteinte2 = "Boiserie : <br/>Givr&eacute;";
				nomteinte = "Murale : <br/>Torrent";
				idphoto = "_06";
				idbois = "06";
			}//8
			if (color == "#101532") {
				color2 = "#cee6da";
				nomteinte2 = "Boiserie : <br/>Vert d'eau";
				nomteinte = "Murale : <br/>Abysse";
				idphoto = "_11";
				idbois = "04";
			}//9
			if (color == "#84a1b3") {
				color2 = "#fef4db";
				nomteinte2 = "Boiserie : <br/>Clair de lune";
				nomteinte = "Murale : <br/>Ciel d'orage";
				idphoto = "_10";
				idbois = "02";
			}//10
			if (color == "#ffffff") {
				color2 = "#84a1b3";
				nomteinte2 = "Boiserie : <br/>Ciel d'orage";
				nomteinte = "Murale : <br/>Blanc nuage";
				idphoto = "_02";
				idbois = "10";
			}//11
			
			//MODIFS A FAIRE --------------------------------------------------------------------------------------------------------
			if (color == "#0065a5") {
				color2 = "#ffffff";
				nomteinte2 = "Boiserie : <br/>Blanc nuage";
				nomteinte = "Murale : <br/>Aliz&eacute;";
				idphoto = "_12";
				idbois = "10";
			}//12
			if (color == "#86cbcf") {
				color2 = "#0093a1";
				nomteinte2 = "Boiserie : <br/>Cascade";
				nomteinte = "Murale : <br/>Azur";
				idphoto = "_13";
				idbois = "10";
			}//13
			if (color == "#0093a1") {
				color2 = "#dff0ed";
				nomteinte2 = "Boiserie : <br/>Givr&eacute;";
				nomteinte = "Murale : <br/>Cascade";
				idphoto = "_14";
				idbois = "10";
			}//14
			if (color == "#5ebfcd") {
				color2 = "#ffffff";
				nomteinte2 = "Boiserie : <br/>Blanc nuage";
				nomteinte = "Murale : <br/>Eau vive";
				idphoto = "_15";
				idbois = "10";
			}//15
			if (color == "#648b9a") {
				color2 = "#dae1e0";
				nomteinte2 = "Boiserie : <br/>Ecume";
				nomteinte = "Murale : <br/>Tourbillon";
				idphoto = "_16";
				idbois = "10";
			}//16
			if (color == "#33638a") {
				color2 = "#fef4db";
				nomteinte2 = "Boiserie : <br/>Clair de Lune";
				nomteinte = "Murale : <br/>Voute c&eacute;leste";
				idphoto = "_17";
				idbois = "10";
			}//17
			//FIN MODIFS A FAIRE -------------------------------------------------------------------------------------------------------
			
		 }
		 
		  if (ambiance == '2'){
		 
			if (color == "#fff5a3") {
				color2 = "#fef4db";
				nomteinte2 = "Boiserie : <br/>Clair de lune";
				nomteinte = "Murale : <br/>Jaune lumi&egrave;re";
				idphoto = "_09";
				idbois = "02";
			}//1
			if (color == "#fef4db") {
				color2 = "#dff0ed";
				nomteinte2 = "Boiserie : <br/>Bleu glacier";
				nomteinte = "Murale : <br/>Clair de lune";
				idphoto = "_08";
				idbois = "05";
			}//2
			if (color == "#c8dce2") {
				color2 = "#ffffff";
				nomteinte2 = "Boiserie : <br/>Blanc nuage";
				nomteinte = "Murale : <br/>Bleu mistral";
				idphoto = "_05";
				idbois = "11";
			}//3
			if (color == "#cee6da") {
				color2 = "#c8dce2";
				nomteinte2 = "Boiserie : <br/>Bleu mistral";
				nomteinte = "Murale : <br/>Vert d'eau";
				idphoto = "_04";
				idbois = "03";
			}//4
			if (color == "#dff0ed") {
				color2 = "#cee6da";
				nomteinte2 = "Boiserie : <br/>Vert d'eau";
				nomteinte = "Murale : <br/>Bleu glacier";
				idphoto = "_03";
				idbois = "04";
			}//5
			if (color == "#fffdee") {
				color2 = "#b0cad4";
				nomteinte2 = "Boiserie : <br/>Torrent";
				nomteinte = "Murale : <br/>Givr&eacute;";
				idphoto = "_01";
				idbois = "08";
			}//6
			if (color == "#dae1e0") {
				color2 = "#84a1b3";
				nomteinte2 = "Boiserie : <br/>Ciel d'orage";
				nomteinte = "Murale : <br/>Ecume";
				idphoto = "_07";
				idbois = "10";
			}//7
			if (color == "#b0cad4") {
				color2 = "#101532";
				nomteinte2 = "Boiserie : <br/>Abysse";
				nomteinte = "Murale : <br/>Torrent";
				idphoto = "_06";
				idbois = "09";
			}//8
			if (color == "#101532") {
				color2 = "#c8dce2";
				nomteinte2 = "Boiserie : <br/>Bleu mistral";
				nomteinte = "Murale : <br/>Abysse";
				idphoto = "_11";
				idbois = "03";
			}//9
			if (color == "#84a1b3") {
				color2 = "#dae1e0";
				nomteinte2 = "Boiserie : <br/>Ecume";
				nomteinte = "Murale : <br/>Ciel d'orage";
				idphoto = "_10";
				idbois = "07";
			}//10
			if (color == "#ffffff") {
				color2 = "#fff5a3";
				nomteinte2 = "Boiserie : <br/>Jaune lumi&egrave;re";
				nomteinte = "Murale : <br/>Blanc nuage";
				idphoto = "_02";
				idbois = "01";
			}//11
			
			//MODIFS A FAIRE --------------------------------------------------------------------------------------------------------
			if (color == "#0065a5") {
				color2 = "#ffffff";
				nomteinte2 = "Boiserie : <br/>Blanc nuage";
				nomteinte = "Murale : <br/>Aliz&eacute;";
				idphoto = "_12";
				idbois = "10";
			}//12
			if (color == "#86cbcf") {
				color2 = "#0093a1";
				nomteinte2 = "Boiserie : <br/>Cascade";
				nomteinte = "Murale : <br/>Azur";
				idphoto = "_13";
				idbois = "10";
			}//13
			if (color == "#0093a1") {
				color2 = "#dff0ed";
				nomteinte2 = "Boiserie : <br/>Givr&eacute;";
				nomteinte = "Murale : <br/>Cascade";
				idphoto = "_14";
				idbois = "10";
			}//14
			if (color == "#5ebfcd") {
				color2 = "#ffffff";
				nomteinte2 = "Boiserie : <br/>Blanc nuage";
				nomteinte = "Murale : <br/>Eau vive";
				idphoto = "_15";
				idbois = "10";
			}//15
			if (color == "#648b9a") {
				color2 = "#dae1e0";
				nomteinte2 = "Boiserie : <br/>Ecume";
				nomteinte = "Murale : <br/>Tourbillon";
				idphoto = "_16";
				idbois = "10";
			}//16
			if (color == "#33638a") {
				color2 = "#fef4db";
				nomteinte2 = "Boiserie : <br/>Clair de Lune";
				nomteinte = "Murale : <br/>Voute c&eacute;leste";
				idphoto = "_17";
				idbois = "10";
			}//17
			//FIN MODIFS A FAIRE -------------------------------------------------------------------------------------------------------

		 }
		 
		 
		 if (ambiance == '3'){
		 
			if (color == "#fff5a3") {
				color2 = "#b0cad4";
				nomteinte2 = "Boiserie : <br/>Torrent";
				nomteinte = "Murale : <br/>Jaune lumi&egrave;re";
				idphoto = "_09";
				idbois = "08";
			}//1
			if (color == "#fef4db") {
				color2 = "#dae1e0";
				nomteinte2 = "Boiserie : <br/>Ecume";
				nomteinte = "Murale : <br/>Clair de lune";
				idphoto = "_08";
				idbois = "07";
			}//2
			if (color == "#c8dce2") {
				color2 = "#fffdee";
				nomteinte2 = "Boiserie : <br/>Givr&eacute;";
				nomteinte = "Murale : <br/>Bleu mistral";
				idphoto = "_05";
				idbois = "06";
			}//3
			if (color == "#cee6da") {
				color2 = "#fff5a3";
				nomteinte2 = "Boiserie : <br/>Jaune lumi&egrave;re";
				nomteinte = "Murale : <br/>Vert d'eau";
				idphoto = "_04";
				idbois = "01";
			}//4
			if (color == "#dff0ed") {
				color2 = "#ffffff";
				nomteinte2 = "Boiserie : <br/>Blanc nuage";
				nomteinte = "Murale : <br/>Bleu glacier";
				idphoto = "_03";
				idbois = "11";
			}//5
			if (color == "#fffdee") {
				color2 = "#84a1b3";
				nomteinte2 = "Boiserie : <br/>Ciel d'orage";
				nomteinte = "Murale : <br/>Givr&eacute;";
				idphoto = "_01";
				idbois = "10";
			}//6
			if (color == "#dae1e0") {
				color2 = "#c8dce2";
				nomteinte2 = "Boiserie : <br/>Bleu mistral";
				nomteinte = "Murale : <br/>Ecume";
				idphoto = "_07";
				idbois = "03";
			}//7
			if (color == "#b0cad4") {
				color2 = "#cee6da";
				nomteinte2 = "Boiserie : <br/>Vert d'eau";
				nomteinte = "Murale : <br/>Torrent";
				idphoto = "_06";
				idbois = "04";
			}//8
			if (color == "#101532") {
				color2 = "#dff0ed";
				nomteinte2 = "Boiserie : <br/>Bleu glacier";
				nomteinte = "Murale : <br/>Abysse";
				idphoto = "_11";
				idbois = "05";
			}//9
			if (color == "#84a1b3") {
				color2 = "#fef4db";
				nomteinte2 = "Boiserie : <br/>Clair de lune";
				nomteinte = "Murale : <br/>Ciel d'orage";
				idphoto = "_10";
				idbois = "02";
			}//10
			if (color == "#ffffff") {
				color2 = "#101532";
				nomteinte2 = "Boiserie : <br/>Abysse";
				nomteinte = "Murale : <br/>Blanc nuage";
				idphoto = "_02";
				idbois = "09";
			}//11
			
			//MODIFS A FAIRE --------------------------------------------------------------------------------------------------------
			if (color == "#0065a5") {
				color2 = "#ffffff";
				nomteinte2 = "Boiserie : <br/>Blanc nuage";
				nomteinte = "Murale : <br/>Aliz&eacute;";
				idphoto = "_12";
				idbois = "10";
			}//12
			if (color == "#86cbcf") {
				color2 = "#0093a1";
				nomteinte2 = "Boiserie : <br/>Cascade";
				nomteinte = "Murale : <br/>Azur";
				idphoto = "_13";
				idbois = "10";
			}//13
			if (color == "#0093a1") {
				color2 = "#dff0ed";
				nomteinte2 = "Boiserie : <br/>Givr&eacute;";
				nomteinte = "Murale : <br/>Cascade";
				idphoto = "_14";
				idbois = "10";
			}//14
			if (color == "#5ebfcd") {
				color2 = "#ffffff";
				nomteinte2 = "Boiserie : <br/>Blanc nuage";
				nomteinte = "Murale : <br/>Eau vive";
				idphoto = "_15";
				idbois = "10";
			}//15
			if (color == "#648b9a") {
				color2 = "#dae1e0";
				nomteinte2 = "Boiserie : <br/>Ecume";
				nomteinte = "Murale : <br/>Tourbillon";
				idphoto = "_16";
				idbois = "10";
			}//16
			if (color == "#33638a") {
				color2 = "#fef4db";
				nomteinte2 = "Boiserie : <br/>Clair de Lune";
				nomteinte = "Murale : <br/>Voute c&eacute;leste";
				idphoto = "_17";
				idbois = "10";
			}//17
			//FIN MODIFS A FAIRE -------------------------------------------------------------------------------------------------------

		 }
}
if (nomambiance == 'minerale-vegetale'){

		 if (ambiance == '1'){
		 
			if (color == "#fff8c9") {
				color2 = "#c1b2a5";
				nomteinte2 = "Boiserie : <br/>&Eacute;corce";
				nomteinte = "Murale : <br/>Pistil";
				idphoto = "_03";
				idbois = "07";
			}//1
			if (color == "#faf1da") {
				color2 = "#adc5b5";
				nomteinte2 = "Boiserie : <br/>Vert saule";
				nomteinte = "Murale : <br/>Craie";
				idphoto = "_04";
				idbois = "09";
			}//2
			if (color == "#e4d7c1") {
				color2 = "#d5dec3";
				nomteinte2 = "Boiserie : <br/>Vert amande";
				nomteinte = "Murale : <br/>Terre d'argile";
				idphoto = "_05";
				idbois = "04";
			}//3
			if (color == "#d5dec3") {
				color2 = "#a2ceb7";
				nomteinte2 = "Boiserie : <br/>Craie";
				nomteinte = "Murale : <br/>Vert amande";
				idphoto = "_06";
				idbois = "02";
			}//4
			if (color == "#ccdb80") {
				color2 = "#fff8c9";
				nomteinte2 = "Boiserie : <br/>Pistil";
				nomteinte = "Murale : <br/>Vert pousse";
				idphoto = "_12";
				idbois = "05";
			}//5
			if (color == "#f0ed9a") {
				color2 = "#efecdb";
				nomteinte2 = "Boiserie : <br/>Kaolin";
				nomteinte = "Murale : <br/>Bambou";
				idphoto = "_08";
				idbois = "08";
			}//6
			if (color == "#c1b2a5") {
				color2 = "#c1b2a5";
				nomteinte2 = "Boiserie : <br/>&Eacute;corce";
				nomteinte = "Murale : <br/>&Eacute;corce";
				idphoto = "_13";
				idbois = "07";
			}//7
			if (color == "#efecdb") {
				color2 = "#d1e5c5";
				nomteinte2 = "Boiserie : <br/>Verveine";
				nomteinte = "Murale : <br/>Kaolin";
				idphoto = "_07";
				idbois = "10";
			}//8
			if (color == "#adc5b5") {
				color2 = "#a99387";
				nomteinte2 = "Boiserie : <br/>Marron glac&eacute;";
				nomteinte = "Murale : <br/>Vert saule";
				idphoto = "_01";
				idbois = "12";
			}//9
			if (color == "#d1e5c5") {
				color2 = "#7e9e8f";
				nomteinte2 = "Boiserie : <br/>Eucalyptus";
				nomteinte = "Murale : <br/>Verveine";
				idphoto = "_02";
				idbois = "11";
			}//10
			if (color == "#7e9e8f") {
				color2 = "#e4d7c1";
				nomteinte2 = "Boiserie : <br/>Terre d'argile";
				nomteinte = "Murale : <br/>Eucalyptus";
				idphoto = "_10";
				idbois = "03";
			}//11
			if (color == "#a99387") {
				color2 = "#fff8c9";
				nomteinte2 = "Boiserie : <br/>Pistil";
				nomteinte = "Murale : <br/>Marron glac&eacute;";
				idphoto = "_11";
				idbois = "01";
			}//12
			if (color == "#f9eed6") {
				color2 = "#ccdb80";
				nomteinte2 = "Boiserie : <br/>Vert pousse";
				nomteinte = "Murale : <br/>Sable mouvant";
				idphoto = "_09";
				idbois = "05";
			}//13
			
			//MODIFS A FAIRE -------------------------------------------------------------------------------------------------------
			if (color == "#bca8a0") {
				color2 = "#7e9e8f";
				nomteinte2 = "Boiserie : <br/>Eucalyptus";
				nomteinte = "Murale : <br/>Bois de santal";
				idphoto = "_14";
				idbois = "07";
			}//14
			if (color == "#826458") {
				color2 = "#f9eed6";
				nomteinte2 = "Boiserie : <br/>Sable Mouvant";
				nomteinte = "Murale : <br/>Ch&acirc;taigne";
				idphoto = "_15";
				idbois = "09";
			}//15
			if (color == "#bccf3f") {
				color2 = "#f0ed9a";
				nomteinte2 = "Boiserie : <br/>Bambou";
				nomteinte = "Murale : <br/>Citronelle";
				idphoto = "_16";
				idbois = "04";
			}//16
			if (color == "#472311") {
				color2 = "#e4d7c1";
				nomteinte2 = "Boiserie : <br/>Terre d'argile";
				nomteinte = "Murale : <br/>&Eacute;b&egrave;ne";
				idphoto = "_17";
				idbois = "02";
			}//17
			if (color == "#d9be9a") {
				color2 = "#d1e5c5";
				nomteinte2 = "Boiserie : <br/>Verveine";
				nomteinte = "Murale : <br/>Gr&egrave;s";
				idphoto = "_18";
				idbois = "05";
			}//18
			if (color == "#7caaa3") {
				color2 = "#d9be9a";
				nomteinte2 = "Boiserie : <br/>Gr&egrave;s";
				nomteinte = "Murale : <br/>Olivier";
				idphoto = "_19";
				idbois = "08";
			}//19
			if (color == "#d6cbab") {
				color2 = "#d5dec3";
				nomteinte2 = "Boiserie : <br/>Vert amande";
				nomteinte = "Murale : <br/>Pierre de lune";
				idphoto = "_20";
				idbois = "07";
			}//20
			//FIN MODIFS A FAIRE -------------------------------------------------------------------------------------------------------
			
		 }
			
		if (ambiance == '2'){
		 
			if (color == "#fff8c9") {
				color2 = "#c1b2a5";
				nomteinte2 = "Boiserie : <br/>&Eacute;corce";
				nomteinte = "Murale : <br/>Pistil";
				idphoto = "_03";
				idbois = "07";
			}//1
			if (color == "#faf1da") {
				color2 = "#e4d7c1";
				nomteinte2 = "Boiserie : <br/>Terre d'argile";
				nomteinte = "Murale : <br/>Craie";
				idphoto = "_04";
				idbois = "03";
			}//2
			if (color == "#e4d7c1") {
				color2 = "#d5dec3";
				nomteinte2 = "Boiserie : <br/>Vert amande";
				nomteinte = "Murale : <br/>Terre d'argile";
				idphoto = "_05";
				idbois = "04";
			}//3
			if (color == "#d5dec3") {
				color2 = "#edeee5";
				nomteinte2 = "Boiserie : <br/>Kaolin";
				nomteinte = "Murale : <br/>Vert amande";
				idphoto = "_06";
				idbois = "08";
			}//4
			if (color == "#ccdb80") {
				color2 = "#f0ed9a";
				nomteinte2 = "Boiserie : <br/>Bambou";
				nomteinte = "Murale : <br/>Vert pousse";
				idphoto = "_12";
				idbois = "06";
			}//5
			if (color == "#f0ed9a") {
				color2 = "#f0ed9a";
				nomteinte2 = "Boiserie : <br/>Bambou";
				nomteinte = "Murale : <br/>Bambou";
				idphoto = "_08";
				idbois = "06";
			}//6
			if (color == "#b7a1a2") {
				color2 = "#ccdb80";
				nomteinte2 = "Boiserie : <br/>Vert pousse";
				nomteinte = "Murale : <br/>&Eacute;corce";
				idphoto = "_13";
				idbois = "05";
			}//7
			if (color == "#efecdb") {
				color2 = "#efecdb";
				nomteinte2 = "Boiserie : <br/>Kaolin";
				nomteinte = "Murale : <br/>Kaolin";
				idphoto = "_07";
				idbois = "08";
			}//8
			if (color == "#adc5b5") {
				color2 = "#f9eed6";
				nomteinte2 = "Boiserie : <br/>Sable mouvant";
				nomteinte = "Murale : <br/>Vert saule";
				idphoto = "_01";
				idbois = "13";
			}//9
			if (color == "#d1e5c5") {
				color2 = "#fff8c9";
				nomteinte2 = "Boiserie : <br/>Pistil";
				nomteinte = "Murale : <br/>Verveine";
				idphoto = "_02";
				idbois = "01";
			}//10
			if (color == "#7e9e8f") {
				color2 = "#faf1da";
				nomteinte2 = "Boiserie : <br/>Craie";
				nomteinte = "Murale : <br/>Eucalyptus";
				idphoto = "_10";
				idbois = "02";
			}//11
			if (color == "#a99387") {
				color2 = "#7e9e8f";
				nomteinte2 = "Boiserie : <br/>Eucalyptus";
				nomteinte = "Murale : <br/>Marron glac&eacute;";
				idphoto = "_11";
				idbois = "11";
			}//12
			if (color == "#f9eed6") {
				color2 = "#d1e5c5";
				nomteinte2 = "Boiserie : <br/>Verveine";
				nomteinte = "Murale : <br/>Sable mouvant";
				idphoto = "_09";
				idbois = "10";
			}//13
			
			//MODIFS A FAIRE -------------------------------------------------------------------------------------------------------
			if (color == "#bca8a0") {
				color2 = "#7e9e8f";
				nomteinte2 = "Boiserie : <br/>Eucalyptus";
				nomteinte = "Murale : <br/>Bois de santal";
				idphoto = "_14";
				idbois = "07";
			}//14
			if (color == "#826458") {
				color2 = "#f9eed6";
				nomteinte2 = "Boiserie : <br/>Sable Mouvant";
				nomteinte = "Murale : <br/>Ch&acirc;taigne";
				idphoto = "_15";
				idbois = "09";
			}//15
			if (color == "#bccf3f") {
				color2 = "#f0ed9a";
				nomteinte2 = "Boiserie : <br/>Bambou";
				nomteinte = "Murale : <br/>Citronelle";
				idphoto = "_16";
				idbois = "04";
			}//16
			if (color == "#472311") {
				color2 = "#e4d7c1";
				nomteinte2 = "Boiserie : <br/>Terre d'argile";
				nomteinte = "Murale : <br/>&Eacute;b&egrave;ne";
				idphoto = "_17";
				idbois = "02";
			}//17
			if (color == "#d9be9a") {
				color2 = "#d1e5c5";
				nomteinte2 = "Boiserie : <br/>Verveine";
				nomteinte = "Murale : <br/>Gr&egrave;s";
				idphoto = "_18";
				idbois = "05";
			}//18
			if (color == "#7caaa3") {
				color2 = "#d9be9a";
				nomteinte2 = "Boiserie : <br/>Gr&egrave;s";
				nomteinte = "Murale : <br/>Olivier";
				idphoto = "_19";
				idbois = "08";
			}//19
			if (color == "#d6cbab") {
				color2 = "#d5dec3";
				nomteinte2 = "Boiserie : <br/>Vert amande";
				nomteinte = "Murale : <br/>Pierre de lune";
				idphoto = "_20";
				idbois = "07";
			}//20
			//FIN MODIFS A FAIRE -------------------------------------------------------------------------------------------------------

		 }
		 
		 if (ambiance == '3'){
		 
			if (color == "#fff8c9") {
				color2 = "#c1b2a5";
				nomteinte2 = "Boiserie : <br/>&Eacute;corce";
				nomteinte = "Murale : <br/>Pistil";
				idphoto = "_03";
				idbois = "07";
			}//1
			if (color == "#faf1da") {
				color2 = "#d5dec3";
				nomteinte2 = "Boiserie : <br/>Vert amande";
				nomteinte = "Murale : <br/>Craie";
				idphoto = "_04";
				idbois = "04";
			}//2
			if (color == "#e4d7c1") {
				color2 = "#faf1da";
				nomteinte2 = "Boiserie : <br/>Craie";
				nomteinte = "Murale : <br/>Terre d'argile";
				idphoto = "_05";
				idbois = "02";
			}//3
			if (color == "#d5dec3") {
				color2 = "#a99387";
				nomteinte2 = "Boiserie : <br/>Marron glac&eacute;";
				nomteinte = "Murale : <br/>Vert amande";
				idphoto = "_06";
				idbois = "12";
			}//4
			if (color == "#ccdb80") {
				color2 = "#efecdb";
				nomteinte2 = "Boiserie : <br/>Kaolin";
				nomteinte = "Murale : <br/>Vert pousse";
				idphoto = "_12";
				idbois = "08";
			}//5
			if (color == "#f0ed9a") {
				color2 = "#ccdb80";
				nomteinte2 = "Boiserie : <br/>Vert pousse";
				nomteinte = "Murale : <br/>Bambou";
				idphoto = "_08";
				idbois = "05";
			}//6
			if (color == "#c1b2a5") {
				color2 = "#7e9e8f";
				nomteinte2 = "Boiserie : <br/>Eucalyptus";
				nomteinte = "Murale : <br/>&Eacute;corce";
				idphoto = "_13";
				idbois = "11";
			}//7
			if (color == "#efecdb") {
				color2 = "#e4d7c1";
				nomteinte2 = "Boiserie : <br/>Terre d'argile";
				nomteinte = "Murale : <br/>Kaolin";
				idphoto = "_07";
				idbois = "03";
			}//8
			if (color == "#adc5b5") {
				color2 = "#fff8c9";
				nomteinte2 = "Boiserie : <br/>Pistil";
				nomteinte = "Murale : <br/>Vert saule";
				idphoto = "_01";
				idbois = "01";
			}//9
			if (color == "#d1e5c5") {
				color2 = "#f9eed6";
				nomteinte2 = "Boiserie : <br/>Sable mouvant";
				nomteinte = "Murale : <br/>Verveine";
				idphoto = "_02";
				idbois = "13";
			}//10
			if (color == "#7e9e8f") {
				color2 = "#d1e5c5";
				nomteinte2 = "Boiserie : <br/>Verveine";
				nomteinte = "Murale : <br/>Eucalyptus";
				idphoto = "_10";
				idbois = "10";
			}//11
			if (color == "#a99387") {
				color2 = "#f0ed9a";
				nomteinte2 = "Boiserie : <br/>Bambou";
				nomteinte = "Murale : <br/>Marron glac&eacute;";
				idphoto = "_11";
				idbois = "06";
			}//12
			if (color == "#f9eed6") {
				color2 = "#adc5b5";
				nomteinte2 = "Boiserie : <br/>Vert saule";
				nomteinte = "Murale : <br/>Sable mouvant";
				idphoto = "_09";
				idbois = "09";
			}//13
			
			//MODIFS A FAIRE -------------------------------------------------------------------------------------------------------
			if (color == "#bca8a0") {
				color2 = "#7e9e8f";
				nomteinte2 = "Boiserie : <br/>Eucalyptus";
				nomteinte = "Murale : <br/>Bois de santal";
				idphoto = "_14";
				idbois = "07";
			}//14
			if (color == "#826458") {
				color2 = "#f9eed6";
				nomteinte2 = "Boiserie : <br/>Sable Mouvant";
				nomteinte = "Murale : <br/>Ch&acirc;taigne";
				idphoto = "_15";
				idbois = "09";
			}//15
			if (color == "#bccf3f") {
				color2 = "#f0ed9a";
				nomteinte2 = "Boiserie : <br/>Bambou";
				nomteinte = "Murale : <br/>Citronelle";
				idphoto = "_16";
				idbois = "04";
			}//16
			if (color == "#472311") {
				color2 = "#e4d7c1";
				nomteinte2 = "Boiserie : <br/>Terre d'argile";
				nomteinte = "Murale : <br/>&Eacute;b&egrave;ne";
				idphoto = "_17";
				idbois = "02";
			}//17
			if (color == "#d9be9a") {
				color2 = "#d1e5c5";
				nomteinte2 = "Boiserie : <br/>Verveine";
				nomteinte = "Murale : <br/>Gr&egrave;s";
				idphoto = "_18";
				idbois = "05";
			}//18
			if (color == "#7caaa3") {
				color2 = "#d9be9a";
				nomteinte2 = "Boiserie : <br/>Gr&egrave;s";
				nomteinte = "Murale : <br/>Olivier";
				idphoto = "_19";
				idbois = "08";
			}//19
			if (color == "#d6cbab") {
				color2 = "#d5dec3";
				nomteinte2 = "Boiserie : <br/>Vert amande";
				nomteinte = "Murale : <br/>Pierre de lune";
				idphoto = "_20";
				idbois = "07";
			}//20
			//FIN MODIFS A FAIRE -------------------------------------------------------------------------------------------------------

		 }
}
		 
		 
		  document.getElementById('couleurs_temps_detail_nom_teinte').innerHTML = nomteinte;
  		  document.getElementById('couleurs_temps_detail_nom_teinte').style.color = myCouleurinv(color);
			// Border couleur BOIS
		  //document.getElementById('couleurs_temps_detail_border'+idbois).style.border="thin solid #cccccc";
			// Affichage couleur BOIS + nom teinte
		  document.getElementById('couleurs_temps_teinte_boiserie').style.backgroundColor = color2;
		  document.getElementById('couleurs_temps_detail_nom_teinte2').style.color = myCouleurinv(color2);
		  document.getElementById('couleurs_temps_detail_nom_teinte2').innerHTML = nomteinte2;
		  document.getElementById('couleurs_temps_detail_nom_teinte2').style.display='block';
			// changement PHOTO
		  document.getElementById('couleurs_temps_detail_contenu_photo').src = '../img/partenaire_deco/' + nomambiance + ambiance + idphoto + '.jpg';
  
}


function	myCouleurinv(couleur)
{
	//alert(couleur);
	// IE 6+
	if (couleur < "#999999")
		return "#FFFFFF";
	else
		return "#000000";
}


function CDT_photo(nomambiance,ambiance) {
	if (idphoto == "")
	{
		document.getElementById('couleurs_temps_detail_contenu_photo').src = '../img/partenaire_deco/' + nomambiance + ambiance + '.jpg';
	}
	else 
	{
		document.getElementById('couleurs_temps_detail_contenu_photo').src = '../img/partenaire_deco/' + nomambiance + ambiance + idphoto + '.jpg';
	}
}



window.onload=montre;
function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('facade_smenu'+i)) {document.getElementById('facade_smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}


function envoieRequete(id2,id)
{
	var url = 'PART01_include.php?produit=' + id2;
    var myAjax = new Ajax.Request(url, 
        {
          method: 'post',
          onLoading: function (xhr)
            { // Après appel méthode open
              // (début de la requête Ajax)
            },
          onSuccess: function (xhr)
            {
				// Des qu'on a le nouveau contenu
                $(id).innerHTML = xhr.responseText;
            },
          onComplete: function()
            { 
            }
	});

}

function ChangeColor_tendances_plus(color,nomteinte) {
  document.getElementById('tendances_plus_detail_teinte').style.backgroundColor = color;
  document.getElementById('tendances_plus_detail_nom_teinte').innerHTML = nomteinte;
  document.getElementById('tendances_plus_detail_nom_teinte').style.display='block';
} 

function Changephoto_tendances_plus(nomfoto) {
	document.getElementById('tendances_plus_detail_contenu_photo').src = '../img/partenaire_deco/' + nomfoto;
} 


function ChangeColor_menu_tendances(menu){
	if(menu == 1){
		document.getElementById('menu_tendances_chic').style.backgroundImage = 'url(/img/partenaire_deco/menu_ecoChic_select.gif)';
		document.getElementById('menu_tendances_rigolo').style.backgroundImage = 'url(/img/partenaire_deco/menu_ecoRigolo.gif)';
		document.getElementById('menu_tendances_bois').style.backgroundImage = 'url(/img/partenaire_deco/menu_ecoBois.gif)';
		document.getElementById('menu_tendances_plus').style.backgroundImage = 'url(/img/partenaire_deco/menu_plus.gif)';
	}
	if(menu == 2){
		document.getElementById('menu_tendances_rigolo').style.backgroundImage = 'url(/img/partenaire_deco/menu_ecoRigolo_select.gif)';
		document.getElementById('menu_tendances_chic').style.backgroundImage = 'url(/img/partenaire_deco/menu_ecoChic.gif)';
		document.getElementById('menu_tendances_bois').style.backgroundImage = 'url(/img/partenaire_deco/menu_ecoBois.gif)';
		document.getElementById('menu_tendances_plus').style.backgroundImage = 'url(/img/partenaire_deco/menu_plus.gif)';
	}
	if(menu == 3){
		document.getElementById('menu_tendances_bois').style.backgroundImage = 'url(/img/partenaire_deco/menu_ecoBois_select.gif)';
		document.getElementById('menu_tendances_rigolo').style.backgroundImage = 'url(/img/partenaire_deco/menu_ecoRigolo.gif)';
		document.getElementById('menu_tendances_chic').style.backgroundImage = 'url(/img/partenaire_deco/menu_ecoChic.gif)';
		document.getElementById('menu_tendances_plus').style.backgroundImage = 'url(/img/partenaire_deco/menu_plus.gif)';
	}
	if(menu == 4){
		document.getElementById('menu_tendances_plus').style.backgroundImage = 'url(/img/partenaire_deco/menu_plus_select.gif)';
		document.getElementById('menu_tendances_rigolo').style.backgroundImage = 'url(/img/partenaire_deco/menu_ecoRigolo.gif)';
		document.getElementById('menu_tendances_bois').style.backgroundImage = 'url(/img/partenaire_deco/menu_ecoBois.gif)';
		document.getElementById('menu_tendances_chic').style.backgroundImage = 'url(/img/partenaire_deco/menu_ecoChic.gif)';
	}
}


function ChangeColor_tendances_chic(color,nomteinte) {
  document.getElementById('tendances_chic_teinte').style.display='block';
  document.getElementById('tendances_chic_teinte').style.backgroundColor = color;
  document.getElementById('tendances_chic_nom_teinte').innerHTML = nomteinte;
  document.getElementById('tendances_chic_nom_teinte').style.display='block';
} 


//**********************   INDEX   ******************************//
function change_fond(numFond) {
    document.getElementById('index_gamme').style.backgroundImage = 'url(/img/index/pot' + numFond + '.gif)';
} 


//**********************  RIPOLIN ENVIRONNEMENT  ***************//

function ssmenu(calq)
{
	if(document.getElementById(calq).style.display == 'block')
		document.getElementById(calq).style.display = 'none';
	 else
		document.getElementById(calq).style.display = 'block';
}

function affichePot(numImage)
{
	document.getElementById('gamme_img').style.backgroundImage = 'url(/img/environnement/pot/' + numImage + '.gif)';
}

function effacePot(numImage)
{
	document.getElementById('gamme_img').style.backgroundImage = 'url(/img/environnement/pot/vide.gif)';
}