function setLang() {
/*
	if (location.hostname.search("babbley.com") != -1) {
		lang = setEnLang();
	} else {
		lang = setCnLang();
	}
*/
	lang = setCnLang();
	return lang;
}

function setCnLang() {
	lang = new Array();
	lang["a_moment_ago"] = "1秒之前";
	lang["address"] = "地址";
	lang["add_favorite_failed"] = "加入收藏失败，请使用Ctrl+D进行添加";
	
	lang["album_name_empty"] = "相册名不能为空";
	lang["album_name_too_long"] = "相册名太长，请缩减";
	lang["album_name_incorrect"] = "相册名长度错误";
	lang["any"] = "任意...";
	lang["cannotself"] = "不能添加自己";
	lang["cannotsendself"] = "不能给自己发信息";
	lang["clear_status_succeed"] = "状态已清除";

	lang["company_name_empty"] = "公司名不能为空";
	lang["company_ename_empty"] = "公司英文名不能为空";
	lang["select_company_city"] = "请选择公司所在城市";

	lang["confirm_to_del_bestfs"] = "你真的要移除这些朋友？";
	lang["confirm_to_del_photos"] = "你真的删除这些图片?";
	lang["confirm_to_move_photos"] = "你真的移动这些图片?";
	lang["copyurl_succeed"] = "本页链接已复制到剪贴板";
	lang["copyurl_yourself"] = "由于您的浏览器限制，目前尚不支持复制功能，请手工复制";
	lang["email_exists"] = "该邮箱地址已被注册，请重新填写";
	lang["email_available"] = "该邮箱地址未被注册，您可以使用该邮箱进行注册";
	lang["flop_succeed"] = "扔鸡蛋成功";
	lang["format_incorrect"] = "输入格式错误，请检查";
	lang["hide_friend_status"] = "隐藏朋友的状态";
	lang["handling_wait"] = "检测中，请稍等...";
	lang["height_incorrect"] = "身高输入错误，请重新输入";
	lang["id_num_exists"] = "证件号已存在";
	lang["icq_format_incorrect"] = "ICQ 号输入错误";
	lang["interest_too_long"] = "兴趣字符数超过限制，请控制在500字节内";
	lang["id_num_format_incorrect"] = "证件号格式不正确";
	lang["input"] = "请输入";
	lang["introduce_too_long"] = "自我简介字符数超过限制，请控制在500字节内";
	lang["invite_uname_not_exists"] = "邀请人的用户名不存在";
	lang["invite_uname_incorrect"] = "邀请人的用户名不正确";
	lang["max_characters_1000"] = "您必须写下您的留言并且留言字数不能大于1,000个";
	lang["mobile_format_incorrect"] = "手机号格式不正确";
	lang["mobile_exists"] = "该手机号已经被使用";
	lang["no_content"] = "请输入信件内容";
	lang["no_login"] = "您还没有登录，请先登录";
	lang["no_people"] = "您添加的用户不存在";
	lang["no_section"] = "以下没有分类";
	lang["no_subject"] = "请输入信件主题";
	lang["no_touser"] = "请输入收件人";
	lang["no_login_content"] = "<a href=\"" + sitepath + "/login.php\">登录</a> | <a href=\"" + sitepath + "/register.php\">注册</a>";
	lang["noblank"] = "请填写完整收件人、主题和内容，不可为空。";
	lang["nopeople_rewrite"] = "收件人非有效用户，请重新输入！";
	lang["now_loading"] = "正在载入信息...";
	lang["now_submit"] = "正在提交信息...";
	lang["oldpwd_empty"] = "原密码不能为空";
	lang["ok"] = "OK";
	lang["photo_name_empty"] = "图片标题不能为空";
	lang["photo_name_too_long"] = "图片标题太长，请缩减";
	lang["photo_tags_empty"] = "请填写图片标签";
	lang["please_choose_album"] = "请选择目标相册";
	lang["please_choose_bestfs_todel"] = "对不起，你没有选择要移除的朋友。";
	lang["please_choose_bestfs_toadd"] = "对不起，你没有选择要添加的朋友。";
	lang["please_choose_photos"] = "请至少选择一张图片";
	lang["please_agree_terms"] = "您不接受注册协议";
	lang["please_choose_birthday"] = "请选择生日";
	lang["please_choose_maincf"] = "请选择广告主分类";	
	lang["please_choose_subcf"] = "二级分类必选选择";	
	lang["please_choose_subcity"] = "地区必须选择";	
	lang["please_insertmessage"] ="请填入你的内容";
	lang["please_insertemail"] = "请填入你的Email地址";
	lang["please_inserttitle"] = "请填入你的标题";
	
	lang["please_insertgroupname"] ="请填入你的群名称";
	lang["please_insertgroupkey"] = "请填入你的群关键字";
	lang["please_insertnull"] = "验证码不能为空";

	lang["please_insertemailmessage"] = "请填入你的Email内容";
	lang["please_insert_right_number"] = "请填入正确的验证码数字";
	lang["please_refresh"] = "投票前请刷新本页面";	
	lang["please_rightemail"] = "您填入的Email地址格式不正确，请重新输入";
	lang["please_select_who_speaks"] = "请选择对方会说的语言";
	lang["please_select_gender"] = "请选择性别";
	lang["please_selectclassified"] = "请选择以下分类";
	
	lang["play_count_msg"] = "播放次数必须是大于0的正整数";
	
	lang["pop_succeed"] = "送鲜花成功";
	lang["pwd_empty"] = "密码为空，请填写。";
	lang["pwd_not_consistent"] = "两次输入的密码不一致，请检查后重试。";
	lang["pwd_too_short"] = "密码太少，请用6位以上";
	lang["pwd_too_long"] = "密码太长，请用15位以下";
	lang["quite"] = "彻底：";
	lang["refresh_page"] = "请保存您输入的信息并刷新您所在的页面";
	lang["regqq_incorrect"] = "QQ 号输入错误";
	
	lang["school_name_empty"] = "学校名不能为空";
	lang["school_ename_empty"] = "学校英文名不能为空";
	
	lang["search_content_short"] = "对不起，请输入2个及以上的关键字。";
	lang["select_school_city"] = "请选择学校所在城市";
	lang["select_resume"] = "请选择要还原的邮件!";
	lang["set_home_failed"] = "此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将 [signed.applets.codebase_principal_support]的值设置为'true',双击即可。";
	lang["sure_delete"] = "删除这些邮件吗?";
	lang["sure_resume"] = "确定要还原邮件?";
	lang["sys_parameter_error"] = "系统参数错误";
	lang["sure_to_delete"] = "确定删除?";
	lang["serch_empty"] = "请输入您要搜索的内容";
	lang["show_friend_status"] = "显示朋友的状态";
	lang["skype_format_incorrect"] = "Skype 帐号输入错误";
	lang["sign_too_long"] = "个性签名字符数超过限制，请控制在500字节内";
	lang["status_too_long"] = "状态字数太多，请缩减";
	lang["tag_length_incorrect"] = "标签长度必须为 2-15 字节，请重新输入";
	lang["uname_length_incorrect"] = "用户名长度错误";
	lang["uname_unacceptable"] = "此用户名包含不可接受字符或被管理员屏蔽，请选用其它用户名，";
	lang["uname_mustlowercase"] = "为了避免论坛用户名混乱,用户名中禁止使用大写字母，请使用小写字母。";
	lang["uname_registered"] = "该用户名已经被注册，请选用其它用户名。";
	lang["uname_available"] = "恭喜您，该用户名还未被注册，您可以使用这个用户名注册。";
	lang["uname_empty"] = "会员名空，请填写。";
	lang["update_status_succeed"] = "状态更新成功.";
	lang["vcode_incorrect"] = "验证码不正确，请重新输入";
	lang["vote_overflag"] = "投票次数太频繁，请稍候";
	lang["waitfor"] = "恭喜您，成功添加朋友，等待对方验证！";
	lang["watchword_too_long"] = "格言字符数超过限制，请控制在500字节内";
	lang["yesorwaitfor"] = "该用户已经是您的朋友，或正等待对方验证";
	lang["you_sure"] = "你确定要";
	
	return lang;
}

/*
function setEnLang() {
	lang = new Array();
	lang["a_moment_ago"] = "a moment ago";
	lang["address"] = " Address";
	lang["album_name_empty"] = "album name should not be empty, please check";
	lang["album_name_incorrect"] = "Incorrect album name length";
	lang["album_name_too_long"] = "album name too long";
	lang["any"] = "Any...";
	lang["cannotself"] = "You can't add yourself as a friend.";
	lang["cannotsendself"] = "Can not send message to yourself";
	lang["clear_status_succeed"] = "status has been cleared";
	
	lang["company_name_empty"] = "Company Chinese name can't empty";
	lang["company_ename_empty"] = "Company English name can't empty";
	lang["select_company_city"] = "Please select where is the company";

	lang["confirm_to_del_bestfs"] = "Are you sure to remove these friends from your best friends list?";
	lang["confirm_to_del_photos"] = "Are you sure to remove these pictures from this album?";
	lang["confirm_to_move_photos"] = "Are you sure to move these pictures?";
	lang["copyurl_succeed"] = "URL has been copied to clipboard";
	lang["copyurl_yourself"] = "Sorry, your browser does't surpport this funciton, please copy the link by yourself";
	lang["email_available"] = "Congratulations! You can register with this email";
	lang["email_exists"] = "email exists, please input another one";
	lang["flop_succeed"] = "Vote successfully.";
	lang["format_incorrect"] = "Incorrect format";
	lang["handling_wait"] = "Handling, please wait...";
	lang["height_incorrect"] = "Incorrect height, please re-enter";
	lang["hide_friend_status"] = "hide friend updates";
	lang["id_num_exists"] = "id-card number already exists";
	lang["id_num_format_incorrect"] = "id-card number format incorrect";
	lang["id_num_ok"] = "id-card number ok";
	lang["input"] = "Input ";
	lang["icq_format_incorrect"] = "ICQ format incorrect";
	lang["interest_too_long"] = "interest too long";
	lang["introduce_too_long"] = "introduce too long";
	lang["invite_uname_not_exists"] = "invited username doesn't exist";
	lang["invite_uname_incorrect"] = "invited username incorrect";
	lang["max_characters_1000"] = "You must write something to leave a message and max 1,000 characters.";
	lang["mobile_exists"] = "mobile number already exists";
	lang["mobile_format_incorrect"] = "mobile format incorrect";
	lang["no_content"] = "Please enter the content !";
	lang["no_login"] = "Please login first!";
	lang["no_people"] = "The user you added not exist";
	lang["no_section"] = "There's no sections below";
	lang["no_subject"] = "Please enter the subject !";
	lang["no_touser"] = "Please enter the reciever !";
	lang["noblank"] = "Please write the addressee,topic,content!";
	lang["nopeople_rewrite"] = "Invalid Username!";
	lang["now_loading"] = "Now Loading...";
	lang["now_submit"] = "Submitting, please wait...";
	lang["ok"] = "OK";
	lang["oldpwd_empty"] = "please enter your old password";
	lang["photo_name_too_long"] = "photo title too long";
	lang["photo_name_empty"] = "photo title should not be empty, please check";
	lang["photo_tags_empty"] = "photo tags can't be emtpy";
	lang["please_agree_terms"] = "please agree terms first";
	lang["please_choose_bestfs_todel"] = "Sorry, you haven't selected any friend to remove yet.";
	lang["please_choose_bestfs_toadd"] = "Sorry, you haven't selected any friend to add yet.";
	lang["please_choose_photos"] = "Sorry, you haven't selected any photo yet.";
	lang["please_choose_album"] = "please select a target album first";
	lang["please_choose_birthday"] = "please select birthday";
	lang["please_choose_maincf"] = "Please select a main class";	
	lang["please_choose_subcf"] = "Please select a subclass";	
	lang["please_choose_subcity"] = "Please select your city or district";	
	lang["please_insert_right_number"] = "vcode format incorrect, please input 4 numbers";
	lang["please_insertemail"] = "Please insert your Email";
	lang["please_insertemailmessage"] = "Please insert email content";	
	lang["please_insertmessage"] ="Please insert your messages";
	lang["please_inserttitle"] = "Please insert title";
	lang["please_refresh"] = "Refresh before voting.";
	lang["please_rightemail"] = "Incorrect email format";
	lang["please_select_gender"] = "please select gender";
	lang["please_select_who_speaks"] = "Please select the language you want to learn";
	lang["please_selectclassified"] = "Please choose the section below";
	lang["play_count_msg"] = "The number has to be bigger than 0";
	lang["pop_succeed"] = "Vote successfully.";
	lang["pwd_empty"] = "please fill in your password";
	lang["pwd_not_consistent"] = "passwords not consistent, please re-enter";
	lang["pwd_too_short"] = "passwords should be at least six letter long";
	lang["pwd_too_long"] = "passwords should be less then 15 letters";
	lang["quite"] = "quite ";
	lang["refresh_page"] = "Please right click the text to copy them and then refresh the page. Then paste the text.";
	lang["regqq_incorrect"] = "Incorrect QQ format, please re-enter";
	lang["school_name_empty"] = "School Chinese name can't empty";
	lang["school_ename_empty"] = "School English name can't empty";
	lang["select_school_city"] = "Please select where is the school";
	lang["select_delete"] = "Please select the E-mail which you wanna delete!";
	lang["select_resume"] = "Please select the E-mail which you wanna resume!";
	lang["sure_delete"] = "to delete the E-mail?";
	lang["sure_resume"] = "Are you sure to resume the E-mail?";
	lang["sys_parameter_error"] = "System Error. Please try in a little while.";
	lang["serch_empty"] = "please enter what you want to search";
	lang["show_friend_status"] = "show friend updates";
	lang["skype_format_incorrect"] = "Skype format incorrect";
	lang["status_too_long"] = "status too long";
	lang["sure_to_delete"] = "Are you sure to delete this?";
	lang["tag_length_incorrect"] = "Incorrect tag length, please check it";
	lang["uname_available"] = "Congratulations! You can register with this name";
	lang["uname_length_incorrect"] = "Your name must be within 3-12 characters and cannot use blank space";
	lang["uname_mustlowercase"] = "only lower case letters please";
	lang["uname_empty"] = "please fill in your username";
	lang["uname_registered"] = "This username is already registered, please pick another one";
	lang["uname_unacceptable"] = "This username is unacceptable, please choose another one";
	lang["update_status_succeed"] = "status has been updated";
	lang["vcode_incorrect"] = "Invalid vcode, please re-enter";
	lang["vote_overflag"] = "Do not vote so frequently.";
	lang["waitfor"] = "Request recieved! Waiting for confirmation";
	lang["watchword_too_long"] = "watchword too long";
	lang["yesorwaitfor"] = " This user was your friend already or wait for confirm!";
	lang["you_sure"] = "Are you sure ";
	
	return lang;
}
*/