function evb_Enseigne(strLien) {
	var strPageEnCours = window.location.href;
	var strHost = window.location.host;
	var reg=new RegExp("(.*Sonepar-)(.*)(-Site.*)", "gi");
	var strEnseigneEnCours = strPageEnCours.replace(reg, "$2");
	var strLienEnseigne = strLien.replace(reg,"$1"+strEnseigneEnCours+"$3");
	//self.location.href(strLienEnseigne);
	window.location.href ="http://"+ strHost + strLienEnseigne;
	return;
} 
	// Recherche d'un sous élément par son classname
	function getElementsByClassName(parent, class_name) {
		if(parent.getElementsByClassName) { // non IE
			return parent.getElementsByClassName(class_name);
		} else { // IE
			var docList = parent.all || parent.getElementsByTagName('*');
		    var matchArray = new Array();
		
		    /*Create a regular expression object for class*/
		    var re = new RegExp("(?:^|\\s)"+class_name+"(?:\\s|$)");
		    for (var i = 0; i < docList.length; ++i) {
		        if (re.test(docList[i].className) ) {
		            matchArray[matchArray.length] = docList[i];
		        }
		    }
			return matchArray;
		}
	}
function pageFonctionnalite() {
	  var strPageEnCours = window.location.href;
    if (strPageEnCours.indexOf('ViewProductConsulting-GetTopProducts')>0) {
    document.getElementById("topProduits").style.backgroundImage="url('/is-bin/intershop.static/WFS/Sonepar-Site/Sonepar/fr_FR/Sonepar/EspaceClient/menuGauche/bt_Preferes_selected.png')";
    }
    if (strPageEnCours.indexOf('ShowPaniersExperts')>0) {
    document.getElementById("panierIntuitif").style.backgroundImage="url('/is-bin/intershop.static/WFS/Sonepar-Site/Sonepar/fr_FR/Sonepar/EspaceClient/menuGauche/bt_paniersIntuitifs_selected.png')";
      var mesPi = getElementsByClassName(document, "padding_zone");
      for (i=0; i < mesPi.length; i++) {
        mesPi[i].style.height="180px";
      }
    }
    if (strPageEnCours.indexOf('AjoutMultiple-')>0) {
    document.getElementById("ajoutMultiple").style.backgroundImage="url('/is-bin/intershop.static/WFS/Sonepar-Site/Sonepar/fr_FR/Sonepar/EspaceClient/menuGauche/bt_AjoutMultiple_selected.png')";
    }
    return;
 }
