
  pixNmbr=1
  arrayPtr=1
  maxPix=5
  showing=1
  var pixArray= new Array(30)

  function showNewPix(url) 
     { document.pixFormT.pixBtnT.value=("Picture "+pixNmbr+" of "+maxPix);
       document.pixFormB.pixBtnB.value=("Picture "+pixNmbr+" of "+maxPix);
       document['bigPix'].src=url; 
       return; }

  function showNextPix ()
     { pixNmbr=pixNmbr+1;
       if (pixNmbr>maxPix)   {pixNmbr=1}
       showNewPix(pixArray[pixNmbr])  ;
      return; }

  function showPrevPix ()
     { pixNmbr=pixNmbr-1;
       if (pixNmbr==0)   {pixNmbr=maxPix}
       showNewPix(pixArray[pixNmbr]);  
       return; }

var timerID = 0;
var tStart  = null;

function UpdateTimer() {
   if(timerID) { clearTimeout(timerID);
                 clockID  = 0;   }
   if(!tStart) tStart   = new Date();
   var   tDate = new Date();
   var   tDiff = tDate.getTime() - tStart.getTime();
   tDate.setTime(tDiff);
   showNextPix();
   timerID = setTimeout("UpdateTimer()", 2000);   }

function Start() {
   tStart   = new Date();
   document.pixFormT.prevT.disabled="yes";
   document.pixFormT.nextT.disabled="yes";
   document.pixFormB.prevB.disabled="yes";
   document.pixFormB.nextB.disabled="yes";
   timerID  = setTimeout("UpdateTimer()", 2000);  }

function Stop() {
   if(timerID) {  clearTimeout(timerID);
                  timerID  = 0;   }
   document.pixFormT.prevT.disabled=false;
   document.pixFormT.nextT.disabled=false;
   document.pixFormB.prevB.disabled=false;
   document.pixFormB.nextB.disabled=false;
   tStart = null;  }


