 function button1()
 { history.back() }

 function button2()
 { history.forward() }

 function button3()
 { url=document.location+""
   if (url.indexOf("#top")==-1)
   { document.location=url+"#top" }
   else
   { document.location=url } }

 function button4()
 { document.location="home.php" }

 function button5()
 { x=window.external.addFavorite(document.location,'www.kolej.of.pl') }

 function fotka(src,w,h)
 { fimg=window.open("about:blank","","width="+w+",height="+h+",resizable=NO,left="+Math.round(screen.width/2-w/2)+",top="+Math.round(screen.height/2-h/2))
   fimg.document.open()
   fimg.document.writeln("<html><head><title>www.kolej.of.pl</title></head><body>")
   fimg.document.writeln("<img src=\""+src+"\" style=\"position: absolute; left: 0; top: 0\">")
   fimg.document.writeln("</body></html>")
   fimg.document.close() }

 function polecam()
 { url = new Array()
   op = new Array()
   url[0]='wrp.xt.pl'
   op[0]='Duża fotogaleria<br>kolejowa. Wysoki<br>poziom zdjęć.'
   url[1]='transport.wroc.biz'
   op[1]='Chyba największa<br>polska galeria<br>transportowa.'
   url[2]='www.covalus.prv.pl'
   op[2]='Stare dokumenty,<br>galerie, opowiada-<br>nia i inne.'
   url[3]='www.eu07.pl'
   op[3]='Świetny polski<br>symulator prowa-<br>dzenia pociągu.'
   url[4]='forum.martel.pl'
   op[4]='Obszerne forum<br>dla modelarzy<br>kolejowych.'
   url[5]='kolej.one.pl'
   op[5]='Masa informacji<br>o polskiej sieci<br>kolejowej.'
   url[6]='woznyj.republika.pl'
   op[6]='Historyczna<br>mapa polskiej<br>sieci kolejowej.'
   url[7]='www.kolejarz.prv.pl'
   op[7]='Symulator prowa-<br>dzenia ruchu na<br>różnych stacjach.'
   url[8]='parowozy.net'
   op[8]='Najlepsza<br>polska strona<br>o parowozach.'
   n=Math.round(Math.random()*8)
   document.write('<a href="http://'+url[n]+'" target="_blank">'+url[n]+'</a><br><br>'+op[n]) }