//MAP
function montre_map() { 
	document.getElementById('Layer_map').style.visibility='visible';
	document.getElementById('Layer_map').style.display='block';
} 
// ----------------------------- 
function cache_map() { 
	document.getElementById('Layer_map').style.visibility='hidden';
	document.getElementById('Layer_map').style.display='none';
} 

//FICHE DETAIL
function montre_detail() { 
	document.getElementById('Layer_detail').style.visibility='visible';
	document.getElementById('Layer_detail').style.display='block';
} 
// ----------------------------- 
function cache_detail() { 
	document.getElementById('Layer_detail').style.visibility='hidden';
	document.getElementById('Layer_detail').style.display='none';
} 

function montre_detailPanier(categ) {
	var option = {  url: "/ajax/ficheProduit.php?categorie="+categ,
					method : 'get' ,
					update: $('fiche_detail'),
					success: montre_detail(),
					evalScripts: true
	};
	var requestPanier= new Request.HTML( option );
	requestPanier.send();
}

//ESPACE PERSO
function montre_espace_perso() { 
	document.getElementById('Layer_espace_perso').style.visibility='visible';
	document.getElementById('Layer_espace_perso').style.display='block';
	document.getElementById('inscription_pro').value='0';
	document.getElementById('login_compte_pro').value='0';
	document.getElementById('titreLogin').innerHTML='Customer Login';
	document.getElementById('texteInscription').innerHTML='';
} 
// ----------------------------- 
function cache_espace_perso() { 
	document.getElementById('Layer_espace_perso').style.visibility='hidden';
	document.getElementById('Layer_espace_perso').style.display='none';
} 

//INSCRIPTION ESPACE PERSO
function montre_inscri_espace_perso() { 
	document.getElementById('Layer_inscri_espace_perso').style.visibility='visible';
	document.getElementById('Layer_inscri_espace_perso').style.display='block';
	document.getElementById('Layer_espace_perso').style.visibility='hidden';
	document.getElementById('Layer_espace_perso').style.display='none';
} 
//-----------------------------------
function cache_inscri_espace_perso() { 
	document.getElementById('Layer_inscri_espace_perso').style.visibility='hidden';
	document.getElementById('Layer_inscri_espace_perso').style.display='none';
}

//ESPACE PRO
function montre_espace_pro() { 
	montre_espace_perso();
	document.getElementById('inscription_pro').value='1';
	document.getElementById('login_compte_pro').value='1';
	document.getElementById('titreLogin').innerHTML='Reseller Login';
	document.getElementById('texteInscription').innerHTML='You are a reseller, we offer a pricing and express shipments tailored to your business.<br />For this, to validate registration "Reseller" we need some information on your company.<br />Please fill out the form below and submit. <b>We will give you your access codes "Resellers" by e-mail within 24 hours.</b><br /><br />';
} 
	  
//HOME
function montre_home(numero) { 
	document.getElementById(numero).style.visibility='visible';
	document.getElementById(numero).style.display='block';
} 
// ----------------------------- 
function cache_home() { 
	for (i=1; i<13; i++) {
		document.getElementById(i).style.visibility='hidden';
		document.getElementById(i).style.display='none';
	}
}