
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'water_features.htm';
scriptName = 'water_features.js';
countX = 3;
countY = 4;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(
  new Array('Water Features','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','100_0005_7.jpg',534,400),
      new Array('Photo 2','100_0006_7.jpg',534,400),
      new Array('Photo 3','100_0011.jpg',534,400),
      new Array('Photo 4','100_0062_5.jpg',534,400),
      new Array('Photo 5','100_0013_7.jpg',534,400),
      new Array('Photo 6','100_0014_4.jpg',534,400),
      new Array('Photo 7','100_0015.jpg',534,400),
      new Array('Photo 8','100_0016_4.jpg',534,400),
      new Array('Photo 9','100_0018.jpg',534,400),
      new Array('Photo 10','100_0022_6.jpg',534,400),
      new Array('Photo 11','100_0024_5.jpg',534,400),
      new Array('Photo 12','100_0026_2.jpg',534,400),
      new Array('Photo 13','100_0028_4.jpg',534,400),
      new Array('Photo 14','100_0031.jpg',534,400),
      new Array('Photo 15','100_0032_4.jpg',534,400),
      new Array('Photo 16','100_0056_2.jpg',534,400),
      //new Array('Photo 16','100_0062_4.jpg',534,400),
      //new Array('Photo 18','100_0064_3.jpg',534,400),
      new Array('Photo 17','100_0065_3.jpg',534,400),
      new Array('Photo 18','106_0624.jpg',534,400),
      new Array('Photo 19','112_1257.jpg',534,400),
      new Array('Photo 20','112_1258.jpg',534,400),
      //new Array('Photo 23','112_1261.jpg',534,400),
      new Array('Photo 21','114_1451.jpg',534,400),
      new Array('Photo 22','114_1460.jpg',534,400),
      new Array('Photo 23','DSC00785.jpg',534,400),
      new Array('Photo 24','DSC00786.jpg',534,400),
      new Array('Photo 25','DSC00788.jpg',534,400),
      //new Array('Photo 29','DSC00831.jpg',534,400),
      new Array('Photo 26','DSC00832.jpg',534,400),
      //new Array('Photo 31','DSC00833.jpg',534,400),
      new Array('Photo 27','DSC00944.jpg',534,400),
      new Array('Photo 28','DSC00945.jpg',534,400),
      new Array('Photo 29','DSC00946.jpg',534,400),
      //new Array('Photo 35','DSC00947.jpg',534,400),
      //new Array('Photo 36','DSC00948.jpg',534,400),
      new Array('Photo 30','DSC00949.jpg',534,400),
      new Array('Photo 31','DSC00954.jpg',534,400),
      new Array('Photo 32','DSC00955.jpg',534,400),
      new Array('Photo 33','DSC00956.jpg',534,400),
      new Array('Photo 34','DSC00957.jpg',534,400),
      new Array('Photo 35','IMG_1157.jpg',534,400),
      new Array('Photo 36','Picture May 2005 161.jpg',534,400),
      new Array('Photo 37','IMG_1257.jpg',534,400),
      //new Array('Photo 45','IMG_1258.jpg',534,400),
      //new Array('Photo 46','IMG_1260.jpg',534,400),
      new Array('Photo 38','IMG_1261.jpg',534,400),
      new Array('Photo 39','Picture 306.jpg',534,400),
      new Array('Photo 40','Picture 304.jpg',534,400),
      new Array('Photo 41','Picture May 2005 081.jpg',534,400),
      new Array('Photo 48','Picture 008.jpg',534,400),
      new Array('Photo 42','Picture 064.jpg',534,400),
      new Array('Photo 43','Picture 067.jpg',534,400),
      new Array('Photo 44','Picture 068.jpg',534,400),
      //new Array('Photo 54','Picture 303.jpg',534,400),
      //new Array('Photo 57','Picture May 2005 078.jpg',534,400),
      new Array('Photo 45','Pondless Water Feature.jpg',534,400),
      new Array('Photo 46','Water Features.jpg',534,400)
    )
  )
)

section = getParameter(self.document.location.href, 'section');
if (isNaN(section) || (section=='') || (section<0) || (section>arImages.length))
  section = 0; 

ind = getParameter(self.document.location.href, 'ind');
if (isNaN(ind) || (ind=='') || (ind<0) || (ind>arImages[section][4].length))
  ind = 0; 

var arPreloadImages = new Array();
function preload() {
  if (arImages[section][2]!='') {
    for (i=ind;(i<(Number(ind)+Number(countX*countY))) && (i<arImages[section][4].length);i++) {
      arPreloadImages[i] = new Image(mediumSizes[0],mediumSizes[1]);
      arPreloadImages[i].src = arImages[section][2]+arImages[section][4][i][1];
    }
  }
}
  
function showImageMedium(number) {
  showImage('imagemedium',arImages[section][2]+arImages[section][4][number][1]);
  showMessage('imagemediumname',arImages[section][4][number][0]);
}

function showImageBig(number) {
  showImagePopup(scriptName,section,number,arImages[section][4][number][2],
   arImages[section][4][number][3]);
}
