/* arr.js:
This file contains records of images to be displayed, broken into groups among which the user can switch.
The default group (the first one displayed) is also indicated.

Make the LARGER dimension of images 800 pixels.

Make the SMALLER dimension of thumbnails 100 pixels.

Name thumbnail images "thumb_X" where X is the name and extension of the large image.
*/

// Ctor for Img objects.
function Img(s, f, e, t) {
  this.subdir = s; //subdirectory where image file resides
  this.fname = f; //the base filename of the image file; leave out the extension and dimensions
  this.ext = e; //gif or jpg (maybe in the future png and others, as well)
  this.title = t; //title
}
Img.prototype.iFname = function() {
  return this.subdir + "/" + this.fname + "." + this.ext;
}
Img.prototype.tFname = function() {
  return this.subdir + "/thumb_" + this.fname + "." + this.ext;
}

//Select current array and update application.
function selGroup(val) {
  switch (val) {
    case "1" :
      arr = arr01;
      break;
    case "2" :
      arr = arr_images;
      break;
    default:
      alert("selGroup: ERROR: Call with improper argument.");
      break;
  }
  resetCounters();
  updateLocs();
  gen_select();
}

//Unix is case sensitive, so make sure the subdir names below are properly capitalized!

//Commented out Img's are sidelined; i.e., I am not sure I like them, but not prepared to delete them.

var subdir02 = "Cityscape";
arr_images = [
  new Img(subdir02, "cityscape-0043v01", "jpg", "Cityscape 43"),
  new Img(subdir02, "cityscape-0042v01", "jpg", "Cityscape 42"),
  new Img(subdir02, "cityscape-0041v01", "jpg", "Cityscape 41"),
  new Img(subdir02, "cityscape-0040v01", "jpg", "Cityscape 40"),
  new Img(subdir02, "cityscape-0039v01", "jpg", "Cityscape 39"),
  new Img(subdir02, "cityscape-0038v01", "jpg", "Cityscape 38"),
  new Img(subdir02, "cityscape-0037v01", "jpg", "Cityscape 37"),
  new Img(subdir02, "cityscape-0036v01", "jpg", "Cityscape 36"),
  new Img(subdir02, "cityscape-0035v01", "jpg", "Cityscape 35"),
  new Img(subdir02, "cityscape-0034v01", "jpg", "Cityscape 34"),
  new Img(subdir02, "cityscape-0033v01", "jpg", "Cityscape 33"),
  new Img(subdir02, "cityscape-0032v01", "jpg", "Cityscape 32"),
  new Img(subdir02, "cityscape-0031v01", "jpg", "Cityscape 31"),
  new Img(subdir02, "cityscape-0029v01", "jpg", "Cityscape 29"),
  new Img(subdir02, "cityscape-0028v01", "jpg", "Cityscape 28"),
  new Img(subdir02, "cityscape-0027v01", "jpg", "Cityscape 27"),
  new Img(subdir02, "cityscape-0026v01", "jpg", "Cityscape 26"),
  new Img(subdir02, "cityscape-0025v01", "jpg", "Cityscape 25"),
  new Img(subdir02, "cityscape-0024v01", "jpg", "Cityscape 24"),
  new Img(subdir02, "cityscape-0023v01", "jpg", "Cityscape 23"),
  new Img(subdir02, "cityscape-0021v01", "jpg", "Cityscape 21"),
  new Img(subdir02, "cityscape-0020v01", "jpg", "Cityscape 20"),
  new Img(subdir02, "cityscape-0018v01", "jpg", "Cityscape 18"),
  new Img(subdir02, "cityscape-0017v01", "jpg", "Cityscape 17"),
  new Img(subdir02, "cityscape-0016v01", "jpg", "Cityscape 16"),
  new Img(subdir02, "cityscape-0015v01", "jpg", "Cityscape 15"),
  new Img(subdir02, "cityscape-0013v01", "jpg", "Cityscape 13"),
  new Img(subdir02, "cityscape-0011v01", "jpg", "Cityscape 11"),
  new Img(subdir02, "cityscape-0010v01", "jpg", "Cityscape 10"),
  new Img(subdir02, "cityscape-0008v01", "jpg", "Cityscape 8v1"),
  new Img(subdir02, "cityscape-0008v02", "jpg", "Cityscape 8v2"),
  new Img(subdir02, "cityscape-0007v01", "jpg", "Cityscape 7"),
  new Img(subdir02, "cityscape-0004v01", "jpg", "Cityscape 4")
];
