var user_language="null"; var browser_languages = ",en-us,zh-cn,zh-tw,"; var default_language = "en-us"; user_language = user_language.toLowerCase(); user_language = user_language.split(",")[0]; var help_language = default_language; if (user_language=="zh-cn" || user_language.indexOf('zh-hans') != -1){ help_language = "zh-cn"; }else if (",zh,zh-tw,zh-sg,zh-mo,zh-hk,".indexOf("," + user_language + ",")!=-1 || user_language.indexOf('zh-hant') != -1){ help_language = "zh-tw"; }else if (user_language=="en" || user_language.indexOf("en-")!=-1){ help_language = default_language; }else{ help_language = default_language; }