//Java routine to run the slideshow
// store an interval in a variable
var pause = 6000;

// create and initialize a counter                                    

var n = 0; 

// create an array of image file names                                         

var imgs = new Array ( "./images/2006_22.jpg","./images/2006_218.jpg","./images/2006_216.jpg","./images/2006_21.jpg","./images/2006_24.jpg","./images/2006_25.jpg","./images/2006_219.jpg","./images/2006_215.jpg","./images/2006_26.jpg","./images/2006_27.jpg","./images/2006_28.jpg","./images/2006_214.jpg","./images/2006_29.jpg","./images/2006_210.jpg","./images/2006_211.jpg","./images/2006_212.jpg","./images/2006_213.jpg","./images/2006_217.jpg","./images/2006_23.jpg","./images/2006_220.jpg","./images/2006_221.jpg");

// preload all the images

// var preload = new Array();                             

// for( var i = 1; i < imgs.length; i++ )
//{                                            
//  preload[i] = new Image();           
//  preload[i].src = imgs[i];                                     
//}

// a function to display each image for the set interval

function rotate()
{                       
  document.images.pic.src = imgs[n];                   
  ( n == (imgs.length - 1 )) ? n = 0 : n++;  
  setTimeout( "rotate()", pause );                              
}

// specify the onload event-handler

window.onload = rotate;