var textNone = "Kein Profil gew&auml;hlt";
var textLearnMore = "Registrieren"
var textLearnMoreHover = "Wenn ihr ein Charakterprofil betrachtet, k&oumlnnt ihr auf die kleine Stecknadel am oberen rechten Rand dieses Feldes anklicken, um euch das Profil zu merken und es in diesem Fenster zu speichern.";

var textClickPin = "Hier klicken, um dieses Profil zu merken.";
var tClickPinBreak = "Click here to<br />Pin this Profile";

var textSearchTheArmory = "Suche im Arsenal";

var textArmory = "Arsenal";
var textSelectCategory = "--Select a Category--";
var textArenaTeams = "Arena-Teams";
var textCharacters = "Charaktere";
var textGuilds = "Gilden";
var textItems = "Gegenst&auml;nde";

var textEnterGuildName = "Gildenname eingeben";
var textEnterCharacterName = "Charaktername eingeben";
var textEnterTeamName = "Teamname eingeben";

var textVs2 = "2v2";
var textVs3 = "3v3";
var textVs5 = "5v5";

var textCurrentlyEquipped = "<span class = 'myGray'>Currently Equipped</span>";

var textPoor = "Poor";
var textFair = "Fair";
var textGood = "Good";
var textVeryGood = "Very Good";
var textExcellent = "Excellent";

var tStwoChar = "Entschuldige der Name muss 2 Zeichen lang sein.";
var tScat = "Bitte w&auml;hle eine Kategorie.";

	var textHideItemFilters = "Hide Item Filters";
	var textShowItemFilters = "Show Item Filters";
	
	var textHideAdvancedOptions = "Hide Advanced Options";
	var textShowAdvancedOptions = "Show Advanced Options";
	
	var textErrorLevel = "Min Level ist gr&ouml&szlig;er als Max Level";
	var textErrorSkill = "Min Skill ist gr&ouml&szlig;er als Max Skill";

var tPage = "Seite";
var textOf = "von";

var tRelevance = "Relevanz";
var tRelevanceKr = "";

var tGuildLeader = "Gildenmeister";
var tGuildRank = "Rang";

var textrace = "";
var textclass = "";

var text1race = "Mensch";
var text2race = "Orc";
var text3race = "Zwerg";
var text4race = "Nachtelf";
var text5race = "Untoter";
var text6race = "Tauren";
var text7race = "Gnom";
var text8race = "Troll";
var text10race = "Blutelf";
var text11race = "Draenei";

var text1class = "Krieger";
var text2class = "Paladin";
var text3class = "J&auml;ger";
var text4class = "Schurke";
var text5class = "Priester";
var text7class = "Schamane";
var text8class = "Magier";
var text9class = "Hexenmeister";
var text11class = "Druide";

function printWeeks(numWeeks) {
	if (numWeeks == 1)
		return "1 week";
	else
		return numWeeks + " weeks";
}

var tCharName = "Charaktername";
var tGRank = "Gildenrang";
var toBag = "Origin";
var tTType = "Action";
var tdBag = "Dest.";
var tItem = "Gegenstand"
var tDate = "Date & Time";

var tItemName = "Gegenstand";
var tItemBag = "Tab";
var tItemSlot = "Slot";
var tItemType = "Type";
var tItemSubtype = "Subtype";

var tenchT = "Enchantment";
var tenchP = "Enchantment";

var tLoading = "Laden";

function returnDateOrder(theMonth, theDay, theYear, theTime) {
	return theMonth + theDay + theYear + theTime; //organize the variables according to your region's custom
}

function returnDay(theDay) {
	
	switch (theDay) {
	case 0: return 'Sun&nbsp;';
	case 1: return 'Mon&nbsp;';
	case 2: return 'Tue&nbsp;&nbsp;';
	case 3: return 'Wed&nbsp;';
	case 4: return 'Thur';
	case 5: return 'Fri&nbsp;&nbsp;&nbsp;&nbsp;';
	case 6: return 'Sat&nbsp;';
	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()) + " " + (theDate.getMonth() + 1) +"/"+ theDate.getDate() +"/"+ theYear +" "+ theHour +":"+ theMinutes +":"+ theSeconds +" "+ amPM;
	return d;
}

var gTruncItemNameContents = 70;
var gTruncItemName = 35;
var gTruncGuildRank = 18;

function printBag(bagId) {
	return tItemBag + " " + bagId;
}

jsLoaded=true;
