function fotografie(i)
{
var txt;

txt = "<HTML> \n";
txt += "<HEAD> \n";
txt += "<TITLE>®eleznice - Arlberg</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 = 24; \n"; 
txt += "show = false; \n"; 
// jména suborů
txt += "images = new Array (); \n";
txt += "images[1] = 'fotky/2007-09-1573.jpg'; \n";
txt += "images[2] = 'fotky/2007-09-1125.jpg'; \n";
txt += "images[3] = 'fotky/2007-09-1584.jpg'; \n";
txt += "images[4] = 'fotky/2007-09-1623.jpg'; \n";
txt += "images[5] = 'fotky/2007-09-1593.jpg'; \n";
txt += "images[6] = 'fotky/2007-09-1659.jpg'; \n";
txt += "images[7] = 'fotky/2007-09-1675.jpg'; \n";
txt += "images[8] = 'fotky/2007-09-1540.jpg'; \n";
txt += "images[9] = 'fotky/2007-09-1549.jpg'; \n";
txt += "images[10] = 'fotky/2007-09-1307.jpg'; \n";
txt += "images[11] = 'fotky/2007-09-1322.jpg'; \n";
txt += "images[12] = 'fotky/2007-09-1344.jpg'; \n";
txt += "images[13] = 'fotky/2007-09-1437.jpg'; \n";
txt += "images[14] = 'fotky/2008-05-3106.jpg'; \n";
txt += "images[15] = 'fotky/2008-05-3018.jpg'; \n";
txt += "images[16] = 'fotky/2008-05-2838.jpg'; \n";
txt += "images[17] = 'fotky/2008-05-2914.jpg'; \n";
txt += "images[18] = 'fotky/2008-05-2963.jpg'; \n";
txt += "images[19] = 'fotky/2008-05-3158.jpg'; \n";
txt += "images[20] = 'fotky/2008-05-2985.jpg'; \n";
txt += "images[21] = 'fotky/2008-05-3185.jpg'; \n";
txt += "images[22] = 'fotky/2008-05-2677.jpg'; \n";
txt += "images[23] = 'fotky/2008-05-2656.jpg'; \n";
txt += "images[24] = 'fotky/2008-05-2738.jpg'; \n";
// Komentáře fotografií
txt += "comment = new Array () \n";
txt += "comment[1] = '2x1116 ÖBB, Imst-Pitztal - Roppen'; \n";
txt += "comment[2] = '1116 ÖBB, ÖBB-EC 160 Maria Theresia, Roppen - Imst-Pitztal'; \n";
txt += "comment[3] = '2x1116 ÖBB, ÖBB-EC 163 Transalpin, Imst-Pitztal - Roppen'; \n";
txt += "comment[4] = '1016.035 ÖBB, ÖBB-EC 162 Transalpin, Roppen - Imst-Pitztal'; \n";
txt += "comment[5] = '1116.123 ÖBB, ÖBB-EC 160 Maria Theresia, Roppen - Imst-Pitztal'; \n";
txt += "comment[6] = '1116.104 ÖBB, Roppen - Imst-Pitztal'; \n";
txt += "comment[7] = '1116.200 ÖBB, ÖBB-EC 668 Fachhochschule Vorarlberg, Roppen - Imst-Pitztal'; \n";
txt += "comment[8] = '1116.096 ÖBB, ÖBB-EC 669 weiterwissen.at, Imst-Pitztal - Roppen'; \n";   
txt += "comment[9] = '411.004 DB, ICE 562 St. Anton am Arlberg, Roppen - Imst-Pitztal'; \n";
txt += "comment[10] = '1116 + 1044.106 ÖBB, Hintergasse - Braz'; \n";   
txt += "comment[11] = '1116.166+045 + pk1044.099 ÖBB, Braz - Hintergasse'; \n";
txt += "comment[12] = '1116.104 + pk1044.112 ÖBB, ÖBB-EC 163 Transalpin, Braz - Hintergasse'; \n";
txt += "comment[13] = '1016.034 ÖBB, ÖBB-EC 162 Transalpin, Braz - Bludenz'; \n";   
txt += "comment[14] = '1116 ÖBB, ÖBB-EC 163 Transalpin, Imst-Pitztal - Roppen'; \n";
txt += "comment[15] = '1116 ÖBB, Imst-Pitztal - Roppen'; \n";
txt += "comment[16] = '1116 ÖBB, ÖBB-EC 669 Astronomie-Jahr 2009, Imst-Pitztal - Roppen'; \n";
txt += "comment[17] = '1016.047 ÖBB, ÖBB-EC 162 Transalpin, Roppen - Imst-Pitztal'; \n";   
txt += "comment[18] = '1116.013 ÖBB, ÖBB-EC 668 CARITAS Kinderpatenschaften, Roppen - Imst-Pitztal'; \n";
txt += "comment[19] = '1216 ÖBB, ÖBB-EC 162 Transalpin, Roppen - Imst-Pitztal'; \n";   
txt += "comment[20] = '1216.234 ÖBB, Imst-Pitztal - Roppen'; \n";
txt += "comment[21] = '4024.076 ÖBB, REX 5185 HOLLYWOOD MEGAPLEX KINO, Roppen - Imst-Pitztal'; \n";
txt += "comment[22] = '1116 ÖBB, ÖBB-EC 669 Astronomie-Jahr 2009, Strengen - Pians'; \n";
txt += "comment[23] = '1144.257 ÖBB, REX 1879 ZUKUNFTSZENTRUM TIROL, Strengen - Pians'; \n";
txt += "comment[24] = '1016.038 ÖBB, ÖBB-EC 160 Vorarlberg, Pians - Strengen'; \n";
// Data fotografií
txt += "date = new Array () \n";
txt += "date[1] = '13.9.2007'; \n";
txt += "date[2] = '11.9.2007'; \n";
txt += "date[3] = '13.9.2007'; \n";
txt += "date[4] = '13.9.2007'; \n";
txt += "date[5] = '13.9.2007'; \n";
txt += "date[6] = '13.9.2007'; \n";
txt += "date[7] = '13.9.2007'; \n";
txt += "date[8] = '13.9.2007'; \n";
txt += "date[9] = '13.9.2007'; \n";
txt += "date[10] = '12.9.2007'; \n";
txt += "date[11] = '12.9.2007'; \n";
txt += "date[12] = '12.9.2007'; \n";
txt += "date[13] = '12.9.2007'; \n";
txt += "date[14] = '6.5.2008'; \n";
txt += "date[15] = '6.5.2008'; \n";
txt += "date[16] = '5.5.2008'; \n";
txt += "date[17] = '5.5.2008'; \n";
txt += "date[18] = '5.5.2008'; \n";
txt += "date[19] = '6.5.2008'; \n";
txt += "date[20] = '6.5.2008'; \n";
txt += "date[21] = '6.5.2008'; \n";
txt += "date[22] = '4.5.2008'; \n";
txt += "date[23] = '4.5.2008'; \n";
txt += "date[24] = '4.5.2008'; \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='Arlberg'> \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(); 
}	

