/*window.onload=montre;*/

function montre(id){
	

	/*
	if(id == 'smenu1' || id == 'smenu2' || id == 'smenu3' || id == 'smenu4' || id == 'smenu5' || id == 'smenu6')
	{
		document.getElementById('urldest').style.visibility = 'hidden';
	}
	else
	{
		document.getElementById('urldest').style.visibility = 'visible';
	}
*/
	
	
	
	var d = document.getElementById(id);
	for (var i = 1; i<=6; i++)
	{
		if (document.getElementById('smenu'+i))
		{
			document.getElementById('smenu'+i).style.display='none';
		}
	}
	if (d)
	{
		d.style.display='block';
	}
}


function on(calc){
	document.getElementById(calc).style.backgroundColor='#4F4F4F';
	document.getElementById(calc+'-1').style.color='#ffd102';
	document.getElementById(calc+'-2').style.color='#ffffff';
	document.getElementById(calc+'-3').style.color='#ffd102';
}
function off(calc){
	document.getElementById(calc).style.backgroundColor='#f7f7f7';
	document.getElementById(calc+'-1').style.color='#000';
	document.getElementById(calc+'-2').style.color='#000';
	document.getElementById(calc+'-3').style.color='#000';

}
function on2(calc){
	document.getElementById(calc+'-1').style.color='#ffd102';
	document.getElementById(calc+'-2').style.color='#ffd102';
	document.getElementById(calc+'-3').style.color='#ffd102';
}
function off2(calc){
	document.getElementById(calc+'-1').style.color='#fff';
	document.getElementById(calc+'-2').style.color='#fff';
	document.getElementById(calc+'-3').style.color='#fff';
}


function detail(calc){
	
	document.getElementById('siege-social-detail').style.display = 'none';
	for(var j = 1; j<=15; j++)
	{
		if(document.getElementById('ligne'+j+'-detail'))
		{
		document.getElementById('ligne'+j+'-detail').style.display = 'none';
		}
	}

	document.getElementById(calc+'-detail').style.display='block';
	window.scrollTo(0,0);
	document.getElementById('urldest').style.display = 'none';

	document.getElementById('fond_popup').style.display = 'block';
	var regex = new RegExp("MSIE 6.0","gi");
	if(regex.test(navigator.appVersion))
	{
		//alert('op');
		document.getElementById('fond_popup').style.width = screen.width - 23+'px';
		//document.getElementById('fond_popup').style.height = screen.height+'px';
	}
}

function pclose(calc){
	document.getElementById(calc+'-detail').style.display = 'none';
	document.getElementById('urldest').style.display = 'block';
	document.getElementById('fond_popup').style.display = 'none';
}
		
function OuvrirPopup(lienHTTP,width,height,scroll) {
	var fen = window.open(lienHTTP.href,'Popup','resizable=no, location=no, width='+width+', height='+height+', status=no, scrollbars='+scroll+', menubar=no');
	fen.focus();
	return false;
}