	var windowpath = new String(window.location);
	var zh_path = changepath (windowpath, "en", "zh");
	var cn_path = changepath (windowpath, "en", "cn");
	var path = "images/en/Menu/";
	var number = document.forms["dummy"].elements["number"].value;
	var maxItems = 11; // max number of menu items

	menu0_off = new Image();
	menu0_off.src =  path + "firm-off.gif";
	menu0_on = new Image();
	menu0_on.src =  path + "firm-on.gif";
	menu0_text = "";

	menu1_off = new Image();
	menu1_off.src =  path + "offices-off.gif";
	menu1_on = new Image();
	menu1_on.src =  path + "offices-on.gif";
	menu1_text = "";

	menu2_off = new Image();
	menu2_off.src = path +  "practice-off.gif";
	menu2_on = new Image();
	menu2_on.src = path +  "practice-on.gif";
	menu2_text = "";

	menu3_off = new Image();
	menu3_off.src = path +  "professionals-off.gif";
	menu3_on = new Image();
	menu3_on.src = path +  "professionals-on.gif";
	menu3_text = "";

  	menu4_off = new Image();
	menu4_off.src = path +  "resources-off.gif";
	menu4_on = new Image();
	menu4_on.src = path +  "resources-on.gif";
	menu4_text = "";

	menu5_off = new Image();
	menu5_off.src = path +  "publications-off.gif";
	menu5_on = new Image();
	menu5_on.src = path +  "publications-on.gif";
	menu5_text = "";

	menu6_off = new Image();
	menu6_off.src =  path + "recruitment-off.gif";
	menu6_on = new Image();
	menu6_on.src = path +  "recruitment-on.gif";
	menu6_text = "";

	menu7_off = new Image();
	menu7_off.src = path +  "news-off.gif";
	menu7_on = new Image();
	menu7_on.src =  path + "news-on.gif";
	menu7_text = "";

	menu8_off = new Image();
	menu8_off.src =  path + "meritas-off.gif";
	menu8_on = new Image();
	menu8_on.src =  path + "meritas-on.gif";
	menu8_text = "";

	menu9_off = new Image();
	menu9_off.src = path +  "contact-off.gif";
	menu9_on = new Image();
	menu9_on.src =  path + "contact-on.gif";
	menu9_text = "";

	menu10_off = new Image();
	menu10_off.src = path +  "chinese-off.gif";
	menu10_on = new Image();
	menu10_on.src =  path + "chinese-on.gif";
	menu10_text = "";

	menu11_off = new Image();
	menu11_off.src = path +  "simple-off.gif";
	menu11_on = new Image();
	menu11_on.src =  path + "simple-on.gif";
	menu11_text = "";

	NS4 = false;
	IE4 = false;
	onMenu = null;
	onSubmenu = null;
	onTime = null;

	menu0_url = 'firm_en.htm';
	menu0_height = '41';                         // constant for image alignment

	menu1_url = 'our-offices_en.htm';
	menu1_height = '41';                         // constant for image alignment

	menu2_url = 'practice_en.htm';
	menu2_height = '41';                         // constant for image alignment

	menu3_url = 'professional_en.htm';
	menu3_height = '41';                         // constant for image alignment

	menu4_url = 'online-resources_en.htm';
	menu4_height = '41';                         // constant for image alignment

	menu5_url = 'publications_en.htm';
	menu5_height = '41';                         // constant for image alignment

	menu6_url = 'recruitment_en.htm';
	menu6_height = '41';                         // constant for image alignment

	menu7_url = 'news_en.htm';
	menu7_height = '41';                         // constant for image alignment

	menu8_url = 'meritas.htm';
	menu8_height = '41'; 	

	menu9_url = 'contact_en.htm';
	menu9_height = '41';                         // constant for image alignment

	menu10_url = zh_path;
	menu10_height = '41';                         // constant for image alignment

	menu11_url = cn_path;
	menu11_height = '41';                         // constant for image alignment

	                        

	function makeMenu()
	{
		document.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" hspace=\"0\" vspace=\"0\"><tr><td>");
		for (i=0; i<=maxItems; i++)
		{
			if (i == number)	{
				document.write("<a href=" + eval('menu' + i + '_url') + "><img NAME=menu" + i + " src=" + eval('menu' + i + '_on.src') + " border=0></a>");
			} else {
				document.write("<a href=" + eval('menu' + i + '_url') + " OnMouseOver='rollOver(" + i + ")' OnMouseOut='rollOut(" + i + ")'><img NAME=menu" + i + " src=" + eval('menu' + i + '_off.src') + " border=0></a>");
			}
					if (i!=maxItems)
						document.write("<br>");
		}
		document.write("</td></tr></table>");
	}

	function rollOver(imageIndex) {
		document.images["menu" + imageIndex].src = eval("menu" + imageIndex + "_on.src");
	}

	function rollOut(imageIndex) {
		document.images["menu" + imageIndex].src = eval("menu" + imageIndex + "_off.src");
	}

	function popup(link, windowname, widthsize, heightsize) {
		window.open(link, windowname, 'location=no,toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no,width=' + widthsize + ',height=' + heightsize);
	}

	function changepath(path, needle, str) {
		var stringarray = path.split("/");
		var newpath = stringarray[(stringarray.length - 1)];
		if (newpath == "recruitment_en.htm") {
			return "firm_"+str+".htm";
		} else if (newpath.substr(0, 7) == "publica") {
			return newpath;
		} else if (newpath.substr(0, 16) == "online-resources") {
			return newpath;
		} else {
			return newpath.replace("_"+needle, "_"+str);
		}
	}
