String.prototype.strReplace = function (needle, replace) { return this.split (needle).join (replace); } /* *************************************** */ /* Gestion du menu supérieur * */ var menuHMouse = function (hover, element, isFirst) { if (element.className == "MSelected" || element.className == "bgRed") { return true; } if (hover) { element.odlClassname = element.className; element.className = (isFirst ? "bgBlueHover" : "MHover" ); } else { element.className = element.odlClassname; } return true; } /* *************************************** */ /* Changement de langue * */ var chgLang = function (lang) { if (!lang) return false; location.pathname = "/webrif/NEWespace_presse.nsf/wHomePage"; var cURL = location.protocol + "//" + location.host + (location.port ? ":" + location.port : "") + location.pathname; for (var s = location.search.substring (1).split ("&"), f = false, i = 0; i < s.length; i++) { if (s[i].indexOf ("L=") > -1) { f = true; s[i] = "L=" + lang; } } if (!f) { s.push ("L=" + lang); } cURL = cURL.toLowerCase (); if (cURL == "http://www.ricoh-thermal.com/") { cURL = cURL + "webrif/NEWespace_presse.nsf/wHomePage?readForm" + s.join ("&"); location.href = cURL; return true; } location.href = cURL + "?" + s.join ("&"); return true; } // **************************************** function cvpopup (langue) { var popurl = "/webrif/CV.nsf/wCV_" + langue + "?OpenForm"; var winpops = window.open (popurl, "", "width=580,height=600,top=0,left=100, menubar, scrollbars,"); }