/* *************************************** */ /* Gestion du menu supérieur * */ var menuHMouse = function (hover, element, isFirst) { if (element.className == "MSelected") 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; // cas particulier des viewlists var lpathname = location.pathname; if (lpathname.indexOf ("wVue_") > -1) { var actuel = lpathname.split ("/"); actuel[3] = "wVue_" + lang; lpathname = actuel.join ("/"); } var cURL = location.protocol + "//" + location.host + (location.port ? ":" + location.port : "") + lpathname; var s = location.search.substring (1).split ("&"); var f = false; for (var i = 0; i < s.length; i++) if (s[i].indexOf ("L=") > -1) { f = true; s[i] = "L=" + lang; } if (!f) s.push ("L=" + lang); location.href = cURL + "?" + s.join ("&"); return true; } /*******************************************/ function initAcc () { var j = $("#accList"); if (j.length) { $("div.accArea").each (function () { if ($(this).hasClass ('accActive')) { $(this).removeClass ('accActive'); } $(this).css ("display", "inherit"); }); j.accordion ({ autoheight: false, active: false, header: '.accTitle' }); setTimeout (function () { j.accordion ("activate", 0); }, 3000); } };