<!-- // Change photos alternately in Image array so that they 
     // will be displayed when the timer value expires.  
     // This code written by: John Chartier, White Sands VIP    
     //           Date: 20 Feb 02  e-mail: jchartier@yahoo.com   -->

var timer = 3000;  /* 3000 milliseconds = 3 seconds delay.        */
var sloop = 0;     /* Loop through all Square photos.             */  
var vloop = 0;     /* Loop through all Verticle photos.           */  
var flip = true;   /* Alternate photos - Square : Verticle        */

function next()
  {                /* The "pairs" variable is set by "preload.js" */
   if (flip) 
     {
      flip = false;  
      sloop ++;
      if (sloop > pairs) sloop = 0;           /* Start over.      */
      document.images[1].src = "home/pics"+sloop+".jpg";
     }
   else 
     {
      flip = true;
      vloop ++;
      if (vloop > pairs) vloop = 0; 
      document.images[3].src = "home/picv"+vloop+".jpg";
     }
  window.setTimeout("next();",timer); 
}    