function traitement_en_cours_site(id,affiche_mot) {	
	
	//id.style.display = "none";
	
	id.style.opacity = 0.01;
	id.style.filter = 'alpha(opacity=' + 1 + ')';
	

	x = parseInt(document.body.clientWidth)/2 ;
	y = parseInt(document.body.clientHeight)/2 - 50;
	
	var newdiv=document.createElement("div");
	newdiv.id = 'wait_pannel';
	newdiv.style.textAlign = "center";

	newdiv.style.position = "absolute";
	newdiv.style.height = "50px";
	newdiv.style.width = "175px";
	newdiv.style.top = y+"px";
	newdiv.style.left = x+"px";
	newdiv.style.display = "block";
	
	newdiv.innerHTML = "<img src=\"intranet/image_intra/wait_blue.gif\"  /><br />"+affiche_mot+" ...";
	
	document.body.appendChild(newdiv);
}


<!-- Était dans les templates

var menuids=["menu_principal"] 

function buildsubmenus_horizontal(){
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
		if (ultags[t].parentNode.parentNode.id==menuids[i]){ //if this is a first level submenu
			ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px" //dynamically position first level submenus to be height of main menu item
			ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"
		}
		else{ //else if this is a sub level menu (ul)
		  ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
		  ultags[t].style.top=ultags[t-1].getElementsByTagName("a")[0].offsetTop+"px"
    	ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"
		}
    ultags[t].parentNode.onmouseover=function(){
    this.getElementsByTagName("ul")[0].style.visibility="visible"
    }
    ultags[t].parentNode.onmouseout=function(){
    this.getElementsByTagName("ul")[0].style.visibility="hidden"
    }
    }
  }
}

/*if (window.addEventListener)
window.addEventListener("load", buildsubmenus_horizontal, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus_horizontal)*/





function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function change_bg(id) {
	document.getElementById(id).style.background = "url(image/zone_info_accueil/"+id+"_roll.gif)";

}

function enlever_bg(id) {
	document.getElementById(id).style.background = "url(image/zone_info_accueil/"+id+".gif)";

}
var xmlHttp;
function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
	 {
 		// Firefox, Opera 8.0+, Safari
		 xmlHttp=new XMLHttpRequest();
	 }
	 catch (e)
	 {
 //Internet Explorer
		 try
		  {
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		  }
		 catch (e)
		  {
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		  }
 	 }
	 return xmlHttp;
}

var xmlDoc;
function get_meteo()
{
	//alert("Remplir_combo");
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
	 	return
	} 

	var url="meteo_rss.php";
	

	//prompt(url,url);
	
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	xmlHttp.onreadystatechange=aff_conditions;
	

}


function aff_conditions()
{
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 	{
		xmlDoc=xmlHttp.responseXML;
		//alert('reponse recue');
		try
		{
			xmlDoc.getElementsByTagName("donnees")[0].childNodes[0].nodeValue != "EMPTY"
		}
		catch(e)
		{
			xmlDoc=xmlHttp.responseText;
			//alert (xmlDoc);
			return false;
		}
		//alert('id_produit:'+xmlDoc.getElementsByTagName("id_produit")[0].childNodes[0].nodeValue);
		if(xmlDoc.getElementsByTagName("erreurs")[0].childNodes[0].nodeValue == "EMPTY")
		{
			var condition = xmlDoc.getElementsByTagName("condition")[0].childNodes[0].nodeValue;
			var temperature = xmlDoc.getElementsByTagName("temperature")[0].childNodes[0].nodeValue;
			var image_condition = "";
			switch(condition)
			{
				case "Ensoleillé": 						image_condition = "soleil.png";
														break;
				case "Généralement ensoleillé": 		image_condition = "general_soleil.png";
														break;
														
				case "Ciel voilé": 						image_condition = "general_soleil.png";
														break;
														
				case "Dégagé": 							image_condition = "degage.png";
														break;
				case "Ciel variable": 					image_condition = "ciel_variable.png";
														break;
				case "Nuageux avecéclaircies": 		image_condition = "degage.png";
														break;
				case "Quelques nuages": 				image_condition = "general_soleil.png";
														break;
				case "Passages nuageux": 				image_condition = "ciel_variable.png";
														break;
				case "Ensoleillé avec passages nuageux": 	image_condition = "degage.png";
														break;
				case "Généralement dégagé": 			image_condition = "degage.png";
														break;
				case "Nuageux": 						image_condition = "nuage.png";
														break;
				case "Plutôt nuageux": 					image_condition = "nuage.png";
														break;
				case "Bancs de brouillard": 			image_condition = "brouillard.png";
														break;
				case "Brouillard": 						image_condition = "brouillard.png";
														break;
				case "Faible pluie": 					image_condition = "nuage_pluie.png";
														break;
				case "Nuageux avec quelques flocons": 	image_condition = "quelques_flocons.png";
														break;
				case "Faible neige": 					image_condition = "neige.png";
														break;
				case "Faibles averses de neige": 		image_condition = "quelques_flocons.png";
														break;
				case "Brume sèche": 					image_condition = "nuage.png";
														break;
				case "Bruine verglaçante": 				image_condition = "bruine_vergla.png";
														break;
				case "Nuageux avec éclaircies et averses isolées": 	image_condition = "soleil_nuage_pluie.png";
														break;
				case "Nuageux avec averses": 	        image_condition = "nuage_averse.png";
														break;
				case "Nuageux avec éclaircies": 	    image_condition = "ciel_variable.png";
														break;
				case "Nuageux avec orages": 	  		  image_condition = "nuage_pluie_eclairs.png";
														break;
				case "Mélange pluie-neige": 	   		 image_condition = "bruine_vergla.png";
														break;
				case "Nuageux avec éclaircies et averses de neige isolées": image_condition = "soeil_neige.png";
														break;

				default	: 								image_condition = "ciel_variable.png"
														break;
			}
			
			document.getElementById('esp_condition').innerHTML =  "<table cellspacing=\"0\" cellpadding=\"0\"><tr><td colspan=\"2\"><img src=\"image/manawan.jpg\" width=\"75\" height=\"19\" /></td></tr><tr><td><img alt=\""+condition+"\" src=\"image/icone_meteo/"+ image_condition +"\" /></td><td><span style=\"vertical-align:middle;\" class=\"texte_blanc\">&nbsp;&nbsp;"+temperature+"</span></td></tr></table>";
		
			//Pour faire afficher les png avec la transparence en IE6
			var arVersion = navigator.appVersion.split("MSIE")
			var version = parseFloat(arVersion[1])
			
			if ((version >= 5.5) && (document.body.filters)) 
			{
			   for(var i=0; i<document.images.length; i++)
			   {
				  var img = document.images[i]
				  var imgName = img.src.toUpperCase()
				  if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
				  {
					
					 var imgID = (img.id) ? "id='" + img.id + "' " : ""
					 var imgClass = (img.className) ? "class='" + img.className + "' " : ""
					 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
					 var imgStyle = "display:inline-block;" + img.style.cssText 
					 if (img.align == "left") imgStyle = "float:left;" + imgStyle
					 if (img.align == "right") imgStyle = "float:right;" + imgStyle
					 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
					 var strNewHTML = "<span " + imgID + imgClass + imgTitle
					 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
					 + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
					 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
					 img.outerHTML = strNewHTML
					 i = i-1
				  }
			   }
			}
			//
		}
		else
		{
			document.getElementById('esp_condition').innerHTML = "";			
		}
	}
}
//-->