var places = new Array();
places[0] = new Array();
places[0][0] = "13.086594343185425"; 
places[0][1] = "52.40307999366534"; 
places[0][2] = "<div class=\"bub\"><p><img src=\"images/flatowturm.jpg\" height=\"113\" width=\"150\" alt=\"Flatowturm\"><br /><br /><strong>Flatowturm</strong><br />40-metre high viewing tower built in Park Babelsberg in 1853/56.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(1)\">more info</a></span></p></div>";
places[0][3] = "1"; 
places[0][4] = "Flatowturm"; 
places[1] = new Array();
places[1][0] = "13.093299865722656"; 
places[1][1] = "52.40771082662644"; 
places[1][2] = "<div class=\"bub\"><p><img src=\"images/schloss_babelsberg.jpg\" height=\"113\" width=\"150\" alt=\"Schloss Babelsberg\"><br /><br /><strong>Schloss Babelsberg</strong><br />Neo-Gothic summer palace built for Prince Wilhelm by Karl Friedrich Schinkel, 1835/49.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(2)\">more info</a></span></p></div>";
places[1][3] = "2"; 
places[1][4] = "Schloss Babelsberg"; 
places[2] = new Array();
places[2][0] = "13.04800808429718"; 
places[2][1] = "52.399528813669335"; 
places[2][2] = "<div class=\"bub\"><p><img src=\"images/brandenburger_tor.jpg\" height=\"113\" width=\"150\" alt=\"Brandenburger Tor\"><br /><br /><strong>Brandenburger Tor</strong><br />One of the three surviving city gates. Built in 1770.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(3)\">more info</a></span></p></div>";
places[2][3] = "3"; 
places[2][4] = "Brandenburger Tor"; 
places[3] = new Array();
places[3][0] = "13.052605390548706"; 
places[3][1] = "52.40254324378081"; 
places[3][2] = "<div class=\"bub\"><p><img src=\"images/jaegertor.jpg\" height=\"113\" width=\"150\" alt=\"Jaegertor\"><br /><br /><strong>Jaegertor</strong><br />The oldest of the three surviving city gates. Built in 1733.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(4)\">more info</a></span></p></div>";
places[3][3] = "4"; 
places[3][4] = "Jaegertor"; 
places[4] = new Array();
places[4][0] = "13.057851791381836"; 
places[4][1] = "52.40346618771348"; 
places[4][2] = "<div class=\"bub\"><p><img src=\"images/nauener_tor.jpg\" height=\"113\" width=\"150\" alt=\"Nauener Tor\"><br /><br /><strong>Nauener Tor</strong><br />One of the three surviving city gates. Built in 1755.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(5)\">more info</a></span></p></div>";
places[4][3] = "5"; 
places[4][4] = "Nauener Tor"; 
places[5] = new Array();
places[5][0] = "13.090236783027649"; 
places[5][1] = "52.41348641398539"; 
places[5][2] = "<div class=\"bub\"><p><img src=\"images/glienicker_bruecke.jpg\" height=\"113\" width=\"150\" alt=\"Glienicker Bruecke\"><br /><br /><strong>Glienicker Bruecke</strong><br />Infamous as the Cold War\'s \"Spy-swap\" bridge. Built in 1907.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(6)\">more info</a></span></p></div>";
places[5][3] = "6"; 
places[5][4] = "Glienicker Bruecke"; 
places[6] = new Array();
places[6][0] = "13.015832304954529"; 
places[6][1] = "52.401299529929254"; 
places[6][2] = "<div class=\"bub\"><p><img src=\"images/neues_palais.jpg\" height=\"113\" width=\"150\" alt=\"Neues Palais\"><br /><br /><strong>Neues Palais</strong><br />Built in 1769 by Frederick the Great to demonstrate the continued power of Prussia after the Seven Years\' War.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(7)\">more info</a></span></p></div>";
places[6][3] = "7"; 
places[6][4] = "Neues Palais"; 
places[7] = new Array();
places[7][0] = "13.070796132087708"; 
places[7][1] = "52.419280874941535"; 
places[7][2] = "<div class=\"bub\"><p><img src=\"images/schloss_cecilienhof.jpg\" height=\"113\" width=\"150\" alt=\"Schloss Cecilienhof\"><br /><br /><strong>Schloss Cecilienhof</strong><br />Built for Crown Prince Wilhelm between 1913 &amp; 1917. Scene of the Potsdam Conference in July 1945.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(8)\">more info</a></span></p></div>";
places[7][3] = "8"; 
places[7][4] = "Schloss Cecilienhof"; 
places[8] = new Array();
places[8][0] = "13.069878816604614"; 
places[8][1] = "52.41264875528824"; 
places[8][2] = "<div class=\"bub\"><p><img src=\"images/marmorpalais.jpg\" height=\"113\" width=\"150\" alt=\"Marmorpalais\"><br /><br /><strong>Marmorpalais</strong><br />Neoclassical palace built on the banks of the Heiliger See for Friedrich Wilhelm II between 1787 &amp; 1793.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(9)\">more info</a></span></p></div>";
places[8][3] = "9"; 
places[8][4] = "Marmorpalais"; 
places[9] = new Array();
places[9][0] = "13.059128522872925"; 
places[9][1] = "52.41884574423736"; 
places[9][2] = "<div class=\"bub\"><p><img src=\"images/pfingstberg.jpg\" height=\"113\" width=\"150\" alt=\"Belvedere auf dem Pfingstberg\"><br /><br /><strong>Belvedere auf dem Pfingstberg</strong><br />Huge Italian-Renaissance style viewing towers, built 1847/63 for Friedrich Wilhelm IV. Offers stunning views over Potsdam.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(10)\">more info</a></span></p></div>";
places[9][3] = "10"; 
places[9][4] = "Belvedere auf dem Pfingstberg"; 
places[10] = new Array();
places[10][0] = "13.038470149040222"; 
places[10][1] = "52.40419929253903"; 
places[10][2] = "<div class=\"bub\"><p><img src=\"images/schloss_sanssouci.jpg\" height=\"113\" width=\"150\" alt=\"Schloss Sanssouci\"><br /><br /><strong>Schloss Sanssouci</strong><br />Summer residence of Frederick the Great and his favoured home for 40 years. Built 1745/47.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(11)\">more info</a></span></p></div>";
places[10][3] = "11"; 
places[10][4] = "Schloss Sanssouci"; 
places[11] = new Array();
places[11][0] = "13.04102897644043"; 
places[11][1] = "52.403878560676816"; 
places[11][2] = "<div class=\"bub\"><p><img src=\"images/bildergalerie.jpg\" height=\"113\" width=\"150\" alt=\"Bildergalerie\"><br /><br /><strong>Bildergalerie</strong><br />Built 1755/64 to house Frederick the Great\'s collection of paintings.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(12)\">more info</a></span></p></div>";
places[11][3] = "12"; 
places[11][4] = "Bildergalerie"; 
places[12] = new Array();
places[12][0] = "13.035637736320496"; 
places[12][1] = "52.403692011480366"; 
places[12][2] = "<div class=\"bub\"><p><img src=\"images/neue_kammern.jpg\" height=\"113\" width=\"150\" alt=\"Neue Kammern\"><br /><br /><strong>Neue Kammern</strong><br />Originally an Orangery, converted to opulent guest chambers in 1771-75 under Frederick the Great.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(13)\">more info</a></span></p></div>";
places[12][3] = "13"; 
places[12][4] = "Neue Kammern"; 
places[13] = new Array();
places[13][0] = "13.035696744918823"; 
places[13][1] = "52.40415347384433"; 
places[13][2] = "<div class=\"bub\"><p><img src=\"images/historische_windmuehle.jpg\" height=\"113\" width=\"150\" alt=\"Historische Windmuehle\"><br /><br /><strong>Historische Windmuehle</strong><br />Reconstruction of the windmill built by Friedrich Wilhelm II in 1791.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(14)\">more info</a></span></p></div>";
places[13][3] = "14"; 
places[13][4] = "Historische Windmuehle"; 
places[14] = new Array();
places[14][0] = "13.019233345985413"; 
places[14][1] = "52.40706613907993"; 
places[14][2] = "<div class=\"bub\"><p><img src=\"images/klausberg.jpg\" height=\"113\" width=\"150\" alt=\"Belvedere auf dem Klausberg\"><br /><br /><strong>Belvedere auf dem Klausberg</strong><br />Built 1770/72 for Frederick the Great to take advantage of the view of Potsdam from the Klausberg.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(15)\">more info</a></span></p></div>";
places[14][3] = "15"; 
places[14][4] = "Belvedere auf dem Klausberg"; 
places[15] = new Array();
places[15][0] = "13.03204894065857"; 
places[15][1] = "52.40021288807865"; 
places[15][2] = "<div class=\"bub\"><p><img src=\"images/chinesisches_haus.jpg\" height=\"113\" width=\"150\" alt=\"Chinesisches Haus\"><br /><br /><strong>Chinesisches Haus</strong><br />Gilded Chinese-style pavilion built 1755/64 for Frederick the Great.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(16)\">more info</a></span></p></div>";
places[15][3] = "16"; 
places[15][4] = "Chinesisches Haus"; 
places[16] = new Array();
places[16][0] = "13.025482892990112"; 
places[16][1] = "52.39554853401813"; 
places[16][2] = "<div class=\"bub\"><p><img src=\"images/schloss_charlottenhof.jpg\" height=\"113\" width=\"150\" alt=\"Schloss Charlottenhof\"><br /><br /><strong>Schloss Charlottenhof</strong><br />Neoclassical summer palace built by Karl Friedrich Schinkel for Prince Friedrich Wilhelm (later Friedrich Wilhelm IV) in 1826.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(17)\">more info</a></span></p></div>";
places[16][3] = "17"; 
places[16][4] = "Schloss Charlottenhof"; 
places[17] = new Array();
places[17][0] = "13.027971982955933"; 
places[17][1] = "52.39755181174428"; 
places[17][2] = "<div class=\"bub\"><p><img src=\"images/roemische_baeder.jpg\" height=\"113\" width=\"150\" alt=\"Roemische Baeder\"><br /><br /><strong>Roemische Baeder</strong><br />\"Roman Baths\" built for Friedrich Wilhelm IV between 1829 &amp; 1840.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(18)\">more info</a></span></p></div>";
places[17][3] = "18"; 
places[17][4] = "Roemische Baeder"; 
places[18] = new Array();
places[18][0] = "13.029688596725464"; 
places[18][1] = "52.40524983669935"; 
places[18][2] = "<div class=\"bub\"><p><img src=\"images/orangerie.jpg\" height=\"113\" width=\"150\" alt=\"Orangerie\"><br /><br /><strong>Orangerie</strong><br />Complex of greenhouses, sculptures and terraces, built in the Italian Renaissance style for Friedrich Wilhelm IV in 1851/64.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(19)\">more info</a></span></p></div>";
places[18][3] = "19"; 
places[18][4] = "Orangerie"; 
places[19] = new Array();
places[19][0] = "13.038904666900635"; 
places[19][1] = "52.40958593024701"; 
places[19][2] = "<div class=\"bub\"><p><img src=\"images/ruinenberg.jpg\" height=\"113\" width=\"150\" alt=\"Ruinenberg\"><br /><br /><strong>Ruinenberg</strong><br />Large reservoir, built in 1748 by Frederick the Great to supply the fountains in Park Sanssouci. Decorated with artificial ruins.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(20)\">more info</a></span></p></div>";
places[19][3] = "20"; 
places[19][4] = "Ruinenberg"; 
places[20] = new Array();
places[20][0] = "13.038867115974426"; 
places[20][1] = "52.41021749170586"; 
places[20][2] = "<div class=\"bub\"><p><img src=\"images/normannische_turm.jpg\" height=\"113\" width=\"150\" alt=\"Normannische Turm auf dem Ruinenberg\"><br /><br /><strong>Normannische Turm auf dem Ruinenberg</strong><br />23-metre high viewing tower, built in 1846 to plans by Ludwig Persius.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(21)\">more info</a></span></p></div>";
places[20][3] = "21"; 
places[20][4] = "Normannische Turm"; 
places[21] = new Array();
places[21][0] = "13.043400049209595"; 
places[21][1] = "52.4012046134849"; 
places[21][2] = "<div class=\"bub\"><p><img src=\"images/friedenskirche.jpg\" height=\"113\" width=\"150\" alt=\"Friedenskirche\"><br /><br /><strong>Friedenskirche</strong><br />\"Church of Peace\", built between 1845 &amp; 1854 by Ludwig Persius for Frederick William IV.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(22)\">more info</a></span></p></div>";
places[21][3] = "22"; 
places[21][4] = "Friedenskirche"; 
places[22] = new Array();
places[22][0] = "13.0444997549057"; 
places[22][1] = "52.396275223704265"; 
places[22][2] = "<div class=\"bub\"><p><img src=\"images/dampfmaschinenhaus.jpg\" height=\"113\" width=\"150\" alt=\"Dampfmaschinenhaus / Moschee\"><br /><br /><strong>Dampfmaschinenhaus / Moschee</strong><br />Mosque-style steam pump-house that moved water from the Havel to the fountains of Park Sanssouci. Built 1842 for Frederick William IV.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(23)\">more info</a></span></p></div>";
places[22][3] = "23"; 
places[22][4] = "Dampfmaschinenhaus / Moschee"; 
places[23] = new Array();
places[23][0] = "13.038464784622192"; 
places[23][1] = "52.40333200202916"; 
places[23][2] = "<div class=\"bub\"><p><img src=\"images/weinbergterrassen.jpg\" height=\"113\" width=\"150\" alt=\"Weinbergterrassen\"><br /><br /><strong>Weinbergterrassen</strong><br />Six wide vineyard terraces in front of Schloss Sanssouci, constructed for Frederick the Great in 1744.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(24)\">more info</a></span></p></div>";
places[23][3] = "24"; 
places[23][4] = "Weinbergterrassen"; 
places[24] = new Array();
places[24][0] = "13.05801272392273"; 
places[24][1] = "52.39524410640398"; 
places[24][2] = "<div class=\"bub\"><p><img src=\"images/filmmuseum.jpg\" height=\"113\" width=\"150\" alt=\"Marstall - Filmmuseum\"><br /><br /><strong>Marstall - Filmmuseum</strong><br />Stable block of the former Potsdamer Stadtschloss, built in 1746. Now home of the Filmmuseum Potsdam.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(25)\">more info</a></span></p></div>";
places[24][3] = "25"; 
places[24][4] = "Marstall - Filmmuseum"; 
places[25] = new Array();
places[25][0] = "13.061075806617737"; 
places[25][1] = "52.396203209945206"; 
places[25][2] = "<div class=\"bub\"><p><img src=\"images/nikolaikirche.jpg\" height=\"113\" width=\"150\" alt=\"Nikolaikirche\"><br /><br /><strong>Nikolaikirche</strong><br />Imposing church built 1830/37 by Karl Friedrich Schinkel. The dome was added 1843/49.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(26)\">more info</a></span></p></div>";
places[25][3] = "26"; 
places[25][4] = "Nikolaikirche"; 
places[26] = new Array();
places[26][0] = "13.06073784828186"; 
places[26][1] = "52.39552562018479"; 
places[26][2] = "<div class=\"bub\"><p><img src=\"images/fortunaportal.jpg\" height=\"113\" width=\"150\" alt=\"Fortunaportal\"><br /><br /><strong>Fortunaportal</strong><br />Reconstruction of the gateway to the Potsdamer Stadtschloss (destroyed 1945/1959).<br /><span class=\"sm\"><br /><a href=\"javascript:sh(27)\">more info</a></span></p></div>";
places[26][3] = "27"; 
places[26][4] = "Fortunaportal"; 
places[27] = new Array();
places[27][0] = "13.0697500705719"; 
places[27][1] = "52.42202896966039"; 
places[27][2] = "<div class=\"bub\"><p><img src=\"images/meierei.jpg\" height=\"113\" width=\"150\" alt=\"Meierei\"><br /><br /><strong>Meierei</strong><br />Gothic dairy, built in 1790/92 to plans by Langhans. Refurbished by Friedrich Wilhelm IV, in 1861 it became a pump house.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(28)\">more info</a></span></p></div>";
places[27][3] = "28"; 
places[27][4] = "Meierei"; 
places[28] = new Array();
places[28][0] = "13.057562112808228"; 
places[28][1] = "52.41523039452406"; 
places[28][2] = "<div class=\"bub\"><p><img src=\"images/russische_kirche.jpg\" height=\"113\" width=\"150\" alt=\"Russisch-Orthodoxe Kirche\"><br /><br /><strong>Russisch-Orthodoxe Kirche</strong><br />Built in 1829 in memory of Tsar Alexander I for the use of the inhabitants of the Alexandrowka Russian colony.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(29)\">more info</a></span></p></div>";
places[28][3] = "29"; 
places[28][4] = "Russisch-Orthodoxe Kirche"; 
places[29] = new Array();
places[29][0] = "13.057159781455994"; 
places[29][1] = "52.410940667555245"; 
places[29][2] = "<div class=\"bub\"><p><img src=\"images/alexandrowka.jpg\" height=\"113\" width=\"150\" alt=\"Alexandrowka - Russische Kolonie\"><br /><br /><strong>Alexandrowka - Russische Kolonie</strong><br />Traditionally-styled Russian village, built in 1826/27 to house the members of a Russian choir, captured during the Napoleonic Wars.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(30)\">more info</a></span></p></div>";
places[29][3] = "30"; 
places[29][4] = "Alexandrowka - Russische Kolonie"; 
places[30] = new Array();
places[30][0] = "13.095429539680481"; 
places[30][1] = "52.41384961261635"; 
places[30][2] = "<div class=\"bub\"><p><img src=\"images/schloss_glienicke.jpg\" height=\"113\" width=\"150\" alt=\"Schloss Glienicke\"><br /><br /><strong>Schloss Glienicke</strong><br />Built in 1826 to designs by Karl Friedrich Schinkel for Prinz Carl von Preu&szlig;en.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(31)\">more info</a></span></p></div>";
places[30][3] = "31"; 
places[30][4] = "Schloss Glienicke"; 
places[31] = new Array();
places[31][0] = "13.021481037139893"; 
places[31][1] = "52.40610399902554"; 
places[31][2] = "<div class=\"bub\"><p><img src=\"images/drachenhaus.jpg\" height=\"113\" width=\"150\" alt=\"Drachenhaus\"><br /><br /><strong>Drachenhaus</strong><br />Chinese pagoda built 1770/72 for Frederick the Great.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(32)\">more info</a></span></p></div>";
places[31][3] = "32"; 
places[31][4] = "Drachenhaus"; 
places[32] = new Array();
places[32][0] = "13.067024946212769"; 
places[32][1] = "52.40642798730566"; 
places[32][2] = "<div class=\"bub\"><p><img src=\"images/gotische_bibliothek.jpg\" height=\"113\" width=\"150\" alt=\"Gotische Bibliothek\"><br /><br /><strong>Gotische Bibliothek</strong><br />Gothic pavilion built 1792/94 to house the library of Friedrich Wilhelm II.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(33)\">more info</a></span></p></div>";
places[32][3] = "33"; 
places[32][4] = "Gotische Bibliothek"; 
places[33] = new Array();
places[33][0] = "13.03027868270874"; 
places[33][1] = "52.408237696254105"; 
places[33][2] = "<div class=\"bub\"><p><img src=\"images/krongut_bornstedt.jpg\" height=\"113\" width=\"150\" alt=\"Krongut Bornstedt\"><br /><br /><strong>Krongut Bornstedt</strong><br />Italian-style crown estate built in 1848. Home of Prince Friedrich Wilhelm and his English wife between 1867 &amp; 1888.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(34)\">more info</a></span></p></div>";
places[33][3] = "34"; 
places[33][4] = "Krongut Bornstedt"; 
places[34] = new Array();
places[34][0] = "13.060593008995056"; 
places[34][1] = "52.40296871678683"; 
places[34][2] = "<div class=\"bub\"><p><img src=\"images/hollaendisches_viertel.jpg\" height=\"113\" width=\"150\" alt=\"Hollaendisches Viertel\"><br /><br /><strong>Hollaendisches Viertel</strong><br />Collection of 134 Dutch-style houses built 1733/40 to encourage Dutch immigrants.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(35)\">more info</a></span></p></div>";
places[34][3] = "35"; 
places[34][4] = "Hollaendisches Viertel"; 
places[35] = new Array();
places[35][0] = "13.063892126083374"; 
places[35][1] = "52.378919783642644"; 
places[35][2] = "<div class=\"bub\"><p><img src=\"images/einsteinturm.jpg\" height=\"113\" width=\"150\" alt=\"Einsteinturm\"><br /><br /><strong>Einsteinturm</strong><br />Solar observatory, built to designs by Erich Mendelsohn in 1920/24. It was used by Albert Einstain to prove his theory of relativity.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(36)\">more info</a></span></p></div>";
places[35][3] = "36"; 
places[35][4] = "Einsteinturm"; 
places[36] = new Array();
places[36][0] = "13.059627413749695"; 
places[36][1] = "52.41826665385834"; 
places[36][2] = "<div class=\"bub\"><p><img src=\"images/pomonatempel.jpg\" height=\"113\" width=\"150\" alt=\"Pomonatempel\"><br /><br /><strong>Pomonatempel</strong><br />Believed to be Karl Friedrich Schinkel\'s first building. Constructed in 1800, when he was just 19.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(37)\">more info</a></span></p></div>";
places[36][3] = "37"; 
places[36][4] = "Pomonatempel"; 
places[37] = new Array();
places[37][0] = "13.013252019882202"; 
places[37][1] = "52.40178720085461"; 
places[37][2] = "<div class=\"bub\"><p><img src=\"images/communs_north.jpg\" height=\"113\" width=\"150\" alt=\"Communs\"><br /><br /><strong>Communs</strong><br />The northern of the two ornate Communs buildings. Built as servant quarters, and later guest accomodation for the Neues Palais, 1766/69.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(38)\">more info</a></span></p></div>";
places[37][3] = "38"; 
places[37][4] = "Communs"; 
places[38] = new Array();
places[38][0] = "13.013386130332947"; 
places[38][1] = "52.400595834194185"; 
places[38][2] = "<div class=\"bub\"><p><img src=\"images/communs_south.jpg\" height=\"113\" width=\"150\" alt=\"Communs\"><br /><br /><strong>Communs</strong><br />The southern of the two ornate Communs buildings. Built as kitchens and servant quarters for the Neues Palais, 1766/69.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(39)\">more info</a></span></p></div>";
places[38][3] = "39"; 
places[38][4] = "Communs"; 
places[39] = new Array();
places[39][0] = "13.03977370262146"; 
places[39][1] = "52.404068381856504"; 
places[39][2] = "<div class=\"bub\"><p><img src=\"images/frederick_grave.jpg\" height=\"113\" width=\"150\" alt=\"Grave of Frederick the Great\"><br /><br /><strong>Grave of Frederick the Great</strong><br />Frederick was buried beside his beloved Sanssouci - and his hunting dogs - in 1991.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(40)\">more info</a></span></p></div>";
places[39][3] = "40"; 
places[39][4] = "Grave of Frederick the Great"; 
places[40] = new Array();
places[40][0] = "13.069186806678772"; 
places[40][1] = "52.41192887963411"; 
places[40][2] = "<div class=\"bub\"><p><img src=\"images/schlosskueche.jpg\" height=\"113\" width=\"150\" alt=\"Schlosskueche, Marmorpalais\"><br /><br /><strong>Schlosskueche, Marmorpalais</strong><br />Kitchens of the Marmorpalais. Built in 1788/90 in the style of an ancient ruin.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(41)\">more info</a></span></p></div>";
places[40][3] = "41"; 
places[40][4] = "Schlosskueche, Marmorpalais"; 
places[41] = new Array();
places[41][0] = "13.045234680175781"; 
places[41][1] = "52.402445057119834"; 
places[41][2] = "<div class=\"bub\"><p><img src=\"images/obelisk.jpg\" height=\"113\" width=\"150\" alt=\"Obelisk\"><br /><br /><strong>Obelisk</strong><br />Constructed in 1747/48, marking the beginning of the 2km-long Hauptallee, leading to the Neues Palais.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(42)\">more info</a></span></p></div>";
places[41][3] = "42"; 
places[41][4] = "Obelisk"; 
places[42] = new Array();
places[42][0] = "13.096244931221008"; 
places[42][1] = "52.40856166886335"; 
places[42][2] = "<div class=\"bub\"><p><img src=\"images/maschinenhaus_babelsberg.jpg\" height=\"113\" width=\"150\" alt=\"Maschinenhaus, Park Babelsberg\"><br /><br /><strong>Maschinenhaus, Park Babelsberg</strong><br />Steam pump house built by Ludwig Persius in 1843/45 to power the fountains of Park Babelsberg.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(43)\">more info</a></span></p></div>";
places[42][3] = "43"; 
places[42][4] = "Maschinenhaus, Park Babelsberg"; 
places[43] = new Array();
places[43][0] = "13.069449663162231"; 
places[43][1] = "52.41493264663135"; 
places[43][2] = "<div class=\"bub\"><p><img src=\"images/pyramide.jpg\" height=\"113\" width=\"150\" alt=\"Pyramide\"><br /><br /><strong>Pyramide</strong><br />Large stone pyramid built as an ornamental refrigerator in 1791/92 by Carl Gotthard Langhans.<br /><span class=\"sm\"><br /><a href=\"javascript:sh(44)\">more info</a></span></p></div>";
places[43][3] = "44"; 
places[43][4] = "Pyramide"; 

notOpra=1;

function extLinks(){
 if (!document.getElementsByTagName) return;
 var ancs = document.getElementsByTagName('a');
 for (var i=0; i<ancs.length; i++) {
  var anchor = ancs[i];
  if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
  anchor.target = "_blank";
 }
}

var curcen;
var markercen;
var zoomlev;
var mmico=0;
var infoopen=0;
var map;
var markerarr=new Array();
var tny=0;

function createMarker(p, info) {
  var marker = new GMarker(p);

  // Show this marker info when clicked.
  GEvent.addListener(marker, 'click', function() {
  	nin();
	marker.openInfoWindowHtml(info);
	markercen=p;
	infoopen=1;
	GEvent.addListener(marker, 'infowindowclose', function() {
		infoopen=0;
  	});
  });

  return marker;
}

function createMarker2(p,ic) {
  var markersm = new GMarker(p,ic);

  return markersm;
}


function onLoad() {

  if (GBrowserIsCompatible() && notOpra) {

		if(!tny){
			document.getElementById("instr").style.display="block";
			document.getElementById("potsdam").style.display="block";
		}
		
		extLinks();

		// Pre-selected?
		var lcok=0;
		if(lc!=-1 && lc<=places.length && lc>=0){lcok=1;}
		if(lcok){zm=0}else{zm=2}

		// Create map and center
		map = new GMap(document.getElementById("mapmain"));
		map.centerAndZoom(new GPoint(13.044226169586182,52.402445057119834), zm);
		map.setMapType(G_HYBRID_TYPE);
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl());


		curcen = map.getCenterLatLng();
		markercen = map.getCenterLatLng();
		zoomlev = map.getZoomLevel();


		// Create thumbnail map and center
		map2 = new GMap(document.getElementById("mapthumb"));
		map2.centerAndZoom(new GPoint(13.044226169586182,52.402445057119834), 6);
		map2.setMapType(G_MAP_TYPE);
		map2.disableDragging();



		// Create "tiny" marker icon
		var icon = new GIcon();
		icon.image = "images/icosm2.png";
		icon.shadow = "images/icosm-shadow2.png";
		icon.iconSize = new GSize(5, 5);
		icon.shadowSize = new GSize(6, 6);
		icon.iconAnchor = new GPoint(2, 2);


		// Dropdown array
		var drops = new Array();

		// Create markers from places array
		for(i=0;i<places.length;i++){

			var p = new GPoint(places[i][0],places[i][1]);

			markerarr[i] = createMarker(p, places[i][2]);
			var markersm = createMarker2(p, icon);

			// Put pointers on maps
			map.addOverlay(markerarr[i]);
			map2.addOverlay(markersm);
			
			
			// Build dropdown array
			drops[i]=places[i][4]+"XXX"+places[i][3];

		}
	
		
		// Sort dropdown into alphabetic
		drops.sort();

		// Build actual dropdown
		for(h=0;h<drops.length;h++){
			bits=drops[h].split("XXX");
			newOpt=new Option(bits[0],bits[1]);
	    		document.getElementById('f1').tar.options[h+1]=newOpt;
		}
		
		// Pre-selected?
		if(lcok){
			promp(lc);
		}


		// Add u-r-here box to thumbnail map
		var bounds = map.getBoundsLatLng();

		var map2box=new GPolyline([

				new GPoint(bounds.minX,bounds.maxY),
				new GPoint(bounds.maxX,bounds.maxY),
				new GPoint(bounds.maxX,bounds.minY),
				new GPoint(bounds.minX,bounds.minY),
				new GPoint(bounds.minX,bounds.maxY)

			],'#640000', 1, 1);	
			
		map2.addOverlay(map2box);	

		// And update it & mapref vars whenever main map moves
		GEvent.addListener(map, 'moveend', function(){

				if(document.getElementById("potsdam")){
					document.getElementById("potsdam").style.display="none";
				}				

				bounds = map.getBoundsLatLng();

				map2.removeOverlay(map2box);

				map2box=new GPolyline([

						new GPoint(bounds.minX,bounds.maxY),
						new GPoint(bounds.maxX,bounds.maxY),
						new GPoint(bounds.maxX,bounds.minY),
						new GPoint(bounds.minX,bounds.minY),
						new GPoint(bounds.minX,bounds.maxY)

					],'#640000', 1, 1);	

				map2.addOverlay(map2box);
				
				zoomlev = map.getZoomLevel();
				
				if(!infoopen){
					curcen = map.getCenterLatLng();
				}
				else{
					curcen.x=bounds.minX+((bounds.maxX-bounds.minX)/2);
					curcen.y=bounds.minY+((bounds.maxY-bounds.minY)/2);
				}

		});




		// Allow dragging of thumbnail square
		GEvent.addListener(map2, 'click', function(overlay, point) {
	
				map.recenterOrPanToLatLng(point);	

		});




  }
  else{
  	alert("We're really sorry, but...\n\nThis site uses AJAX.\nAnd your browser does not fully support AJAX.\n\nThe following browsers DO work:\nInternet Explorer 6.0+\nFirefox 0.8+\nNetscape 7.1+\nMozilla 1.4+\nOpera 8.02+\nSafari 1.2.4+\n ");
  }
}


function sh(n){

	sz="height=400,width=450,resizable,scrollbars";
	if (typeof(opWin) =="undefined" || opWin.closed == true){
		opWin=window.open('','op',sz);
	}
	opWin.location.href='potsdam_tourist_sights/info-'+n+'.htm';
	opWin.focus();

}


function jump(){
	if(GBrowserIsCompatible() && notOpra && document.getElementById('f1').tar.selectedIndex!=0){
		nin();
		map.closeInfoWindow();
		i=document.getElementById('f1').tar.options[document.getElementById('f1').tar.selectedIndex].value-1;
		markerarr[i].openInfoWindowHtml(places[i][2]);
		p = new GPoint(places[i][0],places[i][1]);
		markercen=p;
		infoopen=1;
		GEvent.addListener(markerarr[i], 'infowindowclose', function() {
			infoopen=0;
		});
  	}
}
function jump2(i){
	if(GBrowserIsCompatible() && notOpra){
		nin();
		sh(i)
		map.closeInfoWindow();
		i=i-1;
		if(markerarr[i]){
			markerarr[i].openInfoWindowHtml(places[i][2]);
			p = new GPoint(places[i][0],places[i][1]);
			markercen=p;
			infoopen=1;
			GEvent.addListener(markerarr[i], 'infowindowclose', function() {
				infoopen=0;
			});
		}
  	}
}

function promp(n){
	for(h=0;h<document.getElementById('f1').tar.options.length;h++){
		if(document.getElementById('f1').tar.options[h].value==n){
			document.getElementById('f1').tar.options[h].selected=1;
			jump();
			nin();
			break;
		}
	}
}

function nin(){
	if(document.getElementById("instr")){
		document.getElementById("instr").style.display="none";
	}
	if(document.getElementById("potsdam")){
		document.getElementById("potsdam").style.display="none";
	}
}

function narro(){
	if(document.getElementById){
		document.getElementById("mapmain").style.width="350px";
		document.getElementById("mapmain").style.height="300px";
		document.getElementById("instr").style.display="none";
		document.getElementById("potsdam").style.display="none";
	}
}
function wider(){
	if(document.getElementById){
		document.getElementById("mapmain").style.width="600px";
		document.getElementById("mapmain").style.height="510px";
	}
}

function zmin(){
	if (GBrowserIsCompatible() && notOpra) {
		map.zoomTo(zoomlev-1);
		zoomlev=map.getZoomLevel();
	}
}

