// store an interval in a variable

var pause = 8000;

// create and initialize a counter                                    

var n = 0; 

// create an array of image file names                                         

var imgs = new Array ("./photos/hidden1.jpg",  "./photos/hidden2.jpg", "./photos/hidden3.jpg",  "./photos/hidden4.jpg", "./photos/hidden5.jpg", "./photos/hidden6.jpg","./photos/hidden7.jpg", "./photos/hidden8.jpg",  "./photos/hidden9.jpg", "./photos/hidden10.jpg","./photos/hidden11.jpg" ,"./photos/hidden12.jpg" ,"./photos/hidden13.jpg" ,"./photos/hidden14.jpg" );


// 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;

