/*
 * WebMail.UI.Design
 * Copyright(c) 2008, hifotech.
 * 
 * This code is licensed under BSD license. Use it as you wish, 
 * but keep this copyright intact.
 *--------------------------------------------------------------------------*/


/*---------------------------------------------------------------------------
 * 功能：定义多语言的语言变量
 * 作者：xuan
 * 日期：2008-04-23
 * 修改：2008-10-17
 *--------------------------------------------------------------------------*/

Login = {}
Login.langs = {}

Login.init = function(){

    this.DefaultLanguage    = (window.navigator.userLanguage == undefined) ? 
                               window.navigator.language : 
                               window.navigator.userLanguage;

    //从cookies读取用户所选属性,
    this.Language           = $cookies('get','_Lang') == "" ? 
                              this.DefaultLanguage.toLowerCase() : 
                              $cookies('get','_Lang').toLowerCase();
    
   // alert(this.Language);
};

/**
 *  英文
 *
 ********************************************************************/
Login.langs["en-us"] = {
		"Login_txt1"			  : "Username can't empty!",
    "Login_txt2"        : "Password can't empty",
    "Login_txt3"        : "domain can't empty",
    "Login_txt4"        : "Language can't empty",
    "Login_txt5"        : "Style can't empty",
    "Login_txt6"        : "The system only supports the above version of IE6",

		"reg_txt1"			    : "E-mail name can not be empty", 
		"reg_txt2"			    : "User name can not be empty",
		"reg_txt3"			    : "Two different password",
		"reg_txt4"			    : "Password can not be Chinese",
		"reg_txt5"			    : "Enter the name of the mailbox is incorrect, please re-enter",
		"reg_txt6"			    : "User name can not contain spaces",
		"reg_txt7"			    : "User name can not contain",
		"reg_txt8"			    : "User name is too lang"       
};

/**
 *  简体
 *
 ********************************************************************/
Login.langs["zh-cn"] = {
		"Login_txt1"			  : "用户名不能为空",
    "Login_txt2"        : "密码不能为空",
    "Login_txt3"        : "域名不能这空",
    "Login_txt4"        : "请选择语言",
    "Login_txt5"        : "请选择风格样式",
    "Login_txt6"        : "本系统只支持IE6以上版本",

		"reg_txt1"			    : "邮箱名不能为空", 
		"reg_txt2"			    : "用户名不能为空",
		"reg_txt3"			    : "两次输入的密码不相同",
		"reg_txt4"			    : "密码不能为中文",
		"reg_txt5"			    : "邮箱名的输入不正确,请重新输入",
		"reg_txt6"			    : "用户名不能含有空格",
		"reg_txt7"			    : "用户名不能含有",  
		"reg_txt8"			    : "用户名长度过长"
 
};

/**
 *  繁体
 *
 ********************************************************************/
Login.langs["zh-tw"] = {
		"Login_txt1"			  : "用戶名不能為空",
    "Login_txt2"        : "密碼不能為空",
    "Login_txt3"        : "功能變數名稱不能這空",
    "Login_txt4"        : "請選擇語言",
    "Login_txt5"        : "請選擇風格樣式",
    "Login_txt6"        : "本系統只支援IE6以上版本",

		"reg_txt1"			    : "郵箱名不能為空", 
		"reg_txt2"			    : "用戶名不能為空",
		"reg_txt3"			    : "兩次輸入的密碼不相同",
		"reg_txt4"			    : "密碼不能為中文",
		"reg_txt5"			    : "郵箱名的輸入不正確,請重新輸入",
		"reg_txt6"			    : "用戶名不能含有空格",
		"reg_txt7"			    : "用戶名不能含有",
		"reg_txt8"			    : "用戶名長度過長"


};
