/* Version: 2.6.2005 */ /* Copyright (c) www.ferkous.com All rights reserved. */ function InitializeGlobalData() { if ('undefined' != typeof(strRtl)) strIsRtl = strRtl; var divs = document.body.getElementsByTagName("DIV"); var spans = document.body.getElementsByTagName("SPAN"); var countDiv = 0; var countSpan = 0; if (typeof(divs) != "undefined" && null != divs) countDiv = divs.length; if (typeof(spans) != "undefined" && null != spans) countSpan = spans.length; allDivsInPage = new Array(); for (i=0; i < countDiv; i++) if (typeof(divs[i].id) != "undefined" && null != divs[i].id && divs[i].id.length > 0) allDivsInPage[divs[i].id] = divs[i]; for (i=0; i < countSpan; i++) if (typeof(spans[i].id) != "undefined" && null != spans[i].id && spans[i].id.length > 0) allDivsInPage[spans[i].id] = spans[i]; allImagesInPage = document.body.getElementsByTagName("IMG"); } function clicMenu(num) { nbTotalMenu = 2; // Booléen reconnaissant le navigateur isIE = (document.all) isNN6 = (!isIE) && (document.getElementById) // Compatibilité : l'objet menu est détecté selon le navigateur if (isIE) menu = document.all['menu' + num]; if (isNN6) menu = document.getElementById('menu' + num); // On ferme tout les menus déjà ouvert for (i=1;i<=nbTotalMenu;i++) { if (i != num) { if (isIE) menuDiff = document.all['menu'+i]; if (isNN6) menuDiff = document.getElementById('menu'+i); if (menuDiff.style.display != "none") { menuDiff.style.display = "none" } } } // On ouvre ou ferme if (menu.style.display == "none"){ // Cas ou le tableau est caché menu.style.display = "" } else { // On le cache menu.style.display = "none" } } function AppendPopup(oSource, sPopup) { InitializeGlobalData(); if (typeof(allDivsInPage) == 'undefined' || null == allDivsInPage) return; var theDiv = allDivsInPage['divInlineDef_' + sPopup]; if (typeof(theDiv) == 'undefined' || null == theDiv) { InlineDefNotFound(); return; } if (theDiv.style.display.toUpperCase() != 'INLINE') theDiv.style.display = 'inline'; else theDiv.style.display = 'none'; }