//_____________________________________
/*l'objet menuBarItem() n'autorise pas le traitement script du premier paramètre (= nom de l'étiquette) ... 
*/

function createjsDOMenu() {




//_____________________________________menu langue

urlFrom = window.location;//nettoyage de la ligne d'adresse. Même si l'appel en série d'une même variable en GET  ne retient que la dernière valeur
do{
	urlFrom =  String(urlFrom).replace(/&lang=FR/,"");
	urlFrom =  String(urlFrom).replace(/&lang=UK/,"");
}
while(urlFrom.indexOf('lang=FR') != -1);

  menu1 = new jsDOMenu(120, "absolute");
  with (menu1) {
    addMenuItem(new menuItem("FRAN\u00c7AIS", "","code:window.location='"+urlFrom+"&lang=FR'"));
    addMenuItem(new menuItem("ANGLAIS", "item2",  "code:window.location='"+urlFrom+"&lang=UK'"));  
  }
  
  menu1_1 = new jsDOMenu(130, "absolute");
  with (menu1_1) {
    addMenuItem(new menuItem("Item 1", "", "blank.htm"));
    addMenuItem(new menuItem("-"));
    addMenuItem(new menuItem("Item 2", "", "blank.htm"));
    addMenuItem(new menuItem("Item 3", "", "blank.htm"));
    addMenuItem(new menuItem("-"));
    addMenuItem(new menuItem("Item 4", "", "blank.htm"));
  }

//_____________________________________menu ressources
  
  menu2 = new jsDOMenu(120, "absolute");
  with (menu2) {
	//addMenuItem(new menuItem("ACCUEIL","item1", "code:window.location.href = 'indexFr.php'"));
 	addMenuItem(new menuItem("TH\u00c8MES", "item2", "code:window.location.href = 'projets.php?theme=8&lang=FR'"));
    addMenuItem(new menuItem("PROJETS", "item3", "code:window.location.href = 'projets.php?prjTheme=tout&lang=FR'"));
    addMenuItem(new menuItem("SERVICES", "item4", "code:window.location.href = 'projets.php?service=0&lang=FR'"));
 	addMenuItem(new menuItem("CV", "item5", "code:window.location.href = 'projets.php?cvList=nom&lang=FR'"));
  }
  
    menu4 = new jsDOMenu(120, "absolute");
  with (menu4) {
   	addMenuItem(new menuItem("CONTACTS", "", "code:window.location.href = 'projets.php?theme=8&eta=1&lang=FR'"));
	addMenuItem(new menuItem("STATUTS","", "code:window.location.href = '/documents/5/LST 551-1 Statuts ICEDD asbl.pdf'"));
 	addMenuItem(new menuItem("STRAT\u00c9GIE", "", "code:window.location.href = '/documents/5/FOR 53-1 Politique ICEDD.pdf'"));
  	addMenuItem(new menuItem("ORGANIGRAMME", "", "code:window.location.href = '/documents/5/LST 553-6 Organigramme ICEDD.PDF'"));
  	addMenuItem(new menuItem("ACTIVIT\u00c9S", "", "/documents/7/LST 723-1 Activites ICEDD.pdf"));
  	addMenuItem(new menuItem("MANUEL QUALIT\u00c9", "", "/documents/4/MAQ 422-1 Manuel Qualit\u00e9.pdf")); 
  	addMenuItem(new menuItem("NORME ISO 9001", "", "http://www.iso.org"));
   	addMenuItem(new menuItem("PLAN D\'ACC\u00c8S", "", "/documents/7/DES 723-2 Plan d acces ICEDD - Vue d ensemble.pdf"));
}
  
  menu2_1 = new jsDOMenu(150, "absolute");
  with (menu2_1) {
    addMenuItem(new menuItem("LISTE COMPL\u00c8TE", "", "code:window.location.href = 'projets.php?theme=8&lang=FR'"));	  
    addMenuItem(new menuItem("-"));
    addMenuItem(new menuItem("ENERGIE - BILANS", "", "code:window.location.href = 'projets.php?theme=1&lang=FR'"));
    addMenuItem(new menuItem("ENERGIE - DISS\u00c9MINATION", "", "code:window.location.href = 'projets.php?theme=2&lang=FR'"));
    addMenuItem(new menuItem("ENERGIE - AUDITS", "", "code:window.location.href = 'projets.php?theme=9&lang=FR'"));
    addMenuItem(new menuItem("-"));
    addMenuItem(new menuItem("ENVIRONNEMENT", "", "code:window.location.href = 'projets.php?theme=4&lang=FR'"));
    addMenuItem(new menuItem("-"));
    addMenuItem(new menuItem("SIG - AM\u00c9NAGEMENT DU TERRITOIRE", "", "code:window.location.href = 'projets.php?theme=5&lang=FR'"));
    //addMenuItem(new menuItem("MOBILIT\u00c9", "", "code:window.location.href = 'projets.php?theme=6'"));
}
 
 

menu2_2 = new jsDOMenu(150, "absolute");
with (menu2_2) {
    addMenuItem(new menuItem("LISTE COMPL\u00c8TE", "", "code:window.location.href = 'projets.php?prjTheme=tout&lang=FR'"));	  
    addMenuItem(new menuItem("-"));
    addMenuItem(new menuItem("ENERGIE - BILANS", "", "code:window.location.href = 'projets.php?prjTheme=stat&lang=FR'"));
    addMenuItem(new menuItem("ENERGIE - DISS\u00c9MINATION", "", "code:window.location.href = 'projets.php?prjTheme=dissem&lang=FR'"));
    addMenuItem(new menuItem("ENERGIE - AUDITS", "", "code:window.location.href = 'projets.php?prjTheme=audit&lang=FR'"));
    addMenuItem(new menuItem("-"));
    addMenuItem(new menuItem("ENVIRONNEMENT", "", "code:window.location.href = 'projets.php?prjTheme=envi'"));
    addMenuItem(new menuItem("-"));
    addMenuItem(new menuItem("MOBILIT\u00c9 - AM\u00c9NAGEMENT DU TERRITOIRE", "", "code:window.location.href = 'projets.php?prjTheme=sig&lang=FR'"));
    //addMenuItem(new menuItem("MOBILIT\u00c9", "", "code:window.location.href = 'projets.php?prjTheme=mobil'"));
}
  
 menu2_3 = new jsDOMenu(150, "absolute");
with (menu2_3) {
    addMenuItem(new menuItem("PAR NOM", "", "code:window.location.href = 'projets.php?cvList=nom&lang=FR'"));	  
    addMenuItem(new menuItem("PAR THEME", "", "code:window.location.href = 'projets.php?cvList=theme&lang=FR'"));	  
    addMenuItem(new menuItem("PAR FONCTION", "", "code:window.location.href = 'projets.php?cvList=fonction&lang=FR'"));	  
 }
 
  //_____________________________________menu chercher
  
  menu3 = new jsDOMenu(140, "absolute");
  with (menu3) {
    addMenuItem(new menuItem("UN PROJET","item1", "blank.htm"));
    addMenuItem(new menuItem("UNE RESSOURCE", "", "code:alert('en pr\u00e9paration...')"));
  }
  
  menu3_1 = new jsDOMenu(150, "absolute");
  with (menu3_1) {
    addMenuItem(new menuItem("PAR TH\u00c8ME","", "code:alert('en pr\u00e9paration...')"));
    addMenuItem(new menuItem("DANS UNE COLLECTION", "", "code:alert('en pr\u00e9paration...')"));
  }
  
  
    //_____________________________________menu chercher
  
  menu5 = new jsDOMenu(140, "absolute");
  with (menu5) {
 	addMenuItem(new menuItem("DOWNLOAD","", "http://www.icedd.be/downloads/"));
    addMenuItem(new menuItem("UPLOAD", "", "http://www.icedd.be/uploads/"));
	addMenuItem(new menuItem("DOWNLOAD ACROBAT READER", "", "http://www.adobe.fr/products/acrobat/readstep2.html"));
	addMenuItem(new menuItem("DOWNLOAD FLASH PLAYER", "", "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&Lang=French&P5_Language=French"));
	
 }
  
  
  
  //menu1.items.item2.setSubMenu(menu1_1);
	menu2.items.item2.setSubMenu(menu2_1);
	menu2.items.item3.setSubMenu(menu2_2);
	menu2.items.item5.setSubMenu(menu2_3);
	menu3.items.item1.setSubMenu(menu3_1);
  
  menuBar = new jsDOMenuBar("static", "staticMenuBar");
  //menuBar.setY(300);
  with (menuBar) {
    addMenuBarItem(new menuBarItem("ACCUEIL","","","","code:window.location.href = 'index-FR.php?lang=FR'"));
    addMenuBarItem(new menuBarItem("LANGUE", menu1));
	addMenuBarItem(new menuBarItem("QUI NOUS SOMMES ?", menu4));
 	addMenuBarItem(new menuBarItem("LISTES", menu2));
	addMenuBarItem(new menuBarItem("OUTILS", menu5,"","code:window.location.href = 'projets.php?prjTheme=tout&lang=FR'"));
	//addMenuBarItem(new menuBarItem("RECHERCHE AVANC\u00c9E","","","", "code:window.location.href = 'projets.php?zoom_query'"));
	addMenuBarItem(new menuBarItem("FORMATION","","","", "code:window.location.href = 'http://www.icedd.be/inscription'"));
	//addMenuBarItem(new menuBarItem("test", "","","","code:window.location.href ='http://www.icedd.be'"));
setActivateMode("over");
  }
}
