
function SelectControle(Controleur, Controle, Masquer) 					// cas balise <select>
	{		
	var objControleur = document.getElementById(Controleur);
	var objControle = document.getElementById(Controle);

	if (Masquer=='1')			// cache/montre
		objControle.style.visibility=(objControleur.options[objControleur.selectedIndex].value=='1')?'visible':'hidden';
	else						// active/desactive
		objControle.disabled=(objControleur.options[objControleur.selectedIndex].value=='1')?false:true;
	return true;
	}

function popupcentree(page,largeur,hauteur,options)  		// appelé avec popupcentree("fic.html",250,300,"menubar=no,scrollbars=no,statusbar=no")
	{     
	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 imprime() 
	{
	if (typeof(window.print) != 'undefined')
		{
		window.print(); 
		}
	}
function mail(name, domain, subject, image)
	{
	document.write('<a href=\"mailto:' + name + '@' + domain + '?subject=' + subject + '\" id=\"justifier\" >') ;
	document.write( image + '</a>') ;
	}


function PopupImage(img, titre) 
	{
	w=open("",'image','width=400,height=420,toolbar=no,scrollbars=no,resizable=no,status=no');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE>");
	w.document.write("<SC"+"RIPT language=java"+"script> function checksize()  { if (document.images['img'].complete) {  window.resizeTo(document.images[0].width+10,document.images[0].height+50); window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT></HEAD>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0 bgcolor='#FAF0C8'><IMG src='"+img+"' border=0 name='img'>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
	}
	

var buttons = new Array("menu_presentation","menu_savoir-faire","menu_secteurs-activite","menu_actualites");		

function openM( button_name ){
		// Close all
		for( i =0; i < buttons.length; i++ )
			document.getElementById( buttons[i] ).style.display = 'none';
		// Open selected
		document.getElementById(button_name).style.position = 'absolute';
		document.getElementById(button_name).style.display = 'inline';
		
	}
	
//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.position = 'absolute'; d.style.display = 'inline';}
}



function includeFlash( id, width, height, movie) 
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + width + '" height="' + height + '" id="' + id + '" align="middle" border="0"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="' + movie + '" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent"><embed src="' + movie + '" wmode="transparent" quality="high" bgcolor="#ffffff" width="' + width + '" height="' + height + '" name="' + id + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}