
  var files = new Array('DSCN1080.jpg', 'DSCN1145.jpg', 'DSCN1190.jpg', 'DSCN1151.jpg', 'P1010114.jpg', 'P1010116.jpg', 'P1010121.jpg', 'P1010137.jpg', 'P1010138.jpg', 'P1010143.jpg', 'P1010154.jpg', 'P1010156.jpg', 'P1010157.jpg', 'P1010159.jpg', 'P1010163.jpg', 'P1010155.jpg');
  var titles = new Array('525 x 700', '525 x 700', '890 x 668', '525 x 700', '890 x 667', '890 x 667', '890 x 667', '890 x 667', '890 x 667', '890 x 667', '890 x 667', '890 x 667', '890 x 667', '890 x 667', '890 x 667', '890 x 667');
  var comments = new Array('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '');
  function printAll(){
    var res = "<center>";
    for (i=0; i<files.length; i++){
      res+='<img src="images/'+files[i]+'" title="'+titles[i]+'"><br>'+comments[i]+'<p>';    
    }
    return res+"</center>";
  }
  function imgshow(n){
    src = files[n];
    title = titles[n];
    wnd=window;
//    wnd=window.open("javascript:null", "bigpic","status=no,resizable=1,scrollbars=1,toolbar=no,menubar=no, screenX="+1000+",screenY="+800);
    wnd.document.write("<html><head><title>"+src+"</title>");
    wnd.document.write('<META content="text/html; charset=windows-1251" http-equiv=Content-Type></head>');
    wnd.document.write('<body vlink="white" link="white" bgcolor=black text="white"><center><script language=JavaScript src=index.js></script>');
    wnd.document.write('<table align=center>');
    wnd.document.write('<tr height=20><td width=800 align=center valign=top>');
  for (i=0; i<files.length; i++){
   if (i==n) {
    if (i>0) wnd.document.write('<input type=button value="<prev '+files[i-1]+'" onclick="imgshow('+(i-1)+')">&nbsp;&nbsp;');
    wnd.document.write(comments[n]+'&nbsp;<a  href="index.html">--==*'+files[i]+'*==--</a>&nbsp;');
    if (i<(files.length-1))wnd.document.write('<input type=button value="'+files[i+1]+' next>" onclick="imgshow('+(i+1)+')"><br>');
   }
  }
    wnd.document.writeln('</td></tr></table>');
    wnd.document.writeln('<a href="images/'+src+'">');
    wnd.document.write('<img src="images/'+src+'" title="'+title+'" border=1>');
    wnd.document.writeln('</a>');
    wnd.document.writeln('</body></html>');
    wnd.document.close();
    wnd.focus();
 }

