
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'landscaping.htm';
scriptName = 'landscaping.js';
countX = 3;
countY = 3;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(

  new Array('Landscaping','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','IMG_2024.jpg',600,400),
      new Array('Photo 2','IMG_8845.jpg',534,400),
      new Array('Photo 3','IMG_8857.jpg',534,400),
      new Array('Photo 4','IMG_8858.jpg',534,400),
      new Array('Photo 5','IMG_8861.jpg',534,400),
      new Array('Photo 6','IMG_8881.jpg',534,400),
      new Array('Photo 7','IMG_8951.jpg',534,400),
      new Array('Photo 8','IMG_9415.jpg',534,400),
      new Array('Photo 9','Risser3.jpg',600,400),
      new Array('Photo 10','Smith3.jpg',600,400),
      new Array('Photo 11','Weaver12.jpg',600,400),
      new Array('Photo 12','Weaver15.jpg',600,400),
      new Array('Photo 13','Weaver7.jpg',600,400),

      new Array('Photo 14','IMG_0159.jpg',600,400),
      new Array('Photo 15','IMG_0235.jpg',600,400),
      new Array('Photo 16','IMG_0250.jpg',600,400),
      new Array('Photo 17','IMGP0650.jpg',534,400),
      new Array('Photo 18','IMG_0448.jpg',534,400),
//      new Array('Photo 6','IMG_0745.jpg',534,400),
//      new Array('Photo 7','IMG_0746.jpg',534,400),
      new Array('Photo 19','IMG_0750.jpg',534,400),
      new Array('Photo 20','IMG_1816.jpg',534,400),
//      new Array('Photo 10','IMG_1874.jpg',534,400),
      new Array('Photo 21','IMG_1895.jpg',534,400),
      new Array('Photo 22','IMG_1908.jpg',534,400),
      new Array('Photo 23','IMG_2189.jpg',534,400),
      new Array('Photo 24','IMG_2195.jpg',534,400),
      new Array('Photo 25','IMG_2453.jpg',534,400),
      new Array('Photo 26','IMG_2558.jpg',534,400),
      new Array('Photo 27','IMG_2628.jpg',534,400),
      new Array('Photo 28','IMG_3593.jpg',534,400),
      new Array('Photo 29','IMG_3596.jpg',534,400),
      new Array('Photo 30','IMG_3614.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]);
}
