<!--
function MM_jumpMenu(objThis){
    var strLocation, strNewLocation , strNewLang, intPos,strAnd, strLocationVariables;
    var arrVariables = null;   

    strLocation = window.location.href.toLowerCase();
    /* On sépare l'adresse url des variables passées dans le querystring en laissant de coté le caractère "?" */
    intPos =  strLocation.indexOf(".asp") + 4;
    /*adresse url*/
    strNewLocation = strLocation.substring(0,intPos);
    /*variables*/
    strLocationVariables = strLocation.substring(intPos+1);
    /*on met chaque variable dans un element d'un tableau*/    
    if (strLocationVariables != "")
        arrVariables = strLocationVariables.split("&");

    /* On recupere la langue demandé */
    strNewLang = objThis[objThis.selectedIndex].value;
    
    /*on recompose le lien vers la page dans l'autre lanque,
     le traitement est différent si on est dans une page statique ou dynamique*/
    /*page dynamique*/
    if(strNewLocation.indexOf("public/www") != -1 )
    {
        if(strNewLocation.toLowerCase().indexOf("/en/") != -1)
            strNewLocation = strNewLocation.replace("/en/","/fr/") + "?langue=" + strNewLang;    
        else
            strNewLocation = strNewLocation.replace("/fr/","/en/") + "?langue=" + strNewLang;            
   
    }
    /*page statique*/
    else if (strNewLocation.toLowerCase().indexOf("consultation") != -1)
    {
        strNewLocation = strNewLocation + "?langue=" + strNewLang;
    }
    /*on ajoute à la nouvelle adresse les variables récupérées*/
    if (arrVariables != null){
        for (var i = 0  ; i <arrVariables.length;i++ ){
            if (arrVariables[i].indexOf("langue")== -1)
                strNewLocation = strNewLocation + "&" + arrVariables[i];
        }
    }
    //alert(strNewLocation);
    window.location.href = strNewLocation;

}

function selectLangue(strLangue){
    var strLocation , strLangueUrl
    strLocation = window.location.href.toLowerCase();
    strLangueUrl = "/" + strLangue + "/"
    if(strLocation.indexOf("public/www") != -1 )
    {
        if(strLocation.toLowerCase().indexOf(strLangueUrl) == -1)
        {
           //alert(strLocation); 
           strLocation = strLocation.replace(/(\/fr\/)|(\/en\/)/,  strLangueUrl);
           //alert(strLocation);
           window.location.href = strLocation 
         }
    }
    //alert(strLangue);
    
    if (strLangue == "fr")
    document.forms[0].menulg.selectedIndex = 0
    else
    document.forms[0].menulg.selectedIndex = 1
    
}

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';}
}


function montred() {document.getElementById('smenud').style.display='block';}
function cached() {document.getElementById('smenud').style.display='none';}

function montrermenu(id , idc){
   	if (document.getElementById('menu'+ id)) {document.getElementById('menu'+ id).style.display='block';}
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('menu'+i) && (i != id)) {
		    document.getElementById('menu'+i).style.display='none';
		}
	}
	if (idc != null){
        for(i = 1;i <= idc.length;i++){
            if (document.getElementById('bcrums'+ idc.substring(0,i))) {
                document.getElementById('bcrums'+ idc.substring(0,i)).style.display='inline';
           }
        }
    }
}

function montreBcrums(idc) {
    for(i = 1;i <= idc.length;i++){
        if (document.getElementById('bcrums'+ idc.substring(0,i))) {document.getElementById('bcrums'+ idc.substring(0,i)).style.display='inline';}
    }
}

function alaposte(s,t){
	location.href = String.fromCharCode(109,97,105,108,116,111)+':'+s+String.fromCharCode(64)+t;
}
//-->
