var path = "/index.html";
if (typeof(request_path)!="undefined") {
	var path = request_path;
}

var full_domain = domain
if ((full_domain == "jp") || (full_domain == "kr") || (full_domain == "uk")) {
	full_domain = "co." + full_domain
}
else if (full_domain == "au") {
	full_domain = "com." + full_domain
}

var myMenu = new Menu("WorldwideGlobal");
	myMenu.addMenuItem("United States", host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.com","com");
	myMenu.addMenuItem("Canada", host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.com","com"); 
	myMenu.addMenuItem("Australia", host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.com.au","au"); 
	myMenu.addMenuItem("&Ouml;sterreich", host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.de","de"); 
	myMenu.addMenuItem("Belgium", host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.nl", "nl");
	myMenu.addMenuItem("中国", host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.cn", "cn");
	myMenu.addMenuItem("Denmark", host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.se", "se");
	myMenu.addMenuItem("Finland", host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.se", "se");
	myMenu.addMenuItem("France", host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.fr", "fr");
	myMenu.addMenuItem("Deutschland", host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.de", "de");
	myMenu.addMenuItem("India", host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.in", "in");
	myMenu.addMenuItem("Ireland", host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.co.uk", "uk");
	myMenu.addMenuItem("Italia" , host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.it", "it");
	myMenu.addMenuItem("日本" , host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.co.jp", "jp");
	myMenu.addMenuItem("한국" , host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.co.kr", "kr");
	myMenu.addMenuItem("Luxembourg", host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.nl", "nl");
	myMenu.addMenuItem("Netherlands" , host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.nl", "nl");
	myMenu.addMenuItem("Norway", host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.se", "se");
	myMenu.addMenuItem("Portugal", host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.com", "com");
	myMenu.addMenuItem("Espa&ntilde;a", host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.es", "es");
	myMenu.addMenuItem("Sweden", host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.se", "se");
	myMenu.addMenuItem("Schweiz / Suisse", host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.ch", "ch");
	myMenu.addMenuItem("United Kingdom", host_pre + ".mathworks." + full_domain + "/includes_content/domainRedirect/country_select.html?uri=" + path + "&domain=mathworks.co.uk", "uk");
	myMenu.addMenuItem("All Other Countries","/company/worldwide/", "ww");
 addMenu(myMenu);

