Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(".map-polska").click(function() {
  2.         $(this).fadeOut("fast", function() {
  3.             $(".map-poludnie").fadeIn();
  4.             $(".map-close").fadeIn();
  5.             $(".map-point").fadeIn();
  6.             $(".map-point_reversed").fadeOut();
  7.         });
  8.     });
  9.     $(".map-close").click(function() {
  10.         $(this).fadeOut();
  11.         $(".map-point").fadeOut();
  12.         $(".map-info").fadeOut();
  13.         $(".map-info_heading").text('');
  14.         $(".map-info_text").text('');
  15.         $(".map-point_reversed").fadeIn();
  16.         $(".map-poludnie").fadeOut("fast", function() {
  17.             $(".map-polska").fadeIn();
  18.             $(".map-info").fadeOut("fast", function() {
  19.                 $(".map-info_heading").text('');
  20.                 $(".map-info_text").text('');
  21.             });
  22.         });
  23.     });
  24.    
  25.     /* DRAW POINTS */
  26.     var points = [];
  27.    
  28.     <?php if($en){ ?>
  29.        points = [      
  30.                     {top: '68%', left: '67%', name: 'Janina Coal Mine', desc: 'Kopalnia', type: 'kopalnia', isLongDesc: true, link: '#', descLong: '62 km<sup>2</sup> mining area<br>This mine’s coal resource base allows it to operate for another 80 to 100 years'},
  31.                     {top: '62%', left: '68%', name: 'Sobieski Coal Mine', desc: 'Kopalnia', type: 'kopalnia', isLongDesc: true, link: '#', descLong: '59 km<sup>2</sup> mining area<br>This mine’s coal resource base allows it to operate for another 50 years'},
  32.                     {top: '60%', left: '65%', name: 'Jaworzno III Power Plant', desc: 'Elektrownia węglowa', type: 'weglowa', isLongDesc: true, link: '#', descLong: '8 hard coal-fired units and one biomass-fired unit<br>Total capacity: 1 535 MW<sub>e</sub> and 372 MW<sub>t</sub>'},
  33.                     {top: '68%', left: '58%', name: 'Łaziska Power Plant', desc: 'Elektrownia węglowa', type: 'weglowa', isLongDesc: true, link: '#', descLong: '6 hard coal-fired units<br>Total capacity: 1155 MW<sub>e</sub> and 196 MW<sub>t</sub>'},
  34.                     {top: '51%', left: '66%', name: 'Łagisza Power Plant', desc: 'Elektrownia węglowa', type: 'weglowa', isLongDesc: true, link: '#', descLong: '4 hard coal-fired units<br>Total capacity: 820 MW<sub>e</sub> and 343 MW<sub>t</sub>'},
  35.                     {top: '64%', left: '71%', name: 'Siersza Power Plant', desc: 'Elektrownia węglowa', type: 'weglowa', isLongDesc: true, link: '#', descLong: '5 hard coal-fired units<br>Total capacity: 666 MW<sub>e</sub> and 37 MW<sub>t</sub>'},
  36.                     {top: '60%', left: '62%', name: 'ZW Katowice', desc: 'Elektrociepłownia węglowa', type: 'elektro', isLongDesc: true, link: '#', descLong: 'Supplies heat to Katowice, Sosnowiec, Siemianowice Śląskie, Czeladź<br>Total capacity: 136 MW<sub>e</sub> and 459 MW<sub>t</sub>'},
  37.                     {top: '80%', left: '63%', name: 'ZW Bielsko-Biała', desc: 'Elektrociepłownia węglowa', type: 'elektro', isLongDesc: true, link: '#', descLong: 'Supplies heat to Bielsko-Biała and Czechowice-Dziedzice<br>Total capacity: 106 MW<sub>e</sub> and 384 MW<sub>t</sub>'},
  38.                     {top: '71%', left: '62%', name: 'ZW Tychy', desc: 'Elektrociepłownia węglowa', type: 'elektro', isLongDesc: true, link: '#', descLong: 'Supplies heat to Tychy<br>Total capacity: 40 MW<sub>e</sub> and 250 MW<sub>t</sub>'},
  39.                    
  40.                     {top: '44%', left: '34%', name: 'Lipniki wind farm', desc: 'Farma wiatrowa', type: 'wiatrowa', isLongDesc: true, link: '#', descLong: 'Located in the south-western part of Opole province in the municipality of Kamiennik (Nysa county)<br>15 turbines REpower MM92 2.05 MW each <br>Total capacity: 30.75 MW'},
  41.                     {top: '33%', left: '16%', name: 'Bobrowice I hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Siedlęcin on the Bóbr River<br>Type: conventional (dam)<br>Capacity: 2.422 MW'},
  42.                     {top: '49%', left: '18%', name: 'Ławica hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located near Kłodzki on the Nysa Kłodzka River<br>Type: run of the river'},
  43.                     {top: '27%', left: '13%', name: 'Bobrowice III hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Jelenia Góra on the Bóbr River<br>Type: run of the river<br>Capacity: 0.126 MW'},
  44.                     {top: '23%', left: '13%', name: 'Bobrowice IV hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Jelenia Góra on the Bóbr River<br>Type: run of the river<br>Capacity: 1 MW'},
  45.                     {top: '14%', left: '11%', name: 'Kraszewice hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Ocice on the Bóbr River<br>Type: run of the river<br>Capacity: 0.96 MW'},
  46.                     {top: '26%', left: '6%', name: 'Leśna hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Leśna on the Kwisa River<br>Type: conventional (dam)<br>Capacity: 2.61 MW'},
  47.                     {top: '10%', left: '13%', name: 'Oleszna hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Stara Oleszna on the Bóbr River<br>Type: run of the river<br>Capacity: 1.950 MW'},
  48.                     {top: '16%', left: '15%', name: 'Pilchowice  hydroelectric power plantI', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Pilchowice on the Bóbr River<br>Type: conventional (dam)<br>Capacity: 7.585 MW'},
  49.                     {top: '20%', left: '15%', name: 'Pilchowice II hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Nielestno on the Bóbr River<br>Type: run of the river<br>Capacity: 0.824 MW'},
  50.                    
  51.                     {top: '34%', left: '11%', name: 'Szklarska Poręba I hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Piechowice on the Kamienna River<br>Type: run of the river<br>Capacity: 0.736 MW'},
  52.                     {top: '38%', left: '8%', name: 'Szklarska Poręba II hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Szklarska Poręba on the Kamienna River<br>Type: run of the river<br>Capacity: 0.156 MW'},
  53.                    
  54.                     {top: '18%', left: '11%', name: 'Włodzice hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Wodzice Małe on the Bóbr River<br>Type: run of the river<br>Capacity: 1.008 MW'},
  55.                     {top: '34%', left: '13%', name: 'Wrzeszczyn hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Wrzeszczyn on the Bóbr River<br>Type: conventional (dam)<br>Capacity: 4.71 MW'},
  56.                     {top: '26%', left: '9%', name: 'Złotniki hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Złotniki Lubańskie on the Kwisa River<br>Type: conventional (dam)<br>Capacity: 4.42 MW'},
  57.                    
  58.                     {top: '81%', left: '87%', name: 'Rożnów hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Rożnów on the Dunajec River<br>Type: conventional (dam)<br>Capacity: 56 MW'},
  59.                     {top: '75%', left: '88%', name: 'Czchów hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Czchów on the Dunajec River<br>Type: conventional (dam)<br>Capacity: 9 MW'},
  60.                     {top: '70%', left: '81%', name: 'Dąbie hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Kraków on the Vistula River<br>Type: run of the river<br>Capacity: 2.94 MW'},
  61.                     {top: '70%', left: '84%', name: 'Przewóz hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Kraków on the Vistula River<br>Type: run of the river<br>Capacity: 4 MW'},
  62.                     {top: '87%', left: '79%', name: 'Olcza hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Zakopane on the Olczyski Creek<br>Type: run of the river<br>Capacity: 0.33 MW'},
  63.                     {top: '93%', left: '79%', name: 'Kuźnice hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Zakopane on the Bystry Creek<br>Type: run of the river<br>Capacity: 0.27 MW'},
  64.                    
  65.                     {top: '34%', left: '45%', name: 'Brzeg hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Brzeg on the Odra River<br>Type: run of the river<br>Capacity: 0.4 MW'},
  66.                     {top: '48%', left: '35.5%', name: 'Głębinów hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Nysa on the Nysa Kłodzka River<br>Type: conventional (dam)<br>Capacity: 3.04 MW'},
  67.                     {top: '68%', left: '65%', name: 'Brzeszcze', desc: 'Kopalnia', type: 'kopalnia', isLongDesc: true, link: '#', descLong: '26.9 km<sup>2</sup> mining area<br>This mine’s coal resource base allows it to operate for another 33 years'},
  68.                    
  69.                     {top: '36%', left: '48%', name: 'Kopin hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Zwanowice on the Odra River<br>Type: run of the river<br>Capacity: 0.92 MW'},
  70.                     {top: '46%', left: '39%', name: 'Nysa hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Nysa on the Nysa Kłodzka River<br>Type: run of the river<br>Capacity: 0.312 MW'},
  71.                     {top: '48%', left: '31%', name: 'Otmuchów hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Otmuchów on the Nysa Kłodzka River<br>Type: run of the river<br>Capacity: 4.8 MW'},
  72.                     {top: '36%', left: '52%', name: 'Turawa hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Turawa on the Mała Panew River<br>Type: conventional (dam)<br>Capacity: 1.8 MW'},
  73.                     {top: '57%', left: '17.5%', name: 'Bystrzyca hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Bystrzyca Kłodzka on the Nysa Kłodzka River<br>Type: run of the river<br>Capacity: 0.465 MW'},
  74.                     {top: '40%', left: '16%', name: 'Lubachów hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Lubachów on the Bystrzyca River<br>Type: conventional (dam)<br>Capacity: 1.25 MW'},
  75.                     {top: '50%', left: '27%', name: 'Ławica hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Ławica on the Nysa Kłodzka River<br>Type: run of the river<br>Capacity: 0.25 MW'},
  76.                     {top: '46%', left: '20%', name: 'Opolnica hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Opolnica on the Nysa Kłodzka River<br>Type: run of the river<br>Capacity: 0.41 MW'},
  77.                     {top: '28%', left: '35%', name: 'Janowice hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Jeszkowice on the Odra River<br>Type: run of the river<br>Capacity: 1.52 MW'},
  78.                     {top: '31%', left: '29%', name: 'Marszowice hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Wrocław on the Bystrzyca River<br>Type: run of the river<br>Capacity: 0.385 MW'},
  79.                     {top: '20%', left: '25%', name: 'Wały Śląskie hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Wały on the Odra River<br>Type: run of the river<br>Capacity: 9.72 MW'},
  80.                     {top: '26%', left: '32%', name: 'Wrocław I hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Wrocław on the Odra River<br>Type: run of the river<br>Capacity: 4.83 MW'},
  81.                     {top: '24%', left: '29%', name: 'Wrocław II hydroelectric power plant', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Located in Wrocław on the Odra River<br>Type: run of the river<br>Capacity: 1 MW'},
  82.                    
  83.                     {top: '15%', left: '8%', name: 'Zagórze wind farm', desc: 'Farma wiatrowa', type: 'wiatrowa', show: 'pl', isLongDesc: true, link: '#', descLong: 'Located in West Pomerania province in the municipality of Wolin (Kamieńsk county)<br>15 turbines Vestas V80 2 MW each<br>Total capacity: 30 MW'},
  84.                     {top: '8%', left: '26%', name: 'Marszewo wind farm', desc: 'Farma wiatrowa', type: 'wiatrowa', show: 'pl', isLongDesc: true, link: '#', descLong: 'Located in West Pomerania province in the municipality of Postomino (Sławno county)<br>41 turbines Vestas V80 and V90 2 MW each<br>Total capacity: 82 MW'},
  85.                     {top: '3%', left: '36%', name: 'Wicko wind farm', desc: 'Farma wiatrowa', type: 'wiatrowa', show: 'pl', isLongDesc: true, link: '#', descLong: 'Located in Pomerania province in the municipality of Wicko (Lębork county)<br>20 turbines Vestas V90 2 MW each<br>Total capacity: 40 MW'},
  86.                     {top: '75%', left: '79%', name: 'Stalowa Wola Power Plant', desc: 'Elektrownia węglowa', type: 'weglowa', show: 'pl', isLongDesc: true, link: '#', descLong: '2 hard coal-fired units and one biomass-fired unit<br>Total capacity: 330 MW<sub>e</sub> and 335 MW<sub>t</sub>'}
  87.                 ];
  88.                 <?php } else { ?>
  89.     points = [
  90.                     {top: '68%', left: '67%', name: 'ZG Janina', desc: 'Kopalnia', type: 'kopalnia', isLongDesc: true, link: '#', descLong: 'Obszar górniczy o powierzchni 62 km<sup>2</sup><br>Baza zasobowa pozwala na eksploatację kopalni przez kolejne 80–100 lat'},
  91.                     {top: '62%', left: '68%', name: 'ZG Sobieski', desc: 'Kopalnia', type: 'kopalnia', isLongDesc: true, link: '#', descLong: 'Obszar górniczy o powierzchni 59 km<sup>2</sup><br>Baza zasobowa pozwala na eksploatację kopalni przez kolejne 50 lat'},
  92.                     {top: '60%', left: '65%', name: 'Jaworzno III', desc: 'Elektrownia węglowa', type: 'weglowa', isLongDesc: true, link: '#', descLong: '8 bloków węglowych i jeden biomasowy<br>Łączna moc: 1535 MW<sub>e</sub> i 372 MW<sub>t</sub>'},
  93.                     {top: '68%', left: '58%', name: 'Łaziska', desc: 'Elektrownia węglowa', type: 'weglowa', isLongDesc: true, link: '#', descLong: '6 bloków węglowych<br>Łączna moc: 1155 MW<sub>e</sub> i 196 MW<sub>t</sub>'},
  94.                     {top: '51%', left: '66%', name: 'Łagisza', desc: 'Elektrownia węglowa', type: 'weglowa', isLongDesc: true, link: '#', descLong: '4 bloki węglowe<br>Łączna moc: 820 MW<sub>e</sub> i 343 MW<sub>t</sub>'},
  95.                     {top: '64%', left: '71%', name: 'Siersza', desc: 'Elektrownia węglowa', type: 'weglowa', isLongDesc: true, link: '#', descLong: '5 bloków węglowych<br>Łączna moc: 666 MW<sub>e</sub> i 37 MW<sub>t</sub>'},
  96.                     {top: '60%', left: '62%', name: 'ZW Katowice', desc: 'Elektrociepłownia węglowa', type: 'elektro', isLongDesc: true, link: '#', descLong: 'Zaopatruje w ciepło Katowice, Sosnowiec, Siemianowice Śląskie, Czeladź<br>Łączna moc: 136 MW<sub>e</sub> i 459 MW<sub>t</sub>'},
  97.                     {top: '80%', left: '63%', name: 'ZW Bielsko-Biała', desc: 'Elektrociepłownia węglowa', type: 'elektro', isLongDesc: true, link: '#', descLong: 'Zaopatruje w ciepło Bielsko-Białą i Czechowice-Dziedzice<br>Łączna moc: 106 MW<sub>e</sub> i 384 MW<sub>t</sub>'},
  98.                     {top: '71%', left: '62%', name: 'ZW Tychy', desc: 'Elektrociepłownia węglowa', type: 'elektro', isLongDesc: true, link: '#', descLong: 'Zaopatruje w ciepło Tychy<br>Łączna moc: 40 MW<sub>e</sub> i 250 MW<sub>t</sub>'},
  99.                    
  100.                     {top: '44%', left: '34%', name: 'Lipniki', desc: 'Farma wiatrowa', type: 'wiatrowa', isLongDesc: true, link: '#', descLong: 'Zlokalizowana w południowo-zachodniej części województwa opolskiego, na terenie gminy Kamiennik (powiat nyski)<br>15 turbin REpower MM92 o mocy 2,05 MW każda <br>Łączna moc: 30,75 MW'},
  101.                     {top: '33%', left: '16%', name: 'Bobrowice I', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Bóbr w miejscowości Siedlęcin<br>Typ: zbiornikowa<br>Moc: 2,422 MW'},
  102.                     {top: '49%', left: '18%', name: 'Ławica', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Nysa Kłodzka niedaleko miejscowości Kłodzko<br>Typ: przepływowa'},
  103.                     {top: '27%', left: '13%', name: 'Bobrowice III', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Bóbr w miejscowości Jelenia Góra<br>Typ: przepływowa<br>Moc: 0,126 MW'},
  104.                     {top: '23%', left: '13%', name: 'Bobrowice IV', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Bóbr w miejscowości Jelenia Góra<br>Typ: przepływowa<br>Moc: 1 MW'},
  105.                     {top: '14%', left: '11%', name: 'Kraszewice', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Bóbr w miejscowości Ocice<br>Typ: przepływowa<br>Moc: 0,96 MW'},
  106.                     {top: '26%', left: '-3%', name: 'Leśna', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Kwisa w miejscowości Leśna<br>Typ: zbiornikowa<br>Moc: 2,61 MW'},
  107.                     {top: '10%', left: '13%', name: 'Oleszna', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Bóbr w miejscowości Stara Oleszna<br>Typ: przepływowa<br>Moc: 1,950 MW'},
  108.                     {top: '16%', left: '15%', name: 'Pilchowice I', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Bóbr w miejscowości Pilchowice<br>Typ: zbiornikowa<br>Moc: 7,585 MW'},
  109.                     {top: '20%', left: '15%', name: 'Pilchowice II', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Bóbr w miejscowości Nielestno<br>Typ: przepływowa<br>Moc: 0,824 MW'},
  110.                    
  111.                     {top: '34%', left: '11%', name: 'Szklarska Poręba I', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Kamienna w miejscowości Piechowice<br>Typ: przepływowa<br>Moc: 0,736 MW'},
  112.                     {top: '38%', left: '8%', name: 'Szklarska Poręba II', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Kamienna w miejscowości Szklarska Poręba<br>Typ: przepływowa<br>Moc: 0,156 MW'},
  113.                    
  114.                     {top: '18%', left: '11%', name: 'Włodzice', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Bóbr w miejscowości Włodzice Małe<br>Typ: przepływowa<br>Moc: 1,008 MW'},
  115.                     {top: '34%', left: '13%', name: 'Wrzeszczyn', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Bóbr w miejscowości Wrzeszczyn<br>Typ: zbiornikowa<br>Moc: 4,71 MW'},
  116.                     {top: '26%', left: '0%', name: 'Złotniki', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Kwisa w miejscowości Złotniki Lubańskie<br>Typ: zbiornikowa<br>Moc: 4,42 MW'},
  117.                    
  118.                     {top: '81%', left: '87%', name: 'Rożnów', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Dunajec w miejscowości Rożnów<br>Typ: zbiornikowa<br>Moc: 56 MW'},
  119.                     {top: '75%', left: '88%', name: 'Czchów', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Bóbr w miejscowości Czchów<br>Typ: zbiornikowa<br>Moc: 9 MW'},
  120.                     {top: '70%', left: '81%', name: 'Dąbie', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Wisła w miejscowości Kraków<br>Typ: przepływowa<br>Moc: 2,94 MW'},
  121.                     {top: '70%', left: '84%', name: 'Przewóz', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Wisła w miejscowości Kraków<br>Typ: przepływowa<br>Moc: 4 MW'},
  122.                     {top: '87%', left: '79%', name: 'Olcza', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na Potoku Olczyskim w miejscowości Zakopane<br>Typ: przepływowa<br>Moc: 0,33 MW'},
  123.                     {top: '93%', left: '79%', name: 'Kuźnice', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na Potoku Bystrym w miejscowości Zakopane<br>Typ: przepływowa<br>Moc: 0,27 MW'},
  124.                    
  125.                     {top: '34%', left: '45%', name: 'Brzeg', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Odrze w miejscowości Brzeg<br>Typ: przepływowa<br>Moc: 0,4 MW'},
  126.                     {top: '48%', left: '35.5%', name: 'Głębinów', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Nysa Kłodzka w miejscowości Nysa<br>Typ: zbiornikowa<br>Moc: 3,04 MW'},
  127.                     {top: '68%', left: '65%', name: 'Brzeszcze', desc: 'Kopalnia', type: 'kopalnia', isLongDesc: true, link: '#', descLong: 'Obszar górniczy o powierzchni 26,9km<sup>2</sup>.<br>Baza zasobowa pozwala na eksploatację kopalni przez kolejne 33 lata.'},
  128.                    
  129.                     {top: '36%', left: '48%', name: 'Kopin', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Odra w miejscowości Zwanowice<br>Typ: przepływowa<br>Moc: 0,92 MW'},
  130.                     {top: '46%', left: '39%', name: 'Nysa', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Bóbr w miejscowości Siedlęcin<br>Typ: przepływowa<br>Moc: 0,312 MW'},
  131.                     {top: '48%', left: '31%', name: 'Otmuchów', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Nysa Kłodzka w miejscowości Otmuchów<br>Typ: przepływowa<br>Moc: 4,8 MW'},
  132.                     {top: '36%', left: '52%', name: 'Turawa', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Mała Panew w miejscowości Turawa<br>Typ: zbiornikowa<br>Moc: 1,8 MW'},
  133.                     {top: '57%', left: '17.5%', name: 'Bystrzyca', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Nysa Kłodzka w miejscowości Bystrzyca Kłodzka<br>Typ: przepływowa<br>Moc: 0,465 MW'},
  134.                     {top: '40%', left: '16%', name: 'Lubachów', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Bystrzyca w miejscowości Lubachów<br>Typ: zbiornikowa<br>Moc: 1,25 MW'},
  135. /*                  {top: '50%', left: '27%', name: 'Ławica', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Nysa Kłodzka w miejscowości Ławica<br>Typ: przepływowa<br>Moc: 0,25 MW'},*/
  136.                     {top: '46%', left: '20%', name: 'Opolnica', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Nysa Kłodzka w miejscowości Opolnica<br>Typ: przepływowa<br>Moc: 0,41 MW'},
  137.                     {top: '28%', left: '35%', name: 'Janowice', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Odra w miejscowości Jeszkowice<br>Typ: przepływowa<br>Moc: 1,52 MW'},
  138.                     {top: '31%', left: '29%', name: 'Marszowice', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Bystrzyca we Wrocławiu<br>Typ: przepływowa<br>Moc: 0,385 MW'},
  139.                     {top: '20%', left: '25%', name: 'Wały Śląskie', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Odra w miejscowości Wały<br>Typ: przepływowa<br>Moc: 9,72 MW'},
  140.                     {top: '26%', left: '32%', name: 'Wrocław I', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Odra we Wrocławiu<br>Typ: przepływowa<br>Moc: 4,83 MW'},
  141.                     {top: '24%', left: '29%', name: 'Wrocław II', desc: 'Elektrownia wodna', type: 'wodna', isLongDesc: true, link: '#', descLong: 'Usytuowana na rzece Odra we Wrocławiu<br>Typ: przepływowa<br>Moc: 1 MW'},
  142.                    
  143.                     {top: '15%', left: '8%', name: 'Zagórze', desc: 'Farma wiatrowa', type: 'wiatrowa', show: 'pl', isLongDesc: true, link: '#', descLong: 'Zlokalizowana w województwie zachodniopomorskim w gminie Wolin (powiat kamieński)<br>15 turbin Vestas V80 o mocy 2 MW każda<br>Łączna moc: 30 MW'},
  144.                     {top: '8%', left: '26%', name: 'Marszewo', desc: 'Farma wiatrowa', type: 'wiatrowa', show: 'pl', isLongDesc: true, link: '#', descLong: 'Zlokalizowana w województwie zachodniopomorskim w gminie Postomino (powiat sławieński)<br>41 turbin Vestas V80 i V90 o mocy 2 MW każda<br>Łączna moc: 82 MW'},
  145.                     {top: '3%', left: '36%', name: 'Wicko', desc: 'Farma wiatrowa', type: 'wiatrowa', show: 'pl', isLongDesc: true, link: '#', descLong: 'Zlokalizowana w województwie pomorskim w gminie Wicko (powiat lęborski)<br>20 turbin Vestas V90 o mocy 2 MW każda<br>Łączna moc: 40 MW'},
  146.                     {top: '75%', left: '79%', name: 'Stalowa Wola', desc: 'Elektrownia węglowa', type: 'weglowa', show: 'pl', isLongDesc: true, link: '#', descLong: '2 bloki węglowe i jeden biomasowy<br>Łączna moc: 330 MW<sub>e</sub> i 335 MW<sub>t</sub>'}
  147.                 ];
  148.                
  149.     <?php } ?>
  150.                
  151.     for(var i = 0; i < points.length; i++) {
  152.         if(points[i].show == 'pl') {
  153.             var showOnPlMap = 'map-point_reversed';
  154.         }
  155.         var htmlPoints = '<div id="point-' + i + '" class="map-point ' + showOnPlMap + '" style="left: ' + points[i].left + '; top: ' + points[i].top + ';">' +
  156.                             '<img src="' + $(".stylesheet_url").text() + '/img/assets/' + points[i].type + '.png" alt="mapa polski" class="map-point_img map-point_img-' + points[i].type + '">' +
  157.                             '<span class="map-point_description">' +
  158.                                 '<h5>' + points[i].name + '</h5>' +
  159.                                 '<p style="font-size: 15px; line-height: 17px;">' + points[i].descLong + '</p>' +
  160.                             '</span>' +
  161.                         '</div>';
  162.        
  163.         $(htmlPoints).appendTo(".map-container");
  164.     }
  165.    
  166.     $(".map-point_img").click(function() {
  167.         var check = true;
  168.         if($(this).parents(".map-point").hasClass("active")) {
  169.             check = false;
  170.         }
  171.         $(".map-point").removeClass("active");
  172.         if(check) {
  173.             $(this).parents(".map-point").toggleClass("active");
  174.             var element = $(this).parents(".map-point").attr("id");
  175.             element = element.split("-")[1];
  176.             if(points[element].isLongDesc) {
  177.                 $(".map-info_heading").text(points[element].name);
  178.                 $(".map-info_text").html(points[element].descLong);
  179.                 $(".map-info").fadeIn();
  180.             } else {
  181.                 $(".map-info").fadeOut("fast", function() {
  182.                     $(".map-info_heading").text('');
  183.                     $(".map-info_text").text('');
  184.                 });
  185.             }
  186.         }
  187.     });
  188.    
  189.     $(".map-polska").hide();
  190.     $(".map-poludnie").fadeIn();
  191.     $(".map-close").fadeIn();
  192.     $(".map-point").fadeIn();
  193.     $(".map-point_reversed").fadeOut();
  194. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement