	var windowpath = new String(window.location);
	var en_path = changepath (windowpath, "cn", "en");
	var zh_path = changepath (windowpath, "cn", "zh");
	var path = "images/cn/Menu/";
	var number = document.forms["dummy"].elements["number"].value;

	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 + "recruitment-off.gif";
	menu5_on = new Image();
	menu5_on.src = path +  "recruitment-on.gif";
	menu5_text = "";

	menu6_off = new Image();
	menu6_off.src = path +  "contact-off.gif";
	menu6_on = new Image();
	menu6_on.src =  path + "contact-on.gif";
	menu6_text = "";

	menu7_off = new Image();
	menu7_off.src = path +  "english-off.gif";
	menu7_on = new Image();
	menu7_on.src =  path + "english-on.gif";
	menu7_text = "";

	menu8_off = new Image();
	menu8_off.src = path +  "chinese-off.gif";
	menu8_on = new Image();
	menu8_on.src =  path + "chinese-on.gif";
	menu8_text = "";

	NS4 = false;
	IE4 = false;
	onMenu = null;
	onSubmenu = null;
	onTime = null;

	menu0_url = 'firm_cn.htm';
	menu0_height = '41';                         // constant for image alignment

	menu1_url = 'our-offices_cn.htm';
	menu1_height = '41';                         // constant for image alignment

	menu2_url = 'practice_cn.htm';
	menu2_height = '41';                         // constant for image alignment

	menu3_url = 'professional_cn.htm';
	menu3_height = '41';                         // constant for image alignment

	menu4_url = 'online-resources_cn.htm';
	menu4_height = '41';                         // constant for image alignment

	menu5_url = '#';
	menu5_height = '41';                         // constant for image alignment

	menu6_url = 'contact_cn.htm';
	menu6_height = '41';                         // constant for image alignment

	menu7_url = en_path;
	menu7_height = '41';                         // constant for image alignment

	menu8_url = zh_path;
	menu8_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<9; i++)
		{
			if (i != 5) {
				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!=8)
					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)];
		return newpath.replace("_"+needle, "_"+str);
	}
