<!-- Copyright 2001 Oquagen (oquagen@holography.ru). Do not use this code without owner's permission.
imgFrm=new Array(0);
imgFrm[3]="rosesm";
imgFrm[6]="rosesvasem";
imgFrm[7]="love-poisonm";
imgFrm[8]="spanielm";
imgFrm[10]="rakushm";

backimg=new Array(0);
backimg[3] = new Image();
backimg[6] = new Image();
backimg[7] = new Image();
backimg[8] = new Image();
backimg[10] = new Image();

var direction = 0;
var count = 1;
var speed = 340;
var dir = "gallery/";

function holoanimator(ndx,frm)
{
if (direction == 0)  
 {
  count++;
    backimg[ndx].src = dir + imgFrm[ndx] + count + ".jpg";
    n=ndx; f=frm;
    backimg[ndx].onload = changeimage;
       
  if (count == frm) {direction = 1;}
 } 

else 
 {
  count=count-1;
   if (count>0)
   {
    backimg[ndx].src = dir + imgFrm[ndx] + count + ".jpg";
    n=ndx; f=frm;
    backimg[ndx].onload = changeimage;

  if (count == frm) {direction = 1;}

   }
   else {direction = 0; count=1;}
 }
}

function changeimage()
{
document[imgFrm[n]].src = backimg[n].src;
setTimeout( "holoanimator(n,f)", speed );
}

// -->
