

//document.writeln("hello");

var myPix = new Array("35.jpg","12.jpg","13.jpg","14.jpg","15.jpg","16.jpg","17.jpg","18.jpg","19.jpg","20.jpg","21.jpg","22.jpg","23.jpg","24.jpg","25.jpg","26.jpg","27.jpg","28.jpg","29.jpg","30.jpg","31.jpg","32.jpg","33.jpg","34.jpg","35.jpg","12.jpg");

var firstPic = 0;
var secondPic = 1;
var thirdPic = 2;
var ablak;
var stopbit = 0;

function delay(gap){ /* gap is in millisecs */
         var then,now; then=new Date().getTime();
         now=then;
         while((now-then)<gap)
                {
                now=new Date().getTime();
                }
}//

function init_P()
{
 stopbit_P = 0;
}

function init_N()
{
 stopbit_N = 0;
}

function stopp_P()
{
 stopbit_P = 1;
}

function stopp_N()
{
 stopbit_N = 1;
}
function doPrevious() {

    if (document.myPicture && firstPic > 0 ) {
        firstPic--;
        secondPic--;
        thirdPic--;
        document.myPicture.src=myPix[firstPic];
        document.myPicture2.src=myPix[secondPic];
        document.myPicture3.src=myPix[thirdPic];
    }

}

function doNext() {
         
         if (document.myPicture && firstPic < 23) {  // képek száma - 1
            firstPic++;
            secondPic++;
            thirdPic++;
            document.myPicture.src=myPix[firstPic]
            document.myPicture2.src=myPix[secondPic]
            document.myPicture3.src=myPix[thirdPic]
            }
}

function doPrevious_M() {

    if (stopbit_P == 1){
            return;
         }

    if (document.myPicture && firstPic > 0 ) {
        firstPic--;
        secondPic--;
        thirdPic--;
        document.myPicture.src=myPix[firstPic];
        document.myPicture2.src=myPix[secondPic];
        document.myPicture3.src=myPix[thirdPic];
    }
    setTimeout("doPrevious_M()",800);
}
function doNext_M() {

         if (stopbit_N == 1){
            return;
         }

         if (document.myPicture && firstPic < 23) {  // képek száma - 1
            firstPic++;
            secondPic++;
            thirdPic++;
            document.myPicture.src=myPix[firstPic]
            document.myPicture2.src=myPix[secondPic]
            document.myPicture3.src=myPix[thirdPic]
            }

        setTimeout("doNext_M()",800);
}

function big() {
          a = myPix[secondPic];
          if (typeof ablak=="undefined" || ablak.closed)
          {
             ablak = window.open("","","width=500,height=600,top=100,left=100");
          }
          ablak.document.open();
          ablak.document.writeln('<html><body><img align="absmiddle" src=' + a + ' width="499" height="599"></body></html>');
          ablak.document.close();

}



