//------ RAFRAICHIR LA PAGE ---//
function regenerate()
{
	window.location.reload()
}

//---- AFFICHER LES CALQUES-------//
function afficher(img)
{
	if (document.getElementById)
	{
		var layerObj=document.getElementById(img);
		layerObj.style.visibility='visible';
		return;
	}

	else if (document.all)
	{
		var calc_ie = document.all[img];
		calc_ie.style.visibility='visible';
		eval (calc_ie);
	}

	else if (document.layers)
	{
		var calc_ns = document.layers[img];
		calc_ns.visibility='show';
		eval (calc_ns);
	}
}

//------ AFFICHER LE SOUMENU 1-----//
function afficherSmenu7()
{
	on('aca');
	afficher('px');
	afficher('smenu70');
	afficher('smenu71');
}

//------ AFFICHER LE SOUMENU 1-----//
function afficherSmenu1()
{
	on('cat');
	afficher('px');
	afficher('smenu10');
	afficher('smenu11');
	afficher('smenu12');
	afficher('smenu13');
	afficher('smenu14');
	afficher('smenu15');
}

//------ AFFICHER LE SOUMENU 2-----//
function afficherSmenu2()
{
	on('rad');
	afficher('px');
	afficher('smenu20');
	afficher('smenu21');
	afficher('smenu22');
	afficher('smenu23');
	afficher('smenu24');
}

//------ AFFICHER LE SOUMENU 2-----//
function afficherSmenu4()
{
	on('ass');
	afficher('px');
	afficher('smenu30');
	afficher('smenu31');
	afficher('smenu32');
	afficher('smenu33');
	afficher('smenu34');
}

//------- COLORER LES SOUS MENUS-----//
function colorFonce(smenu)
{
	if (document.getElementById)
	{
		var layerObj=document.getElementById(smenu);
			layerObj.style.backgroundColor = '#CEA8AD';
	}

	else if (document.all)
	{
		calcie='document.all.'+ smenu +'.style.backgroundColor=\'#CEA8AD\'';
		eval (calcie);
	}

	else if (document.layers) 
	{
		calcns='document.layers.'+ smenu +'.bgColor=\'#CEA8AD\'';
		eval (calcns);
	}
}

function colorClair()
{	
	var color = new Array();

	color[0]= "smenu10" ;
	color[1]= "smenu11" ;
	color[2]= "smenu12" ;
	color[3]= "smenu13" ;
	color[4]= "smenu14" ;
	color[5]= "smenu15" ;
	color[6]= "smenu20" ;
	color[7]= "smenu21" ;
	color[8]= "smenu22" ;
	color[9]= "smenu23" ;
	color[10]= "smenu24" ;
	color[11]= "smenu30" ;
	color[12]= "smenu31" ;
	color[13]= "smenu32" ;
	color[14]= "smenu33" ;
	color[15]= "smenu34" ;
	color[16]= "smenu70" ;
	color[17]= "smenu71" ;

	howMany = color.length;

	for(k = 0; k < howMany; k++)
	{
		if (document.getElementById)
		{
			var layerObj=document.getElementById(color[k]);
				layerObj.style.backgroundColor = '#FFFFFF';
		}
	
		else if (document.all)
		{
			calcie='document.all.'+ color[k] +'.style.backgroundColor=\'#FFFFFF\'';
			eval (calcie);
		}
	
		else if (document.layers) 
		{
			calcns='document.layers.'+ color[k] +'.bgColor=\'#FFFFFF\'';
			eval (calcns);
		}
	}
}


//------INITIALISER LES MENUS------//
function initialiser()
{
	var smenu = new Array();

	smenu[0]= "px" ;
	smenu[1]= "smenu10" ;
	smenu[2]= "smenu11" ;
	smenu[3]= "smenu12" ;
	smenu[4]= "smenu13" ;
	smenu[5]= "smenu14" ;
	smenu[6]= "smenu15" ;
	smenu[7]= "smenu20" ;
	smenu[8]= "smenu21" ;
	smenu[9]= "smenu22" ;
	smenu[10]= "smenu23" ;
	smenu[11]= "smenu24" ;
	smenu[12]= "smenu30" ;
	smenu[13]= "smenu31" ;
	smenu[14]= "smenu32" ;

	smenu[15]= "smenu33" ;
	smenu[16]= "smenu34" ;
	
	smenu[17]= "smenu70" ;
	smenu[18]= "smenu71" ;

	howMany = smenu.length;

	for(j = 0; j < howMany; j++)
	{
		if (document.getElementById)
		{
			var layerHome=document.getElementById(smenu[j]);
			layerHome.style.visibility='hidden';
		}

		else if (document.all)
		{
			ie='document.all.'+ smenu[j] +'.style.visibility=\'hidden\'';
			eval (ie);
		}

		else if (document.layers)
		{
			ns='document.layers.'+ smenu[j] +'.visibility=\'hidden\'';
			eval (ns);
		}
	}

	of('aca');
	of('cat');
	of('rad');
	of('age');
	of('ass');
	of('lie');
}

function ouvre(dest,larg,haut)
{
	dest = open(dest,'Clicquot',"toolbar=0,directories=0,menubar=0,scrollbars=no,status=0,resizable=yes,width="+ larg +",height="+ haut +"resizable=no");
}