var textNone = "无";
var textLearnMore = "点击此处了解更多信息"
var textLearnMoreHover = "查看角色资料时，点击窗口右上方的小别针可锁定该资料，将角色资料存储在窗口中便于查看。";

var textClickPin = "点击此处指定该资料";
var tClickPinBreak = "点击此处<br />指定该资料";
var textViewProfile = "查看角色信息";

var textSearchTheArmory = "检索英雄榜";

var textArmory = "英雄榜";
var textSelectCategory = "--选择一个分类--";
var textArenaTeams = "竞技场战队";
var textCharacters = "角色";
var textGuilds = "公会";
var textItems = "物品";

var textEnterGuildName = "输入公会名称";
var textEnterCharacterName = "输入角色名称";
var textEnterTeamName = "输入战队名称";

var textVs2 = "2v2";
var textVs3 = "3v3";
var textVs5 = "5v5";

var textCurrentlyEquipped = "<span class = 'myGray'>目前裝備</span>";

var textPoor = "较低";
var textFair = "一般";
var textGood = "较高";
var textVeryGood = "很高";
var textExcellent = "极高";

var tStwoChar = "搜索至少需要输入2个字节。";
var tScat = "请选择一个分类。";

	var textHideItemFilters = "隐藏物品筛选条件";
	var textShowItemFilters = "显示物品筛选条件";
	
	var textHideAdvancedOptions = "隐藏高级选项";
	var textShowAdvancedOptions = "显示高级选项";
	
	var textErrorLevel = "最低等级大于等级上限";
	var textErrorSkill = "最低技能大于技能上限";

var tPage = "页";
var textOf = "之";

var tRelevance = "匹配度";
var tRelevanceKr = "";

var tGuildLeader = "公会会长";
var tGuildRank = "级别";

var textrace = "";
var textclass = "";

var text1race = "人类";
var text2race = "兽人";
var text3race = "矮人";
var text4race = "暗夜精灵";
var text5race = "亡灵";
var text6race = "牛头人";
var text7race = "侏儒";
var text8race = "巨魔";
var text10race = "血精灵";
var text11race = "德莱尼";

var text1class = "战士";
var text2class = "圣骑士";
var text3class = "猎人";
var text4class = "潜行者";
var text5class = "牧师";
var text6class = "死亡骑士";
var text7class = "萨满祭司";
var text8class = "法师";
var text9class = "术士";
var text11class = "德鲁伊";

function printWeeks(numWeeks) {
	if (numWeeks == 1)
		return "1周";
	else
		return numWeeks + " 周";
}

var tCharName = "角色名称";
var tGRank = "公会级别";
var toBag = "来源";
var tTType = "交易";
var tdBag = "存放栏页";
var tItem = "物品"
var tDate = "日期与时间";

var tItemName = "物品";
var tItemBag = "标签";
var tItemSlot = "装备部位";
var tItemType = "类别";
var tItemSubtype = "子类";

var tenchT = "附魔";
var tenchP = "附魔";

var tLoading = "读取中";
var errorLoadingToolTip = "[t]Error loading tooltip.";

function returnDateOrder(theMonth, theDay, theYear, theTime) {
	//return theMonth + theDay + theYear + theTime; //organize the variables according to your region's custom
	return theMonth + theDay + theYear + theTime; //organize the variables according to your region's custom
}

function returnDay(theDay) {
	switch (theDay) {
	case 0: return '星期日';
	case 1: return '星期一';
	case 2: return '星期二';
	case 3: return '星期三';
	case 4: return '星期四';
	case 5: return '星期五';
	case 6: return '星期六';
	default: return '';
	}	
	
}

function formatDate(theDate) {

	var amPM;
	if (theDate.getHours() >= 12)
		amPM = "PM"
	else
		amPM = "AM"
		
	var theHour = theDate.getHours()%12;
	if (!theHour)
		theHour = 12;
		
	var theMinutes = theDate.getMinutes();
	if (!theMinutes)
		theMinutes = "00"
	if ((parseInt(theMinutes) <= 9) && (theMinutes != "00"))	
		theMinutes = "0" + theMinutes;
		
	var theSeconds = theDate.getSeconds();
	if (!theSeconds)
		theSeconds = "00"		
	if ((parseInt(theSeconds) <= 9) && (theSeconds != "00"))	
		theSeconds = "0" + theSeconds;		

	var theYear = theDate.getFullYear();

	var d = returnDay(theDate.getDay()) + " " + theYear +"年"+ (theDate.getMonth() + 1) +"月"+ theDate.getDate() +"日"+ theHour +":"+ theMinutes +":"+ theSeconds +" "+ amPM;
	return d;
}

var gTruncItemNameContents = 70;
var gTruncItemName = 35;
var gTruncGuildRank = 18;

function printBag(bagId) {
	return tItemBag + " " + bagId;
}

jsLoaded=true;
