// JavaScript Document
function ShowInfo( PageToShow, TitleStr, W, H ){
		strWndOptions = "toolbar=yes," +
						"location=no," +
						"directories=no," +
						"status=no," +
						"menubar=no," +
						"scrollbars=yes," +
						"resizeable=no," +
						"width="+W+","+
						"height="+H+";"
		wnd = window.open( PageToShow, "AddInfo", strWndOptions);
		wnd.document.title = TitleStr;
	}

// Image Gallery

ImageNames = new Object();
ImageNames.length = 17; //Because arrays start at 0, the length is one  
                        //less than the number of images.
for (counter = 0; counter < 17; counter++) {
    file_number = counter + 1;
    file_name = ("images/gallery/pic" + file_number + ".jpg");
    ImageNames[counter] = file_name;
}

which_image_loaded = 0;

function changeImage(direction) {
    which_image_loaded += direction;
    if (which_image_loaded < 0)
        which_image_loaded = 16;  //Again, one less than the actual number of images.
    if (which_image_loaded > 16)
    which_image_loaded = 0;
	
    if (document.images)
        document.myimage.src = ImageNames[which_image_loaded];
}
