
//The following line is critical for menu operation, and MUST APPEAR ONLY ONCE. 
// If you have more than one menu_array.js file rem out this line in subsequent files
menunum=0;
menus=new Array();
_d=document;

function addmenu(){
menunum++;
menus[menunum]=menu;
}

function dumpmenus(){
mt="<scr"+"ipt language=javascript>";
for(a=1;a<menus.length;a++){
mt+=" menu"+a+"=menus["+a+"];"
}
mt+="<\/scr"+"ipt>";
_d.write(mt)
}
//Please leave the above line intact. 
//The above also needs to be enabled if it not already enabled unless this file is part of a multi pack.


// Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters
effect = "Fade(duration=0.2);Alpha(style=0,opacity=100);Shadow(color='#777777', Direction=135, Strength=5)"


timegap=500		// The time delay for menus to remain visible
followspeed=5		// Follow Scrolling speed
followrate=0		// Follow Scrolling Rate
suboffset_top=3;	// Sub menu offset Top position 
suboffset_left=22;	// Sub menu offset Left position
closeOnClick = true

mpath=path


style1=[		// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"000000",		// Mouse Off Font Color
"A1DCF1",		// Mouse Off Background Color
"ffffff",		// Mouse On Font Color
"000000",		// Mouse On Background Color
"ffffff",		// Menu Border Color 
10,			// Font Size in pixels
"normal",		// Font Style (italic or normal)
"bold",			// Font Weight (bold or normal)
"Tahoma",		// Font Name
1,			// Menu Item Padding
mpath+"arrow.gif",	// Sub Menu Image (Leave this blank if not needed)
,			// 3D Border & Separator bar
,			// 3D High Color
,			// 3D Low Color
,			// Current Page Item Font Color (leave this blank to disable)
,			// Current Page Item Background Color (leave this blank to disable)
"",			// Top Bar image (Leave this blank to disable)
"E7ECF5",		// Menu Header Font Color (Leave blank if headers are not needed)
"000099",		// Menu Header Background Color (Leave blank if headers are not needed)
"E7ECF5",		// Menu Item Separator Color
]

style2=[		// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"ffffff",		// Mouse Off Font Color
"000000",		// Mouse Off Background Color
"000000",		// Mouse On Font Color
"A1DCF1",		// Mouse On Background Color
"000000",		// Menu Border Color 
11,			// Font Size in pixels
"normal",		// Font Style (italic or normal)
"bold",			// Font Weight (bold or normal)
"Tahoma",		// Font Name
0,			// Menu Item Padding
mpath+"arrow.gif",	// Sub Menu Image (Leave this blank if not needed)
,			// 3D Border & Separator bar
"666666",		// 3D High Color
"",			// 3D Low Color
"293F6F",		// Current Page Item Font Color (leave this blank to disable)
"DADADA",		// Current Page Item Background Color (leave this blank to disable)
mpath+"arrowdn.gif",	// Top Bar image (Leave this blank to disable)
"E7ECF5",		// Menu Header Font Color (Leave blank if headers are not needed)
"000099",		// Menu Header Background Color (Leave blank if headers are not needed)
"E7ECF5",		// Menu Item Separator Color
]

space1="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
space11="&nbsp;&nbsp;&nbsp;&nbsp;";
space12="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
space2="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";


function openNewWindow(winURL,winWidth,winHeight,winConfig){

	winURL=mpath+winURL;
     var xMax = screen.width, yMax = screen.height;
     var xOffset = (xMax - winWidth)/2, yOffset = (yMax - winHeight)/2;
     mmConfig=""
     mmConfig="width="+winWidth+","
     mmConfig+="height="+winHeight+","
     mmConfig+="left="+xOffset+","
     mmConfig+="top="+yOffset+","

     mmConfig+=winConfig
     var mmWin=open(winURL,"Yemenia",mmConfig);
     mmWin.focus();
}



addmenu(menu=[		// This is the array that contains your menu properties and details
"mainmenu",		// Menu Name - This is needed in order for the menu to be called
30,			// Menu Top - The Top position of the menu in pixels
"right", //(screen.width/2)-386,	// Menu Left - The Left position of the menu in pixels//   
0,			// Menu Width - Menus width in pixels
1,			// Menu Border Width 
,			// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style2,			// Properties Array - this is set higher up, as above
1,			// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"right",		// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
,			// Filter - Text variable for setting transitional effects on menu activation - see above for more info
,			// Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1, 			// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
,			// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
,			// Position of TOP sub image left:center:right
,			// Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
1,			// Right To Left - Used in Hebrew for example. (1=on/0=off)
,			// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,			// ID of the div you want to hide on MouseOver (useful for hiding form elements)
,			// Background image for menu when BGColor set to transparent.
,			// Scrollable Menu
,			// Reserved for future use

,space2+"خرائط"+space12,mpath+"ministy/maps.asp",,"",1 	// "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,space2+"مشاركات ومقالات"+space12,mpath+"article/index.htm",,"",1 	// "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,space2+"أخبار الوزارة"+space12,"show-menu=news",,"",1 	// "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,space2+"نشاطات ومؤتمرات"+space1,mpath+"activites/index.htm",,"",1
,space2+"المشاريع"+space1,"show-menu=projects",,"",1
//,space2+"الصرف الصحي"+space1,"show-menu=sump",,"",1
,space2+"البيئة"+space1,"show-menu=environment",,"",1
,space2+"المياه"+space1,"show-menu=water",,"",1
,space2+"عن الوزارة"+space1,"show-menu=Ministry",,"",1
//,space12+"الصفحة الرئيسية"+space11,mpath+"Default.htm",,"",1

])


	addmenu(menu=["Ministry",,,135,1,"",style1,,"right",effect,0,,,,,1,,,,,,
	,"خلفية تاريخية",mpath+"ministy/profile.asp",,,1
	,"أهداف وخطط الوزارة","show-menu=planning",,,1
	,"المؤسسات والهيئات التابعة",mpath+"ministy/subsidiaries.asp",,,1
	,"الهيكل التنظيمي","javascript:openNewWindow(\"ministy/structure.swf\",750,400,\"\")",,,1
	,"صفحة الوزير","show-menu=Minister",,,1
	,"قرارات وتعميمات",mpath+"ministy/karar.asp",,,1
	,"إعلانات الوزارة",mpath+"ministy/advertisement.asp",,,1
	,"عناوين الوزارة",mpath+"ministy/address.asp",,,1

	])

		addmenu(menu=["Minister",,,120,1,"",style1,,"right",effect,0,,,,,1,,,,,,
		,"السيرة الذاتية",mpath+"ministy/minster.asp",,,1
		,"كلمة الوزير",mpath+"ministy/minister_latter.asp",,,1
		,"أنشطة ومشاركات",mpath+"ministy/minster_sharing.asp",,,1
		,"متفرقات",mpath+"ministy/minster_others.asp",,,1
		])

		addmenu(menu=["organizations",,,200,1,"",style1,,"right",effect,0,,,,,1,,,,,,
		,"الهيئات التابعة للوزارة",mpath+"",,,1
		,"المؤسسة العامة للمياه والصرف الصحي",mpath+"",,,1
		,"المؤسساات المحلية للمياه والصرف الصحي",mpath+"",,,1
	
		])

		addmenu(menu=["planning",,,140,1,"",style1,,"right",effect,0,,,,,1,,,,,,
		,"أهداف الوزارة ",mpath+"ministy/aimes.asp",,,1
		,"خطط الوزارة في قطاع المياه",mpath+"ministy/planning_water.asp",,,1
		,"خطط الوزارة في قطاع البيئة",mpath+"ministy/planning_env.asp",,,1
	
		])



 	addmenu(menu=["water",,,120,1,"",style1,,"right",effect,0,,,,,1,,,,,,
	,"المخزون المائي",mpath+"water/stored_water.asp",,,1
	,"مصادر مياه الشرب",mpath+"water/sources_water.asp",,,1
	,"إستنزاف وتلوث المياه",mpath+"water/lost_water.asp",,,1
	,"الأحواض الحرجة",mpath+"water/pools.asp",,,1
	,"الصرف الصحي","show-menu=sump",,,1
	,"بحوث ودراسات",mpath+"water/research.asp",,,1
	,"إحصائيات ومؤشرات",mpath+"indicators/indicators.asp?y=2003",,,1
	,"قوانين ولوائح",mpath+"water/law.asp",,,1
	,"توعية",mpath+"water/enlightenment.asp",,,1
	,"إستفسارات",mpath+"water/faqs.asp",,,1
	
	])

	addmenu(menu=["environment",,,140,1,"",style1,,"right",effect,0,,,,,1,,,,,,
	,"خلفية عن البيئة في اليمن","javascript:openNewWindow(\"environment_yemen.pdf\",800,600,\"\")",,,1
	,"المحميات والمواقع البيئية",mpath+"environment/protectorate.asp",,,1
	,"البيئة والتنمية",mpath+"environment/development.asp",,,1
	,"برنامج حماية البيئة في اليمن",mpath+"environment/programs.asp",,,1
	,"قوانين ولوائح",mpath+"environment/law.asp",,,1
	,"التوعية البيئية",mpath+"environment/enlightenment.asp",,,1
	
	])
		addmenu(menu=["services1",,,140,1,"",style1,,"right",effect,0,,,,,1,,,,,,
		,"البيئة ومشاريع البنية التحتية",mpath+"under_constract.htm",,,1
		,"البيئة والصناعة",mpath+"under_constract.htm",,,1

		])



	addmenu(menu=["sump",,,160,1,"",style1,,"right",effect,0,,,,,1,,,,,,
	,"خدمات الصرف الصحي",mpath+"sump/services.asp",,,1
	,"محطات المعالجة والمياه العادمة",mpath+"sump/stations.asp",,,1
	,"مشاريع وخطط",mpath+"sump/projects.asp",,,1

	])

	addmenu(menu=["projects",,,120,1,"",style1,,"right",effect,0,,,,,1,,,,,,
	,"البرنامج الإستثماري",mpath+"projects/investment_program.asp",,,1
	,"مشاريع ديوان الوزارة",mpath+"projects/dewan_rojects.asp",,,1

	])

	addmenu(menu=["news",,,100,1,"",style1,,"right",effect,0,,,,,1,,,,,,
	,"أخبار الوزارة",mpath+"news/minstry_news.asp",,,1
	,"أخبار المشاريع",mpath+"news/projects_news.asp",,,1
	,"مقتطفات إخبارية",mpath+"news/magazine.asp",,,1

	])
	



dumpmenus()