function switchLang() {
	url = window.location.href;
	lang = url.substring(url.length, url.length-2);
	targetURL = url.substring(0, url.length-2);
	if (lang == "zh") {
		targetURL = targetURL + "en";
	} else if (lang == "en") {
		targetURL = targetURL + "zh";
	} else {
		targetURL = url + "index.php/home/en";
	}
	self.location = targetURL;
}