<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on Ikariam General Overview v1.5 | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/26973</link>
    <description>Recent comments on userscript: Ikariam General Overview v1.5</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Archived Comments, replied by shlatchz @ Sat, 09 Aug 2008 14:34:08 -0500</title>
      <description>&lt;p&gt;case 'ikariam.co.il':
&lt;br /&gt;keywords[0] = [&quot;&#1489;&#1504;&#1497;&#1497;&#1503; &#1492;&#1506;&#1497;&#1512;&#1497;&#1497;&#1492;&quot;, &quot;&#1502;&#1505;&#1508;&#1504;&#1492;&quot;, &quot;&#1504;&#1502;&#1500; &#1505;&#1495;&#1512;&quot;, &quot;&#1502;&#1495;&#1505;&#1503;&quot;, &quot;&#1514;&#1495;&#1504;&#1514; &#1505;&#1495;&#1512;&quot;, &quot;&#1502;&#1490;&#1493;&#1512;&#1497; &#1495;&#1497;&#1497;&#1500;&#1497;&#1501;&quot;, &quot;&#1488;&#1512;&#1502;&#1493;&#1503;&quot;, &quot;&#1502;&#1511;&#1493;&#1501; &#1502;&#1495;&#1489;&#1493;&#1488;&quot;, &quot;&#1513;&#1490;&#1512;&#1497;&#1512;&#1493;&#1514;&quot;, &quot;&#1488;&#1511;&#1491;&#1502;&#1497;&#1492;&quot;, &quot;&#1489;&#1497;&#1514;-&#1502;&#1500;&#1488;&#1499;&#1492;&quot;, &quot;&#1496;&#1489;&#1512;&#1504;&#1492;&quot;, &quot;&#1502;&#1493;&#1494;&#1497;&#1488;&#1493;&#1503;&quot;, &quot;&#1489;&#1504;&#1497;&#1497;&#1503; &#1492;&#1506;&#1497;&#1512;&#1497;&#1497;&#1492;&quot;, &quot;&#1502;&#1490;&#1493;&#1512;&#1497; &#1492;&#1502;&#1493;&#1513;&#1500;&quot;];	
&lt;br /&gt;			keywords[1] = [&quot;&#1495;&#1493;&#1502;&#1512; &#1489;&#1504;&#1497;&#1497;&#1492;&quot;,&quot;&#1497;&#1497;&#1503;&quot;,&quot;&#1513;&#1497;&#1513;&quot;,&quot;&#1490;&#1489;&#1497;&#1513;&#1497; &#1511;&#1512;&#1497;&#1505;&#1496;&#1500;&quot;,&quot;&#1490;&#1493;&#1508;&#1512;&#1497;&#1514;&quot;];
&lt;br /&gt;			keywords[2] = [&quot;&#1513;&#1500;&#1489;&quot;, &quot;&#1505;&#1490;&#1493;&#1512;&quot;, &quot;&#1500;&#1495;&#1509; &#1500;&#1508;&#1514;&#1497;&#1495;&#1492;\&#1505;&#1490;&#1497;&#1512;&#1492;&quot;, &quot;&#1502;&#1489;&#1496; &#1506;&#1500; &#1489;&#1504;&#1497;&#1497;&#1504;&#1497;&#1501;\&#1502;&#1513;&#1488;&#1489;&#1497;&#1501;&quot;, &quot;* &#1489;&#1499;&#1491;&#1497; &#1500;&#1506;&#1491;&#1499;&#1503; &#1488;&#1514; &#1492;&#1502;&#1497;&#1491;&#1506; &#1506;&#1489;&#1493;&#1512; &#1499;&#1500; &#1506;&#1497;&#1512; &#1506;&#1489;&#1493;&#1512; &#1500;&#1506;&#1502;&#1493;&#1491; &#1513;&#1500; &#1492;&#1506;&#1497;&#1512;&quot;,&quot;&#1506;&#1512;&#1497;&#1501;&quot;, &quot;&#1502;&#1489;&#1496; &#1506;&#1500; &#1492;&#1489;&#1504;&#1497;&#1497;&#1504;&#1497;&#1501;&quot;, &quot;&#1502;&#1489;&#1496; &#1506;&#1500; &#1492;&#1502;&#1513;&#1488;&#1489;&#1497;&#1501;&quot;, &quot;&#1511;&#1497;&#1489;&#1493;&#1500;&#1514;&quot;,&quot;&#1489;&#1489;&#1504;&#1497;&#1497;&#1492;&quot;, &quot;&#1491;&#1500;&#1493;&#1511;&quot;, &quot;&#1489;&#1489;&#1504;&#1497;&#1497;&#1492;&quot;, &quot;&#1489;&#1504;&#1497;&#1497;&#1503; &#1506;&#1491; &#1513;&#1500;&#1489;&quot;, &quot;&#1497;&#1497;&#1510;&#1493;&#1512; &#1513;&#1500;&quot;, &quot;City resources&quot;, &quot;&#1511;&#1497;&#1489;&#1500;&#1493;&#1514; &#1502;&#1511;&#1505;&#1497;&#1502;&#1500;&#1497;&#1514; &#1513;&#1500; &#1492;&#1502;&#1495;&#1505;&#1503;&quot;, &quot;&#1489;&#1513;&#1489;&#1497;&#1500;&quot;];
&lt;br /&gt;			break;&lt;/p&gt;</description>
      <pubDate>Sat, 09 Aug 2008 14:34:08 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33355</guid>
      <author>shlatchz</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by symbiont.fr @ Mon, 21 Jul 2008 07:07:45 -0500</title>
      <description>&lt;p&gt;Hi !!!&lt;/p&gt;

&lt;p&gt;The french translate :&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;/p&gt;

&lt;p&gt;case 'ikariam.fr':
&lt;br /&gt;			keywords[0] = [&quot;Hotel de ville&quot;, &quot;Chantier naval&quot;, &quot;Port de commerce&quot;, &quot;Entrepot&quot;, &quot;Comptoir&quot;, &quot;Caserne&quot;, &quot;Palais&quot;, &quot;Cachette&quot;, &quot;Ambassade&quot;, &quot;Academie&quot;, &quot;Atelier&quot;, &quot;Taverne&quot;, &quot;Mus&#233;e&quot;, &quot;Mur de fortification&quot;, &quot;R&#233;sidence du gouverneur&quot;];	
&lt;br /&gt;			keywords[1] = [&quot;Bois&quot;,&quot;Vins&quot;,&quot;Marbre&quot;,&quot;Cristal&quot;,&quot;Souffre&quot;];
&lt;br /&gt;			keywords[2] = [&quot;Niveau&quot;, &quot;Fermer&quot;, &quot;Clique pour ouvrir/fermer&quot;, &quot;Informations Batiments ressources&quot;, &quot;* Pour actualiser les donn&#233;es de la ville, clique sur la ville correspondante&quot;,&quot;Batiments&quot;, &quot;Vue g&#233;n&#233;rale des b&#226;timents&quot;, &quot;Vue g&#233;n&#233;ral des ressources&quot;, &quot;Capacit&#233;&quot;,&quot;en construction&quot;, &quot;sur&quot;, &quot;en construction&quot;, &quot;Augmenter de niveau&quot;, &quot;Production de&quot;, &quot;Ressources de la ville&quot;, &quot;Capacit&#233; maximun de l'entrepot&quot;, &quot;pour&quot;];&lt;/p&gt;

&lt;p&gt;&lt;/code&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 21 Jul 2008 07:07:45 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33356</guid>
      <author>symbiont.fr</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by Gloosh @ Wed, 02 Jul 2008 10:51:40 -0500</title>
      <description>&lt;p&gt;Translation to Russian
&lt;br /&gt;&lt;code&gt;
&lt;br /&gt;		case 'ikariam.ru':
&lt;br /&gt;			keywords[0] = [&quot;&#1056;&#1072;&#1090;&#1091;&#1096;&#1072;&quot;, &quot;&#1042;&#1077;&#1088;&#1092;&#1100;&quot;, &quot;&#1058;&#1086;&#1088;&#1075;&#1086;&#1074;&#1099;&#1081; &#1087;&#1086;&#1088;&#1090;&quot;, &quot;&#1057;&#1082;&#1083;&#1072;&#1076;&quot;, &quot;&#1058;&#1086;&#1088;&#1075;&#1086;&#1074;&#1099;&#1081; &#1087;&#1086;&#1089;&#1090;&quot;, &quot;&#1050;&#1072;&#1079;&#1072;&#1088;&#1084;&#1072;&quot;, &quot;&#1044;&#1074;&#1086;&#1088;&#1077;&#1094;&quot;, &quot;&#1059;&#1082;&#1088;&#1099;&#1090;&#1080;&#1077;&quot;, &quot;&#1055;&#1086;&#1089;&#1086;&#1083;&#1100;&#1089;&#1090;&#1074;&#1086;&quot;, &quot;&#1040;&#1082;&#1072;&#1076;&#1077;&#1084;&#1080;&#1103;&quot;, &quot;&#1052;&#1072;&#1089;&#1090;&#1077;&#1088;&#1089;&#1082;&#1072;&#1103;&quot;, &quot;&#1058;&#1072;&#1074;&#1077;&#1088;&#1085;&#1072;&quot;, &quot;&#1052;&#1091;&#1079;&#1077;&#1081;&quot;, &quot;&#1043;&#1086;&#1088;&#1086;&#1076;&#1089;&#1082;&#1072;&#1103; &#1089;&#1090;&#1077;&#1085;&#1072;&quot;, &quot;&#1056;&#1077;&#1079;&#1080;&#1076;&#1077;&#1085;&#1094;&#1080;&#1103; &#1075;&#1091;&#1073;&#1077;&#1088;&#1085;&#1072;&#1090;&#1086;&#1088;&#1072;&quot;];	
&lt;br /&gt;			keywords[1] = [&quot;&#1057;&#1090;&#1088;&#1086;&#1081;&#1084;&#1072;&#1090;&#1077;&#1088;&#1080;&#1072;&#1083;&#1099;&quot;,&quot;&#1042;&#1080;&#1085;&#1086;&quot;,&quot;&#1052;&#1088;&#1072;&#1084;&#1086;&#1088;&quot;,&quot;&#1061;&#1088;&#1091;&#1089;&#1090;&#1072;&#1083;&#1100;&quot;,&quot;&#1057;&#1077;&#1088;&#1072;&quot;];
&lt;br /&gt;			keywords[2] = [&quot;&#1059;&#1088;&#1086;&#1074;&#1077;&#1085;&#1100;&quot;, &quot;&#1047;&#1072;&#1082;&#1088;&#1099;&#1090;&#1100;&quot;, &quot;&#1050;&#1083;&#1080;&#1082;&#1085;&#1091;&#1090;&#1100; &#1076;&#1083;&#1103; &#1086;&#1090;&#1082;&#1088;&#1099;&#1090;&#1080;&#1103;/&#1079;&#1072;&#1082;&#1088;&#1099;&#1090;&#1080;&#1103;&quot;, &quot;&#1054;&#1073;&#1079;&#1086;&#1088; &#1089;&#1090;&#1088;&#1086;&#1077;&#1085;&#1080;&#1081; &#1080; &#1088;&#1077;&#1089;&#1091;&#1088;&#1089;&#1086;&#1074;&quot;, &quot;* &#1044;&#1083;&#1103; &#1086;&#1073;&#1085;&#1086;&#1074;&#1083;&#1077;&#1085;&#1080;&#1103; &#1076;&#1072;&#1085;&#1085;&#1099;&#1093; &#1086; &#1075;&#1086;&#1088;&#1086;&#1076;&#1077; &#1086;&#1090;&#1082;&#1088;&#1086;&#1081;&#1090;&#1077; &#1089;&#1090;&#1088;&#1072;&#1085;&#1080;&#1094;&#1091; &#1101;&#1090;&#1086;&#1075;&#1086; &#1075;&#1086;&#1088;&#1086;&#1076;&#1072;&quot;,&quot;&#1043;&#1086;&#1088;&#1086;&#1076;&#1072;&quot;, &quot;&#1054;&#1073;&#1079;&#1086;&#1088; &#1089;&#1090;&#1088;&#1086;&#1077;&#1085;&#1080;&#1081;&quot;, &quot;&#1054;&#1073;&#1079;&#1086;&#1088; &#1088;&#1077;&#1089;&#1091;&#1088;&#1089;&#1086;&#1074;&quot;, &quot;&#1042;&#1084;&#1077;&#1089;&#1090;&#1080;&#1084;&#1086;&#1089;&#1090;&#1100;&quot;,&quot;&#1057;&#1090;&#1088;&#1086;&#1080;&#1090;&#1089;&#1103;&quot;, &quot;&#1074;&quot;, &quot;&#1089;&#1090;&#1088;&#1086;&#1080;&#1090;&#1089;&#1103;&quot;, &quot;&#1059;&#1089;&#1086;&#1074;&#1077;&#1088;&#1096;&#1077;&#1085;&#1089;&#1090;&#1074;&#1086;&#1074;&#1072;&#1085;&#1080;&#1077; &#1076;&#1086; &#1091;&#1088;&#1086;&#1074;&#1085;&#1103;&quot;, &quot;&#1055;&#1088;&#1086;&#1080;&#1079;&#1074;&#1086;&#1076;&#1089;&#1090;&#1074;&#1086;&quot;, &quot;&#1056;&#1077;&#1089;&#1091;&#1088;&#1089;&#1099; &#1075;&#1086;&#1088;&#1086;&#1076;&#1072;&quot;, &quot;&#1042;&#1084;&#1077;&#1089;&#1090;&#1080;&#1084;&#1086;&#1089;&#1090;&#1100; &#1089;&#1082;&#1083;&#1072;&#1076;&#1072;&quot;, &quot;&#1076;&#1083;&#1103;&quot;];
&lt;br /&gt;			break;&lt;code&gt;&lt;/code&gt;&lt;/code&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 02 Jul 2008 10:51:40 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33357</guid>
      <author>Gloosh</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by Overkill @ Sat, 28 Jun 2008 17:45:41 -0500</title>
      <description>&lt;p&gt;I did a really nasty hack on the script today. If you're in the transport page, you can open the overview, hit a button, and it uses the saved warehouse and resource info to fill out the values such that you can send either enough resources to balance out your resources or to max out the destination city.&lt;/p&gt;</description>
      <pubDate>Sat, 28 Jun 2008 17:45:41 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33358</guid>
      <author>Overkill</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by Overkill @ Sat, 28 Jun 2008 10:17:59 -0500</title>
      <description>&lt;p&gt;I figured out why the bottom half wasn't working. in getCities(), you need to get rid of the extra space Ikariam puts in the &amp;lt;option&gt;s.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;cities[cities.length-1][1] = trim(tmp.childNodes[i].innerHTML);&lt;/code&gt;
&lt;br /&gt;And in currentCity() too
&lt;br /&gt;&lt;code&gt;name = trim(name.substring(name.indexOf(&quot;&quot;)+7, name.length));&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;trim:
&lt;br /&gt;&lt;code&gt;function trim(str) {
&lt;br /&gt;return str.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
&lt;br /&gt;}&lt;/code&gt;
&lt;br /&gt;I don't know why this thing is here in the comment --&gt;&amp;lt;/option&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 28 Jun 2008 10:17:59 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33359</guid>
      <author>Overkill</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by Tschaali @ Mon, 23 Jun 2008 07:30:56 -0500</title>
      <description>&lt;p&gt;Hello.
&lt;br /&gt;You have made a great script.
&lt;br /&gt;But I've got one thing to say.
&lt;br /&gt;Some things aren't shown when I open the window.
&lt;br /&gt;You can see these in this screenshot:
&lt;br /&gt;&lt;a href=&quot;http://www.abload.de/img/unbenanntduu.jpg&quot;&gt;http://www.abload.de/img/unbenanntduu.jpg&lt;/a&gt;
&lt;br /&gt;The black things work normal and right.
&lt;br /&gt;PS: I play at ikariam.de&lt;/p&gt;</description>
      <pubDate>Mon, 23 Jun 2008 07:30:56 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33360</guid>
      <author>Tschaali</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by tryxter @ Tue, 17 Jun 2008 17:34:18 -0500</title>
      <description>&lt;p&gt;Hello guys!&lt;/p&gt;

&lt;p&gt;Thanks a lot for all your submissions. I have to tell you that I've been really busy with my final exams for college. So, has you have already noticed, I've been away from the Ikariam Script.&lt;/p&gt;

&lt;p&gt;I want you all to know, that I've been reading all your comments, and I'm just waiting for all these exams to finish to start working on your feature requests, and getting the script work with the new FF3 release.&lt;/p&gt;

&lt;p&gt;Thanks for all your support!&lt;/p&gt;</description>
      <pubDate>Tue, 17 Jun 2008 17:34:18 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33361</guid>
      <author>tryxter</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by SoulStealer @ Sun, 15 Jun 2008 20:37:15 -0500</title>
      <description>&lt;p&gt;Some friends askme what thing must change for the auto-translation.&lt;/p&gt;

&lt;p&gt;Change this:
&lt;br /&gt;&lt;pre&gt;resources[8] = getResourcesProduction('island')[1].charAt(0).toUpperCase() + getResourcesProduction('island')[1].substr(1);;&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;for this:
&lt;br /&gt;&lt;pre&gt;	var nombre = getResourcesProduction('island')[1];

	if (nombre=='wine'){
		resources[8] = keywords[1][1];
	}
	if (nombre=='marble'){
		resources[8] = keywords[1][2];
	}
	if (nombre=='crystal'){
		resources[8] = keywords[1][3];
	}
	if (nombre=='sulfur'){
		resources[8] = keywords[1][4];
	}&lt;/pre&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 15 Jun 2008 20:37:15 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33362</guid>
      <author>SoulStealer</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by Overkill @ Sat, 14 Jun 2008 12:19:00 -0500</title>
      <description>&lt;p&gt;If you find that this script stops working, go to Manage User Scripts and rearrange the scripts so that this one is on top or near the top of your other Ikariam scripts. Other scripts may change the DOM in such a way that breaks this script.&lt;/p&gt;

&lt;p&gt;One change I'd like to see is reducing the footprint of the IkariamOverview div. With the score linker script, this is pushing the left hand side down and making the rendering of ikariam a little ugly.&lt;/p&gt;</description>
      <pubDate>Sat, 14 Jun 2008 12:19:00 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33363</guid>
      <author>Overkill</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by la faucille @ Fri, 13 Jun 2008 04:59:15 -0500</title>
      <description>&lt;p&gt;when you adapt your script for the new version of ikariam, i try to translate in french&lt;/p&gt;</description>
      <pubDate>Fri, 13 Jun 2008 04:59:15 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33364</guid>
      <author>la faucille</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by Amoulier @ Thu, 12 Jun 2008 13:19:37 -0500</title>
      <description>&lt;p&gt;Don't work whit the new version of Ikariam. (v.0.2.5)&lt;/p&gt;</description>
      <pubDate>Thu, 12 Jun 2008 13:19:37 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33365</guid>
      <author>Amoulier</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by micmicbee @ Tue, 10 Jun 2008 10:40:16 -0500</title>
      <description>&lt;p&gt;Excelent script perfect.&lt;/p&gt;

&lt;p&gt;Here an update on the Dutch line
&lt;br /&gt;keywords[0] = [&quot;Stadhuis&quot;, &quot;Scheepswerf&quot;, &quot;Handelspost&quot;, &quot;Opslagplaats&quot;, &quot;Handelshaven&quot;, &quot;Barakken&quot;, &quot;Paleis&quot;, &quot;Schuilplaats&quot;, &quot;Ambassade&quot;, &quot;Academie&quot;, &quot;Werkplaats&quot;, &quot;Taverne&quot;, &quot;Museum&quot;, &quot;Stadsmuur&quot;, &quot;Gouveneurswoning&quot;];&lt;/p&gt;

&lt;p&gt;some were not visible now they are (the wall is stadsmuur) and the handelshaven, you had twice handelspost&lt;/p&gt;

&lt;p&gt;but thanks, great script&lt;/p&gt;</description>
      <pubDate>Tue, 10 Jun 2008 10:40:16 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33366</guid>
      <author>micmicbee</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by SoulStealer @ Mon, 09 Jun 2008 14:59:43 -0500</title>
      <description>I was corrected the Bug with the &quot;Name of Goods&quot;.
&lt;pre&gt;
// ==UserScript==
// @name           Ikariam General Overview v1.5
// @namespace      IkariamOverview
// @description    An Ikariam game script to gather information from player towns
// @include        http://*.ikariam.*/*
// @exclude        http://board.ikariam.*/
// ==/UserScript==

/**
ABOUT:
&#187; Ikariam General Overview v1.5
By: A. Maia F. (a.maia.ferreira[at]gmail.com)
Date: 3 June 08
Languages / working on servers:
	&#187; (en) English (UK) (ikariam.org)
	&#187; (us) English (US) (ikariam.com)
	&#187; (pt) Portuguese (ikariam.com.pt)
	&#187; (de) German (ikariam.de) [Thanks to t.b. - http://userscripts.org/users/29222]
	&#187; (pl) Polish (ikariam.pl) [Thanks to sip3k - http://userscripts.org/users/53611]
	&#187; (nl) Dutch (ikariam.nl) [Thanks to bogyi - http://userscripts.org/users/52238]
	&#187; (dk) Danish (ikariam.dk) [Thanks to Trigger - http://userscripts.org/users/53662]
	&#187; (es) Spanish (ikariam.es) [Thanks to Pyronhell - http://userscripts.org/users/52757]
	&#187; (cz) Czech (ikariam.cz) [Thanks to who e-mailed me the language]
	&#187; (it) Italiam (ikariam.it) [Thanks to Boydon]
	&#187; (se) Swedish (ikariam.se) [Thanks to rEacT - http://userscripts.org/users/54856]
	
CHANGELOG:
	21/05/2008
	    * Version 1 released
	    * Minor bugfixes

	22/05/2008
	    * Added colors to full (and almost full) warehouses
	    * Added German language
	    * Added Polish language
	    * Added Dutch language
	    * Added Danish language

	23/05/2008
	    * Added Turkish language
	    * Minor bugfixes
		
	03/06/2008
	    * Bugfix: At Island view, towns were on top of the general overview window (Thanks to Pyronhell that submited the bugfix - http://userscripts.org/users/52757)	
	    * Bugfix: Production of island resources weren't working
	    * Added Spanish language
	    * Added Czech language		
	    * Added Italian language
	    * Added English (US) language		

	05/06/2008
	    * Added Swedish language	
		
WARNING:
	Using this script with the game is forbidden!
	I'm not responsible for banned accounts.
	
	Quoted from Ikariam Rules:
	
	&quot;VII. Scripting

		* Using a program as interface between the player and his game is prohibited. Any other form of automatically generated information generated for a group of players advantage with malicious intentions is forbidden as well.

		This includes but is not limited to:
		* Bots
		* Macros
		* Automated island databases.

		Note: Only exceptions to this are programs that are expressly approved by GameForge.&quot;

FEATURES:
	- Multi-language (12 of 21 languages currently available)
	- Overview of all buildings for each town
	- Overview of all resources for each town
	- Resources maximum capacity for each town
	- Resources production for each island
	- Overview of all buildings under construction
	- Shortcuts to island resources on the left-side box
	- When storage is almost full for a resource, it changes it's color to bright red / when completely full, changes to red.
	
	Note: You need to open each city first, to gather the data to complete the table.			

KNOWN BUGS:
		- When you open the Overview popup at the Island View, will not be visible.
	
TODO:
	1 - Finishing times for building constructions (or a time bar?)
	2 - Time bar until resource fulls a silo (to put in the table)
	3 - Time bar / clock on upgrading buildings
	
	- Finances table
	- Workshop research table
	- Research table
	- Military table
	?? - Loading everything together?
	
	DONE - Various shortcuts on the script left panel (to resources, to buildings, etc)
	DONE - Tooltips in capacity fields
	DONE - Colors when near the maximum capacity
**/

/** MAIN VARIABLES STARTUP **/
var scriptName = &quot;Ikariam General Overview v1.5&quot;
var allCities = getCities();
var keywords = getLang();
try {
	getBuildings(allCities, currentCity(allCities));
	getResources(allCities, currentCity(allCities));
	shortcuts = buildShortcuts(currentCity(allCities));
} catch(e) {
}

/****	FUNCTIONS	****/
function getLang() { /** returns array with language keywords.

			TRANSLATIONS BELOW
			
			ALL WORDS ARE CASE-SENSITIVE!
			ALL BUILDING NAMES MUST MATCH THE SERVER BUILDING NAMES.
			
		keywords[0] Building names
		keywords[1] Resources names
		keywords[2] Various words used in the data tables
		
**/
	var keywords = new Array(2);
	var tHost = window.location.host;
	tHost = tHost.substring(tHost.indexOf('.')+1, tHost.length)
	switch (tHost) {
		case 'ikariam.org':
			keywords[0] = [&quot;Town hall&quot;, &quot;Shipyard&quot;, &quot;Trading port&quot;, &quot;Warehouse&quot;, &quot;Trading post&quot;, &quot;Barracks&quot;, &quot;Palace&quot;, &quot;Hideout&quot;, &quot;Embassy&quot;, &quot;Academy&quot;, &quot;Workshop&quot;, &quot;Tavern&quot;, &quot;Museum&quot;, &quot;Town wall&quot;, &quot;Governor&#180;s Residence&quot;];	
			keywords[1] = [&quot;Wood&quot;,&quot;Wine&quot;,&quot;Marble&quot;,&quot;Crystal&quot;,&quot;Sulphur&quot;];
			keywords[2] = [&quot;Level&quot;, &quot;Close&quot;, &quot;Click to open/close&quot;, &quot;Buildings &amp;amp; resources overview&quot;, &quot;* To update the data for each city go to the page of the correspondent city&quot;,&quot;Towns&quot;, &quot;Buildings overview&quot;, &quot;Resources overview&quot;, &quot;Capacity&quot;,&quot;Under construction&quot;, &quot;on&quot;, &quot;under construction&quot;, &quot;Building to level&quot;, &quot;Production of&quot;, &quot;City resources&quot;, &quot;Maximum warehouse capacity&quot;, &quot;for&quot;];
			break;
		case 'ikariam.com.pt':
			keywords[0] = [&quot;C&#226;mara Municipal&quot;, &quot;Estaleiro&quot;, &quot;Porto Mercantil&quot;, &quot;Armaz&#233;m&quot;, &quot;Mercado&quot;, &quot;Quartel&quot;, &quot;Pal&#225;cio&quot;, &quot;Espionagem&quot;, &quot;Embaixada&quot;, &quot;Academia&quot;, &quot;Oficina&quot;, &quot;Taberna&quot;, &quot;Museu&quot;, &quot;Muralha da cidade&quot;, &quot;Resid&#234;ncia do Governador&quot;];
			keywords[1] = [&quot;Madeira&quot;,&quot;Vinho&quot;,&quot;M&#225;rmore&quot;,&quot;Cristal&quot;,&quot;Enxofre&quot;];			
			keywords[2] = [&quot;N&#237;vel&quot;, &quot;Fechar&quot;, &quot;Clique para abrir/fechar&quot;, &quot;Vista geral de edif&#237;cios &amp;amp; recursos&quot;, &quot;* Para actualizar os dados de uma cidade, abre a p&#225;gina da cidade correspondente&quot;, &quot;Cidades&quot;, &quot;Vista geral de edif&#237;cios&quot;, &quot;Vista geral de recursos&quot;, &quot;Capacidade&quot;, &quot;Em constru&#231;&#227;o&quot;, &quot;em&quot;, &quot;em constru&#231;&#227;o&quot;, &quot;A construir para o n&#237;vel&quot;, &quot;Produ&#231;&#227;o de&quot;, &quot;Recursos da cidade&quot;, &quot;Capacidade m&#225;xima do armaz&#233;m&quot;, &quot;para&quot;];
			break;		//	0			1				2								3																	4											5					6							7					8					9		10			11					12						13				14							15					16
		case 'ikariam.de':
			keywords[0] = [&quot;Rathaus&quot;, &quot;Schiffswerft&quot;, &quot;Handelshafen&quot;, &quot;Lagerhaus&quot;, &quot;Kontor&quot;, &quot;Kaserne&quot;, &quot;Palast&quot;, &quot;Versteck&quot;, &quot;Botschaft&quot;, &quot;Akademie&quot;, &quot;Erfinderwerkstatt&quot;, &quot;Taverne&quot;, &quot;Museum&quot;, &quot;Stadtmauer&quot;, &quot;Stadthaltersitz&quot;];	
			keywords[1] = [&quot;Baumaterial&quot;,&quot;Wein&quot;,&quot;Marmor&quot;,&quot;Kristallglas&quot;,&quot;Schwefel&quot;];
			keywords[2] = [&quot;Stufe&quot;, &quot;Schlie&#223;en&quot;, &quot;Hier klicken zum &#214;ffnen/Schlie&#223;en&quot;, &quot;Geb&#228;ude- &amp;amp; Resourcen&#252;bersicht&quot;, &quot;* Um die Daten der St&#228;dte zu aktualisieren, m&#252;ssen die Seiten der jeweiligen St&#228;dte geladen werden.&quot;, &quot;St&#228;dte&quot;, &quot;Geb&#228;ude&#252;bersicht&quot;, &quot;Ressourcen&#252;bersicht&quot;, &quot;Kapazit&#228;t&quot;, &quot;In Bearbeitung&quot;, &quot;in&quot;, &quot;in Bearbeitung&quot;, &quot;Aufwerten auf Level&quot;, &quot;Produktion von&quot;, &quot;Stadtressourcen&quot;, &quot;Maximale Lagerkapazit&#228;t&quot;, &quot;f&#252;r&quot;];
			break;
		case 'ikariam.pl':
			keywords[0] = [&quot;Ratusz&quot;, &quot;Stocznia&quot;, &quot;Port handlowy&quot;, &quot;Magazyn&quot;, &quot;Bazar&quot;, &quot;Koszary&quot;, &quot;Pa\u0142ac&quot;, &quot;Kryj\u00F3wka&quot;, &quot;Ambasada&quot;, &quot;Akademia&quot;, &quot;Warsztat&quot;, &quot;Tawerna&quot;, &quot;Muzeum&quot;, &quot;Mur miejski&quot;, &quot;Rezydencja Gubernatora&quot;];
			keywords[1] = [&quot;Material budowlany&quot;,&quot;Wino&quot;,&quot;Marmur&quot;,&quot;Kryszta\u0142&quot;,&quot;Siarka&quot;];
			keywords[2] = [&quot;Poziom&quot;, &quot;Zamknij&quot;, &quot;Kliknij by otworzyc/zamknac&quot;, &quot;Podsumowanie budynk\u00F3w i zasob\u00F3w&quot;, &quot;* Aby pobrac dane przejdz przez wszystkie miasta&quot;, &quot;Miasto&quot;, &quot;Podsumowanie budynk\u00F3w&quot;, &quot;Podsumowanie surowc\u00F3w&quot;, &quot;Pojemnosc&quot;, &quot;W trakcie rozbudowy&quot;, &quot;w&quot;, &quot;W trakcie rozbudowy&quot;, &quot;Rozbudowa do levelu&quot;, &quot;Wydobycie&quot;, &quot;Zasoby miasta&quot;, &quot;Pojemnosc magazynu&quot;, &quot;dla&quot;];
			break;
		case 'ikariam.nl':
			keywords[0] = [&quot;Stadhuis&quot;, &quot;Scheepswerf&quot;, &quot;Handelspost&quot;, &quot;Opslagplaats&quot;, &quot;Handelspost&quot;, &quot;Barakken&quot;, &quot;Paleis&quot;, &quot;Schuilplaats&quot;, &quot;Ambassade&quot;, &quot;Academie&quot;, &quot;Werkplaats&quot;, &quot;Taverne&quot;, &quot;Museum&quot;, &quot;Muur&quot;, &quot;Gouveneurswoning&quot;];
			keywords[1] = [&quot;Hout&quot;,&quot;Wijn&quot;,&quot;Marmer&quot;,&quot;Kristal&quot;,&quot;Zwavel&quot;];
			keywords[2] = [&quot;Level&quot;, &quot;Sluiten&quot;, &quot;Klik om te opene/sluiten&quot;, &quot;Gebouwen en Middelen overzicht&quot;, &quot;* Om de data te updaten, ga apart naar elke stad&quot;,&quot;Steden&quot;, &quot;Gebouwen overzicht&quot;, &quot;Middelen overzicht&quot;, &quot;Capiciteit&quot;,&quot;In aanbouw&quot;, &quot;Aan&quot;, &quot;In Aanbouw&quot;, &quot;Aan het bouwen naar level&quot;, &quot;Productie van&quot;, &quot;Stad middelen&quot;, &quot;Maximum opslagplaats capiciteit&quot;, &quot;Voor&quot;];
			break;
		case 'ikariam.dk':
			keywords[0] = [&quot;R&#229;dhus&quot;, &quot;Skibsv&#230;rft&quot;, &quot;Handelshavn&quot;, &quot;Lagerbygning&quot;, &quot;Handelsstation&quot;, &quot;Kaserne&quot;, &quot;Palads&quot;, &quot;Skjulested&quot;, &quot;Ambassade&quot;, &quot;Akademi&quot;, &quot;V&#230;rksted&quot;, &quot;V&#230;rtshus&quot;, &quot;Museum&quot;, &quot;Bymur&quot;, &quot;Guvern&#248;rs Residens&quot;];
			keywords[1] = [&quot;Tr&#230;&quot;,&quot;Vin&quot;,&quot;Marmor&quot;,&quot;Krystal&quot;,&quot;Svovl&quot;];
			keywords[2] = [&quot;Level&quot;, &quot;Luk&quot;, &quot;Klik for at &#229;bne/lukke&quot;, &quot;Bygnings &amp;amp; ressource oversigt&quot;, &quot;* For at opdatere data for hver by g&#229; til siden med den relevante by&quot;,&quot;Byer&quot;, &quot;Bygningsoversigt&quot;, &quot;Ressourceoversigt&quot;, &quot;Kapacitet&quot;,&quot;Under opf&#248;rsel&quot;, &quot;p&#229;&quot;, &quot;under opf&#248;rsel&quot;, &quot;Bygnings n&#230;ste level&quot;, &quot;Produktion af&quot;, &quot;By ressourcer&quot;, &quot;Maximal lager kapacitet&quot;, &quot;for&quot;];
			break;
		case 'ikariam.net':
			keywords[0] = [&quot;Belediye Binas&#305;&quot;, &quot;Donanma Tersanesi&quot;, &quot;Ticaret Limani&quot;, &quot;Depo&quot;, &quot;Ticaret Merkezi&quot;, &quot;K&#305;&#351;la&quot;, &quot;Saray&quot;, &quot;&#304;stihbarat Merkezi&quot;, &quot;B&#252;y&#252;k El&#231;ilik&quot;, &quot;Akademi&quot;, &quot;Mucit At&#246;lyesi&quot;, &quot;Taverna&quot;, &quot;M&#252;ze&quot;, &quot;Sur&quot;, &quot;Vali Kona&#287;&#305;&quot;];
			keywords[1] = [&quot;Odun&quot;,&quot;&#350;arap&quot;,&quot;Mermer&quot;,&quot;Kristal Cam&quot;,&quot;S&#252;lf&#252;r&quot;];
			keywords[2] = [&quot;Seviye&quot;, &quot;Kapat&quot;, &quot;Click to open/close&quot;, &quot;Bina ve Kaynaklara Genel Bak&#305;&#351;&quot;, &quot;* Bilgiyi g&#252;ncellemek i&#231;in &#351;ehrin sayfas&#305;na gidin.&quot;,&quot;&#350;ehir&quot;, &quot;Bina Seviyeleri&quot;, &quot;Kaynak Miktarlar&#305;&quot;, &quot;Kapasite&quot;,&quot;Y&#252;kseltiliyor&quot;, &quot;on&quot;, &quot;Y&#252;kseltiliyor&quot;, &quot;Y&#252;kseltilen Seviye=&quot;, &quot;&#220;retim=&quot;, &quot;&#350;ehir Kaynaklar&#305;&quot;, &quot;Maksimum depo kapasitesi&quot;, &quot;i&#231;in&quot;];
			break;
		case 'ikariam.es':
			keywords[0] = [&quot;Intendencia&quot;, &quot;Astillero de guerra&quot;, &quot;Puerto comercial&quot;, &quot;Dep&#243;sito&quot;, &quot;Comercio&quot;, &quot;Cuartel&quot;, &quot;Palacio&quot;, &quot;Escondite&quot;, &quot;Embajada&quot;, &quot;Academia&quot;, &quot;Taller de invenciones&quot;, &quot;Taberna&quot;, &quot;Museo&quot;, &quot;Muro de la ciudad&quot;, &quot;Residencia del gobernador&quot;];
			keywords[1] = [&quot;Madera&quot;,&quot;Vino&quot;,&quot;M&#225;rmol&quot;,&quot;Cristal&quot;,&quot;Azufre&quot;];
			keywords[2] = [&quot;Nivel&quot;, &quot;Cerrar&quot;, &quot;Click para abrir/cerrar&quot;, &quot;Resumen de la ciudad&quot;, &quot;* Para actualizar los datos de cada ciudad abre la p&#225;gina de cada ciudad.&quot;,&quot;Ciudades&quot;, &quot;Resumen de construcciones&quot;, &quot;Resumen de recursos&quot;, &quot;Capacidad&quot;,&quot;En construcci&#243;n&quot;, &quot;en&quot;, &quot;en construcci&#243;n&quot;, &quot;Actualizando al nivel&quot;, &quot;Producci&#243;n de&quot;, &quot;Recursos de la ciudad&quot;, &quot;Capacidad m&#225;xima del dep&#243;sito&quot;, &quot;para&quot;];
			break;
		case 'ikariam.cz':
			keywords[0] = [&quot;M&#283;stsk&#225; radnice&quot;, &quot;Lod&#283;nice&quot;, &quot;Obchodn&#237; p&#345;&#237;stav&quot;, &quot;Sklad&quot;, &quot;Tr&#382;i&#353;t&#283;&quot;, &quot;Kas&#225;rna&quot;, &quot;Pal&#225;c&quot;, &quot;&#218;kryt&quot;, &quot;Ambas&#225;da&quot;, &quot;Akademie&quot;, &quot;D&#237;lna&quot;, &quot;Hostinec&quot;, &quot;Muzeum&quot;, &quot;M&#283;stsk&#225; ze&#271;&quot;, &quot;Guvern&#233;rova Rezidence&quot;];	
			keywords[1] = [&quot;Stavebn&#237; materi&#225;l&quot;,&quot;V&#237;no&quot;,&quot;Mramor&quot;,&quot;Krystalick&#233; sklo&quot;,&quot;S&#237;ra&quot;];
			keywords[2] = [&quot;&#218;rove&#328;&quot;, &quot;Zav&#345;&#237;t&quot;, &quot;Klikni pro otev&#345;en&#237;/zav&#345;en&#237;&quot;, &quot;P&#345;ehled budov &amp;amp; zdroj&#367;&quot;, &quot;* Pro aktualizaci dat jednotliv&#253;ch m&#283;st je pot&#345;eba tyto m&#283;sta nav&#353;t&#237;vit&quot;,&quot;M&#283;sta&quot;, &quot;P&#345;ehled budov&quot;, &quot;P&#345;ehled zdroj&#367;&quot;, &quot;Kapacita&quot;,&quot;Stav&#237; se&quot;, &quot;v&quot;, &quot;stav&#237; se&quot;, &quot;&#218;rove&#328; budovy&quot;, &quot;Produkce &quot;, &quot;Zdroje m&#283;sta&quot;, &quot;Kapacita skladu&quot;, &quot;pro&quot;];
			break;
		case 'ikariam.it':
			keywords[0] = [&quot;Municipio&quot;, &quot;Cantiere Navale&quot;, &quot;Porto&quot;, &quot;Magazzino&quot;, &quot;Mercato&quot;, &quot;Caserma&quot;, &quot;Palazzo&quot;, &quot;Nascondiglio&quot;, &quot;Ambasciata&quot;, &quot;Accademia&quot;, &quot;Officina&quot;, &quot;Taverna&quot;, &quot;Museo&quot;, &quot;Mura della citt&#224;&quot;, &quot;Residenza del Governatore&quot;];	
			keywords[1] = [&quot;Legno&quot;,&quot;Vino&quot;,&quot;Marmo&quot;,&quot;Cristallo&quot;,&quot;Zolfo&quot;];
			keywords[2] = [&quot;Livello&quot;, &quot;Chiudi&quot;, &quot;Fare click per aprire/chiudere&quot;, &quot;Panoramica Edifici e Risorse&quot;, &quot;* Per aggiornare i dati di una citt&#224;, visitare la pagina rispettiva.&quot;,&quot;Citt&#224;&quot;, &quot;Panoramica edifici&quot;, &quot;Panoramica risorse&quot;, &quot;Capacit&#224;&quot;,&quot;In costruzione&quot;, &quot;a&quot;, &quot;in costruzione&quot;, &quot;In espansione al livello&quot;, &quot;Produzione di&quot;, &quot;Risorse prodotte dalla citt&#224;&quot;, &quot;Capacit&#224; massima del magazzino&quot;, &quot;a&quot;];
			break;			
		case 'ikariam.com':
			keywords[0] = [&quot;Town hall&quot;, &quot;Shipyard&quot;, &quot;Trading port&quot;, &quot;Warehouse&quot;, &quot;Trading post&quot;, &quot;Barracks&quot;, &quot;Palace&quot;, &quot;Hideout&quot;, &quot;Embassy&quot;, &quot;Academy&quot;, &quot;Workshop&quot;, &quot;Tavern&quot;, &quot;Museum&quot;, &quot;Town wall&quot;, &quot;Governor&#180;s Residence&quot;];	
			keywords[1] = [&quot;Wood&quot;,&quot;Wine&quot;,&quot;Marble&quot;,&quot;Crystal&quot;,&quot;Sulphur&quot;];
			keywords[2] = [&quot;Level&quot;, &quot;Close&quot;, &quot;Click to open/close&quot;, &quot;Buildings &amp;amp; resources overview&quot;, &quot;* To update the data for each city go to the page of the correspondent city&quot;,&quot;Towns&quot;, &quot;Buildings overview&quot;, &quot;Resources overview&quot;, &quot;Capacity&quot;,&quot;Under construction&quot;, &quot;on&quot;, &quot;under construction&quot;, &quot;Building to level&quot;, &quot;Production of&quot;, &quot;City resources&quot;, &quot;Maximum warehouse capacity&quot;, &quot;for&quot;];
			break;
		case 'ikariam.se':
			keywords[0] = [&quot;R&#229;dhus&quot;, &quot;Skeppsvarv&quot;, &quot;Handelshamn&quot;, &quot;Lagerlokal&quot;, &quot;Handelsstation&quot;, &quot;Kasern&quot;, &quot;Palats&quot;, &quot;G&#246;mst&#228;lle&quot;, &quot;Ambassad&quot;, &quot;Akademi&quot;, &quot;Verkstad&quot;, &quot;Taverna&quot;, &quot;Museum&quot;, &quot;Stadsmur&quot;, &quot;Guvern&#246;rsresidens&quot;];
			keywords[1] = [&quot;Tr&#228;&quot;,&quot;Vin&quot;,&quot;Marmor&quot;,&quot;Kristall&quot;,&quot;Svavel&quot;];
			keywords[2] = [&quot;Niv&#229;&quot;, &quot;St&#228;ng&quot;, &quot;Klicka f&#246;r att &#246;ppna/st&#228;nga&quot;, &quot;Byggnader &amp;amp; resurser &#246;versikt&quot;, &quot;* F&#246;r att uppdatera informationen f&#246;r varje stad g&#229; till sidan f&#246;r respektive stad&quot;,&quot;St&#228;der&quot;, &quot;Byggnader &#246;versikt&quot;, &quot;Resurser &#246;versikt&quot;, &quot;Kapacitet&quot;,&quot;Under utbyggnad&quot;, &quot;p&#229;&quot;, &quot;under utbyggnad&quot;, &quot;Byggnadens n&#228;sta niv&#229;&quot;, &quot;Produktion av&quot;, &quot;Stadsresurser&quot;, &quot;Maximal lagerkapacitet&quot;, &quot;f&#246;r&quot;];
			break;			
	}
	return keywords;
}

function getResourcesProduction(type) { /** returns array with all data related to resources produced on the current island
	tradeGood[0] How much resource is being produced (ie: &quot;+120&quot;)
	tradeGood[1] Name of the resource
	tradeGood[2] HREF to resource production spot
**/
	var tradeGood = new Array(2);
	tradeGood[0] = document.getElementsByTagName('script')[document.getElementsByTagName('script').length-2].innerHTML;
	var islandID = document.getElementById('breadcrumbs').childNodes[3].href;
	islandID = islandID.substring(islandID.indexOf(&quot;id=&quot;)+3, islandID.length);
	switch (type) {
		case 'island':
			tradeGood[0] = tradeGood[0].substring(tradeGood[0].indexOf(&quot;startTradegoodDelta&quot;)+22, tradeGood[0].length);
				tradeGood[1] = tradeGood[0].substring(tradeGood[0].lastIndexOf(&quot;value_&quot;)+6, tradeGood[0].length);
			tradeGood[1] = tradeGood[1].substring(0, tradeGood[1].indexOf(&quot;'&quot;));
			tradeGood[2] = &quot;?view=tradegood&amp;amp;type=tradegood&amp;amp;id=&quot; + islandID;
			break;
		case 'wood':
			tradeGood[0] = tradeGood[0].substring(tradeGood[0].indexOf(&quot;startResourcesDelta&quot;)+22, tradeGood[0].length);
			tradeGood[1] = &quot;wood&quot;;
			tradeGood[2] = &quot;?view=resource&amp;amp;type=resource&amp;amp;id=&quot; + islandID;
			break;
	}
	tradeGood[0] = tradeGood[0].substring(0, tradeGood[0].indexOf(&quot;;&quot;));
	tradeGood[0] = &quot;+&quot; + Math.round(tradeGood[0]*3600);
	return tradeGood;
}

function getCities() { /** returns array with ata related to cities	
	cities[][0] City ID
	cities[][1] City name
	cities[][2] City HREF
	cities[][3] City update time
**/
	var tmp = document.getElementById('citySelect');
	var cities = new Array();
	for (i=0; i &amp;lt; tmp.childNodes.length; i++) {
		if (tmp.childNodes[i].innerHTML != undefined) {
			cities[cities.length] = new Array(3);
			cities[cities.length-1][0] = tmp.childNodes[i].getAttribute('value');
			cities[cities.length-1][1] = tmp.childNodes[i].innerHTML;
			cities[cities.length-1][2] = &quot;?view=city&amp;amp;id=&quot; + tmp.childNodes[i].getAttribute('value');
		}
	}
	
	var name = document.getElementsByTagName('li')[0].innerHTML;
	name = name.substring(name.indexOf(&quot;&quot;)+7, name.length);
	for (i=0; i &amp;lt; cities.length; i++) {
		if (cities[i][1] == name) {
			cities[i][3] = new Date();
		}
	}
	
	return cities;
}

function currentCity(cities) { /** return the selected city index **/
	var name = document.getElementsByTagName('li')[0].innerHTML;
	name = name.substring(name.indexOf(&quot;&quot;)+7, name.length);
	for (i=0; i &amp;lt; cities.length; i++) {
		if (cities[i][1] == name) {
			return i;
		}
	}
}

function getResources(cities, currentCity) { /** sets a GM script value with the resources in the current city
	
	resources[0] Wood
	resources[1] Wine
	resources[2] Marble
	resources[3] Crystal
	resources[4] Sulphur
	
	resources[5] How much wood is being produced (ie: &quot;+120&quot;)
	resources[6] HREF to island saw mill
	resources[7] How much wine/marble/crystal/sulphur is being produced (ie: &quot;+120&quot;)
	resources[8] Name of the specific island resource (possible values: wine/marble/crystal/sulpfur)
	resources[9] Specific island resource depot HREF
	
	resources[10] Wood storage
	resources[11] Wine storage
	resources[12] Marble storage
	resources[13] Crystal storage
	resources[14] Sulphur storage
	
	resources[15] Wood almost full? ----------------------
	resources[16] Wine almost full?                              |
	resources[17] Marble almost full?        (CSS style to use in the &lt;td&gt;)
	resources[18] Crystal almost full?                           |
	resources[19] Sulphur almost full? -------------------
	
**/
	var resources = new Array(19);
	var storage;
	resources[0] = document.getElementById('value_wood').innerHTML;
	resources[1] = document.getElementById('value_wine').innerHTML;
	resources[2] = document.getElementById('value_marble').innerHTML;
	resources[3] = document.getElementById('value_crystal').innerHTML;
	resources[4] = document.getElementById('value_sulfur').innerHTML;
	
	resources[5] = getResourcesProduction('wood')[0];
	resources[6] = getResourcesProduction('wood')[2];
	resources[7] = getResourcesProduction('island')[0];
	var a = getResourcesProduction('island')[1];

	if (a=='wine'){
		resources[8] = keywords[1][1];
	}
	if (a=='marble'){
		resources[8] = keywords[1][2];
	}
	if (a=='crystal'){
		resources[8] = keywords[1][3];
	}
	if (a=='sulfur'){
		resources[8] = keywords[1][4];
	}

	// var regTest = new RegExp(resources[8].substring(0,3), &quot;i&quot;);
	// alert(keywords[1].join('\n'));
	// for (i=0; i &amp;lt; keywords[1].length; i++) {
		// if (regTest.test(keywords[1][i])) {
			// resources[8] = keywords[1][i];
		// }
	// }
	resources[9] = getResourcesProduction('island')[2];
	
	storage = document.getElementById('value_wood').parentNode.childNodes[5].textContent;
	storage = storage.substring(storage.indexOf(':')+2, storage.length);
	resources[10] = storage;
	storage = document.getElementById('value_wine').parentNode.childNodes[5].textContent;
	storage = storage.substring(storage.indexOf(':')+2, storage.length);
	resources[11] = storage;
	storage = document.getElementById('value_marble').parentNode.childNodes[5].textContent;
	storage = storage.substring(storage.indexOf(':')+2, storage.length);	
	resources[12] = storage;
	storage = document.getElementById('value_crystal').parentNode.childNodes[5].textContent;
	storage = storage.substring(storage.indexOf(':')+2, storage.length);		
	resources[13] = storage;
	storage = document.getElementById('value_sulfur').parentNode.childNodes[5].textContent;
	storage = storage.substring(storage.indexOf(':')+2, storage.length);		
	resources[14] = storage;
	for (i=15; i &amp;lt;= 19; i++) {
		var testStorage1 = resources[i-15].replace(/,/,&quot;&quot;);
		testStorage1 = testStorage1.replace(/\./,&quot;&quot;); //because dot cell dividers
		var testStorage2 = resources[i-5].replace(/,/,&quot;&quot;);
		testStorage2 = testStorage2.replace(/\./,&quot;&quot;); //because dot cell dividers
		if ((parseFloat(testStorage1) / parseFloat(testStorage2)) == 1) {
			resources[i] = &quot;background-color: red; font-weight: bold;&quot;;
		} else if ((parseFloat(testStorage1) / parseFloat(testStorage2)) &gt;= 0.75) {
			resources[i] = &quot;background-color: #FF9B9A; border: 1px solid red;&quot;;
		} else {
			resources[i] = &quot;&quot;;
		}
	}
	GM_setValue(&quot;resources_&quot; + currentCity, resources.toSource());
}

function getBuildings(cities, currentCity) { /** sets a GM script value with the buildings in the current city

		buildings[currentCity][buildID][0] currentCity;
		buildings[currentCity][buildID][1] Name
		buildings[currentCity][buildID][2] HREF
		buildings[currentCity][buildID][3] Under construction? (possible values: 0, 1)
	
**/
	var tmp, buildID;
	var buildings = new Array(cities.length-1);
	for (i=0; i &amp;lt; cities.length; i++) {
		buildings[i] = new Array(14);
	}
	for (i=0; i &amp;lt; 15; i++) {
		tmp = document.getElementById('position' + i).childNodes[3];
		for (j=0; j &amp;lt; cities.length; j++) {
			if (tmp.href.substring(tmp.href.lastIndexOf(&quot;id=&quot;)+3, tmp.href.lastIndexOf(&quot;&amp;amp;&quot;)) == cities[j][0]) {
				currentCity = j;
			}
		}
		
		var tempName = tmp.title.substring(0, tmp.title.lastIndexOf(keywords[2][0])-1);
		switch(tempName) {
			case keywords[0][0]: buildID = 0; break;
			case keywords[0][1]: buildID = 1; break;
			case keywords[0][2]: buildID = 2; break;
			case keywords[0][3]: buildID = 3; break;
			case keywords[0][4]: buildID = 4; break;
			case keywords[0][5]: buildID = 5; break;
			case keywords[0][6]: buildID = 6; break;
			case keywords[0][7]: buildID = 7; break;
			case keywords[0][8]: buildID = 8; break;
			case keywords[0][9]: buildID = 9; break;
			case keywords[0][10]: buildID = 10; break;
			case keywords[0][11]: buildID = 11; break;
			case keywords[0][12]: buildID = 12; break;
			case keywords[0][13]: buildID = 13; break;
			case keywords[0][14]: buildID = 6; break; //Governors residence = palace
			default: buildID = &quot;error&quot;;
		}
		buildings[currentCity][buildID] = new Array(3);
		buildings[currentCity][buildID][0] = currentCity;

		buildings[currentCity][buildID][1] = tmp.title.substring(tmp.title.lastIndexOf(&quot; &quot;)+1, tmp.title.length);
		buildings[currentCity][buildID][2] = tmp.href;

		buildings[currentCity][buildID][3] = tmp.firstChild.innerHTML.search(keywords[2][9]);
		
		GM_setValue(&quot;city_&quot; + currentCity, buildings[currentCity].toSource());
	}
}

function buildShortcuts(currCity) { /** returns an array with important data for box shortcut
	
	shortcuts[0] Wood production
	shortcuts[1] HREF to saw mill
	shortcuts[2] Island resource production
	shortcuts[3] Name of the island resource
	shortcuts[4] HREF to the island resource
	
**/
	var temp_resources = eval(GM_getValue(&quot;resources_&quot; + currCity, undefined));
	var shortcuts = new Array(2);
	shortcuts[0] = temp_resources[5];
	shortcuts[1] = temp_resources[6];
	shortcuts[2] = temp_resources[7];
	shortcuts[3] = temp_resources[8];
	shortcuts[4] = temp_resources[9];
	return shortcuts;
}

//Add Javascript to the source code
function addJS(where, js) {
    var head, jscript;
    head = document.getElementsByTagName(where)[0];
    if (!head) { return; }
    jscript = document.createElement('script');
    jscript.type = 'text/javascript';
    jscript.innerHTML = js;
    head.appendChild(jscript);
}

//NEW INFOBOX
var newElement = document.createElement('div');
newElement.className = 'dynamic';
newElement.id = 'IkariamOverview';
newElement.innerHTML = '&lt;h3&gt;General Overview v1.5&lt;/h3&gt;'
						+ '&lt;div&gt;'
							+ '&lt;p&gt;&#187; &lt;a href=&quot;#&quot; title=&quot;' + keywords[2][2] + '&quot;&gt;' + keywords[2][3] + '&lt;/a&gt;&lt;/p&gt;';
							try {
							newElement.innerHTML += '&lt;p&gt;&lt;span&gt;&lt;b&gt;' + keywords[2][14] + ':&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;'
								+ '&lt;span&gt;&#187; &lt;a href=&quot; + shortcuts[1] + &quot;&gt;' + keywords[1][0] + '&lt;/a&gt; (' + shortcuts[0] + ')&lt;/span&gt;&lt;br /&gt;'
								+ '&lt;span&gt;&#187; &lt;a href=&quot; + shortcuts[4] + &quot;&gt;' + shortcuts[3] + '&lt;/a&gt; (' + shortcuts[2] + ')&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;';
							} catch(e) {
							}
newElement.innerHTML += '&lt;/div&gt;'
					 + '&lt;div&gt;&lt;/div&gt;';

infoBox = document.getElementById('mainview');
if (infoBox) {
   infoBox.parentNode.insertBefore(newElement, infoBox);
}

//Create the function to show/hide the CSS popup
addJS('head', 'function showHide() {'
		+ 'var overviewPopup;'
		+ 'overviewPopup = document.getElementById(&quot;overviewPopup&quot;);'
		+ 'if (overviewPopup.style.display != &quot;block&quot;) {'
			+ 'overviewPopup.style.display = &quot;block&quot;;'
		+ '} else {'
			+ 'overviewPopup.style.display = &quot;none&quot;;'
		+ '}'
	+'}'
)

//BUILDING LEVELS - Create the data table inside the popup
var table_buildsLvl = '&lt;table width=&quot;940px&quot;&gt;';
table_buildsLvl += '&lt;tr&gt;&lt;td&gt;' + keywords[2][6] + '&lt;/td&gt;&lt;/tr&gt;';
table_buildsLvl += '&lt;tr&gt;';
table_buildsLvl += '&lt;td width=&quot;110px&quot;&gt;' + keywords[2][5] + '&lt;/td&gt;';
for (i=0; i &amp;lt; (keywords[0].length-1); i++) {
	table_buildsLvl += '&lt;td&gt;' + keywords[0][i] + '&lt;/td&gt;';
}
table_buildsLvl += '&lt;/tr&gt;';
for (i=0; i &amp;lt; allCities.length; i++) {
	table_buildsLvl += '&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;' + allCities[i][2] + '&quot;&gt;' + allCities[i][1] + '&lt;/a&gt;&lt;/td&gt;';
	try {
		var temp_builds = eval(GM_getValue(&quot;city_&quot; + i, &quot;undefined&quot;));
	} catch (e) {
	}
	for (j=0; j &amp;lt; (keywords[0].length-1); j++) {
		try {
			if (temp_builds[j][1] != &quot;Ground&quot;) {
				if (temp_builds[j][3] == -1) {
					table_buildsLvl += '&lt;td title=&quot;' + keywords[0][j] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;&lt;a href=&quot;' + temp_builds[j][2] + '&quot;&gt;'  + temp_builds[j][1] + '&lt;/a&gt;&lt;/td&gt;';
				} else {
					var elevated = parseInt(temp_builds[j][1])+1;
					table_buildsLvl += '&lt;td title=&quot;' + keywords[0][j] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '  ' + keywords[2][11] + '. ' + '(' + keywords[2][12] + ' ' + elevated + ')&quot;&gt;&lt;a href=&quot;' + temp_builds[j][2] + '&quot;&gt;'  + temp_builds[j][1] + '&lt;/a&gt;&lt;/td&gt;';
				}
			} else {
				table_buildsLvl += '&lt;td&gt;-&lt;/td&gt;';
			}
		} catch (e) {
			table_buildsLvl += '&lt;td&gt; - &lt;/td&gt;';
		}
	}
	table_buildsLvl += '&lt;/tr&gt;';
}
table_buildsLvl += '&lt;/table&gt;';

//RESOURCES - Create the data table inside the popup
var table_resources = '&lt;table width=&quot;610px&quot;&gt;';
table_resources += '&lt;tr&gt;&lt;td&gt;' + keywords[2][7] + '&lt;/td&gt;&lt;/tr&gt;';
table_resources += '&lt;tr&gt;';
table_resources += '&lt;td width=&quot;110px&quot;&gt;' + keywords[2][5] + '&lt;/td&gt;&lt;td width=&quot;100px&quot;&gt;' + keywords[1][0] + '&lt;/td&gt;&lt;td width=&quot;100px&quot;&gt;' + keywords[1][1] + '&lt;/td&gt;&lt;td width=&quot;100px&quot;&gt;' + keywords[1][2] + '&lt;/td&gt;&lt;td width=&quot;100px&quot;&gt;' + keywords[1][3] + '&lt;/td&gt;&lt;td width=&quot;100px&quot;&gt;' + keywords[1][4] + '&lt;/td&gt;&lt;/tr&gt;';
for (i=0; i &amp;lt; allCities.length; i++) {
	try {
		var temp_resources = eval(GM_getValue(&quot;resources_&quot; + i, &quot;-&quot;));
	} catch (e) {
		var temp_resources = new Array(15)
		for (j=0; j &amp;lt; temp_resources.length; j++) {
			temp_resources[j] = &quot;-&quot;;
		}
	}
	table_resources += '&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;' + allCities[i][2] + '&quot;&gt;' + allCities[i][1] + '&lt;/a&gt;&lt;/td&gt;';
	switch (temp_resources[8]) {
		case 'Wine':
			table_resources += '&lt;td title=&quot;' + keywords[1][0] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[0] + ' (&lt;a href=&quot;' + temp_resources[6] + '&quot; title=&quot;'+ keywords[2][13] + ' ' + keywords[1][0] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[5] + '&lt;/a&gt;)&lt;/td&gt;&lt;td title=&quot;' + keywords[1][1] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[1] +  ' (&lt;a href=&quot;' + temp_resources[9] + '&quot; title=&quot;'+ keywords[2][13] + ' ' + keywords[1][1] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[7] + '&lt;/a&gt;)&lt;/td&gt;&lt;td title=&quot;' + keywords[1][2] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[2] + '&lt;/td&gt;&lt;td title=&quot;' + keywords[1][3] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[3] + '&lt;/td&gt;&lt;td title=&quot;' + keywords[1][4] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[4] + '&lt;/td&gt;';
			break;
		case 'Marble':
			table_resources += '&lt;td title=&quot;' + keywords[1][0] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[0] + ' (&lt;a href=&quot;' + temp_resources[6] + '&quot; title=&quot;'+ keywords[2][13] + ' ' + keywords[1][0] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[5] + '&lt;/a&gt;)&lt;/td&gt;&lt;td title=&quot;' + keywords[1][1] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[1] +  '&lt;/td&gt;&lt;td title=&quot;' + keywords[1][2] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[2] + ' (&lt;a href=&quot;' + temp_resources[9] + '&quot; title=&quot;'+ keywords[2][13] + ' ' + keywords[1][2] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[7] + '&lt;/a&gt;)&lt;/td&gt;&lt;td title=&quot;' + keywords[1][3] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[3] + '&lt;/td&gt;&lt;td title=&quot;' + keywords[1][4] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[4] + '&lt;/td&gt;';
			break;
		case 'Crystal':
			table_resources += '&lt;td title=&quot;' + keywords[1][0] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[0] + ' (&lt;a href=&quot;' + temp_resources[6] + '&quot; title=&quot;'+ keywords[2][13] + ' ' + keywords[1][0] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[5] + '&lt;/a&gt;)&lt;/td&gt;&lt;td title=&quot;' + keywords[1][1] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[1] + '&lt;/td&gt;&lt;td title=&quot;' + keywords[1][2] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[2] + '&lt;/td&gt;&lt;td title=&quot;' + keywords[1][3] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[3] + ' (&lt;a href=&quot;' + temp_resources[9] + '&quot; title=&quot;'+ keywords[2][13] + ' ' + keywords[1][3] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[7] + '&lt;/a&gt;)&lt;/td&gt;&lt;td title=&quot;' + keywords[1][4] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[4] + '&lt;/td&gt;';
			break;
		case 'Sulfur':
			table_resources += '&lt;td title=&quot;' + keywords[1][0] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[0] + ' (&lt;a href=&quot;' + temp_resources[6] + '&quot; title=&quot;'+ keywords[2][13] + ' ' + keywords[1][0] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[5] + '&lt;/a&gt;)&lt;/td&gt;&lt;td title=&quot;' + keywords[1][1] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[1] + '&lt;/td&gt;&lt;td title=&quot;' + keywords[1][2] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[2] + '&lt;/td&gt;&lt;td title=&quot;' + keywords[1][3] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[3] + '&lt;/td&gt;&lt;td title=&quot;' + keywords[1][4] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[4] + ' (&lt;a href=&quot;' + temp_resources[9] + '&quot; title=&quot;'+ keywords[2][13] + ' ' + keywords[1][4] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[7] + '&lt;/a&gt;)&lt;/td&gt;';
			break;
		default:
			table_resources += '&lt;td title=&quot;' + keywords[1][0] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[0] + ' (&lt;a href=&quot;' + temp_resources[6] + '&quot; title=&quot;'+ keywords[2][13] + ' ' + keywords[1][0] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[5] + '&lt;/a&gt;)&lt;/td&gt;&lt;td title=&quot;' + keywords[1][1] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[1] + '&lt;/td&gt;&lt;td title=&quot;' + keywords[1][2] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[2] + '&lt;/td&gt;&lt;td title=&quot;' + keywords[1][3] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[3] + '&lt;/td&gt;&lt;td title=&quot;' + keywords[1][4] + ' ' + keywords[2][10] + ' ' + allCities[i][1] + '&quot;&gt;' + temp_resources[4] + '&lt;/td&gt;';
	}
	table_resources += '&lt;/tr&gt;';
	table_resources += '&lt;tr title=&quot;' + keywords[2][15] + ' ' + keywords[2][16] + ' ' + allCities[i][1] + '&quot;&gt;&lt;td&gt;' + keywords[2][8] + '&lt;/td&gt;&lt;td&gt;' + temp_resources[10] + '&lt;/td&gt;&lt;td&gt;' + temp_resources[11] + '&lt;/td&gt;&lt;td&gt;' + temp_resources[12] + '&lt;/td&gt;&lt;td&gt;' + temp_resources[13] + '&lt;/td&gt;&lt;td&gt;' + temp_resources[14] + '&lt;/td&gt;&lt;/tr&gt;';
}
table_resources += '&lt;/table&gt;';

//Create the CSS popup window
addJS('body', 'overviewPopup = document.createElement(&quot;div&quot;);'
+ 'overviewPopup.id = &quot;overviewPopup&quot;;'
+ 'overviewPopup.style.display = &quot;none&quot;;'
+ 'overviewPopup.style.position = &quot;absolute&quot;;'
+ 'overviewPopup.style.left = &quot;-230px&quot;;'
+ 'overviewPopup.style.top = &quot;30px&quot;;'
+ 'overviewPopup.style.height = &quot;400px&quot;;'
+ 'overviewPopup.style.width = &quot;950px&quot;;'
+ 'overviewPopup.style.border = &quot;thick double #D2AC77&quot;;'
+ 'overviewPopup.style.backgroundColor = &quot;#F6EBBC&quot;;'
+ 'overviewPopup.style.zIndex = 9999;'
+ 'overviewPopup.innerHTML = \'&lt;h3&gt;&lt;table width=&quot;100%&quot;&gt;&lt;tr&gt;&lt;td&gt;Ikariam General Overview v1.5    (by &lt;a href=&quot;mailto:a.maia.ferreira[at]gmail.com&quot;&gt;Maia&lt;/a&gt;)&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;#&quot;&gt;' + keywords[2][1] + '&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/h3&gt;'
							+ table_buildsLvl
							+ table_resources
							+ '&lt;p&gt;' + keywords[2][4] + '&lt;/p&gt;'
							+ '\';'												
+ 'textBox = document.getElementById(&quot;mainview&quot;);'
+ 'textBox.appendChild(overviewPopup);');&lt;/td&gt;&lt;/pre&gt;


Only replace the resources[8] thing for this: 	
&lt;pre&gt;
var a = getResourcesProduction('island')[1];

	if (a=='wine'){
		resources[8] = keywords[1][1];
	}
	if (a=='marble'){
		resources[8] = keywords[1][2];
	}
	if (a=='crystal'){
		resources[8] = keywords[1][3];
	}
	if (a=='sulfur'){
		resources[8] = keywords[1][4];
	}
&lt;/pre&gt;</description>
      <pubDate>Mon, 09 Jun 2008 14:59:43 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33367</guid>
      <author>SoulStealer</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by tryxter @ Thu, 05 Jun 2008 11:16:45 -0500</title>
      <description>&lt;p&gt;@rEacT&lt;/p&gt;

&lt;p&gt;Thanks for your translation. :-)&lt;/p&gt;</description>
      <pubDate>Thu, 05 Jun 2008 11:16:45 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33368</guid>
      <author>tryxter</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by rEacT @ Wed, 04 Jun 2008 22:12:41 -0500</title>
      <description>&lt;p&gt;Swedish translation:&lt;/p&gt;

&lt;p&gt;		case 'ikariam.se':
&lt;br /&gt;			keywords[0] = [&quot;R&#229;dhus&quot;, &quot;Skeppsvarv&quot;, &quot;Handelshamn&quot;, &quot;Lagerlokal&quot;, &quot;Handelsstation&quot;, &quot;Kasern&quot;, &quot;Palats&quot;, &quot;G&#246;mst&#228;lle&quot;, &quot;Ambassad&quot;, &quot;Akademi&quot;, &quot;Verkstad&quot;, &quot;Taverna&quot;, &quot;Museum&quot;, &quot;Stadsmur&quot;, &quot;Guvern&#246;rsresidens&quot;];	
&lt;br /&gt;			keywords[1] = [&quot;Tr&#228;&quot;,&quot;Vin&quot;,&quot;Marmor&quot;,&quot;Kristall&quot;,&quot;Svavel&quot;];
&lt;br /&gt;			keywords[2] = [&quot;Niv&#229;&quot;, &quot;St&#228;ng&quot;, &quot;Klicka f&#246;r att &#246;ppna/st&#228;nga&quot;, &quot;Byggnader &amp;amp; resurser &#246;versikt&quot;, &quot;* F&#246;r att uppdatera informationen f&#246;r varje stad g&#229; till sidan f&#246;r respektive stad&quot;,&quot;St&#228;der&quot;, &quot;Byggnader &#246;versikt&quot;, &quot;Resurser &#246;versikt&quot;, &quot;Kapacitet&quot;,&quot;Under utbyggnad&quot;, &quot;p&#229;&quot;, &quot;under utbyggnad&quot;, &quot;Byggnadens n&#228;sta niv&#229;&quot;, &quot;Produktion av&quot;, &quot;Stadsresurser&quot;, &quot;Maximal lagerkapacitet&quot;, &quot;f&#246;r&quot;];
&lt;br /&gt;			break;&lt;/p&gt;</description>
      <pubDate>Wed, 04 Jun 2008 22:12:41 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33369</guid>
      <author>rEacT</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by tryxter @ Wed, 04 Jun 2008 04:21:05 -0500</title>
      <description>&lt;p&gt;@ThisIsNotMyRealName&lt;/p&gt;

&lt;p&gt;Thanks for your kind words. Yes, &quot;alarm and overview table script&quot; has a lot of features. I already message the script author but with no answer until now. I'll add your features request to the ToDo section.&lt;/p&gt;

&lt;p&gt;Thanks a lot!&lt;/p&gt;</description>
      <pubDate>Wed, 04 Jun 2008 04:21:05 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33370</guid>
      <author>tryxter</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by ThisIsNotMyRealName @ Tue, 03 Jun 2008 13:12:58 -0500</title>
      <description>&lt;p&gt;This is the best visually looking script out there. You did a great job. And the code is super clean too!!&lt;/p&gt;

&lt;p&gt;I wish it had gold income and the time that any of the resources are full, under &quot;City Resources&quot;. The &quot;Buildings &amp;amp; resources overview' doesn't quite have the muscle that &quot;alarm and overview table script&quot; has, but yours is more intuitive. You guys should join forces!&lt;/p&gt;</description>
      <pubDate>Tue, 03 Jun 2008 13:12:58 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33371</guid>
      <author>ThisIsNotMyRealName</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by tryxter @ Tue, 03 Jun 2008 11:38:16 -0500</title>
      <description>&lt;p&gt;@ordan&lt;/p&gt;

&lt;p&gt;Thanks
&lt;br /&gt;You want me to change the close button from the right to the left side?&lt;/p&gt;</description>
      <pubDate>Tue, 03 Jun 2008 11:38:16 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33372</guid>
      <author>tryxter</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by ordan @ Tue, 03 Jun 2008 11:29:54 -0500</title>
      <description>&lt;p&gt;thank you for script, can you add close button to left side, thank you&lt;/p&gt;</description>
      <pubDate>Tue, 03 Jun 2008 11:29:54 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33373</guid>
      <author>ordan</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by tryxter @ Tue, 03 Jun 2008 10:37:42 -0500</title>
      <description>&lt;p&gt;All submited languages and bugfixes, are now applied.
&lt;br /&gt;Thanks to you all that e-mailed me and commented here!&lt;/p&gt;

&lt;p&gt;I'll try to add new features soon. If you have any request or any idea that it isn't stated at ToDo section, be my guest to e-mail me or post it here.&lt;/p&gt;

&lt;p&gt;Again, thank you all for all support!&lt;/p&gt;</description>
      <pubDate>Tue, 03 Jun 2008 10:37:42 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33374</guid>
      <author>tryxter</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by Pyronhell @ Thu, 29 May 2008 00:36:54 -0500</title>
      <description>&lt;p&gt;@tryxter
&lt;br /&gt;Ok, sorry, I missed out this section.&lt;/p&gt;

&lt;p&gt;No problem, I'll help with my poor js knowledge as much as I can.&lt;/p&gt;</description>
      <pubDate>Thu, 29 May 2008 00:36:54 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33375</guid>
      <author>Pyronhell</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by tryxter @ Wed, 28 May 2008 14:01:02 -0500</title>
      <description>&lt;p&gt;@Pyronhell&lt;/p&gt;

&lt;p&gt;Ok, thanks a lot! :-)
&lt;br /&gt;That minor bug is a known bug as stated at &quot;Known Bugs&quot; section, first line.
&lt;br /&gt;Anyway, thanks a lot for the great work! I'll try to implement your bugfix soon, seen I've been a little busy.&lt;/p&gt;

&lt;p&gt;Again, thanks!&lt;/p&gt;</description>
      <pubDate>Wed, 28 May 2008 14:01:02 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33376</guid>
      <author>tryxter</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by Pyronhell @ Wed, 28 May 2008 11:50:01 -0500</title>
      <description>&lt;p&gt;@tryxter
&lt;br /&gt;Yes, I've tested it on my account and it work's perfetly.&lt;/p&gt;

&lt;p&gt;I only noticed this:
&lt;br /&gt;&lt;img src=&quot;http://img137.imageshack.us/img137/7526/screenshot1xy6.png&quot; alt=&quot;Issue&quot; /&gt;
&lt;br /&gt;But it is a minor bug.&lt;/p&gt;

&lt;p&gt;Again, good work :D&lt;/p&gt;</description>
      <pubDate>Wed, 28 May 2008 11:50:01 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33377</guid>
      <author>Pyronhell</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by tryxter @ Wed, 28 May 2008 11:28:25 -0500</title>
      <description>&lt;p&gt;@Pyronhell&lt;/p&gt;

&lt;p&gt;Thanks for the translation and the bugfix. Have you tested it and it worked, right?
&lt;br /&gt;I'll try to implement this really really soon!&lt;/p&gt;</description>
      <pubDate>Wed, 28 May 2008 11:28:25 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33378</guid>
      <author>tryxter</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
    <item>
      <title>Archived Comments, replied by Pyronhell @ Wed, 28 May 2008 09:29:05 -0500</title>
      <description>&lt;p&gt;To solve the bug, search:
&lt;br /&gt;&lt;code&gt;+ 'overviewPopup.style.border = &quot;thick double #D2AC77&quot;;'
&lt;br /&gt;+ 'overviewPopup.style.backgroundColor = &quot;#F6EBBC&quot;;'&lt;/code&gt;
&lt;br /&gt;at the end of the script and paste after this:
&lt;br /&gt;&lt;code&gt;+ 'overviewPopup.style.zIndex = 9999;'&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Happy gaming!&lt;/p&gt;</description>
      <pubDate>Wed, 28 May 2008 09:29:05 -0500</pubDate>
      <guid isPermaLink="false">userscripts.org:12366:33379</guid>
      <author>Pyronhell</author>
      <link>http://userscripts.org/topics/12366</link>
    </item>
  </channel>
</rss>
