if (document.all) {n=0;ie=1;fShow="visible";fHide="hidden";} if (document.layers) {n=1;ie=0;fShow="show";fHide="hide";} window.onerror=new Function("return true") //////////////////////////////////////////////////////////////////////////// // Function Menu() // //////////////////////////////////////////////////////////////////////////// rightX = 0; function Menu() { // this.bgColor = "012B0A"; this.bgColor = "006318"; if (ie) this.menuFont = "bold Verdana"; // if (ie) this.menuFont = "bold xx-small Verdana"; if (n) this.menuFont = "bold x-small Verdana"; // this.fontColor = "white"; this.addItem = addItem; this.addSubItem = addSubItem; this.showMenu = showMenu; this.mainPaneBorder = 1; this.subMenuPaneBorder = 0; // this.subMenuPaneWidth = 195; this.subMenuPaneWidth = 150; lastMenu = null; rightY = 0; leftY = 0; leftX = 0; HTMLstr = ""; HTMLstr += "\n"; HTMLstr += "\n"; if (ie) HTMLstr += "
\n"; // if (n) HTMLstr += "\n"; HTMLstr += "\n"; HTMLstr += ""; if (n) HTMLstr += ""; HTMLstr += "\n"; HTMLstr += "
 "; HTMLstr += "\n"; HTMLstr += "\n"; HTMLstr += "\n"; if (n) HTMLstr += "
\n"; HTMLstr += "\n"; HTMLstr += "\n"; HTMLstr += "\n"; HTMLstr += "\n"; HTMLstr += "\n"; if (ie) HTMLstr+= "
\n"; // if (n) HTMLstr+= "\n"; HTMLstr += "\n"; } function addItem(idItem, text, hint, location, altLocation) { var Lookup = ""; if (HTMLstr.indexOf(Lookup) != -1) { alert(idParent + " already exist"); return; } var MENUitem = ""; MENUitem += "\n\n"; if (n) { MENUitem += ""; MENUitem += ""; MENUitem += " | "; // a enlever peut etre : le separateur de la ligne du haut MENUitem += " "; MENUitem += text; MENUitem += ""; MENUitem += ""; } if (ie) { MENUitem += "\n"; MENUitem += "
\n"; MENUitem += "\n\n"; MENUitem += "\n"; HTMLstr = HTMLstr.replace("\n", MENUitem); } function addSubItem(idParent, text, hint, location) { var MENUitem = ""; Lookup = ""; if (HTMLstr.indexOf(Lookup) == -1) { alert(idParent + " not found"); return; } Lookup = ""; if (HTMLstr.indexOf(Lookup) == -1) { if (n) { MENUitem += "\n"; MENUitem += "\n"; MENUitem += "\n"; MENUitem += "\n"; MENUitem += "
\n"; MENUitem += "
\n"; MENUitem += "\n"; } if (ie) { MENUitem += "\n"; // MENUitem += "