mymade ONLY 4 ME

By Margus Last update Sep 24, 2010 — Installed 615 times.

the source is over 100KB, syntax highlighting in the browser is too slow

var meta = <><![CDATA[
// ==UserScript==
// @name 		Travian3 Beyond - ML&CN
// @author		ms99 (Nux, Lux, onetmt, Velonis Petros, Richard Laffers, Szabka, Victor Garcia-aka Croc-)
// @namespace 	T3
// @version 	3.8.8.9.6.1
// @description	Travian3 Beyond - ML&CN (multilanguage & center numbers)
// @source 		http://userscripts.org/scripts/show/28129
// @identifier 	http://userscripts.org/scripts/show/28129.user.js
// @copyright	© ms99, 2008-2010 (parts of this script © Nux, Lux, onetmt, Velonis Petros, Richard Laffers, Szabka, Victor Garcia-aka Croc-)
// @license 	Creative Commons Attribution-Noncommercial-Share Alike 3.0 Germany License
// @include 	http://*.travian*.*/*.php*
// @exclude 	http://*.travian*.*/hilfe.php*
// @exclude		http://*.travian*.*/log*.php*
// @exclude 	http://*.travian*.*/index.php*
// @exclude 	http://*.travian*.*/anleitung.php*
// @exclude 	http://*.travian*.*/impressum.php*
// @exclude 	http://*.travian*.*/anmelden.php*
// @exclude 	http://*.travian*.*/gutscheine.php*
// @exclude 	http://*.travian*.*/spielregeln.php*
// @exclude 	http://*.travian*.*/links.php*
// @exclude 	http://*.travian*.*/geschichte.php*
// @exclude 	http://*.travian*.*/tutorial.php*
// @exclude 	http://*.travian*.*/manual.php*
// @exclude 	http://*.travian*.*/manual.php*
// @exclude 	http://*.travian*.*/ajax.php*
// @exclude 	http://*.travian*.*/ad/*
// @exclude 	http://*.travian*.*/chat/*
// @exclude 	http://forum.travian*.*
// @exclude 	http://board.travian*.*
// @exclude 	http://shop.travian*.*
// @exclude 	http://*.travian*.*/activate.php*
// @exclude 	http://*.travian*.*/support.php*
// @exclude  	http://help.travian*.*
// @exclude 	*.css
// @exclude 	*.js
// ==/UserScript==
]]></>.toString();

/**
*The original script from Victor Garcia (aka Croc) is licensed under the
*Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Spain License
*To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/2.5/es/
*
*The updated script from ms99 is licensed under the
*Creative Commons Attribution-Noncommercial-Share Alike 3.0 Germany License
*To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/de/
*
*An English translation of the "Creative Commons Attribution-Noncomercial-Share Alike 3.0 License"
*can be found here http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en
/*****************************************************************************
*Copyright © ms99, 2008-2010
*Parts of this script Copyright © Nux, 2008
*Setup page behavior Copyright © Lux, 2008
*Big icons behavior (except default & except Setup) Copyright © onetmt, 2009
*Until then & Residue calculations Copyright © Velonis Petros (mail: velonis.gr) , 2009
*Parts of this script Copyright © Szabka, 2008
*Initial script Copyright Victor Garcia (aka Croc) ©, 2007
*Parts of this script (functions for moving a report/message displayed as a pop-up with the mouse) Copyright © Richard Laffers, 2007
*
*Parts of this code are provided or based on ideas and/or code written by others
*Additional images embedded in this script provided by ms99, Nux, Lux, DMaster, Brains, fr3nchlover, CuPliz13
*Translations to different languages are provided by users of this script
*
*IMPORTANT CONTRIBUTIONS TO THIS SCRIPT (listed in alphabetical order):
*ACE, Acr111, BmW, Brains, Chu Chee Meng, CuPliz13, Dakkie, digital012, david.macej, DMaster, Dream1, EXEMOK, ezGertieY,
*FitForTheLooneyVille, friedturnip, fr3nchlover, Lassie, Lux, MarioCheng, matteo466, MrRyMan, napkin, Nux, onetmt,
*phob0z, rtellezi, Rypi, Sag, samad909, someweirdnobody, Thornheart, vampiricdust, Velonis Petros, yabash, zerokmatrix, Zippo
*
*Please have understanding if I've forgotten somebody with a relevant contribution to this script
*Please send a message via the userscripts.org mailing facility, for credits
*
*Other contributors' (nick)names may be provided in the header of (or inside) the functions
*SPECIAL THANKS to all contributors and translators of this script !
*
*FUCK-OFF swarnava/piece of stinky shit ! You're only a stupid, idiot copy-paster ! We all reject you as you're nothing else than an abortion !
*****************************************************************************/

function functionMain(e) {
	var crtPage = window.location.href;
	var TB3O = new Object();
	TB3O.TBStartTime = new Date().getTime();
	TB3O.version = '3.8.8.9.6.1';
	TB3O.TBEndTime = TB3O.TBStartTime;
	TB3O.usoL = 'http://userscripts.org/scripts/';
	TB3O.usoNo = '28129';
	TB3O.url = TB3O.usoL + 'source/' + TB3O.usoNo + '.user.js';
	TB3O.shN = 'TB3-ML&CN';
	TB3O.sn = 'Waiting for the storm';
	TB3O.usoA = TB3O.usoL + 'show/' + TB3O.usoNo;
	TB3O.origMap = true;
	TB3O.BrT = "";
	TB3O.TBTRT = function() {return TB3O.TBEndTime - TB3O.TBStartTime;};
	TB3O.versionText = function() {return TB3O.version + " - " + TB3O.sn;};
	TB3O.nTARbT = '';
	TB3O.nTASb = '';
	TB3O.nTAUb = '';
	TB3O.nTANb = '';
	TB3O.FmapServer = '';
	TB3O.FmapLanguage = '';
	TB3O.boolIsThisNPC = false;
	TB3O.boolIsNPCExluded = false;
	TB3O.T35 = false;
	TB3O.M35 = 0;
	TB3O.avBKS = false;
	TB3O.boolShowNPCLink = crtPage.indexOf(".org") == -1;
	TB3O.gServer;
	TB3O.fullServerName;
	TB3O.UserID = '0';
	TB3O.plAc = false;
	TB3O.AVP = 0;
	TB3O.Mcap = 0;
	TB3O.VillageRes = '';
	TB3O.hOffBonus = 0;
	TB3O.speed = false;
	TB3O.tPpH = [0, 0, 0, 0, 0];//total production per hour for all villages -> requires to open all villages on a regular basis to get current data
	TB3O.d2spB = [0, 0, 0, 0, 0, 0, 0, 0, 0];//cpbuilding, barracks, big barracks, workshop, stable, big stable, tournament square, townhall, horse drinking through
	//crt coords
	TB3O.xCrt = -1000;
	TB3O.yCrt = -1000;
	//CN colors (CN_COL_TXT, CN_COL_NEUTRAL, CN_COL_MAX_LVL, CN_COL_NO_UPG, CN_COL_UPG_VIA_NPC)
	TB3O.CNc = ['#000000', '#FDF8C1', '#7DFF7D', '#FF9696', '#FFC84B'];
	TB3O.DFc = ['#000000', 'white'];

	TB3O.wH = window.innerHeight;
	TB3O.wW = window.innerWidth;
	
	TB3O.isTtB = false;
	
	TB3O.lng = 'en';
	var ddX = '680';
	//doc direction
	var docDir = ['left', 'right'];
	if (document.defaultView.getComputedStyle(document.body, null).getPropertyValue("direction") == 'rtl') {docDir = ['right', 'left']; ddX = '100';};
	
	//setup defaults
	TB3O.OD = [
	'0', '0', '1', '0', '1', '1', '1', '1', '1', '1',
	'0', '0', '1', '1', '1', '1', '1', '1', '1', '1',
	'1', '1', '1', '1', '0', '0', '1', '0', '1', '0',
	'1', '1', '1', '1', '1', '1', '0', '1', '1', '1',
	'1', '1', '0', '1', '1', '1', '1', '0', '0', '0',
	'3', '0', '0', '1', '1', '0', '1', '1', '0', '0', 
	'1', '1', '0', '1', '0', '',  '',  '',  '',  '0',
	'1', '1', '1', '1', '1', ddX + '|150', ddX + '|170', ddX + '|210', ddX + '|190', ddX + '|220',
	'1', '1', '1', '1', '1', '1', '1', '0', ddX + '|500', ddX + '|500', ddX + '|500'];
	
	TB3O.O = TB3O.OD;
	
	//transition to new setup GM "cookie" system => remove all items related to "TB3O.oldOpt" on the 15th of November, 2009
	TB3O.oldOpt = ['scriptlang',//0
	'serverversion2','removeadbanner','forcet31tcap','showbigiconmarket','showbigiconmilitary','showbigiconmilitary2','showbigiconmisc','alliance','showmenusection3','warsim',//10
	'repsite','showinouticons','showcentermapicon','showsendtroopsresources','showpphinvl','showccinvl','showpopinvl','showvl2table','showbipattinvl','showbookmarks',//20
	'floatbookmarks','noteblock','floatnoteblock','nbsize','nbheight','npcassistant','wsanalyser','showstatlinks','mapanalyser','showtravmapuserlinks',//30
	'showtravmapallylinks','showsearchbar','floatsearchbar','showcpinupgtables','showccinupgtables','showuntilthenresidue','showresupgradetable','showcolorreslevels','showresbartable','floatresbartable',//40
	'showbupgtable','showsortedbiupgt','showcenternumbers','showcolorbuildlevels','showbblink','showaddinfomarr','47','marketpreload','rpdefact','noofscouts',//50
	'51','52','showtroopinfotooltips','showrprinfotooltips','55','showcelltypeinfo','showdisttimes','showmaptable','mesreppreload','showmesopenlinks',//60
	'showrepdeltable','showigmlinkforme','showtb3battlereport','showbrstatdetails','cncolorneutral','cncolormaxlevel','cncolornoupgrade','cncolornpcupgrade','consoleloglevel','showresbartable_state',//70
	'showbookmarks_state','noteblock_state','showvl2table_state','showsearchbar_state','resbarXY','userBookmarksXY','noteblockXY','vList2XY','searchbarXY',	'80',//80
	'81','lockbookmarks','83', '84', '85', '86', '87', '88', '89', '90'];
	
	//link to the profile
	var spLnk = '';
	//link to the barracks
	var bksLnk = 'build.php?gid=19';
	//available races
	avRace = ['Romans', 'Teutons', 'Gauls'];
	//merchants speed (normal servers)
	var mts = {'Romans': 16, 'Teutons': 12, 'Gauls': 24};
	//user information: username(0), race(1), disprace(2), capital name(3), capital vid(4), capital newdid (5), capitalxy(6), deltaRaceImg (7)
	TB3O.U = ['', '', '', '', '', '', '', 1];
	//available languages
	var arAvLang = ['Server language', 'ae', 'ar', 'ba', 'bg', 'br', 'cl', 'cn', 'cz', 'de', 'dk', 'el', 'en', 'es', 'fi', 'fr', 'gr', 'hk', 'hr', 'hu', 'id', 'il', 'ir', 'it', 'jp', 'kr', 'lt', 'lv', 'mx', 'my', 'nl', 'no', 'ph', 'pl', 'pt', 'ro', 'rs', 'ru', 'si', 'sk', 'th', 'tr', 'tw', 'ua', 'vn'];
	//village information
	function xVillage(aName, vID, newdid, x, y, vLink) {this.vName = aName;this.vID = vID;this.vNewdid = newdid;this.vx = x;this.vy = y;this.vLink = vLink; return this;};
	//a building being upgraded
	function xBiP(aName, tEnd) {var txtLvl = aName[1].replace(")", "");var lvl = txtLvl.split(" ");this.name = aName[0];this.txtLvl = txtLvl;this.lvl = lvl[1];this.endTime = tEnd; return this;};
	function xTiT(aType, aName, t1) {this.type = aType;this.name = aName;this.t1 = t1;var aD = new Date();aD.setTime(aD.getTime());this.crtDate = aD; return this;};
	function yTiT(tType, intNo, strName) {this.tType = tType;this.intNo = intNo;this.strName = strName; return this;};
	//a troop movement (from dorf1.php)
	function xTrMov(iT, no, fT) {this.type = iT;this.no = no;this.fT = fT; return this;};
	function xTtT(tType, necRes, tTime, aRes) {this.necRes = necRes;this.tType = tType;this.tTime = tTime;this.aRes = aRes; return this;};
	
	var vList = new Array();
	//active village
	var actV = new xVillage('', 0, 0, -1000, -1000, '');
	
	var arrTtT = new Array();
	var vNames = '';
	var defaultMF = [5, 5, 4, 2, 4];
	var marketFilters;
	var localGP = "";
	var wsSName;
	var wsURLCropFinderLinkV2 = "http://crop-finder.com/";
	var wsAnalyser =	[["World Analyser", "http://www.travian.ws/analyser.pl?s="], ["Travian Utils", "http://travian-utils.com/?s="], ["Travianbox.com", "http://travianbox.com/stats/"]];
	var mapAnalyser =	[["Travmap", "http://travmap.shishnet.org/"], ["Flash map", "http://travian.org.ua/"]];
	var repSite =		[["Travilog", "http://travilog.org.ua/"], ["T-Reports.net", "http://travian-reports.net/"]];
	var warsimLink = 	["warsim.php", "http://travian.kirilloid.ru/warsim.php"];
	
	var wsURLTravianBox = "http://travianbox.com";
	var urlNow = window.location.pathname + window.location.search;
	jsVoid = 'javaScript:void(0)';
	xGIF = "a/x.gif";
	dlright1 = 'lright1';
	dmid = 'lmidall';
	dTop5 = 'ltop5';
	dTop1 = 'ltop1';
	dmid2 = 'lmid2';
	dleft = 'lleft';
	dmid1 = 'lmid1';
	dmap = 'map1';
	gIc = new Array();

	crtResUnits = new Array(5);//current resource units
	capacity = new Array(4);//capacity of the warehouse/granary
	prodPerHour = new Array(7);//production per hour for the four resource types
	timeToFill = [[-1, ""], [-1, ""], [-1, ""], [-1, ""]];//time to fill the warehouse/granary
	
	NPCResources = 'npcResources';
	NPCbacklinkName = 'npcBackLink';
	NPCURL = '/build.php?gid=17&t=3';

	var XPFirst = XPathResult.FIRST_ORDERED_NODE_TYPE;
	var XPList = XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE;
	var XPIterate = XPathResult.UNORDERED_NODE_ITERATOR_TYPE;
	var XPResult = XPathResult.ORDERED_NODE_SNAPSHOT_TYPE;

	//css Style declarations
	acss =
	"#upgTable {width:682px; border-collapse:collapse; border:1px solid silver; background-color:" + TB3O.DFc[1] + "; font-size:8pt; margin:1px; padding:2px; text-align:" + docDir[0] + "; empty-cells:show; line-height:16px;}" +
	"table#upgTable table {background-color:transparent; border-collapse:collapse; border:0px none transparent; font-size:8pt; padding:2px; margin:1px; text-align:" + docDir[1] + "; vertical-align:top;}" +
	"table#upgTable tr {background-color:transparent; border-collapse:collapse; border:0px none transparent; font-size:8pt; padding:2px; margin:1px; text-align:" + docDir[1] + "; vertical-align:top;}" +
	"table#upgTable td {background-color:transparent; border:0px none transparent; font-size:8pt; text-align:" + docDir[1] + "; padding:2px; vertical-align:top;}" +
	"table#upgTable td.center {text-align:center; vertical-align:middle;}" +
	"table#upgTable td.tb3uthc {background-color:#ECECEC; border:1px solid silver; vertical-align:middle; font-weight:normal; text-align:center; width:25%; height:18px;}" +
	"table#upgTable td.tb3utbc {background-color:transparent; border:1px solid silver; margin:0px; text-align:center; vertical-align:top; width:25%; height:18px;}" +
	"table#upgTable a {font-size:8pt; font-weight:bold;}" +
	
	"table.rNt {background-color:transparent; border-collapse:collapse; border:0px none transparent; font-size:8pt; padding:2px; margin:1px; text-align:" + docDir[1] + "; vertical-align:top;}" +
	"table.rNt tr {background-color:transparent; border-collapse:collapse; border:0px none transparent; font-size:8pt; padding:2px; margin:1px; text-align:" + docDir[1] + "; vertical-align:top;}" +
	"table.rNt td {background-color:transparent; border:0px none transparent; font-size:8pt; text-align:" + docDir[1] + "; padding:2px; vertical-align:top;}" +
	"table.rNt td.center {text-align:center; vertical-align:middle;}" +
	
	"table#mapTable {width:682px; border-collapse:collapse; border:1px solid silver; background-color:" + TB3O.DFc[1] + "; font-size:8pt; margin:0px; padding:0px; text-align:center; empty-cells:show; line-height:16px;}" +
	"table#mapTable thead td {border:1px solid silver; background-color:#ECECEC; font-size:9pt; font-weight:bold; text-align:center; padding:1px; cursor:default; vertical-align:middle;}" +
	"table#mapTable thead td.tb3mthcp {cursor:pointer;}" +
	"table#mapTable td {border:1px solid silver; background-color:transparent; padding:1px; margin:0px; font-size:8pt; font-weight:normal; text-align:center; vertical-align:middle;}" +
	"table#mapTable td.tb3mtcu {font-weight:bold; color:blue;}" +
	"table#mapTable td.tb3mtcp {padding-" + docDir[1] + ":10px; color:black; text-align:" + docDir[1] + ";}" +

	"div#updDiv {position:absolute; top:200px; " + docDir[0] + ":120px; display:block; padding:1px; z-index:50; clear:both; border:2px solid #C0C0C0; background-color:black; color:yellow;}" +
	
	"table#userbookmarks {border-collapse:collapse; border:0px none transparent; background-color:" + TB3O.DFc[1] + "; line-height:16px;}" +
	"table#userbookmarks tr {text-align:" + docDir[0] + "; vertical-align:middle; padding:0 0 0 2px; margin:0px; white-space:nowrap; border-collapse:collapse; border:0px none transparent;}" +	
	"table#userbookmarks td {border:0px none transparent; background-color:" + TB3O.DFc[1] + "; text-align:" + docDir[0] + "; font-size:13px; font-weight:normal; color:black; padding:2px; vertical-align:middle;}" +
	"table#userbookmarks td.noact {width:10px;}" +
	"table#userbookmarks td.act {width:10px; color:#FF8000;}" +
	"table#userbookmarks img {cursor:pointer;}" +
	"table#userbookmarks span {padding:0 0 0 4px;}" +

	"table#mkls {width:100%; border-collapse:collapse; border:1px solid silver; font-size:8pt; text-align:center; background-color:" + TB3O.DFc[1] + "; padding:2px; margin:1px; line-height:18px;}" +
	"table#mkls tr {background-color:transparent;}" +
	"table#mkls td {background-color:transparent; border:1px solid silver; font-weight:normal; font-size:8pt; color:black; text-align:" + docDir[1] + "; vertical-align:middle; padding:2px 3px 2px 3px; white-space:nowrap;}" +
	"table#mkls td.mklshh {background-color:#ECECEC; text-align:center; width:16%;}" +
	"table#mkls td.mklsc {text-align:center;}" +
	
	"table#br_table, table#br_table tr {background-color:transparent; border:1px solid #C2C2C2; text-align:center; padding:0px; margin:0px; border-collapse:collapse; width:100%;}" +
	"table#br_table td {background-color: transparent; border:1px solid #C2C2C2; font-size:8pt; text-align:" + docDir[1] + "; padding:2px 7px 2px 2px; margin:0px;}" +
	"table#br_table td.tb3cbrh1 {background-color:#F3F3F3; font-size:10pt; font-weight:bold; color:#000000; text-align:center;}" +
	"table#br_table td.tb3cbrh2 {background-color:#F3F3F3; font-size:10pt; font-weight:bold; color:#FF8000; text-align:center;}" +
	"table#br_table td.tb3cbrh3 {background-color:#F3F3F3; font-size:10pt; font-weight:bold; color:#71D000; text-align:center;}" +
	"table#br_table td.tb3cbrc {text-align:center;}" +
	"table#br_table td.tb3cbrb {font-weight:bold;}" +
	"table#br_table td.tb3cbrr {color:red;}" +
	"table#br_table td.tb3cbrg {color:darkgreen;}" +
	"table#br_table td.tb3cbrbr {font-weight:bold; color:red;}" +
	"table#br_table td.tb3cbrbg {font-weight:bold; color:darkgreen;}" +
	
	"table#mhtt {border-collapse:collapse; border:0px none transparent; font-weight:normal; font-size:8pt; text-align:" + docDir[1] + "; padding:2px; margin:1px; background-color:transparent; empty-cells:show; line-height:16px; white-space:nowrap;}" +
	"table#mhtt tr {border:0px none transparent;}" +
	"table#mhtt td {background-color:transparent; border:0px none transparent; font-weight:normal; font-size:8pt; text-align:" + docDir[1] + "; color:black; padding:2px 7px 2px 0px; margin:0px; vertical-align:middle;}" +
	"table#mhtt td.mCol {color:blue;}" +
	"table#mhtt td.center {text-align:center;}" +
	"table#mhtt td.ld {text-align:" + docDir[0] + "; padding-left:2px;}" +
	"table#mhtt td.dec {text-align:center; font-size:10pt; font-weight:bold; color:green; border-bottom:1px solid grey;}" +
	
	"table#resbar, table#resbar {border-collapse:collapse; border:1px solid silver; background-color:" + TB3O.DFc[1] + "; width:auto; line-height:13px; font-weight:normal; font-size:8pt; padding:2px; margin:1px; white-space:nowrap;}" +
	"table#resbar tr {border-collapse:collapse; border:0px none transparent; padding:0px;}" +
	"table#resbar td.tb3c {border-collapse:collapse; border:1px solid silver; background-color:" + TB3O.DFc[1] + "; width:auto; line-height:13px; font-weight:normal; font-size:8pt; padding:2px; margin:1px; white-space:nowrap;}" +
	"table#resbar td.lr {border:1px solid silver; background-color:transparent; font-weight:normal; font-size:8pt; text-align:" + docDir[1] + ";}" +
	"table#resbar td.tb3cvn {text-align:center; font-weight:bold; font-size:8pt; color:blue; background-color:#E9EEFC; padding:2px;}" +
	"table#resbar td.tb3chtot {text-align:" + docDir[1] + "; font-weight:bold; font-size:8pt; border-" + docDir[0] + ":2px solid silver; background-color:#FFFFC0; padding:2px;}" +
	"table#resbar td.tb3ctot {border:1px solid silver; text-align:" + docDir[1] + "; font-size:8pt; border-" + docDir[0] + ":2px solid silver; background-color:#FFFFC0; padding:2px;}" +
	"table#resbar td.tb3ctotv {text-align:" + docDir[1] + "; font-size:8pt; border-top:2px solid silver;border-bottom:2px solid silver; border-" + docDir[0] + ":1px solid silver; background-color:#ECECEC; padding:2px;}" +
	"table#resbar td.tb3cresbar {border:1px solid silver; background-color:transparent; padding:0px; width:100px;}" +
	"table.rbrtb {border-collapse:collapse; border:0px none transparent; float:left; height:16px; width:100px; background-color:" + TB3O.DFc[1] + ";}" +
	"table.rbrtb tr.rbrtbr, table.rbrtb td {border-collapse:collapse; border:0px none transparent; padding:0px;}" +
	
	"table#vl2table {border-collapse:collapse; border:0 none transparent; background-color:" + TB3O.DFc[1] + "; line-height:13px; font-size:10pt; text-align:center; padding:2px; margin:0px; white-space:nowrap; vertical-align:middle;}" +
	"table#vl2table tr td {border:0 none transparent; background-color:transparent; text-align:" + docDir[0] + "; padding:2px; margin:0px; font-weight:normal; font-size:10pt;}" +
	"table#vl2table td.av {color:#FF8000;}" +
	"table#vl2table td.coord {font-size:8pt;}" +

	"div#side_info table tbody td {font-size:8pt; white-space:nowrap; text-align:" + docDir[1] + ";}" +
	"div#side_info table tbody td.link {font-size:10pt;}" +
	
	"table#vlist {width:auto; background-color:transparent !important; border-collapse:collapse; border:0px none transparent; margin:0px; font-size:13px; font-weight:normal; white-space:nowrap;}" +
	"table#vlist tr	{background-color:transparent;}" +
	"table#vlist tbody td {background-color:transparent; border:0px none transparent; padding:0px 2px 0px 2px; text-align:" + docDir[1] + "; font-size:8pt;}" +
	"table#vlist tr:hover, table#vlist td:hover {background-color:#E5E5F0;}" +
	
	"div.fldiv {position:absolute; display:block; padding:1px; z-index:50; clear:both; border:1px solid #C0C0C0; background-color:" + TB3O.DFc[1] + "; z-index:1000;}" +
	"div.dragdiv {text-align:center; font-weight:bold; height:18px; float:" + docDir[0] + "; cursor: pointer; border-bottom:1px solid #C0C0C0; background-color:#ECECEC; z-index:1000; vertical-align:middle;}" +
	"div.mmdiv {height:18px; float:" + docDir[0] + "; cursor: pointer; border-bottom:1px solid #C0C0C0; background-color:" + TB3O.DFc[1] + "; width:25px;}" +
	"div.closediv {height:18px; float:" + docDir[0] + "; cursor: pointer; border-bottom:1px solid #C0C0C0; background-color:" + TB3O.DFc[1] + "; width:25px;}" +

	"p.delacc {position:absolute; display:block; padding:4px; z-index:2; border:1px solid #00C000; background-color:#FEFFE3; width:130px; text-align:center; " + docDir[1] + ":0px; top:0px;}" +
	"p.delacc span {color:orange;}" +

	"table#noteblock {border-collapse:collapse; border:0px none white; text-align:center; padding:2px; margin:1px; background-color:" + TB3O.DFc[1] + ";}" +
	"table#noteblock tr {background-color:transparent; border:0px none transparent;}" +
	"table#noteblock td {border:0px none transparent; background-color:transparent; text-align:center; padding:2px;}" +
	"#noteblockcontent {border:1px solid silver; padding:0px 2px 0px 2px; overflow:auto; font-size:10pt; white-space:nowrap;}" +
	
	"table#delreptable {width:100%; border-collapse:collapse; border:1px solid silver; font-size:8pt; text-align:center; background-color:" + TB3O.DFc[1] + "; padding:2px; margin:1px;}" +
	"table#delreptable tr {border:1px solid silver; text-align:center;}" +
	"table#delreptable tr.rh {background-color:#ECECEC; text-align:center; border:1px solid silver;}" +
	"table#delreptable td {border:1px solid silver; padding:2px;}" +
	"table#delreptable td.cc {font-weight:bold; font-size:10pt;}" +
	
	"table#stla {width:100%; border-collapse:collapse; border:1px solid silver; font-weight:normal; font-size:8pt; color:black; text-align:center; background-color:" + TB3O.DFc[1] + "; padding:1px; margin:1px; line-height:18px;}" +
	"table#stla tr {background-color:transparent;}" +
	"table#stla td {border:1px solid silver; font-size:8pt; text-align:" + docDir[1] + "; vertical-align:middle; padding:1px 2px 1px 2px; white-space:nowrap;}" +
	"table#stla td.stlahh {background-color:#ECECEC; text-align:center; width:5%;}" +
	"table#stla td.stlahh1 {background-color:#ECECEC; text-align:center; width:10%;}" +
	"table#stla td.stlahh2 {background-color:#ECECEC; text-align:center;}" +
	"table#stla td.stlac {background-color:transparent; text-align:center;}" +
	
	"table#soff {width:100%; border-collapse:collapse; border:1px solid silver; font-size:8pt; text-align:center; background-color:" + TB3O.DFc[1] + "; line-height:18px;}" +
	"table#soff tr {background-color:transparent;}" +
	"table#soff td {background-color:transparent; border:1px solid silver; color:black; text-align:" + docDir[1] + "; vertical-align:middle; padding:2px 3px 2px 1px; white-space:nowrap;}" +
	"table#soff td.soffhh {background-color:#ECECEC; text-align:center; width:16%;}" +
	"table#soff td.soffc {text-align:center;}" +
	
	"input#soff, input#soffG {margin-top:3px;" + (docDir[0] == 'right' ? "margin-right:0px" : "margin-right:3px") + "; margin-bottom:3px;" + (docDir[0] == 'right' ? "margin-left:3px" : "margin-left:0px") + "; padding:0px;}" +

	"table#TB3S	{width:100%; border-collapse:collapse; border:1px solid silver; font-size:8pt; text-align:center; background-color:" + TB3O.DFc[1] + "; padding:2px; margin:1px;}" +
	"table#TB3S tr.srh {background-color:#ECECEC; text-align:center; border:1px solid silver;}" +
	"table#TB3S td {border:1px solid silver; background-color:transparent; padding:2px; border-collapse:collapse; text-align:" + docDir[0] + "; font-size:8pt;}" +
	"table#TB3S td.srst {background-color:#ECECEC; text-align:" + docDir[0] + "; font-size:9pt; font-weight:bold; color:darkblue;}" +
	"table#TB3S td.s1 {background-color:#ECECEC; text-align:center; width:70%; font-weight:bold;}" +
	"table#TB3S td.s2 {background-color:#ECECEC; text-align:center; width:20%;}" +
	"table#TB3S select, table#TB3S input {font-size:8pt;}" +
	"table#TB3S span {font-size:8pt; font-weight: bold;}" +
	"table#TB3S td.s3 {background-color:#ECECEC; text-align:center; width:10%;}" +
	"table#TB3S img {cursor:pointer;}" +

	"table#cptable {width:100%; border-collapse:collapse; border:1px solid silver; font-size:8pt; text-align:center; background-color:" + TB3O.DFc[1] + "; padding:2px; margin:1px;}" +
	"table#cptable tr {background-color:#ECECEC; text-align:center; border:1px solid silver;}" +
	"table#cptable td {border-collapse:collapse; border:1px solid silver; background-color:#ECECEC; padding:2px; font-size:8pt; font-weight:bold;}" +
	"table#cptable td.CG {font-weight:normal; background-color:#C8FFC8;}" +
	"table#cptable td.CR {font-weight:normal; background-color:#FFE1E1;}" +

	"table#mbuyf {width:100%; border-collapse:collapse; border:1px solid silver; font-size:8pt; text-align:center; background-color:" + TB3O.DFc[1] + "; padding:2px; margin:1px;}" +
	"table#mbuyf tr {border-collapse:collapse; border:1px solid silver; text-align:center;}" +
	"table#mbuyf td {border:1px solid silver; background-color:transparent; padding:2px; border-collapse:collapse;}" +
	"table#mbuyf td.sf {background-color:#FFE4B5;}" +
	
	"table.allvtroops, table.allvtroops tr td {border-collapse:collapse; border:1px solid silver; text-align:center; padding:2px;}" +
	"table.allvtroops tr th {border-collapse:collapse; border:1px solid silver; text-align:" + docDir[0] + "; padding:2px 7px; width:20%;}" +

	"table#dorf3table, table#dorf3table tr {width:100%; border-collapse:collapse; border:1px solid silver; text-align:center; background-color:" + TB3O.DFc[1] + "; padding:2px; margin:1px; font-size:10pt;}" +
	"table#dorf3table td {border:1px solid silver;}" +
	
	"tr#aRselecttraintroops {border-collapse:collapse; background-color:" + TB3O.DFc[1] + ";}" +
	"tr#aRselecttraintroops td {border:0px none transparent; background-color:transparent; text-align:center; padding:0px 2px 0px 7px;}" +
	
	"table#BiPTM {border-collapse:collapse; border:1px solid silver; background-color:" + TB3O.DFc[1] + ";}" +
	"table#BiPTM tr {border:0px none transparent;}" +
	"table#BiPTM td {border:1px solid silver; font-size:8pt; padding:4px;}" +
	
	//"table#bttable	{width:100%; height:129px; text-align:left; border-collapse:collapse; background-color:transparent;}" +
	
	"tr.cbgx td, td.cbgx {background-color:#FFFFC0; border-collapse:collapse; border:1px solid silver; padding:2px; text-align:center;}" +
		
	"div#tb_tooltip {position:absolute; display:none; padding:2px; z-index:9000; border:1px solid #00C000; background-color:#FFFFCC; -moz-border-radius:5px;}" +
	//"div#tb_tooltip table, div#tb_tooltip tr, div#tb_tooltip td {font-size:8pt; border:0px none transparent; padding:2px; background-color:#FFFFCC;}" +
	//"div#tb_tooptip table#BiPTM {border-collapse:collapse; border:1px solid silver; background-color:" + TB3O.DFc[1] + ";}" +
	
	"div#build.gid17 table#target_select {border-collapse:collapse; border:0px none transparent; background-color:transparent; line-height:21px; width:34%; float:left; margin-" + docDir[0] + ":10px;}" +
	"div#build.gid17 table#target_select td.vil input.text {width:90px;}" +

	"div.npc-general {margin:3px 0 0; font-size:7pt; float:none;} " +
	"span.npc-red {color:#DD0000;} " +
	"span.npc-green {color:#009900;}" +

	"div.CNBT {background-color:" + TB3O.CNc[1] + "; border:1px solid black; -moz-border-radius:2em; " +
	"padding-top:3px; font-family:Arial, Helvetica, Verdana, sans-serif; font-size:9pt; font-weight:bold; " +
	"color:" + TB3O.CNc[0] + "; text-align:center; position:absolute; width:21px; height:18px; cursor:pointer; visibility:hidden; z-index:26;}" +

	//...
	
	"table.tb3tb	{width:100%; border-collapse:collapse; border:1px solid silver; font-size:8pt; text-align:center; background-color:" + TB3O.DFc[1] + "; padding:2px; margin:1px;}" +
	"table.tb3tb tr, table.tb3tb td {border:1px solid silver;}" +

	"table.tb3tbnb	{border-collapse:collapse; border:0px none white; font-size:8pt; text-align:center; padding:2px; margin:1px; background-color:" + TB3O.DFc[1] + ";}" +
	"table.tb3tbnb tr, table.tb3tbnb td, table.tb3tbnb td.tb3cnb {border:0px none white;}" +
	"tr.tb3rh		{background-color:#ECECEC; text-align:center; border:1px solid silver;}" +
	"tr.tb3rhb		{background-color:#ECECEC; text-align:center; border:1px solid silver; font-weight:bold;}" +
	"tr.tb3rhnb		{background-color:#ECECEC; text-align:center;}" +
	"tr.tb3r 		{border-collapse:collapse; border:1px solid silver; text-align:center;}" +
	"tr.tb3rnb		{border-collapse:collapse; border:0px none white; text-align:center; white-space:nowrap;}" +
	"td.tb3chbb		{border:1px solid silver; background-color:#ECECEC; padding:2px; font-weight:bold; font-size:10pt;}" +
	"td.tb3chb		{border:1px solid silver; background-color:#ECECEC; padding:2px; font-weight:bold;}" +
	"td.tb3ch		{border:1px solid silver; background-color:#ECECEC; padding:2px; text-align:center;}" +
	"td.tb3chnb		{border:0px none white; background-color:#ECECEC; padding:2px; text-align:center;}" +
	"td.tb3c		{border:1px solid silver; background-color:transparent; padding:2px; border-collapse:collapse;}" +
	"td.tb3cnb		{border:0px none transparent; background-color:transparent; text-align:center; padding:2px;}" +
	"td.tb3cbt		{border-top:1px solid silver; font-size:8pt; color:#000000; text-align:center;}" +
	
	"td.desc, td.desc div, td.desc span {font-size:8pt;}" +
	"h1 {z-index:300; padding-top:16px;}";
	
	acss += ".reslevel {position:absolute; z-index:1; width:17px; height:12px;}" +
	".rf1 {left: 93px; top:27px;}" +
	".rf2 {left: 156px; top:26px;}" +
	".rf3 {left: 216px; top:41px;}" +
	".rf4 {left: 38px; top:59px;}" +
	".rf5 {left: 130px; top:67px;}" +
	".rf6 {left: 195px; top:87px;}" +
	".rf7 {left: 253px; top:81px;}" +
	".rf8 {left: 23px; top:111px;}" +
	".rf9 {left: 74px; top:104px;}" +
	".rf10 {left: 205px; top:136px;}" +
	".rf11 {left: 260px; top:139px;}" +
	".rf12 {left: 33px; top:165px;}" +
	".rf13 {left: 84px; top:158px;}" +
	".rf14 {left: 151px; top:178px;}" +
	".rf15 {left: 230px; top:192px;}" +
	".rf16 {left: 79px; top:211px;}" +
	".rf17 {left: 132px; top:223px;}" +
	".rf18 {left: 182px; top:227px;}";
	GM_addStyle(acss);
	
	//fix for mixed T3.1 & T3.5
	fcss = ".village2_mapTB3 {width:540px; height:448px; position:relative; left:-19px;}" +
	".village2_mapTB3 .building {position:absolute;}" +
	"div#sright table {width:100%}";
	GM_addStyle(fcss);

	//------------------------------------------
	//Modified by Lux
	//------------------------------------------
	cssSetup =	".MsgPageOff {visibility:hidden; display:none; position:absolute; top:-100px; left:-100px;}" +
	".OuterMsgPageOn {position:absolute; top:0px; left:0px; visibility:visible; width:150%; height:100%; background-color:#000000; z-index:1998; opacity:0.75;}" +
	//".divCloseMsgPageOn {position: absolute; left:73.5%; top:0.2%; visibility:visible; opacity:1; z-index:2000;}" +
	".InnerMsgPageOn {position: absolute; left:25%; top:2.8%; visibility:visible; opacity:1; z-index:1999;}";
	GM_addStyle(cssSetup);
	//------------------------------------------

var t = new Array();

function setDefLang() {
//default = English
//setup
t['0'] = "Script language"; //please, do not translate !!! translation will never be included into the script !
t['1'] = "Travian v2.x server";
t['2'] = 'Remove ad banners';
t['3'] = 'Force T3.1 Legionnaire & Phalanx capacity calculation<br>(for mixed T3.1 & T3.5 servers)';
t['4'] = 'Market';
t['5'] = 'Rally point/Barracks/Workshop/Stable';
t['6'] = "Town hall/Hero's mansion/Armoury/Blacksmith";
t['7'] = "Palace/Residence/Academy/Treasury";
t['8'] = 'Alliance';
t['9'] = "Show additional links in left menu<br>(Traviantoolbox, World Analyser, Travilog, Map, etc.)";
t['10'] = "Combat simulator link to use:"; //menu left"
t['11'] = "Link to use for posting reports site";
t['12'] = "Show 'dorf1.php' and 'dorf2.php' links";
t['13'] = 'Show "Center map on this village" icon';
t['14'] = "Show 'Send troops/Send resources' icons in village list";
t['15'] = "Show lumber, clay, iron production per hour in village list";
t['16'] = "Show effective crop production in village list";
t['17'] = "Show population in village list";
t['18'] = 'Show additional (2 columns) village list as floating window';
t['19'] = 'Show information about buildings in progress and troop movements<br>in village list';
t['20'] = 'Show bookmarks';
t['21'] = "Show 'User Bookmarks' as floating window";
t['22'] = 'Show note block';
t['23'] = "Show 'NoteBlock' as floating window";
t['24'] = 'Note block size';
t['25'] = 'Note block height';
t['26'] = 'Show NPC Assistant calculations/links';
t['27'] = "World Analyser to use";
t['28'] = "Show analyser statistic links";
t['29'] = 'Map Analyser to use';
t['30'] = 'Show links to map for users';
t['31'] = 'Show links to map for alliances';
t['32'] = "Show 'Search Bar'";
t['33'] = "Show 'Search Bar' as floating window";
t['34'] = "Show CP/day information in upgrade tables";
t['35'] = "Show crop consumption in upgrade tables";
t['36'] = "Show 'Until then/Residue' calculation in upgrade/training tables";
t['37'] = "Show resource fields upgrade table";
t['38'] = 'Show resource level colours';
t['39'] = "Show 'Resource Bar' table";
t['40'] = "Show 'Resource Bar' table as floating window";
t['41'] = "Show buildings upgrade table";
t['42'] = 'Sort buildings by name in upgrade table';
t['43'] = 'Show center numbers';
t['44'] = 'Show building level colours';
t['45'] = "Show blinking levels for buildings being upgraded";
t['46'] = "Show additional information for every merchant arrival";
t['47'] = "Show last market transport";
t['48'] = "Number of offer pages to preload<br>while on the 'Market => Buy' page<br>(Default = 1)";
t['49'] = 'Rally point default action';
t['50'] = 'No. of scouts for the "Select scout" function';
t['51'] = "Show last attack";
t['52'] = "Show/use coordinates for last attack";
t['53'] = 'Show troops information in tooltips';
t['54'] = 'Show distance and times to villages in tooltips'; 
t['55'] = "Auto fill in available troops for the internal war simulator";
t['56'] = "Show cell type/oasis info<br>while mousing over the map";
t['57'] = 'Show distances & times';
t['58'] = 'Show table of players/villages/occupied oasis';
t['59'] = 'Number of message/report pages to preload<br>(Default = 1)';
t['60'] = 'Show links to open messages/reports in a pop-up';
t['61'] = 'Show "Delete all" table on the Reports page';
t['62'] = 'Show the "Send IGM" icon for me, too';
t['63'] = 'Show TB3 enhanced Battle Reports';
t['64'] = 'Show details in Report Statistics';
t['65'] = 'Color upgrade available<br>(Default = Empty)';
t['66'] = 'Color max level<br>(Default = Empty)';
t['67'] = 'Color upgrade not possible<br>(Default = Empty)';
t['68'] = 'Color upgrade via NPC<br>(Default = Empty)';
t['69'] = "Console Log Level<br>ONLY FOR PROGRAMMERS OR DEBUGGING (Default = 0)";
//no t items [70..79] & [80..83]
//t['80'] = t['53'] and t['81'] = t['54'] - both will be set after switchlanguage()
t['82.L'] = 'Lock bookmarks (Hide delete, move up, move down icons)';
t['82.U'] = 'Unlock bookmarks (Show delete, move up, move down icons)';
t['85'] = "Show 'Send troops/Send resources' icons";
t['87'] = "Remember last 1x/2x/3x market send option (if available)";
//setup end
//user info
t['U.2'] = 'Race';
t['U.3'] = 'Name of your capital<br><b>Visit your Profile for an update</b>';
t['U.6'] = 'Coordinates of your capital<br><b>Visit your Profile for an update</b>';
//user info end
t['SIM'] = 'Combat simulator';
t['QSURE'] = 'Are you sure?';
t['LOSS'] = 'Loss';
t['PROFIT'] = 'Profit';
t['EXTAV'] = 'Extension available';
t['PLAYER'] = 'Player';
t['VILLAGE'] = 'Village';
t['POPULATION'] = 'Population';
t['COORDS'] = 'Coordinates';
t['MAPTBACTS'] = 'Actions';
t['SAVED'] = 'Saved';
t['YOUNEED'] = 'You need';
t['TODAY'] = 'today';
t['TOMORROW'] = 'tomorrow';
t['DAYAFTERTOM'] = 'day after tomorrow';
t['MARKET'] = 'Marketplace';
t['BARRACKS'] = 'Barracks';
t['RAP'] = 'Rally point';
t['STABLE'] = 'Stable';
t['WORKSHOP'] = 'Workshop';
t['SENDRES'] = 'Send resources';
t['BUY'] = 'Buy';
t['SELL'] = 'Sell';
t['SENDIGM'] = 'Send IGM';
t['LISTO'] = 'Available';
t['ON'] = 'on';
t['AT'] = 'at';
t['EFICIENCIA'] = 'Efficiency';
t['NEVER'] = 'Never';
t['ALDEAS'] = 'Village(s)';
t['TIEMPO'] = 'Time';
t['OFREZCO'] = 'Offering';
t['BUSCO'] = 'Searching';
t['TIPO'] = 'Type';
t['DISPONIBLE'] = 'Only available';
t['CUALQUIERA'] = 'Any';
t['YES'] = 'Yes';
t['NO'] = 'No';
t['LOGIN'] = 'Login';
t['MARCADORES'] = 'Bookmarks';
t['ANYADIR'] = 'Add';
t['UBU'] = 'New Bookmark URL';
t['UBT'] = 'New Bookmark Text';
t['DEL'] = 'Delete';
t['MAPA'] = 'Map';
t['MAXTIME'] = 'Maximum time';
t['ARCHIVE'] = 'Archive';
t['SUMMARY'] = 'Summary';
t['TROPAS'] = 'Troops';
t['CHKSCRV'] = 'Update TBeyond';
t['ACTUALIZAR'] = 'Update village information';
t['VENTAS'] = 'Saved Offers';
t['MAPSCAN']  = 'Scan the Map';
t['BIC'] = 'Show extended icons';
t['SAVE'] = 'Save';
t['AT2'] = 'Reinforcement';
t['AT3'] = 'Attack: Normal';
t['AT4'] = 'Attack: Raid';
t['NBSA'] = 'Auto';
t['NBSN'] = 'Normal (small)';
t['NBSB'] = 'Large screen (large)';
t['NBHAX'] = 'Automatic expand height';
t['NBHK'] = 'Default height';
t['NPCSAVETIME'] = 'Save: ';
t['TOTALTROOPS'] = 'Total village troops';
t['SELECTALLTROOPS'] = "Select all troops";
t['PARTY'] = "Festivities";
t['CPPERDAY'] = "CP/day";
t['SLOT'] = "Slot";
t['TOTAL'] = "Total";
t['SELECTSCOUT'] = "Select scout";
t['SELECTFAKE'] = "Select fake";
t['NOSCOUT2FAKE'] = "It's impossible to use scouts for a fake attack !";
t['NOTROOP2FAKE'] = "There aren't troops for a fake attack!";
t['NOTROOP2SCOUT'] = "There aren't troops to scout !";
t['NOTROOPS'] = "There aren't troops in the village !";
t['ALL'] = "All";
t['SH2'] = "In color fields you may enter:<br>- <b>green</b> or <b>red</b> or  <b>orange</b>, etc.<br>- the HEX color code like <b>#004523</b><br>- leave empty for the default color";
t['SOREP'] = "Show original report (for posting)";
t['WSIMO1'] = "Internal (provided by the game)";
t['WSIMO2'] = "External (provided by kirilloid.ru)";
t['NONEWVER'] = "You have the latest version available";
t['BVER'] = "You may have a beta version";
t['NVERAV'] = "A new version of the script is available";
t['UPDSCR'] = "Update script now ?";
t['CHECKUPDATE'] = "Checking for script update.<br>Please wait...";
t['CROPFINDER'] = "Crop finder";
t['AVPPV'] = "Average population per village";
t['AVPPP'] = "Average population per player";
t['MAX'] = 'Max';
//version 3.0.7
t['TOTTRTR'] = 'Total troops training';
//version 3.1.3
t['TB3SL'] = TB3O.shN + ' Setup';
t['UPDALLV'] = 'Update all villages.  USE WITH MAXIMUM CARE AS THIS CAN LEAD TO A BANNED ACCOUNT !';
//version 3.1.7
t['LARGEMAP'] = 'Large map';
//version 3.1.9
t['USETHEMPR'] = 'Use them (proportional)';
t['USETHEMEQ'] = 'Use them (equal)';
//version 3.2
t['TOWNHALL'] = 'Town Hall';
t['GSRVT'] = 'Game server';
t['ACCINFO'] = 'Account Information';
t['NBO'] = 'Noteblock';
t['MNUL'] = 'Menu on the left side';
t['STAT'] = 'Statistics';
t['RESF'] = 'Resource fields';
t['VLC'] = 'Village center';
t['MAPO'] = 'Map options';
t['COLO'] = 'Color options';
t['DBGO'] = 'Debug options';
t['HEROSMANSION'] = "Hero's mansion";
t['BLACKSMITH'] = 'Blacksmith';
t['ARMOURY'] = 'Armoury';
t['NOW'] = 'Now';
t['CLOSE'] = 'Close';
t['USE'] = 'Use';
t['USETHEM1H'] = 'Use them (1 hour production)';
t['OVERVIEW'] = 'Overview';
t['FORUM'] = 'Forum';
t['ATTACKS'] = 'Attacks';
t['NEWS'] = 'News';
t['ADDCRTPAGE'] = 'Add current';
t['SCRPURL'] = 'TBeyond page';
t['SPACER'] = 'Spacer';
t['MEREO'] = 'Messages & Reports';
t['ATTABLES'] = 'Troop tables';
t['MTW'] = 'Wasted';
t['MTX'] = 'Exceeding';
t['MTC'] = 'Current load';
t['ALFL'] = 'Link to external forum<br>(Leave empty for internal forum)';
t['MTCL'] = 'Clear all';
t['CKSORT'] = 'Click to sort';
t['MIN'] = 'Min';
t['SVGL'] = 'Shared among villages';
t['VGL'] = 'Village List';
t['UPDATEPOP'] = 'Update population';
t['EDIT'] = 'Edit';
t['NPCO'] = 'NPC Assistant options';
t['NEWVILLAGEAV'] = 'Date/Time';
t['TIMEUNTIL'] = 'Time to wait';
t['CENTERMAP'] = 'Center map on this village';
t['SENDTROOPS'] = 'Send troops';
t['PALACE'] = "Palace";
t['RESIDENCE'] = "Residence";
t['ACADEMY'] = "Academy";
t['TREASURY'] = "Treasury";
t['UPGTB'] = "Resource fields/buildings upgrade tables";
t['RBTT'] = "Resource Bar";
//3.8.7.5
t['RESIDUE'] = 'The residue if you build it ';
t['RESOURCES'] = 'Resources';
//3.8.7.6.3
t['SH1'] = "Open your Profile for automatic capital/coordinates detection<br>Build the barracks for automatic race detection and then open the village center";
t['RESEND'] = "Send again ?";
//3.8.8.8.9
t['WSI'] = "War simulator provided by the game";
t['TTT'] = "General troops/distance tooltips";
};

function switchLanguage() {
switch (arAvLang[TB3O.O[0]]) {
case "it"://IcEye, rosfe y Danielle, Lello, Zippo, Nux, ns65, Acr111, onetmt, matteo466
t['8'] = 'Alleanza';
t['SIM'] = 'Simulatore di combattimento';
t['QSURE'] = 'Sei sicuro?';
t['LOSS'] = 'Perdita in materiale';
t['PROFIT'] = 'Guadagno';
t['EXTAV'] = 'Ampliamento disponibile';
t['PLAYER'] = 'Proprietario';
t['VILLAGE'] = 'Villaggio';
t['POPULATION'] = 'Popolazione';
t['COORDS'] = 'Coordinate';
t['MAPTBACTS'] = 'Azioni';
t['SAVED'] = 'Salvato';
t['YOUNEED'] = 'Mancano';
t['TODAY'] = 'oggi';
t['TOMORROW'] = 'domani';
t['DAYAFTERTOM'] = 'dopodomani';
t['MARKET'] = 'Mercato';
t['BARRACKS'] = "Campo d'addestramento";
t['RAP'] = 'Caserma';
t['STABLE'] = 'Scuderia';
t['WORKSHOP'] = 'Officina';
t['SENDRES'] = 'Invia risorse';
t['BUY'] = 'Compra risorse';
t['SELL'] = 'Vendi risorse';
t['SENDIGM'] = 'Invia messaggio';
t['LISTO'] = 'Disponibile';
t['ON'] = 'il';
t['AT'] = 'alle';
t['EFICIENCIA'] = 'Efficienza';
t['NEVER'] = 'Mai';
t['ALDEAS'] = 'Villaggi';
t['TIEMPO'] = 'Tempo';
t['OFREZCO'] = 'Offerta';
t['BUSCO'] = 'Richiesta';
t['TIPO'] = 'Percentuale di scambio';
t['DISPONIBLE'] = 'Disponibile';
t['CUALQUIERA'] = 'Tutti';
t['YES'] = 'Si';
t['NO'] = 'No';
t['LOGIN'] = 'Login';
t['MARCADORES'] = 'Segnalibri';
t['ANYADIR'] = 'Aggiungi';
t['UBU'] = 'URL segnalibro';
t['UBT'] = 'Nome segnalibro';
t['DEL'] = 'Eliminare';
t['MAPA'] = 'Mappa';
t['MAXTIME'] = 'Tempo massimo';
t['ARCHIVE'] = 'Archivio';
t['SUMMARY'] = "Riepilogo";
t['TROPAS'] = 'Truppe';
t['CHKSCRV'] = 'Verifica Aggiornamenti';
t['ACTUALIZAR'] = 'Aggiorna le informazioni sul villaggio';
t['VENTAS'] = 'Offerte salvate';
t['MAPSCAN'] = "Scansiona la mappa";
t['BIC'] = 'Icone aggiuntive per accesso rapido';
t['22'] = 'Mostra blocco note';
t['SAVE'] = 'Salva';
t['49'] = "Azione predefinita per 'Invia truppe'";
t['AT2'] = 'Rinforzo';
t['AT3'] = 'Attacco: Normale';
t['AT4'] = 'Attacco: Raid';
t['24'] = 'Larghezza blocco note';
t['NBSA'] = 'Automatica';
t['NBSN'] = 'Normale (Piccolo)';
t['NBSB'] = 'Schermi grandi (Grande)';
t['25'] = 'Altezza blocco note';
t['NBHAX'] = "Adatta l'altezza automaticamente";
t['NBHK'] = "Altezza predefinita";
t['43'] = 'Mostra livelli edifici';
t['NPCSAVETIME'] = 'Tempo guadagnato: ';
t['38'] = 'Mostra colori livelli campi';
t['44'] = 'Mostra colori livelli edifici';
t['65'] = 'Colore ampliamento disponibile <br>(Vuoto = default)';
t['66'] = 'Colore livello massimo raggiunto <br>(Vuoto = default)';
t['67'] = 'Colore ampliamento non disponibile <br>(Vuoto = default)';
t['68'] = 'Colore ampliamento col mercato nero <br> (Vuoto = default)';
t['TOTALTROOPS'] = "Truppe del villaggio complessive";
t['20'] = 'Mostra segnalibri';
t['U.2'] = 'Popolo';
t['1'] = "Server Travian v2.x";
t['SELECTALLTROOPS'] = "Seleziona tutte le truppe";
t['PARTY'] = "Party";
t['CPPERDAY'] = "PC/giorno";
t['TOTAL'] = "Totale";
t['SELECTSCOUT'] = "Spiata";
t['SELECTFAKE'] = "Fake";
t['NOSCOUT2FAKE'] = "Non si possono usare le spie per mandare un fake!";
t['NOTROOP2FAKE'] = "Non ci sono truppe per mandare un fake!";
t['NOTROOP2SCOUT'] = "Non ci sono truppe per fare la spiata!";
t['NOTROOPS'] = "Non ci sono truppe nel villaggio!";
t['ALL'] = "Tutto";
t['SH2'] = "Nei campi dei colori puoi inserire:<br>- il nome (in inglese) <b>green</b> o <b>red</b> o <b>orange</b>, etc.<br>- il codice esadecimale del colore <b>#004523</b><br>- lasciare vuoto per usare i colori predefiniti";
t['SOREP'] = "Mostra report originale (per postare sul forum)";
t['56'] = "Mostra informazioni sul tipo di terreno/oasi<br>mentre il mouse passa sulla mappa";
t['10'] = "Simulatore di combattimento da usare:<br>(nel menu a sinistra)";
t['WSIMO1'] = "Interno (quello presente nel gioco)";
t['WSIMO2'] = "Esterno (fornito da kirilloid.ru)";
t['27'] = "World Analyser da utilizzare";
t['28'] = "Mostra link statistiche World Analyser";
t['NONEWVER'] = "É già installata l'ultima versione disponibile";
t['BVER'] = "Potresti avere una versione Beta";
t['NVERAV'] = "É disponibile una nuova versione";
t['UPDSCR'] = "Aggiornare ora lo script?";
t['CHECKUPDATE'] = "Controllo dell'ultima versione disponibile.<br>Attendere prego...";
t['CROPFINDER'] = "Crop finder";
t['AVPPV'] = "Popolazione media villaggi";
t['AVPPP'] = "Popolazione media giocatori";
t['37'] = 'Mostra tabella ampliamento campi';
t['41'] = 'Mostra tabella ampliamento edifici';
t['69'] = "Livello di logging della console<br>SOLO PER SVILUPPATORI O PER DEBUGGING<br>(Default = 0)";
t['48'] = "Numero di pagine di offerte da precaricare<br>nella pagina 'Mercato => Visualizza offerte'<br>(Default = 1)";
t['U.3'] = 'Nome del villaggio capitale<br><b>Vai alla pagina del tuo Profilo per aggiornare i dati</b>';
t['U.6'] = 'Coordinate del villaggio capitale<br><b>Vai alla pagina del tuo Profilo per aggiornare i dati</b>';
t['TOTTRTR'] = 'Totale truppe in addestramento';
t['57'] = 'Mostra distanze e tempi';
t['TB3SL'] = 'Impostazioni ' + TB3O.shN;
t['UPDALLV'] = "Aggiorna tutti i villaggi.  USARE CON CAUTELA, potrebbe comportare il BAN dell`account!";
t['9'] = "Mostra links aggiuntivi nel menu di sinistra<br>(Traviantoolbox, World Analyser, Travilog, Map, etc.)";
t['LARGEMAP'] = 'Mappa estesa';
t['USETHEMPR'] = 'Completa proporzionalmente';
t['USETHEMEQ'] = 'Completa equamente';
t['TOWNHALL'] = 'Municipio';
t['GSRVT'] = 'Server di gioco';
t['ACCINFO'] = 'Informazioni Account';
t['NBO'] = 'Blocco note';
t['MNUL'] = 'Menu di sinistra';
t['STAT'] = 'Statistiche';
t['RESF'] = 'Campi di risorse';
t['VLC'] = 'Centro del villaggio';
t['MAPO'] = 'Opzioni mappa';
t['COLO'] = 'Opzioni colori';
t['DBGO'] = 'Opzioni di debug';
t['4'] = 'Mercato';
t['5'] = "Caserma/Campo d'addestramento/Officina/Scuderia";
t['6'] = "Municipio/Circolo degli eroi/Armeria/Fabbro";
t['HEROSMANSION'] = "Circolo degli eroi";
t['BLACKSMITH'] = 'Fabbro';
t['ARMOURY'] = 'Armeria';
t['NOW'] = 'Adesso';
t['CLOSE'] = 'Chiudi';
t['USE'] = 'Usa';
t['USETHEM1H'] = 'Completa con la produzione oraria';
t['OVERVIEW'] = 'Riepilogo';
t['FORUM'] = 'Forum';
t['ATTACKS'] = 'Attacchi';
t['NEWS'] = 'News';
t['ADDCRTPAGE'] = 'Aggiungi pagina corrente';
t['SCRPURL'] = TB3O.shN;
t['50'] = "Numero di spie per l'invio di spiate";
t['SPACER'] = 'Separatore';
t['53'] = 'Mostra i tooltip con le informazioni sulle truppe';
t['MEREO'] = 'Messaggi e Report';
t['59'] = 'Numero di pagine di messaggi/report da precaricare<br>(Default = 1)';
t['ATTABLES'] = 'Tabella truppe';
t['MTW'] = 'Sprecate';
t['MTX'] = 'In eccesso';
t['MTC'] = 'Carico corrente';
t['ALFL'] = 'Link al forum esterno<br>(Lasciare vuoto per il forum interno)';
t['82.L'] = 'Blocca segnalibri (Nasconde le icone cancella, sposta in alto e sposta in basso)';
t['MTCL'] = 'Cancella tutto';
t['82.U'] = 'Sblocca segnalibri (Mostra le icone cancella, sposta in alto e sposta in basso)';
t['CKSORT'] = 'Clicca per ordinare';
t['MIN'] = 'Min';
t['SVGL'] = 'Condivisa tra i villaggi';
t['VGL'] = 'Elenco villaggi';
t['12'] = "Mostra i collegamenti a 'dorf1.php' e 'dorf2.php'";
t['UPDATEPOP'] = 'Aggiorna popolazione';
t['54'] = 'Mostra tooltip con tempi e distanza dai villaggi';
t['EDIT'] = 'Modifica';
t['NPCO'] = 'Opzioni Mercato Nero';
t['26'] = 'Mostra calcoli/links per il Mercato Nero';
t['58'] = 'Mostra tabella dei giocatori/villaggi/oasi occupate';
t['NEWVILLAGEAV'] = 'Data/Ora';
t['TIMEUNTIL'] = 'Tempo di attesa';
t['61'] = 'Mostra tabella "Eliminare" nella pagina dei report';
t['62'] = "Mostra l'icona 'Invia messaggio' anche per me";
t['CENTERMAP'] = 'Centra la mappa su questo villaggio';
t['13'] = "Mostra l'icona 'Centra la mappa su questo villaggio'";
t['SENDTROOPS'] = 'Invia truppe';
t['64'] = 'Mostra dettagli nelle statistiche dei Reports';
t['7'] = "Castello/Residence/Accademia/Camera del tesoro";
t['PALACE'] = "Castello";
t['RESIDENCE'] = "Residence";
t['ACADEMY'] = "Accademia";
t['TREASURY'] = "Camera del tesoro";
t['45'] = "Mostra il livello delle strutture in costruzione lampeggiante";
t['14']= "Mostra le icone 'Invia truppe/Invia risorse'";
t['34'] = "Mostra PC/giorno nelle tabelle";
t['UPGTB'] = "Tabella risorse/costruzioni";
t['35'] = "Mostra consumo di grano nelle tabelle";
t['16'] = "Mostra la produzione di grano netta";
t['39'] = "Mostra grafici a barre delle risorse";
t['RBTT'] = "Grafici a barre delle risorse";
t['40'] = "Mastra i grafici a barre delle risorse in una finestra";
t['21'] = "Mostra i segnalibri in una finestra";
t['23'] = "Mostra il blocco note in una finestra";
t['17'] = "Mostra la popolazione";
t['29'] = 'Map Analyser da usare';
t['30'] = 'Mostra il link alla mappa per gli utenti';
t['31'] = 'Mostra il link alla mappa per le alleanze';
t['3'] = 'Forza il calcolo della capacità di legionari e lancieri gallici<br>come nella versione 3.1<br>(per server con versione mista 3.1 & 3.5 - per adesso solo per server .de)';
t['63'] = 'Mostra report av