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)}

if(navigator.appVersion.indexOf("MSIE 6.0")>0){
	effect = "Fade(duration=0.2);Alpha(style=0,opacity=90);Shadow(color='#777777', Direction=135, Strength=5)"
	width = 85
}
else if(navigator.appVersion.indexOf("MSIE 7.0")>0){
	effect = "Fade(duration=0.2);Alpha(style=0,opacity=90);Shadow(color='#777777', Direction=135, Strength=5)"
	width = 85
} else {
	effect = "Shadow(color='#777777', Direction=135, Strength=5)"
	width = 85
}
Root = '/';
timegap=10		// The time delay for menus to remain visible
followspeed=5		// Follow Scrolling speed
followrate=40		// Follow Scrolling Rate
suboffset_top=20;	// Sub menu offset Top position 
suboffset_left=100;	// Sub menu offset Left position
closeOnClick = true

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.
"0071BC",			// Mouse Off Font Color
"",					// Mouse Off Background Color
"ED1C24",			// Mouse On Font Color
"",			// Mouse On Background Color
"0071BC",			// Menu Border Color 
11,					// Font Size in pixels
"normal",			// Font Style (italic or normal)
"bold",				// Font Weight (bold or normal)
"Arial",			// Font Name
2,					// Menu Item Padding
,					// Sub Menu Image (Leave this blank if not needed)
"ffffff",			// 3D Border & Separator bar
"ffffff",			// 3D High Color
"ffffff",			// 3D Low Color
"000099",			// 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)
,					// Menu Header Font Color (Leave blank if headers are not needed)
,					// Menu Header Background Color (Leave blank if headers are not needed)
"0071BC",			// 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.
"0071BC",			// Mouse Off Font Color
"CFE4F2",			// Mouse Off Background Color
"ffffff",			// Mouse On Font Color
"0071BC",			// Mouse On Background Color
"0071BC",			// Menu Border Color 
11,					// Font Size in pixels
"normal",			// Font Style (italic or normal)
"strong",			// Font Weight (bold or normal)
"Arial",			// Font Name
7,					// Menu Item Padding
,					// Sub Menu Image (Leave this blank if not needed)
,					// 3D Border & Separator bar
"ffffff",			// 3D High Color
"ffffff",			// 3D Low Color
"000099",			// 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)
"ffffff",			// Menu Header Font Color (Leave blank if headers are not needed)
"000099",			// Menu Header Background Color (Leave blank if headers are not needed)
"CFE4F2",			// Menu Item Separator Color
]

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
,					// Menu Top - The Top position of the menu in pixels
,					// Menu Left - The Left position of the menu in pixels
width,					// Menu Width - Menus width in pixels
,					// Menu Border Width 
,					// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of 			 					"center:middle"
style1,				// 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)
"center",			// 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)
1,					// 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)
,					// 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

,"Home",Root.replace("","") + "index.php",Root.replace("Content/","") + "index.php","",1// "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"Tsunami","show-menu=Tsunami",Root + "content/tsunami/what_is_tsunami.html","what_is_tsunami.html",1
,"Membership","show-menu=Membership",Root + "content/membership/subscribe.php","subscribe.php",1
,"News",Root + "content/news/tsunami-news.html",Root.replace("Content/","") + "tsunami-news.html", "", 1
,"About Us",Root.replace("","") + "content/about_cwarn/about_cwarn.html",Root.replace("Content/","") + "gallery.html","",1
,"FAQ's",Root.replace("","") + "content/faq/faq.html",Root.replace("Content/","") + "newsroom.html","",1
,"Disasters","show-menu=Disasters", Root + "content/media/odstrevent.php",Root + "content/media/odstrevent.php",1
,"Chat",Root.replace("","") + "content/chat/chat.html",Root.replace("","") + "content/chat/chat.html","contactUs.html",1
,"Links","show-menu=links","#","volunteers.html",1
,"Contact Us",Root + "content/contact/contact.html",Root + "content/contact/contact.html","volunteers.html",1
])

	addmenu(menu=["Home",
	,,140,1,"",style2,,"left",effect,,,,,,,,,,,,	
	])
	
	addmenu(menu=["Tsunami",
	,,160,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"What is a tsunami",Root + "content/tsunami/what_is_tsunami.html",,"",1
	,"How do tsunami occur",Root + "content/tsunami/how_tsunami_occur.html",,"",1
	,"Tsunami in history",Root + "content/tsunami/tsunami_in_history.html",,"",1
	,"Be prepared",Root + "content/tsunami/be_prepared.html",,"",1
	,"Resources",Root + "content/tsunami/resources.html",,"",1
	])

	addmenu(menu=["Disasters",
	,,160,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"Current Disasters",Root + "content/media/odstrevent.php",,"",1
	
	])
	
	addmenu(menu=["Membership",
	,,160,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"Become a member",Root + "content/membership/subscribe.php",,"",1
	,"Benefits of membership",Root + "content/membership/benefits.html",,"",1
	,"Member Login",Root + "content/membership/Login.php",,"",1

	])
	
	addmenu(menu=["About_us",
	,,140,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"Gallery",Root + "#",,"",1
	,"Search Category",Root + "#",,"",1
	
	])
	
	addmenu(menu=["FAQ",,,,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"faq",Root + "#",,"",1
	])

	
	addmenu(menu=["Media",
	,,140,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"media",Root + "#",,"",1

	])
	
	addmenu(menu=["affiliates",
	,,170,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"Feed Back Form",Root + "#",,"",1
	,"Firstrand Volunteers Programme",Root + "#",,"",1
	,"Contact Information FNB",Root + "#",,"",1
	
	])
	
	addmenu(menu=["Links",
	,,140,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"Most Recent Tsunamis","http://wcatwc.arh.noaa.gov/tsunami.htm",,"",1
	,"Pacific Tsunami Warning Centre","http://www.prh.noaa.gov/ptwc/",,"",1
	,"Alaska Tsunami Warning Centre","http://wcatwc.arh.noaa.gov/",,"",1
	,"Australian Tsunami Warning Centre","http://www.bom.gov.au/tsunami/index.shtml",,"",1
	,"Japan Meteorological Agency Tsunami Warnings","http://www.jma.go.jp/en/tsunami/",,"",1
	,"NOAA Tsunami Website","http://www.tsunami.noaa.gov/",,"",1
	,"International Tsunami Information Centre","http://ioc3.unesco.org/itic/",,"",1
	,"Tsunami Ready","http://www.tsunamiready.noaa.gov/",,"",1

	])
	
		addmenu(menu=["Contact_us",
	,,140,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"contact",Root + "",,"",1
	])
	
   
dumpmenus()
