function Page(mapage) 
	{
	document.location.href='page-'+(mapage)+'.html';
	}

function Produit(mapage) 
	{
	document.location.href='produit-'+(mapage)+'.html';
	}

function apercu(wid,hgt,photo) 
	{
    var larg =  wid  ; // ici la largeur du popup
    var haut = hgt ;  // ici la hauteur du popup
    var t = (screen.height-haut)/2 ;  // pour centre selon la hauteur de l'écran
    var l = (screen.width-larg)/2 ; // pour centrer selon la largeur de l'écran
	window.open("photo.php?photo="+(photo),"APERCU","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,width="+(larg)+",height="+(haut)+",left="+(l)+",top="+(t));
	}
function Ferme () 
	{ 
	window.close();
	} 


function afficherMasquerMenu(start_cache,start_fin,montre)
{ 
for (a=start_cache; a<start_fin; a++){
      if(document.getElementById('sous_menu_'+(a))!=null)
			document.getElementById('sous_menu_'+(a)).className='cache';
	}

if(document.getElementById('sous_menu_'+(montre))!=null)
	document.getElementById('sous_menu_'+(montre)).className='apparent';	
}


function AfficheLocMap(mon_id,tot_id)
{
for (a=0; a<tot_id; a++){
	document.getElementById('locdiv'+(a)).className='cache';
	}
document.getElementById('locdiv'+(mon_id)).className='apparent';	
}

function AfficheLocMapCal(mon_id,tot_id)
{
for (a=0; a<tot_id; a++){
	document.getElementById('locdiv'+(a)).className='cache';
	}
for (a=0; a<tot_id-1; a++){
	document.getElementById('locdivcal'+(a)).style.fontWeight='normal';
	document.getElementById('locdivcal'+(a)).style.color='#ffffff';	
	}
document.getElementById('locdiv'+(mon_id)).className='apparent';	
document.getElementById('locdivcal'+(mon_id)).style.fontWeight='bold';
document.getElementById('locdivcal'+(mon_id)).style.color='#e15a5a';
}
function AfficheLocMapPil(mon_id,tot_id,ind)
{
for (a=0; a<tot_id; a++){
	document.getElementById((ind)+'locdiv'+(a)).className='cache';
	}
document.getElementById((ind)+'locdiv'+(mon_id)).className='apparent';	
}


