//Reconnaissance de l'URL pour le lien à la version française
var dir = location.href.substring(0,location.href.lastIndexOf('/')+1);
var url = location.href.substring(dir.length,location.href.length+1);
//var href1 = "<a href=http://www.agrhymet.ne/";  // Création de variables pour faire le lien
//var href2 = ">";
var href = "../" + url

//Menu object creation
oCMenu=new makeCM("oCMenu") ")//Making the menu object. Argument: menuname

oCMenu.frames = 0

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=0
oCMenu.fromTop=0
oCMenu.rows=0
oCMenu.menuPlacement=0
                                                             
oCMenu.offlineRoot="file:///D|/Mes documents/Mes sites Web/Agrhymet/html/eng/" 
oCMenu.onlineRoot="/eng/" 
oCMenu.resizeCheck=1 
oCMenu.wait=1000 
oCMenu.fillImg="../images/picto/cm_fill.gif"
oCMenu.zIndex=1000

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth=130
oCMenu.barHeight=1500
oCMenu.barClass="clBar"
oCMenu.barX=0
oCMenu.barY=0
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=0


//Level properties - ALL properties have to be spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=130
oCMenu.level[0].height=20
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=1
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=1
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="right"
// oCMenu.level[0].slidepx=10
// oCMenu.level[0].slidetim=25



//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=210
oCMenu.level[1].height=20		
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=0
oCMenu.level[1].borderY=1
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=1
oCMenu.level[1].offsetY=0
oCMenu.level[1].arrow="../images/picto/menu_arrow.gif"
oCMenu.level[1].arrowWidth=10
oCMenu.level[1].arrowHeight=10
oCMenu.level[1].borderClass="clLevel1border"


//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=205
oCMenu.level[2].height=20
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0


/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
oCMenu.makeMenu('top0','','<center><IMG SRC="http://www.agrhymet.ne/images/drapcilss.gif" alt="Permanent Interstate Committee for Drought Control in the Sahel" width="120" height="107" align="top"><br><br><br><a href="http://www.agrhymet.ne/eng/index.html"><img src="http://www.agrhymet.ne/images/picto/home.gif" alt="Home" border="0" align="middle"></a></center>','','','130','200','','','clLevel0','clover','','',1)


oCMenu.makeMenu('top1','','<center>The Centre</center>')
  oCMenu.makeMenu('sub11','top1','Presentation','centre.htm','','240','')
  oCMenu.makeMenu('sub12','top1','Expertise','expertise.htm','','240','')
  oCMenu.makeMenu('sub13','top1','Monitoring Committees','comites.htm','','240','')
  oCMenu.makeMenu('sub14','top1','National Agrhymet Components<br>Multidisciplinary Working Groups','composantes.htm','','240','35')
  oCMenu.makeMenu('sub15','top1','Inside the previous months’home pages ','actu.htm','','240','')
  oCMenu.makeMenu('sub16','top1','Organizational Chart','organigramme.htm','','240','')
  oCMenu.makeMenu('sub17','top1','Directory','annuaire.htm','','240','')
  oCMenu.makeMenu('sub18','top1','Staff Turnover & Jobs','emploi.htm','','240','')  

	
oCMenu.makeMenu('top2','','<center>Departments</center>','programmes.htm')
  oCMenu.makeMenu('sub21','top2','Training and Research Department','pmf.htm','','240','')
    oCMenu.makeMenu('sub211','sub21','Pedagogic Coordination Unit -<br><b>Long-Term Training Programmes</b>','formations.htm','','300','35')
    oCMenu.makeMenu('sub212','sub21','Pedagogic Coordination Unit -<br><b>Short-Term Training Programmes</b>','formations.htm#continues','','300','35')
	oCMenu.makeMenu('sub213','sub21','Training and Research Unit -<br><b>Food Security & Markets</b>','','','300','35')
	oCMenu.makeMenu('sub214','sub21','Training and Research Unit -<br><b>Water Control & Management</b>','','','300','35')
	oCMenu.makeMenu('sub215','sub21','Training and Research Unit -<b> Env / DC / NRM</b>','','','300','')
	oCMenu.makeMenu('sub216','sub21','Training and Research Unit -<br><b>Instrumentation & Microcomputing</b>','','','300','35')
  oCMenu.makeMenu('sub22','top2','Information and Research Department','pmi.htm','','240','')
    oCMenu.makeMenu('sub221','sub22','Information and Research Unit -<b> Food Security</b>','sa.htm','','300','')
    oCMenu.makeMenu('sub222','sub22','Information and Research Unit -<b> Environment</b>','','','300','')
    oCMenu.makeMenu('sub223','sub22','Information and Research Unit -<b> NRM / DC</b>','','','300','')
	oCMenu.makeMenu('sub224','sub22','Information and Research Unit -<b> Markets</b>','','','300','')
	oCMenu.makeMenu('sub225','sub22','Information and Research Unit -<br><b>Water Control & Management</b>','','','300','35')
  oCMenu.makeMenu('sub23','top2','Technical Support Department','DAT.htm','','240','')	
	oCMenu.makeMenu('sub231','sub23','<b>Methods, Applications & Database </b> Unit','','','300','')
    oCMenu.makeMenu('sub232','sub23','<b>Software Engineering </b> Unit','','','300','')
    oCMenu.makeMenu('sub233','sub23','<b>Computer Maintenance & <br>Telecommunications</b> Unit','','','300','35')
	oCMenu.makeMenu('sub234','sub23','<b> Infrastructure Maintenance<br>and Farm Management</b> Unit','','','300','35')
oCMenu.makeMenu('sub24','top2','Management Support Unit','DAM.htm','','240','')	
	oCMenu.makeMenu('sub241','sub24','<b>Finance & Accounting</b> Unit','','','300','')
    oCMenu.makeMenu('sub242','sub24','<b>Human Resource Management</b> Unit','','','300','')
    oCMenu.makeMenu('sub243','sub24','<b>Administration & General Service</b> Unit','','','300','')	
	
oCMenu.makeMenu('top3','','<center>Products</center>','produits.htm')
  oCMenu.makeMenu('sub30','top3','<b>Data Charter</b>','charte-donnees.htm')
  oCMenu.makeMenu('sub31','top3','Basic Data','produits-donnees-base.htm')
    oCMenu.makeMenu('sub311','sub31','Climatological data','produits-donnees-base.htm')
    oCMenu.makeMenu('sub312','sub31',' Hydrological data','produits-donnees-base.htm#hydro')
    oCMenu.makeMenu('sub313','sub31',' Agricultural data','produits-donnees-base.htm#agri')
    oCMenu.makeMenu('sub314','sub31','Food data','produits-donnees-base.htm#alim')
    oCMenu.makeMenu('sub315','sub31','Phytosanitary data','produits-donnees-base.htm#phyto')
    oCMenu.makeMenu('sub316','sub31','Pastoral data','produits-donnees-base.htm#pasto')
  oCMenu.makeMenu('sub32','top3','Satellite Images','produits-image.htm')
    oCMenu.makeMenu('sub321','sub32','NOAA','produits-image.htm')
    oCMenu.makeMenu('sub322','sub32','METEOSAT','produits-image.htm#meteosat')
    oCMenu.makeMenu('sub323','sub32','Satellite based rainfall estimation','produits-image.htm#pluies')
    oCMenu.makeMenu('sub324','sub32','Satellite image animation','produits-image.htm#animation')
    oCMenu.makeMenu('sub325','sub32','Satellite based lake monitoring','produits-image.htm#lacs')
    oCMenu.makeMenu('sub326','sub32','Pasture area monitoring','produits-image.htm#paturage')
  oCMenu.makeMenu('sub33','top3','Mapping','produits-carto.htm')
    oCMenu.makeMenu('sub331','sub33','Map of administrative units','produits-carto.htm')
    oCMenu.makeMenu('sub332','sub33','Road network','produits-carto.htm#route')
    oCMenu.makeMenu('sub333','sub33','Forests','produits-carto.htm#forets')
    oCMenu.makeMenu('sub334','sub33','Soils','produits-carto.htm#sols')
    oCMenu.makeMenu('sub335','sub33','Rainfall','produits-carto.htm#pluvio')
    oCMenu.makeMenu('sub336','sub33','Crop monitoring','produits-carto.htm#pluvio')
    oCMenu.makeMenu('sub337','sub33','Hydrography','produits-carto.htm#hydro')
    oCMenu.makeMenu('sub338','sub33','Watering points','produits-carto.htm#eau')
    oCMenu.makeMenu('sub339','sub33','Normalized difference vegetation index (greenness)','produits-carto.htm#indice','','','40')
  oCMenu.makeMenu('sub34','top3','Aerial Photos','produits.htm#photos')
  oCMenu.makeMenu('sub35','top3','Biological Products','produits.htm#bio')
  oCMenu.makeMenu('sub36','top3','Provision of Services','produits.htm#services')
 
oCMenu.makeMenu('top4','','<center>Publications</center>')
  oCMenu.makeMenu('sub40','top4','Decision Makers’ Special Bulletins','bulletin-decideur.htm')
  oCMenu.makeMenu('sub41','top4','Agrhymet Monthly Bulletins','bulletin-mensuel.htm')
  oCMenu.makeMenu('sub42','top4','In-House Publications','publi.htm')
  oCMenu.makeMenu('sub43','top4','AGRHYMET info','agrinfo.htm')
  oCMenu.makeMenu('sub44','top4','Theses','rapport-stage.htm')
  oCMenu.makeMenu('sub45','top4','How to Order Publications','commander.htm')


oCMenu.makeMenu('top5','','<center>Training</center>','formations.htm')
  oCMenu.makeMenu('sub51','top5','Basic Training Programmes','formations.htm')
    oCMenu.makeMenu('sub511','sub51','3-year Engineer Courses','formations_detail.htm')
    oCMenu.makeMenu('sub512','sub51','2-year Higher Diploma Courses','formations_detail.htm#technicien')
  oCMenu.makeMenu('sub52','top5','Continuous Education Courses','formations.htm#continues')
    oCMenu.makeMenu('sub521','sub52','Schedule of Continuous Education Courses','catformcont.htm')
    oCMenu.makeMenu('sub522','sub52','Admission Requirements','conditions.htm')

oCMenu.makeMenu('top6','','<center>Studying at the Centre</center>','etudier.htm')
  oCMenu.makeMenu('sub61','top6','Documentation','etudier.htm')
  oCMenu.makeMenu('sub62','top6','Working Environment','etudier.htm#travailler')
  oCMenu.makeMenu('sub63','top6','Accommodation and Catering','etudier.htm#loger')
  oCMenu.makeMenu('sub64','top6','About the City ...','etudier.htm#enville')


oCMenu.makeMenu('top7','','<center>Our partners</center>')
  oCMenu.makeMenu('sub70','top7','<b>PIREM</b>','../PIREM/index.html','_blank','240','')
  oCMenu.makeMenu('sub71','top7','Regional and International Institutes','partenaires.htm','','240','')
  oCMenu.makeMenu('sub72','top7','Development Partners','partenaires.htm#dev','','240','')
  oCMenu.makeMenu('sub73','top7','<center><img src=http://www.agrhymet.ne/images/picto/meteo.gif width=40 height=30></center>','','','240','40')
    oCMenu.makeMenu('sub731','sub73','Satellite Image Animation - <b>METEO FRANCE</b>','imagesat.htm','','240','')
  	oCMenu.makeMenu('sub732','sub73','Hydrological Situation - <b>HYCOS AOC</b>','http://aochycos.ird.ne/','_blank','240','')
  	oCMenu.makeMenu('sub733','sub73','Weather Forecast - <b>ACMAD</b>','http://www.acmad.ne/fr/prevision/public/bulletin.htm','_blank','240','')

oCMenu.makeMenu('top8','','<center>Site map</center>','plan.htm')

//Recherche google
oCMenu.makeMenu('top9','','<center><form action="http://www.google.com/custom" method="GET" name="f"><INPUT type=hidden name=cof VALUE="GALT:#FF6600;S:http://www.agrhymet.ne/eng;GL:0;VLC:#66CC99;AH:left;BGC:#FFFFCC;LH:74;LC:#66CC99;L:http://www.agrhymet.ne/images/rechercher_google.gif;ALC:#66CC99;LW:244;T:#666699;AWFID:1593dd75e9763179;"><input type="hidden" name="domains" value="www.agrhymet.ne"><input type="hidden" name="sitesearch" value="www.agrhymet.ne"><input type=hidden name=hl value="en"><input type=hidden name=lr value="lang_en"><input type=hidden name=ie value="ISO-8859-1"><input type=hidden name=num value="20"><input type=hidden name=as_filetype value=""><table width=40% border="0" cellpadding=2 cellspacing=0 bgcolor="#66CC99" valign=middle id="Recherche"><tr><td width="63%" align="center"><input type=text size=10 value="" name="q"></td><td width="37%"><input name="submit" type="image" id="submit" src="http://www.agrhymet.ne/images/picto/ok.gif" alt="Search" align="bottom" width="15" height="15" border="0"></td></tr></table></form></center>','','','130','35','','','clLevel0','clover','','',1)

//Lien à la version anglaise
oCMenu.makeMenu('top10','','<center><img src="http://www.agrhymet.ne/images/picto/anglais.gif" width="24" height="16" alt="Changer de langue" align="absbottom"> <img src="http://www.agrhymet.ne/images/picto/fleche.gif" width="20" height="13" alt="Changer de langue" align="absbottom"> <img src="http://www.agrhymet.ne/images/picto/francais.gif" alt="Changer de langue" align="absbottom"></center>',href,'','130','')

//Lien e-mail
oCMenu.makeMenu('top11','','<center><br><br><a href="mailto:admin@agrhymet.ne" class="base"><img src="http://www.agrhymet.ne/images/picto/ecrire.gif" alt="Contact" border="0" align="middle"></a></center>','','','130','1500','','','clLevel0','clover','','',1)
//Leave this line - it constructs the menu
oCMenu.construct()		
