// JavaScript Document

function PopupCentrer(page,largeur,hauteur,options) {
  var top=(screen.height-hauteur)/2;
  var left=(screen.width-largeur)/2;
  window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}

function clicie() {
	// Fonction de détection pour Internet Explorer
	if ((event.button==2)||(event.button==3)) {
		alert("Tous droits réservés Salons FRANCE CE");
	}
}
function clicns(e){
	// Fonction pour Netscape
	if(e.which==3){
		alert("Tous droits réservés Salons FRANCE CE pour les Comités d'Entreprise");
		return false;
	}
}
if (document.all) {	document.onmousedown=clicie;}
if (document.layers) {document.captureEvents(Event.MOUSEDOWN); document.onmousedown = clicns;}
if (window.sidebar) {document.captureEvents(Event.MOUSEDOWN); document.onmousedown = clicns;}


function switchbackground(elem, color1, color2)
{
	//alert(elem.style.backgroundColor);
	color1 = color1.toLowerCase();
	color2 = color2.toLowerCase();
	
	if ( elem.style.backgroundColor == color2 )
	{
		elem.style.backgroundColor = color1;
		elem.childNodes[0].style.color = '#000099';
		elem.childNodes[1].style.color = '#000000';
	} 
	else 
	{ 
		elem.style.backgroundColor = color2; 
		elem.childNodes[0].style.color = '#ffffff';
		elem.childNodes[1].style.color = '#ffffff';
	}
}

window.onload=montre;
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';}
}
