//check the querystring to set up correct menu from last page
function QueryMenu (smenu) {
	if (smenu != "") {
		show(smenu);
	}
	else show();
}
//show or hide items of the menu
function show(id) {
var d = document.getElementById(id);
	for (var i = 0; i<=30; i++) {
		if (document.getElementById('smenu'+i)) {
			document.getElementById('smenu'+i).style.color='#284d99';
			}
	}
if (d) { //the current menu item
	d.style.color='#707173';}
}

//get vars from URL parameters
function getURLParam(strParamName){
  var strReturn = "";
  var strHref = window.location.href;
  if ( strHref.indexOf("&") > -1 ){
    var strQueryString = strHref.substr(strHref.indexOf("&")).toLowerCase();
    var aQueryString = strQueryString.split("&");
    for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
      if (
aQueryString[iParam].indexOf(strParamName + "=") > -1 ){
        var aParam = aQueryString[iParam].split("=");
        strReturn = aParam[1];
        break;
      }
    }
  }
  return strReturn;
}

//encodage mail

function d_email (nom, domaine, pays) 

{
	document.write ("<a hr" + "ef=mai" + "lto:" + nom +"@");
	document.write (domaine + "." + pays + ">");
	document.write ("<img src='images\/Envel-Blue.png' \/><\/a>");
	//document.write ("email<\/a>");
}

function courrier2 (nom, domaine, pays) 

{
	if(nom != ""){
		document.write ("<a hr" + "ef=mai" + "lto:" + nom +"@");
		document.write (domaine + "." + pays + ">");
		document.write (nom + "@" + domaine + "." + pays + "<\/a>");
		//document.write ("email<\/a>");
	}
}