function fotografie(i)
{
var txt;

txt = "<HTML> \n";
txt += "<HEAD> \n";
txt += "<TITLE>Železnice - Bernina</TITLE> \n";
txt += "<META http-equiv='content-type' content='text/html; charset=iso-8859-2'> \n";
txt += "<LINK href='../../etc/mv.css' type=text/css rel=STYLESHEET> \n\n";
txt += "<link rel='shortcut icon' href='http://www.martinvalek.net/favicon.ico' /> \n";
txt += "<sc" + "ript language='JavaScript'> \n";
txt += "<!-- \n";
// Celkový počet fotek
txt += "pocet_obrazku = 70; \n"; 
txt += "show = false; \n"; 
// jména suborů
txt += "images = new Array (); \n";
txt += "images[1] = 'fotky/2009-09-2052.jpg'; \n";
txt += "images[2] = 'fotky/2009-09-2061.jpg'; \n";
txt += "images[3] = 'fotky/2009-09-2118.jpg'; \n";
txt += "images[4] = 'fotky/2009-09-1699.jpg'; \n";
txt += "images[5] = 'fotky/2009-09-1719.jpg'; \n";
txt += "images[6] = 'fotky/2010-02-0222.jpg'; \n";
txt += "images[7] = 'fotky/2010-02-0209.jpg'; \n";
txt += "images[8] = 'fotky/2010-02-0188.jpg'; \n";
txt += "images[9] = 'fotky/2010-02-0179.jpg'; \n";
txt += "images[10] = 'fotky/2010-02-0096.jpg'; \n";
txt += "images[11] = 'fotky/2010-02-0161.jpg'; \n";
txt += "images[12] = 'fotky/2010-02-0136.jpg'; \n";
txt += "images[13] = 'fotky/2010-02-0127.jpg'; \n";
txt += "images[14] = 'fotky/2010-02-0105.jpg'; \n";
txt += "images[15] = 'fotky/2010-02-0145.jpg'; \n";
txt += "images[16] = 'fotky/2010-02-0071.jpg'; \n";
txt += "images[17] = 'fotky/2010-02-1421.jpg'; \n";
txt += "images[18] = 'fotky/2010-02-1545.jpg'; \n";
txt += "images[19] = 'fotky/2010-02-1615.jpg'; \n";
txt += "images[20] = 'fotky/2010-02-1487.jpg'; \n";
txt += "images[21] = 'fotky/2010-02-1700.jpg'; \n";
txt += "images[22] = 'fotky/2010-02-1503.jpg'; \n";
txt += "images[23] = 'fotky/2010-02-1635.jpg'; \n";
txt += "images[24] = 'fotky/2010-02-1627.jpg'; \n";
txt += "images[25] = 'fotky/2010-02-1506-1.jpg'; \n";
txt += "images[26] = 'fotky/2010-02-1506-2.jpg'; \n";
txt += "images[27] = 'fotky/2010-02-1539.jpg'; \n";
txt += "images[28] = 'fotky/2010-02-1834.jpg'; \n";
txt += "images[29] = 'fotky/2010-09-5408.jpg'; \n";
txt += "images[30] = 'fotky/2010-09-5681.jpg'; \n";
txt += "images[31] = 'fotky/2010-09-5799.jpg'; \n";
txt += "images[32] = 'fotky/2010-09-6040.jpg'; \n";
txt += "images[33] = 'fotky/2010-09-5472.jpg'; \n";
txt += "images[34] = 'fotky/2010-09-5564.jpg'; \n";
txt += "images[35] = 'fotky/2010-09-5587.jpg'; \n";
txt += "images[36] = 'fotky/2010-09-5645.jpg'; \n";
txt += "images[37] = 'fotky/2010-09-5843.jpg'; \n";
txt += "images[38] = 'fotky/2010-10-6829.jpg'; \n";
txt += "images[39] = 'fotky/2010-10-6852.jpg'; \n";
txt += "images[40] = 'fotky/2010-10-6889.jpg'; \n";
txt += "images[41] = 'fotky/2010-10-6903.jpg'; \n";
txt += "images[42] = 'fotky/2010-10-6919.jpg'; \n";
txt += "images[43] = 'fotky/2010-10-7016.jpg'; \n";
txt += "images[44] = 'fotky/2010-10-7038.jpg'; \n";
txt += "images[45] = 'fotky/2010-10-7056.jpg'; \n";
txt += "images[46] = 'fotky/2011-02-1074.jpg'; \n";
txt += "images[47] = 'fotky/2011-02-1114.jpg'; \n";
txt += "images[48] = 'fotky/2011-02-1142.jpg'; \n";
txt += "images[49] = 'fotky/2011-02-1219.jpg'; \n";
txt += "images[50] = 'fotky/2011-02-1373.jpg'; \n";
txt += "images[51] = 'fotky/2011-02-1548.jpg'; \n";
txt += "images[52] = 'fotky/2011-02-1557.jpg'; \n";
txt += "images[53] = 'fotky/2011-02-1567.jpg'; \n";
txt += "images[54] = 'fotky/2011-02-0503.jpg'; \n";
txt += "images[55] = 'fotky/2011-02-0534.jpg'; \n";
txt += "images[56] = 'fotky/2011-05-0359.jpg'; \n";
txt += "images[57] = 'fotky/2011-07-1939.jpg'; \n";
txt += "images[58] = 'fotky/2011-07-1800.jpg'; \n";
txt += "images[59] = 'fotky/2011-07-1855.jpg'; \n";
txt += "images[60] = 'fotky/2011-07-1355.jpg'; \n";
txt += "images[61] = 'fotky/2011-07-1385.jpg'; \n";
txt += "images[62] = 'fotky/2011-07-1398.jpg'; \n";
txt += "images[63] = 'fotky/2011-07-1437.jpg'; \n";
txt += "images[64] = 'fotky/2011-07-1477.jpg'; \n";
txt += "images[65] = 'fotky/2011-07-1463.jpg'; \n";
txt += "images[66] = 'fotky/2011-07-2036.jpg'; \n";
txt += "images[67] = 'fotky/2011-07-2056.jpg'; \n";
txt += "images[68] = 'fotky/2011-07-1495.jpg'; \n";
txt += "images[69] = 'fotky/2011-07-1982.jpg'; \n";
txt += "images[70] = 'fotky/2011-07-1995.jpg'; \n";
// Komentáře fotografií
txt += "comment = new Array () \n";
txt += "comment[1] = 'ABe 4/4 Nr. 41 + 42 RhB, BEX 961 Bernina Express, Bernina Lagalb - Ospizio Bernina'; \n";
txt += "comment[2] = 'ABe 4/4 Nr. 47 + 48 RhB, BEX 951 Bernina Express, Bernina Lagalb - Ospizio Bernina'; \n";
txt += "comment[3] = 'Gem 4/4 Nr. 801 + ABe 4/4 Nr. 44 RhB, R 1650, Ospizio Bernina - Bernina Lagalb'; \n";
txt += "comment[4] = 'ABe 4/4 Nr. 52 RhB, R 1627, Brusio - Campascio'; \n";
txt += "comment[5] = 'ABe 4/4 Nr. 55 + 54 RhB, R 1656, Campascio - Brusio'; \n";  
txt += "comment[6] = 'ABe 4/4 Nr. 41 + 42 RhB, R 1652, Ospizio Bernina - Bernina Lagalb'; \n";  
txt += "comment[7] = 'ABe 8/12 Nr. 3502 RhB, R 1633, Bernina Lagalb - Ospizio Bernina'; \n";
txt += "comment[8] = 'ABe 4/4 Nr. 55 + 53 RhB, R 1629, Bernina Lagalb - Ospizio Bernina'; \n";
txt += "comment[9] = 'ABe 4/4 Nr. 45 + 47 RhB, R 1644, Ospizio Bernina - Bernina Lagalb'; \n";
txt += "comment[10] = 'ABe 4/4 Nr. 54 + 56 RhB, R 1621, Bernina Lagalb - Ospizio Bernina'; \n";
txt += "comment[11] = 'ABe 4/4 Nr. 52 RhB, BEX 955 Bernina Express, Bernina Lagalb - Ospizio Bernina'; \n";  
txt += "comment[12] = 'ABe 4/4 Nr. 46 + 48 RhB, R 1625, Bernina Lagalb - Ospizio Bernina'; \n";  
txt += "comment[13] = 'ABe 8/12 Nr. 3502 RhB, R 1640, Ospizio Bernina - Bernina Lagalb'; \n";
txt += "comment[14] = 'ABe 4/4 Nr. 54 + 56 RhB, R 1621, Bernina Lagalb - Ospizio Bernina'; \n";
txt += "comment[15] = 'ABe 4/4 Nr. 46 + 48 RhB, R 1625, Bernina Lagalb - Ospizio Bernina'; \n";
txt += "comment[16] = 'ABe 4/4 Nr. 42 + 41 RhB, R 1617, Ospizio Bernina - Alp Grüm'; \n";
txt += "comment[17] = 'Cesta na Ospizio Bernina'; \n";  
txt += "comment[18] = 'ABe 4/4 Nr. 45 RhB, R 1640, Ospizio Bernina - Bernina Lagalb'; \n";  
txt += "comment[19] = 'ABe 4/4 Nr. 52 + 55 RhB, R 1629, Ospizio Bernina'; \n";
txt += "comment[20] = 'ABe 4/4 Nr. 55 + 52 RhB, BEX 972 Bernina Express, Alp Grüm'; \n";
txt += "comment[21] = 'ABe 4/4 Nr. 47 + 41 RhB, R 1652, Alp Grüm'; \n";
txt += "comment[22] = 'X rot et Nr. 9219 + Gem 4/4 Nr. 801 RhB, Ospizio Bernina'; \n";
txt += "comment[23] = 'X rot et Nr. 9219 RhB, Alp Grüm'; \n";  
txt += "comment[24] = 'X rot et Nr. 9219 RhB, Alp Grüm'; \n";  
txt += "comment[25] = 'X rot et Nr. 9219 + Gem 4/4 Nr. 801 RhB, Ospizio Bernina'; \n";
txt += "comment[26] = 'X rot et Nr. 9219 + Gem 4/4 Nr. 801 RhB, Ospizio Bernina'; \n";
txt += "comment[27] = 'Xe 4/4 Nr. 9922 RhB, Ospizio Bernina'; \n";
txt += "comment[28] = 'ABe 4/4 Nr. 45 + 43 RhB, R 1644, Morteratsch'; \n";
txt += "comment[29] = 'Ge 4/4 Nr. 182 RhB, Ospizio Bernina - Bernina Lagalb'; \n";  
txt += "comment[30] = 'ABe 4/4 Nr. 34 + 30 RhB, Bernina Lagalb - Ospizio Bernina'; \n";
txt += "comment[31] = 'ABe 4/4 Nr. 30 + 34 RhB, Ospizio Bernina - Bernina Lagalb'; \n";
txt += "comment[32] = 'ABe 4/4 Nr. 30 + 34 RhB, Alp Grüm - Ospizio Bernina'; \n";
txt += "comment[33] = 'ABe 4/4 Nr. 48 + 44 RhB, R 1648, Ospizio Bernina - Bernina Lagalb'; \n";
txt += "comment[34] = 'ABe 4/4 Nr. 44 + 48 RhB, R 1641, Bernina Lagalb - Ospizio Bernina'; \n";  
txt += "comment[35] = 'ABe 4/4 Nr. 52 + 51 RhB, BEX 950 Bernina Express, Ospizio Bernina - Bernina Lagalb'; \n";  
txt += "comment[36] = 'ABe 8/12 Nr. 3503 RhB, R 1645, Bernina Lagalb - Ospizio Bernina'; \n";
txt += "comment[37] = 'ABe 4/4 Nr. 44 + 48 RhB, R 1633, Bernina Lagalb - Ospizio Bernina'; \n";
txt += "comment[38] = 'ABe 8/12 Nr. 3505 RhB, R 1617, Bernina Lagalb - Ospizio Bernina'; \n";
txt += "comment[39] = 'ABe 4/4 Nr. 52 + 51 RhB, R 1636, Ospizio Bernina - Bernina Lagalb'; \n";
txt += "comment[40] = 'ABe 4/4 Nr. 34 + 30 RhB, Stablini - Cavaglia'; \n";  
txt += "comment[41] = 'ABe 4/4 Nr. 53 + 56 RhB, R 1625, Stablini - Cavaglia'; \n";  
txt += "comment[42] = 'ABe 8/12 Nr. 3507 RhB, R 1644, Cavaglia - Stablini'; \n";
txt += "comment[43] = 'ABe 8/12 Nr. 3504 RhB, R 1633, Cavaglia'; \n";
txt += "comment[44] = 'ABe 4/4 Nr. 52 + 51 RhB, R 1656, Cavaglia'; \n";
txt += "comment[45] = 'ABe 8/12 Nr. 3507 RhB, R 1637, Cavaglia'; \n";
txt += "comment[46] = 'ABe 8/12 Nr. 3502 RhB, R 1632, Ospizio Bernina - Bernina Lagalb'; \n";
txt += "comment[47] = 'ABe 8/12 Nr. 3511 RhB, R 1617, Bernina Lagalb - Ospizio Bernina'; \n";
txt += "comment[48] = 'ABe 8/12 Nr. 3511 RhB, R 1617, Bernina Lagalb - Ospizio Bernina'; \n";
txt += "comment[49] = 'X rot d Nr. 9213 + Gem 4/4 Nr. 802 RhB, Bernina Lagalb - Ospizio Bernina'; \n";  
txt += "comment[50] = 'X rot d Nr. 9213 + Gem 4/4 Nr. 802 RhB, Bernina Lagalb - Ospizio Bernina'; \n";  
txt += "comment[51] = 'X rot d Nr. 9213 RhB, Ospizio Bernina - Alp Grüm'; \n";
txt += "comment[52] = 'X rot d Nr. 9213 RhB, Ospizio Bernina - Alp Grüm'; \n";
txt += "comment[53] = 'X rot d Nr. 9213 RhB, Ospizio Bernina - Alp Grüm'; \n";
txt += "comment[54] = 'ABe 4/4 Nr. 53 + 56 RhB, R 1636, Alp Grüm - Ospizio Bernina'; \n";
txt += "comment[55] = 'ABe 8/12 Nr. 3511 + ABe 4/4 Nr. 46 + Xe 4/4 Nr. 9922 RhB, Alp Grüm'; \n";  
txt += "comment[56] = 'ABe 8/12 RhB, R 1645, Morteratsch - Bernina Suot'; \n";
txt += "comment[57] = 'ABe 8/12 Nr. 3515 RhB, R 1625, Morteratsch - Bernina Suot'; \n";
txt += "comment[58] = 'ABe 4/4 Nr. 56 + 53 RhB, R 1628, Morteratsch - Surovas'; \n";
txt += "comment[59] = 'ABe 8/12 Nr. 3507 RhB, BEX 961 Bernina Express, Morteratsch - Bernina Suot'; \n";
txt += "comment[60] = 'ABe 8/12 Nr. 3511 RhB, R 1633, Bernina Lagalb - Ospizio Bernina'; \n";  
txt += "comment[61] = 'ABe 8/12 Nr. 3507 RhB, R 1652, Ospizio Bernina - Bernina Lagalb'; \n";  
txt += "comment[62] = 'ABe 8/12 Nr. 3504 RhB, R 1637, Bernina Lagalb - Ospizio Bernina'; \n";
txt += "comment[63] = 'ABe 4/4 Nr. 51 + 52 RhB, BEX 975 Bernina Express, Bernina Lagalb - Ospizio Bernina'; \n";
txt += "comment[64] = 'ABe 8/12, R 1645, Bernina Lagalb - Ospizio Bernina'; \n";
txt += "comment[65] = 'ABe 4/4 Nr. 54 + 56 RhB, R 1660, Ospizio Bernina - Bernina Lagalb'; \n";
txt += "comment[66] = 'ABe 8/12, R 1645, R 1641, Privilasco - Poschiavo'; \n";  
txt += "comment[67] = 'ABe 8/12, R 1645, R 1664, Poschiavo - Privilasco'; \n";  
txt += "comment[68] = 'ABe 8/12, R 1645, R 4672, Li Curt - Poschiavo'; \n";
txt += "comment[69] = 'ABe 4/4 Nr. 51 + 52 RhB, BEX 973 Bernina Express, Le Prese - Miralago'; \n";
txt += "comment[70] = 'ABe 8/12 Nr. 3515 RhB, BEX 952 Bernina Express, Tirano - Campocologno'; \n";

// Data fotografií
txt += "date = new Array () \n";
txt += "date[1] = '18.9.2009'; \n";
txt += "date[2] = '18.9.2009'; \n";
txt += "date[3] = '18.9.2009'; \n";
txt += "date[4] = '16.9.2009'; \n";
txt += "date[5] = '16.9.2009'; \n";
txt += "date[6] = '13.2.2010'; \n";
txt += "date[7] = '13.2.2010'; \n";
txt += "date[8] = '13.2.2010'; \n";
txt += "date[9] = '13.2.2010'; \n";
txt += "date[10] = '13.2.2010'; \n";
txt += "date[11] = '13.2.2010'; \n";
txt += "date[12] = '13.2.2010'; \n";
txt += "date[13] = '13.2.2010'; \n";
txt += "date[14] = '13.2.2010'; \n";
txt += "date[15] = '13.2.2010'; \n";
txt += "date[16] = '13.2.2010'; \n";
txt += "date[17] = 'ABe 4/4 II Nr. 41 + 47 RhB, R 1617, Bernina Lagalb - Ospizio Bernina, 19.2.2010'; \n";
txt += "date[18] = '19.2.2010'; \n";
txt += "date[19] = '19.2.2010'; \n";
txt += "date[20] = '19.2.2010'; \n";
txt += "date[21] = '19.2.2010'; \n";
txt += "date[22] = '19.2.2010'; \n";
txt += "date[23] = '19.2.2010'; \n";
txt += "date[24] = '19.2.2010'; \n";
txt += "date[25] = '19.2.2010'; \n";
txt += "date[26] = '19.2.2010'; \n";
txt += "date[27] = '19.2.2010'; \n";
txt += "date[28] = '20.2.2010'; \n";
txt += "date[29] = '16.9.2010'; \n";
txt += "date[30] = '16.9.2010'; \n";
txt += "date[31] = '17.9.2010'; \n";
txt += "date[32] = '19.9.2010'; \n";
txt += "date[33] = '16.9.2010'; \n";
txt += "date[34] = '16.9.2010'; \n";
txt += "date[35] = '16.9.2010'; \n";
txt += "date[36] = '16.9.2010'; \n";
txt += "date[37] = '17.9.2010'; \n";
txt += "date[38] = '29.10.2010'; \n";
txt += "date[39] = '29.10.2010'; \n";
txt += "date[40] = '29.10.2010'; \n";
txt += "date[41] = '29.10.2010'; \n";
txt += "date[42] = '29.10.2010'; \n";
txt += "date[43] = '29.10.2010'; \n";
txt += "date[44] = '29.10.2010'; \n";
txt += "date[45] = '29.10.2010'; \n";
txt += "date[46] = '26.2.2011'; \n";
txt += "date[47] = '26.2.2011'; \n";
txt += "date[48] = '26.2.2011'; \n";
txt += "date[49] = '26.2.2011'; \n";
txt += "date[50] = '26.2.2011'; \n";
txt += "date[51] = '26.2.2011'; \n";
txt += "date[52] = '26.2.2011'; \n";
txt += "date[53] = '26.2.2011'; \n";
txt += "date[54] = '24.2.2011'; \n";
txt += "date[55] = '24.2.2011'; \n";
txt += "date[56] = '12.5.2011'; \n";
txt += "date[57] = '3.7.2011'; \n";
txt += "date[58] = '3.7.2011'; \n";
txt += "date[59] = '3.7.2011'; \n";
txt += "date[60] = '1.7.2011'; \n";
txt += "date[61] = '1.7.2011'; \n";
txt += "date[62] = '1.7.2011'; \n";
txt += "date[63] = '1.7.2011'; \n";
txt += "date[64] = '1.7.2011'; \n";
txt += "date[65] = '1.7.2011'; \n";
txt += "date[66] = '3.7.2011'; \n";
txt += "date[67] = '3.7.2011'; \n";
txt += "date[68] = '1.7.2011'; \n";
txt += "date[69] = '3.7.2011'; \n";
txt += "date[70] = '3.7.2011'; \n";
// Časovač na automatické přepínání fotek
txt += "var timer; \n";    
// Nastavení obrázku
txt += "function SetPic (){ \n";
txt += "document.images.imgprev.src = images[actpic];} \n";
// Nastavení komentáře obrázku
txt += "function SetKom (){ \n";
txt += "function dominnerText(node, text) { \n";
txt += "while (node.hasChildNodes()) { \n";
txt += "node.removeChild(node.firstChild); \n";
txt += "} \n";
txt += "node.appendChild(document.createTextNode(text)); \n";
txt += "} \n";
txt += "dominnerText(document.getElementById('popis'), comment[actpic])}; \n";
// Nastavení data obrázku
txt += "function SetDat (){ \n";
txt += "function dominnerText(node, text) { \n";
txt += "while (node.hasChildNodes()) { \n";
txt += "node.removeChild(node.firstChild); \n";
txt += "} \n";
txt += "node.appendChild(document.createTextNode(text)); \n";
txt += "} \n";
txt += "dominnerText(document.getElementById('datum'), date[actpic])}; \n";
// Následující snímek
txt += "function NextPic (){ \n";
txt += "if (actpic == pocet_obrazku) actpic = pocet_obrazku; \n";
txt += "else actpic++; \n";
txt += "SetPic(); \n";
txt += "SetKom (); \n";
txt += "SetDat (); \n";
txt += "document.SetPic.previous.value='<<<'; \n";
txt += "if (actpic == pocet_obrazku){ \n";
txt += "document.SetPic.next.value='';  \n";
txt += "document.SetPic.slshow.value=''; \n";
txt += "if (show == true) {show = false; \n";
txt += "StopSlideShow ();} \n";
txt += "} \n";
txt += "} \n";
// Předchozí snímek
txt += "function PrevPic (){ \n";
txt += "if (actpic != 1) { \n";
txt += "actpic--; \n";
txt += "SetPic(); \n";
txt += "SetKom (); \n";
txt += "SetDat (); \n";
txt += "document.SetPic.next.value = '>>>'; } \n";
txt += "if (show == false) { \n";
txt += "document.SetPic.slshow.value='slideshow';} \n";
txt += "if (actpic == 1) { \n";
txt += "document.SetPic.previous.value=''; } \n";
txt += "} \n";
// Snímek volaný z galerie
txt += "function AktPic (){ \n";
//txt += "actpic = 1; \n";
txt += "actpic = " + i + "; \n";
txt += "SetPic(); \n";
txt += "SetKom (); \n";
txt += "SetDat (); \n";
txt += "if (actpic == 1){ \n";
txt += "document.SetPic.previous.value=''; } \n";
txt += "if (actpic == pocet_obrazku){ \n";
txt += "document.SetPic.next.value='';  \n";
txt += "document.SetPic.slshow.value=''; } \n";
txt += "} \n";
// Poslední snímek
txt += "function LastPic (){ \n";
txt += "actpic = pocet_obrazku; \n";
txt += "SetPic(); \n";
txt += "SetKom (); \n";
txt += "SetDat ();} \n";
// Spuštění slideshow
txt += "function SlideShow (){ \n";
txt += "timer = setInterval ('NextPic();', 20000);} \n";
// Zastavení slideshow
txt += "function StopSlideShow (){ \n";
txt += "clearInterval (timer);} \n";
// Ovladac slideshow
txt += "function OvladacSlideShow () {  \n";
txt += "if (show == false && actpic != pocet_obrazku) { show = true; \n";
txt += "SlideShow (); \n";
txt += "document.SetPic.slshow.value='stop';} \n";
txt += "else \n";
txt += "{if (actpic != pocet_obrazku) { show = false; \n";
txt += "StopSlideShow (); \n";
txt += "document.SetPic.slshow.value='slideshow';} \n";
txt += "} \n";
txt += "} \n";
// Ovladac zmeny barvy tlacitek
txt += "function KurzorNadNahledy() { \n";
txt += "document.SetPic.nahledy.style.color = '#ffffff'; } \n";
txt += "function KurzorMimoNahledy() { \n";
txt += "document.SetPic.nahledy.style.color = '#3C3E35'; } \n";
txt += "function KurzorNadSlshow() { \n";
txt += "document.SetPic.slshow.style.color = '#ffffff'; } \n";
txt += "function KurzorMimoSlshow() { \n";
txt += "document.SetPic.slshow.style.color = '#3C3E35'; } \n";
txt += "function KurzorNadPredchozi() { \n";
txt += "document.SetPic.previous.style.color = '#ffffff'; } \n";
txt += "function KurzorMimoPredchozi() { \n";
txt += "document.SetPic.previous.style.color = '#3C3E35'; } \n";
txt += "function KurzorNadDalsi() { \n";
txt += "document.SetPic.next.style.color = '#ffffff'; } \n";
txt += "function KurzorMimoDalsi() { \n";
txt += "document.SetPic.next.style.color = '#3C3E35'; } \n";
txt += "// --> \n";
txt += "//--> </sc" + "ript> \n";

txt += "</HEAD> \n";
txt += "<BODY OnLoad='AktPic ();'> \n";
txt += "<table width=100% height=99%> \n";
txt += "<tr height=20><td> \n";
txt += "<form name='SetPic'> \n";
txt += "<input name='nahledy' onclick='history.go(-1);' class='galerie-navigace-foto' id='nahledy' type='button' width=50px style='cursor: pointer;' value='náhledy' onMouseOver='KurzorNadNahledy()' onMouseOut='KurzorMimoNahledy()'></td> \n";
txt += "<input name='slshow' onclick='OvladacSlideShow();' class='galerie-navigace-foto' id='slideshow' type='button' style='cursor: pointer;' value='slideshow' onMouseOver='KurzorNadSlshow()' onMouseOut='KurzorMimoSlshow()'></td> \n";
txt += "<input name='previous' onClick='PrevPic();' class='galerie-navigace-foto' id='zpet' type='button' style='cursor: pointer;' value='&lt;&lt;&lt;' onMouseOver='KurzorNadPredchozi()' onMouseOut='KurzorMimoPredchozi()'></td> \n";
txt += "<input name='next' onclick='NextPic();' class='galerie-navigace-foto' id='tam' type='button' style='cursor: pointer;' value='&gt;&gt;&gt;' onMouseOver='KurzorNadDalsi()' onMouseOut='KurzorMimoDalsi()'></td></tr></form> \n";
txt += "<tr align=center valign=middle> \n";
txt += "<td> \n";
txt += "<IMG Name='imgprev' title='' alt='Bernina'> \n";
txt += "<div class='popiska-text' id='popis'></div> \n";
txt += "<div class='datum-text' id='datum'></div></td></tr><table> \n";
txt += "</BODY> \n";
txt += "</HTML>";

	document.open(); 
	document.write(txt);
	document.close(); 
}	

