﻿liteweb._pageInit.push(function()
{
	var Duration = 1;
	Ext.BLANK_IMAGE_URL = liteweb.vroot + "/images/t.gif";
	var MinistryMenu = new Ext.menu.Menu(
	{
		id: "MinistryMenu",
		items: 
		[
			{
				text: "Welcome Message",
				href: liteweb.root + "/Welcome_Message.aspx"
			},
			{
				text: "Introduction and History",
				href: liteweb.root + "/Ministry/Introduction.aspx"
			}
			,
			{
			    text: "Statistics",
			    href: liteweb.root + "/Ministry/Statistics.aspx"
			}
			,
			
			{
				text: "FAQ",
				menu:
				{
					width: 150,
					items:[
						{
							text: "Entrance Fees",
							href: liteweb.root + "/Entrance_Fees.aspx"
						},
						{
							text: "Coming Soon",
							href:  "#"
						}
					]
				}
			}
		],
		width:185
	});
	var MinistryBtn = Ext.get("Ministry");
	MinistryBtn.on("mouseover", function(){
		if(MinistryMenu.isVisible())
			return;
		MinistryMenu.show(MinistryBtn);
		MinistryMenu.getEl().slideIn();//({endOpacity:.98,duration:Duration});
	});
	
	var FourSeasonsMenu = new Ext.menu.Menu({
		shadow: false,
		id: "FourSeasonsMenu",
		width: 120,
		items:
		[
			{
				text: "Fall",
				href: liteweb.root + "/FourSeasons/Fall.aspx"
			},
			{
				text: "Winter",
				href: liteweb.root + "/FourSeasons/Winter.aspx"
			},
			{
				text: "Spring",
				href: liteweb.root + "/FourSeasons/Spring.aspx"
			},
			{
				text: "Summer",
				href: liteweb.root + "/FourSeasons/Summer.aspx"
			}
		]
	});
	var FourSeasonsBtn = Ext.get("FourSeasons");
	FourSeasonsBtn.on("mouseover", function(){
		if(FourSeasonsMenu.isVisible())
			return;
		FourSeasonsMenu.show(FourSeasonsBtn);
		FourSeasonsMenu.getEl().slideIn();//({endOpacity:.98,duration:Duration});
	});
	
	var AboutMenu = new Ext.menu.Menu({
		shadow: false,
		id: "AboutMenu",
		width: 150,
		items:
		[
			{
				text: "Why Lebanon?",
			
				menu:
				{
					width: 150,
					items:
					[
						{
							text: "Profile of Lebanon",
							href: liteweb.root + "/About/WhyLebanon/AboutLebanon.aspx"
						},
						{
							text: "Hidden Lebanon",
							href: liteweb.root + "/About/WhyLebanon/HiddenLebanon.aspx"
						},
						{
							text: "Facts About Lebanon",
							href: liteweb.root + "/About/WhyLebanon/FactsAboutLebanon.aspx"
						}
					]
				}
			},
			{
				text: "Culture & History",
			
				menu:
				{
					width: 160,
					items:
					[
						{
							text: "Introduction",
							href: liteweb.root + "/About/History/Introduction.aspx"
						},
						{
							text: "History and Civilization",
							href: liteweb.root + "/About/History/History_Civilizations.aspx"
						},
						{
							text: "Religious Heritage",
							href: liteweb.root + "/About/History/Religious_Heritage.aspx"
						},
						{
							text: "Cuisine & Arak",
							href: liteweb.root + "/About/History/Cuisine_Wine.aspx"
						},
						{
							text: "Traditional Crafts",
							href: liteweb.root + "/About/History/Tradional.aspx"
						}
					]
				}
			},
			{
				text: "Useful Information",
				href: liteweb.root + "/About/Practical_Information.aspx"
			}
		,
			{
				text: "What to See & Do",
				menu: 
				{
					width:150,
					items: MouhafazatMenu
				}
			},
			
			{
				text: "Map",
				href: liteweb.root + "/About/Map.aspx"
			}
			,
			{
				text: "Climate & Weather",
				href: liteweb.root + "/About/Climate_Weather.aspx"
}
			,
			{
			    text: "Video",
			    href: liteweb.root + "/About/Video.aspx"
			}
			
		]
	});
	var AboutBtn = Ext.get("AboutLebanon");
	AboutBtn.on("mouseover", function(){
		if(AboutMenu.isVisible())
			return;
		AboutMenu.show(AboutBtn);
		AboutMenu.getEl().slideIn();//({endOpacity:.98,duration:Duration});
	});
	
	
	var LinksMenu = new Ext.menu.Menu({
		shadow: false,
		id: "LinksMenu",
		items: links,
		width:260
	});
	var LinksBtn = Ext.get("LinksB");
	LinksBtn.on("mouseover", function(){
		if(LinksMenu.isVisible())
			return;
		LinksMenu.show(LinksBtn);
		LinksMenu.getEl().slideIn();//({endOpacity:.98,duration:Duration});
	});
	
	
	
	var SiteSeeingMenu = new Ext.menu.Menu({
		shadow: false,
		width:150,
		id: "SiteSeeingMenu",
		items: 
		[
			{
				text: "Historical Sites",
				menu:
				{
					shadow: false,
					width: 240,
					items:
					[
						{
							text: "Anjar",
							href: liteweb.root + "/SiteSeeing/Historical/Anjar.aspx"
						},
						{
							text: "Baalbek",
							href: liteweb.root + "/SiteSeeing/Historical/Baalbeck.aspx"
						},
						{
							text: "Batroun",
							href: liteweb.root + "/SiteSeeing/Historical/Batroun.aspx"
						},
						{
							text: "Beiteddine",
							href: liteweb.root + "/SiteSeeing/Historical/Beiteddine.aspx"
						},
						{
							text: "Byblos",
							href: liteweb.root + "/SiteSeeing/Historical/Byblos.aspx"
						},
						{
							text: "Deir el Qualaa & Zubaida Aqueduct",
							href: liteweb.root + "/SiteSeeing/Historical/Deir_el_Qualaa.aspx"
						},
						{
							text: "Echmoun",
							href: liteweb.root + "/SiteSeeing/Historical/Echmoun.aspx"
						},
						{
							text: "Enfe & Balamand",
							href: liteweb.root + "/SiteSeeing/Historical/Enfe_Balamand.aspx"
						},
						{
							text: "Qadisha Valley",
							href: liteweb.root + "/SiteSeeing/Historical/Quadisha_Valley.aspx"
						},
						{
							text: "Roman Temples of the Bekaa Valley",
							href: liteweb.root + "/SiteSeeing/Historical/Roman_Temples_Bekaa.aspx"
						},
						{
							text: "Sidon",
							href: liteweb.root + "/SiteSeeing/Historical/Sidon.aspx"
						},
						{
							text: "Tripoli",
							href: liteweb.root + "/SiteSeeing/Historical/Tripoli.aspx"
						},
						{
							text: "Tyr",
							href: liteweb.root + "/SiteSeeing/Historical/Tyre.aspx"
						}
					]
				}
			},
			{
				text: "Nature Reserve",
				menu:
				{
					width: 150,
					items:
					[
						{
							text: "Al-Shouf Cedar",
							href: liteweb.root + "/SiteSeeing/NaturalReserve/AlShouf_Cedar.aspx"
						},
						{
							text: "Bentael",
							href: liteweb.root + "/SiteSeeing/NaturalReserve/Bentael.aspx"								
						},
						{
							text: "Horsh Ehden",
							href: liteweb.root + "/SiteSeeing/NaturalReserve/Horsh_Ehden.aspx"
						},
						{
							text: "Palm Islands",
							href: liteweb.root + "/SiteSeeing/NaturalReserve/Palm_Islands.aspx"
						},
						{
							text: "Tannourine Cedars Forest ",
							href: liteweb.root + "/SiteSeeing/NaturalReserve/Tannourine_Forest.aspx"								
						},
						{
							text: "Tyr Coast ",
							href: liteweb.root + "/SiteSeeing/NaturalReserve/Tyre_Coast.aspx"
						}
					]
					
				}
}
			,
			{
			    text: "World Heritage",
			    menu:
				{
				    items:
					[
						{
						    text: "Cultural ",
						    href: liteweb.root + "/Attractions/TentativeList/Cultural.aspx"
						},
						{
						    text: "Tentative List",
						    href: liteweb.root + "/Attractions/TentativeList/Tentative_list.aspx"
						}
					]
				}
			}
		]
	});
	var SiteSeeingBtn = Ext.get("SiteSeeing");
	SiteSeeingBtn.on("mouseover", function(){
		if(SiteSeeingMenu.isVisible())
			return;
		SiteSeeingMenu.show(SiteSeeingBtn);
		SiteSeeingMenu.getEl().slideIn();//({endOpacity:.98,duration:Duration});
	});
	
	var AttractionsMenu = new Ext.menu.Menu({
		shadow: false,
		width: 150,
		id: "AttractionsMenu",
		items:
		[
			{
				text: "Activities-sports",
				menu:
				{
					width: 190,
					items:
					[
						{
							text: "Explore Nature & Adventure",
							href: liteweb.root + "/Attractions/Activities/ExploreNatureAdventure.aspx"
						},
						{
							text: "Rural Heritage",
							href: liteweb.root + "/Attractions/Activities/AGRICULTURE_RURALHERITAGE.aspx"
						},
						{
							text: "Beaches & Seaside",
							href: liteweb.root + "/Attractions/Activities/BEACHES_SEASIDE.aspx"
						},
						{
							text: "Bird Watching",
							href: liteweb.root + "/Attractions/Activities/BIRD_WATCHING.aspx"
						},
						{
							text: "Camping",
							href: liteweb.root + "/Attractions/Activities/CAMPING.aspx"
						},
						{
							text: "Caving",
							href: liteweb.root + "/Attractions/Activities/CAVING.aspx"
						},
						{
							text: "Cycling",
							href: liteweb.root + "/Attractions/Activities/CYCLING.aspx"
						}
						,
						{
							text: "Hiking & Trekking",
							href: liteweb.root + "/Attractions/Activities/HIKING_TREKKING.aspx"
						},
						{
							text: "Mountain Climbing",
							href: liteweb.root + "/Attractions/Activities/MOUNTAIN_CLIMBING.aspx"
						},
						{
							text: "Mountain Reserves",
							href: liteweb.root + "/Attractions/Activities/NATURE_RESERVES.aspx"
						},
						{
							text: "Skiing & Winter Sports",
							href: liteweb.root + "/Attractions/Activities/Skiing_WinterSports.aspx"
						},
						{
							text: "Water Sports",
							href: liteweb.root + "/Attractions/Activities/WATER_SPORTS.aspx"
						}
					]
				}
			},
			{
				text: "City Life",
				menu:
				{
					items:
					[
						{
							text: "Explore City Life",
							href: liteweb.root + "/Attractions/CityLife/EXPLORE_CITYLIFE.aspx"
						},
						{
							text: "Sightseeing",
							href: liteweb.root + "/Attractions/CityLife/SIGHTSEEING.aspx"
						},
						{
							text: "Shopping",
							href: liteweb.root + "/Attractions/CityLife/SHOPPING.aspx"
						},
						{
							text: "Entertainment & Nightlife",
							href: liteweb.root + "/Attractions/CityLife/ENTERTAINMENT_NIGHTLIFE.aspx"
						},
						{
							text: "Dining",
							href: liteweb.root + "/Attractions/CityLife/DINING.aspx"
						}
					]
				}
}

			
			
			
		]
	});
	var AttractionsBtn = Ext.get("Attractions");
	AttractionsBtn.on("mouseover", function(){
		if(AttractionsMenu.isVisible())
			return;
		AttractionsMenu.show(AttractionsBtn);
		AttractionsMenu.getEl().slideIn();//({endOpacity:.98,duration:Duration});
	});
});
