// store an interval in a variable

var pause =3500;


// create and initialize a counter                                    

var n = 0; 




// create an array of image file names                                         

var imgs = new Array   ("images/emailLabel.png", "images/sign10001.JPG", "images/emailLabel.png")
var imgs_1 = new Array ("images/azIMG_0294.gif", "images/azIMG_0341.gif", "images/emailLabel.png")
var imgs_2 = new Array ("images/emailLabel.png", "images/azIMG_0387.gif", "images/emailLabel.png")
var imgs_3 = new Array ("images/sign10001.JPG", "images/emailLabel.png", "images/emailLabel.png")
var imgs_4 = new Array ("images/azIMG_0329.gif", "images/emailLabel.png", "images/emailLabel.png")
var imgs_5 = new Array ("images/emailLabel.png", "images/azIMG_0285.gif", "images/emailLabel.png")
// 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
// note below is not a folder path its a document path and 
// not to be confused with - images- as a folder name
function rotate()
{                       
 window.document.images.frame_1.src = imgs[n];
 window.document.images.frame_2.src = imgs_1[n];
 window.document.images.frame_3.src = imgs_2[n];
 window.document.images.frame_4.src = imgs_3[n];
 window.document.images.frame_5.src = imgs_4[n];
 window.document.images.frame_6.src = imgs_5[n];
 
  ( n == (imgs.length - 1 )) ? n = 0 : n++;  
  window.setTimeout( "rotate()", pause);
   
}

// specify the onload event-handler

window.onload = rotate;


