//Set delay before submenu disappears after mouse moves out of it (in milliseconds) var delais_affichage=500; var timer_cache; var timer_wait; var cpt=0; var frame_a_traiter; function errorHandler(message, url, line) { clearTimeout(montimer); frame_a_traiter=null; FormatPage(); return true; } function FormatPage() { var j; var i; var resultat; var tabframe; var MenuActif; MenuActif = GetAnimMenuHaut(); if (MenuActif) { window.onerror = errorHandler; if(top.mainFrame.document.readyState=="complete") { frame_a_traiter=null; frame_a_traiter=top.mainFrame.frameToFormat; frame_a_traiter=frame_a_traiter==null?top.mainFrame:frame_a_traiter; if(frame_a_traiter.document.readyState=="complete") { if(frame_a_traiter.document.body.style.backgroundImage!="url("+urlressource+"/fondMain.jpg)") { frame_a_traiter.document.body.style.backgroundImage="url("+urlressource+"/fondMain.jpg)"; frame_a_traiter.document.body.style.backgroundRepeat="no-repeat"; frame_a_traiter.document.body.style.backgroundAttachment="fixed"; } for(j=0; j'; obj_temp.id="menu"+j; } } Move_Menu_Bas(); montimer=setTimeout("FormatPage()",10); } else { timerLoading=window.setTimeout("FormatPage()",10); } } else { timerLoading=window.setTimeout("FormatPage()",10); } } } function PlaceMenu() { var objtemp=null; for(i=0;itop.document.getElementById("frameset_principal").rows.split(",")[0]) { objtemp.style.borderBottomColor="#FFFFFF"; objtemp.style.height=top.document.getElementById("frameset_principal").rows.split(",")[0]-position_haut; } } } window.onerror = errorHandler; function Affichage_Menu(which){ affichMenu = GetAnimMenuHaut(); if (affichMenu) { if(frame_a_traiter==null) timer_wait=setTimeout("Affichage_Menu("+which+")",5); else { Reset_Timer(); Masquage_Menu(); document.getElementById("bouton"+which).bgColor=couleur_bord[which]; var menu=document.getElementById("menu"+which); menu.style.display="inline"; var menu_bas=frame_a_traiter.document.getElementById("menu"+which); if(menu_bas) menu_bas.style.display="inline"; } } } function OuvrePage(monurl,bouton) { affichMenu=GetAnimMenuHaut(); clearTimeout(montimer); if (affichMenu) { OuvrePage.arguments.length<2?Masquage_Menu():(!OuvrePage.arguments[1]?Masquage_Menu():""); } top.mainFrame.location.href=monurl; FormatPage(); if (affichMenu==false) { SetAnimMenuHaut(true); } } function refreshMenuHaut() { top.topFrame.location.reload(); } function OuvrePageMenuGauche(monurl,bouton) { affichMenu=GetAnimMenuHaut(); clearTimeout(montimer); if (affichMenu) { OuvrePageMenuGauche.arguments.length<2?Masquage_Menu():(!OuvrePageMenuGauche.arguments[1]?Masquage_Menu():""); } top.mainFrame.location.href=monurl; FormatPage(); if (affichMenu==false) { SetAnimMenuHaut(true); } timeoutMenuHaut = window.setTimeout("refreshMenuHaut()",80); } function OuvrePageNoMenuHaut(monurl,bouton) { clearTimeout(montimer); top.mainFrame.location.href=monurl; top.topFrame.document.forms[0].AnimMenuHaut.value="0"; // Désactivation de l'animation de menu Haut (pas d'affichage des sous menus) } function SetAnimMenuHaut(val) { if (top.topFrame.document.forms[0]) { if (top.topFrame.document.forms[0].AnimMenuHaut) { if (val) { top.topFrame.document.forms[0].AnimMenuHaut.value="1"; } else { top.topFrame.document.forms[0].AnimMenuHaut.value="0"; } } } } function GetAnimMenuHaut() { if (top.topFrame.document.forms[0]) { if (top.topFrame.document.forms[0].AnimMenuHaut) { if (top.topFrame.document.forms[0].AnimMenuHaut.value=="0") { return false; } } } return true; } function Masquage_Menu(){ for(i=0;i