// JavaScript Document
document.write('<scr' + 'ipt src="/js/text-customize.js" type="text/javascript"><\/scr' + 'ipt>');
document.write('<scr' + 'ipt src="/js/class_cookie.js" type="text/javascript"><\/scr' + 'ipt>');

function getEdition(chemin)
{
	fn = document.getElementById("comboEdition").form.name;
	c = document.getElementById("comboEdition");

	if(eval("document."+fn+".edition[3].checked == true") && c.selectedIndex == 0)
	{
		alert("Veuillez sélectionner une édition.");
		return;
	}
	
	//	Edition locale
	if (eval("document."+fn+".edition[3].checked == true"))
	{
		edition = c.value;
	}
	//	Edition France Régions
	else if(eval("document."+fn+".edition[0].checked == true"))
	{
		edition = "REGION";
	}
	else if(eval("document."+fn+".edition[1].checked == true"))
	{
		edition = "ECONOMIE";
	}
	else
	{
		edition = "FRANCEMONDE";
	}
	
	url = chemin + edition + "/SOMMAIRE.phtml";
	window.location = url;
}

function montre(id) {
	var d = document.getElementById(id);	
	for (var i = 1; i<=10; i++) {	
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}	
	}
	if (d) {d.style.display='block';}
}

onload = function(){
	montre();
}		

function openWindow_EspaceCleint(file,tx,ty) {
	options = "menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no";
	var xMax = screen.width;
	var yMax = screen.height;
	var xOffset = (xMax - 600)/2;
	var yOffset = (yMax - 400)/2;
	Fenetre = open(file,'VDN','width='+tx+',height='+ty+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+','+options+'');
}