// Keep track of what pictures the page is showing
var pageNo =1 
which_image_loaded = 0;
ImageNames = new Object();
ImageNames.length = 6; //Because arrays start at 0, the length is one  
                        //less than the number of images.
ImageNamesSecond = new Object();
ImageNamesSecond.length = 6; //Because arrays start at 0, the length is one  

//for (counter = 0; counter < 5; counter++) {
//    file_number = counter + 1;
//    file_name = ("image" + file_number + ".jpg");
//    ImageNames[counter] = file_name;
//}


function InitializePictures()
{
	ImageNames[0] = 'http://www.laurelforklodge.com/images/019.jpg'
	ImageNames[1] = 'http://www.laurelforklodge.com/images/022.jpg'
	ImageNames[2] = 'http://www.laurelforklodge.com/images/024.jpg'
	ImageNames[3] = 'http://www.laurelforklodge.com/images/025.jpg'
	ImageNames[4] = 'http://www.laurelforklodge.com/images/029.jpg'
	ImageNames[5] = 'http://www.laurelforklodge.com/images/031.jpg'
	ImageNames[6] = 'http://www.laurelforklodge.com/images/034.jpg'


	ImageNamesSecond[0] = 'http://www.laurelforklodge.com/images/035.jpg'
	ImageNamesSecond[1] = 'http://www.laurelforklodge.com/images/036.jpg'
	ImageNamesSecond[2] = 'http://www.laurelforklodge.com/images/037.jpg'
	ImageNamesSecond[3] = 'http://www.laurelforklodge.com/images/042.jpg'
	ImageNamesSecond[4] = 'http://www.laurelforklodge.com/images/045.jpg'
	ImageNamesSecond[5] = 'http://www.laurelforklodge.com/images/046.jpg'
	ImageNamesSecond[6] = 'http://www.laurelforklodge.com/images/047.jpg'
	
	
	
}




function changeImage(direction) {
    which_image_loaded += direction;
    if (which_image_loaded < 0)
        which_image_loaded = 6;  //Again, one less than the actual number of images.
    if (which_image_loaded > 6)
		which_image_loaded = 0;
    if (document.images){
        document.image1.src = ImageNames[which_image_loaded];
        document.image2.src = ImageNamesSecond[which_image_loaded];
        }
}





