function fotografie(i)
{
var txt;

txt = "<HTML> \n";
txt += "<HEAD> \n";
txt += "<TITLE>®eleznice - Brenner</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 = 32; \n"; 
txt += "show = false; \n"; 
// jména suborů
txt += "images = new Array (); \n";
txt += "images[1] = 'fotky/2007-09-0779.jpg'; \n";
txt += "images[2] = 'fotky/2007-09-0839.jpg'; \n";
txt += "images[3] = 'fotky/2007-09-0601.jpg'; \n";
txt += "images[4] = 'fotky/2007-09-0456.jpg'; \n";
txt += "images[5] = 'fotky/2007-09-0527.jpg'; \n";
txt += "images[6] = 'fotky/2007-09-0937.jpg'; \n";
txt += "images[7] = 'fotky/2007-09-0412.jpg'; \n";
txt += "images[8] = 'fotky/2007-09-0469.jpg'; \n";
txt += "images[9] = 'fotky/2008-09-0373.jpg'; \n";
txt += "images[10] = 'fotky/2008-09-0334.jpg'; \n";
txt += "images[11] = 'fotky/2008-09-0387.jpg'; \n";
txt += "images[12] = 'fotky/2008-09-0463.jpg'; \n";
txt += "images[13] = 'fotky/2008-09-0483.jpg'; \n";
txt += "images[14] = 'fotky/2008-09-0771.jpg'; \n";
txt += "images[15] = 'fotky/2008-09-0793.jpg'; \n";
txt += "images[16] = 'fotky/2008-09-0784.jpg'; \n";
txt += "images[17] = 'fotky/2008-09-0666.jpg'; \n";
txt += "images[18] = 'fotky/2008-09-0595.jpg'; \n";
txt += "images[19] = 'fotky/2008-09-0615.jpg'; \n";
txt += "images[20] = 'fotky/2008-09-0730.jpg'; \n";
txt += "images[21] = 'fotky/2008-09-0890.jpg'; \n";
txt += "images[22] = 'fotky/2009-02-0273.jpg'; \n";
txt += "images[23] = 'fotky/2009-02-0287.jpg'; \n";
txt += "images[24] = 'fotky/2009-02-0366.jpg'; \n";
txt += "images[25] = 'fotky/2009-02-0379.jpg'; \n";
txt += "images[26] = 'fotky/2009-02-0413.jpg'; \n";
txt += "images[27] = 'fotky/2009-02-0404.jpg'; \n";
txt += "images[28] = 'fotky/2009-02-0435.jpg'; \n";
txt += "images[29] = 'fotky/2009-02-0595.jpg'; \n";
txt += "images[30] = 'fotky/2009-05-2419.jpg'; \n";
txt += "images[31] = 'fotky/2009-05-2457.jpg'; \n";
txt += "images[32] = 'fotky/2009-05-2469.jpg'; \n";
// Komentáře fotografií
txt += "comment = new Array () \n";
txt += "comment[1] = '101 021 DB, EC 81 Garda, Steinach in Tirol - St. Jodok'; \n";
txt += "comment[2] = '1216.238 + pk1216.011 ÖBB, Steinach in Tirol - St. Jodok'; \n";
txt += "comment[3] = '101 022 DB, EC 88 Leonardo da Vinci, St. Jodok - Steinach in Tirol'; \n";
txt += "comment[4] = '4024.096 ÖBB, R 5224, St. Jodok - Steinach in Tirol'; \n";
txt += "comment[5] = '4024 ÖBB, R 5207, Steinach in Tirol - St. Jodok'; \n";
txt += "comment[6] = '1016 ÖBB, EC 82 Paganini, St. Jodok - Steinach in Tirol'; \n";
txt += "comment[7] = '4024.096 ÖBB, R 5217, St. Jodok - Gries'; \n";   
txt += "comment[8] = '4024.073 ÖBB, R 5226, Brennersee - Gries'; \n";  
txt += "comment[9] = '2xE 189 RTC, Gries - St. Jodok'; \n";
txt += "comment[10] = 'E 189-915 Lokomotion, Gries - St. Jodok'; \n";
txt += "comment[11] = '1116.220 ÖBB, ÖBB-EC 188 Val Gardena/Grödnertal, Gries - St. Jodok'; \n";
txt += "comment[12] = '2x1216 ÖBB, St. Jodok - Gries'; \n";
txt += "comment[13] = '1116.041 ÖBB, IC 87 Tiepolo, St. Jodok - Gries'; \n";
txt += "comment[14] = '2x1216 + pk1044 ÖBB, St. Jodok - Gries'; \n";   
txt += "comment[15] = 'E 189-917 Lokomotion, Gries - St. Jodok'; \n";
txt += "comment[16] = 'ES 64 U2+E 189 + pkE 189 Lokomotion, St. Jodok - Gries'; \n";
txt += "comment[17] = '1144.254 ÖBB, R 5219, Steinach in Tirol - St. Jodok'; \n";
txt += "comment[18] = '101 066 DB, IC 89 Leonardo da Vinci, Steinach in Tirol - St. Jodok'; \n";
txt += "comment[19] = '1216+1116 ÖBB, St. Jodok - Steinach in Tirol'; \n";
txt += "comment[20] = '101 066 DB, IC 86 Tiepolo, Brennero/Brenner - Gries'; \n";   
txt += "comment[21] = 'E 189-926 Lokomotion + pkE 189-924 RTC, Gries - Brennero/Brenner'; \n";  
txt += "comment[22] = 'E 189-926 Lokomotion, Gries - St. Jodok'; \n";   
txt += "comment[23] = '1144.203+236 + pk1144.217 ÖBB, St. Jodok - Gries'; \n";
txt += "comment[24] = '1216.003 + pk1044.120 ÖBB, St. Jodok - Gries'; \n";
txt += "comment[25] = '1116+1144 ÖBB, EC 85 Michelangelo, St. Jodok - Gries'; \n";
txt += "comment[26] = '101 DB, EC 93 Leonardo da Vinci, Gries - St. Jodok'; \n";
txt += "comment[27] = 'E 189-916+ES 64 U2-037 + pk139 Lokomotion, St. Jodok - Gries'; \n";
txt += "comment[28] = '4024.077 ÖBB, R 5215, Steinach in Tirol - St. Jodok'; \n";   
txt += "comment[29] = 'St. Jodok'; \n"; 
txt += "comment[30] = 'ES 64 U2-017 DB/MRCE Dispolok + pk1144.241 ÖBB, DRV 13381, Steinach in Tirol - St. Jodok'; \n";
txt += "comment[31] = '1144.246+225 + pk1144.259 ÖBB, Steinach in Tirol - St. Jodok'; \n";   
txt += "comment[32] = '4024.078 ÖBB, Steinach in Tirol - St. Jodok'; \n"; 
// Data fotografií
txt += "date = new Array () \n";
txt += "date[1] = '10.9.2007'; \n";
txt += "date[2] = '10.9.2007'; \n";
txt += "date[3] = '9.9.2007'; \n";
txt += "date[4] = '8.9.2007'; \n";
txt += "date[5] = '9.9.2006'; \n";
txt += "date[6] = '10.9.2007'; \n";
txt += "date[7] = '8.9.2007'; \n";
txt += "date[8] = '8.9.2007'; \n";
txt += "date[9] = '17.9.2008'; \n";
txt += "date[10] = '17.9.2008'; \n";
txt += "date[11] = '17.9.2008'; \n";
txt += "date[12] = '17.9.2008'; \n";
txt += "date[13] = '17.9.2008'; \n";
txt += "date[14] = '18.9.2008'; \n";
txt += "date[15] = '18.9.2008'; \n";
txt += "date[16] = '18.9.2008'; \n";
txt += "date[17] = '17.9.2008'; \n";
txt += "date[18] = '17.9.2008'; \n";
txt += "date[19] = '17.9.2008'; \n";
txt += "date[20] = '17.9.2008'; \n";
txt += "date[21] = '18.9.2008'; \n";
txt += "date[22] = '19.2.2009'; \n";
txt += "date[23] = '19.2.2009'; \n";
txt += "date[24] = '19.2.2009'; \n";
txt += "date[25] = '19.2.2009'; \n";
txt += "date[26] = '19.2.2009'; \n";
txt += "date[27] = '19.2.2009'; \n";
txt += "date[28] = '19.2.2009'; \n";
txt += "date[29] = '20.2.2009'; \n";
txt += "date[30] = '23.5.2009'; \n";
txt += "date[31] = '23.5.2009'; \n";
txt += "date[32] = '23.5.2009'; \n";
// Lasovač 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='Brenner'> \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(); 
}	

