
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'portfolio.html';
scriptName = 'portfolio.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('Hydroseeding and Sod','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','01_5.jpg',534,400),
      new Array('Photo 2','02_5.jpg',534,400),
      new Array('Photo 3','03_6.jpg',534,400),
      new Array('Photo 4','04_5.jpg',534,400),
      new Array('Photo 5','05_4.jpg',534,400),
      new Array('Photo 6','06_5.jpg',534,400),
      new Array('Photo 7','07_6.jpg',534,400),
      new Array('Photo 8','08_1.jpg',534,400),
      new Array('Photo 9','09_5.jpg',534,400),
      new Array('Photo 10','10_4.jpg',534,400),
      new Array('Photo 11','11_5.jpg',534,400),
      new Array('Photo 12','12.jpg',534,400),
      new Array('Photo 13','13_3.jpg',534,400),
      new Array('Photo 14','14_2.jpg',534,400),
      new Array('Photo 15','15_2.jpg',534,400),
      new Array('Photo 16','16_2.jpg',534,400),
      new Array('Photo 17','17.jpg',534,400),
      new Array('Photo 18','19_2.jpg',534,400),
      new Array('Photo 19','20_1.jpg',534,400),
      new Array('Photo 20','21_1.jpg',534,400)
    )
  ),

  new Array('Landscapes','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','01_4.jpg',534,400),
      new Array('Photo 2','02_2.jpg',534,400),
      new Array('Photo 3','03_2.jpg',534,400),
      new Array('Photo 4','04_6.jpg',534,400),
      new Array('Photo 5','05_5.jpg',534,400),
      new Array('Photo 6','06_3.jpg',534,400),
      new Array('Photo 7','07_4.jpg',534,400),
      new Array('Photo 8','08.jpg',534,400),
      new Array('Photo 9','09_2.jpg',534,400),
      new Array('Photo 10','10_5.jpg',601,401),
      new Array('Photo 11','11_4.jpg',534,400),
      new Array('Photo 12','12_2.jpg',534,400)
    )
  ),

  new Array('Outdoor Kitchens and Fireplaces','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','01.jpg',534,400),
      new Array('Photo 2','02_6.jpg',534,400),
      new Array('Photo 3','03_3.jpg',534,400),
      new Array('Photo 4','04_2.jpg',534,400),
      new Array('Photo 5','05.jpg',534,400),
      new Array('Photo 6','06_1.jpg',534,400),
      new Array('Photo 7','07_5.jpg',534,400),
      new Array('Photo 8','08_4.jpg',300,400),
      new Array('Photo 9','09_4.jpg',601,401),
      new Array('Photo 10','10.jpg',534,400),
      new Array('Photo 11','11_2.jpg',536,400),
      new Array('Photo 12','12_4.jpg',500,400)
    )
  ),

  new Array('Patios','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','01_3.jpg',448,336),
      new Array('Photo 2','02_4.jpg',534,400),
      new Array('Photo 3','03.jpg',534,400),
      new Array('Photo 4','04_1.jpg',534,400),
      new Array('Photo 5','05_6.jpg',534,400),
      new Array('Photo 6','06.jpg',536,400),
      new Array('Photo 7','07_2.jpg',536,400),
      new Array('Photo 8','08_6.jpg',534,400),
      new Array('Photo 9','09_6.jpg',314,235),
      new Array('Photo 10','10_1.jpg',300,400),
      new Array('Photo 11','11_3.jpg',534,400),
      new Array('Photo 12','12_3.jpg',534,400),
      new Array('Photo 13','13_2.jpg',300,400),
      new Array('Photo 14','14_1.jpg',536,400),
      new Array('Photo 15','15.jpg',299,400),
      new Array('Photo 16','16_3.jpg',500,400),
      new Array('Photo 17','17_3.jpg',534,400),
      new Array('Photo 18','18_1.jpg',534,400),
      new Array('Photo 19','19.jpg',601,401),
      new Array('Photo 20','20.jpg',534,400),
      new Array('Photo 21','21_2.jpg',534,400),
      new Array('Photo 22','25.jpg',534,400),
      new Array('Photo 23','26.jpg',300,400),
      new Array('Photo 24','27.jpg',534,400),
      new Array('Photo 25','28.jpg',536,400),
      new Array('Photo 26','29.jpg',534,400),
      new Array('Photo 27','30.jpg',534,400),
      new Array('Photo 28','31.jpg',300,400),
      new Array('Photo 29','32.jpg',534,400),
      new Array('Photo 30','33.jpg',534,400),
      new Array('Photo 31','34.jpg',577,400),
      new Array('Photo 32','35.jpg',534,400),
      new Array('Photo 33','36.jpg',534,400),
      new Array('Photo 34','37.jpg',490,400),
      new Array('Photo 35','38.jpg',301,400),
      new Array('Photo 36','39.jpg',301,400),
      new Array('Photo 37','40.jpg',530,400)
    )
  ),

  new Array('Retaining Walls','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','01_6.jpg',534,400),
      new Array('Photo 2','02_1.jpg',534,400),
      new Array('Photo 3','03_5.jpg',534,400),
      new Array('Photo 4','04_4.jpg',448,336),
      new Array('Photo 5','05_3.jpg',534,400),
      new Array('Photo 6','06_4.jpg',448,336),
      new Array('Photo 7','07_3.jpg',448,336),
      new Array('Photo 8','08_5.jpg',314,235),
      new Array('Photo 9','09_3.jpg',534,400),
      new Array('Photo 10','10_6.jpg',300,400),
      new Array('Photo 11','11.jpg',534,400),
      new Array('Photo 12','12_1.jpg',534,400),
      new Array('Photo 13','13_1.jpg',534,400),
      new Array('Photo 14','14.jpg',534,400),
      new Array('Photo 15','15_1.jpg',534,400),
      new Array('Photo 16','16_1.jpg',300,400),
      new Array('Photo 17','17_2.jpg',534,400),
      new Array('Photo 18','18.jpg',534,400),
      new Array('Photo 19','19_1.jpg',534,400),
      new Array('Photo 20','20_2.jpg',534,400),
      new Array('Photo 21','21.jpg',534,400),
      new Array('Photo 22','22.jpg',534,400),
      new Array('Photo 23','23.jpg',478,400),
      new Array('Photo 24','24.jpg',498,400),
      new Array('Photo 25','25_1.jpg',536,400)
    )
  ),

  new Array('Stone Steps','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','01_1.jpg',484,400),
      new Array('Photo 2','02_3.jpg',534,400),
      new Array('Photo 3','03_4.jpg',498,400),
      new Array('Photo 4','04_3.jpg',534,400),
      new Array('Photo 5','05_1.jpg',300,400),
      new Array('Photo 6','06_6.jpg',300,400),
      new Array('Photo 7','07.jpg',300,400),
      new Array('Photo 8','08_3.jpg',534,400),
      new Array('Photo 9','09.jpg',448,336),
      new Array('Photo 10','10_3.jpg',235,314),
      new Array('Photo 11','11_1.jpg',536,400),
      new Array('Photo 12','12_5.jpg',299,400),
      new Array('Photo 13','13.jpg',536,400),
      new Array('Photo 14','14_3.jpg',534,400),
      new Array('Photo 15','15_3.jpg',534,400)
    )
  ),

  new Array('Water Features','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','01_2.jpg',534,400),
      new Array('Photo 2','02.jpg',534,400),
      new Array('Photo 3','03_1.jpg',534,400),
      new Array('Photo 4','04.jpg',600,400),
      new Array('Photo 5','05_2.jpg',601,401),
      new Array('Photo 6','06_2.jpg',601,401),
      new Array('Photo 7','07_1.jpg',300,400),
      new Array('Photo 8','08_2.jpg',267,400),
      new Array('Photo 9','09_1.jpg',601,401),
      new Array('Photo 10','10_2.jpg',601,401),
      new Array('Photo 11','16.jpg',534,400),
      new Array('Photo 12','17_1.jpg',448,336)
    )
  )

/*
  new Array('Photo Gallery','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Anchor columns with Lights','Anchor columns with Lights.jpg',448,336),
      new Array('Anchor Retaining Wall','Anchor Retaining Wall.jpg',300,400),
      new Array('Anchor Wall Bench Seat','Anchor Wall Bench Seat.jpg',448,336),
      new Array('Anchor Wall Natural Stone Steps','Anchor Wall Natural Stone Steps.jpg',448,336),
      new Array('Backyard After Renovation','Backyard After Renovation.jpg',448,336),
      new Array('Backyard Before Renovation','Backyard Before Renovation.jpg',448,336),
      new Array('Backyard Patio','Backyard Patio.jpg',448,336),
      new Array('Backyard Retaining Wall After','Backyard Retaining Wall After.jpg',448,336),
      new Array('Backyard Retaining Wall Before','Backyard Retaining Wall Before.jpg',448,336),
      new Array('Boulder Water Feature','Boulder Water Feature.jpg',448,299),
      new Array('Concrete Garden Path','Concrete Garden Path.jpg',200,150),
      new Array('Concrete Tree Ring','Concrete Tree Ring.jpg',200,150),
      new Array('Courtyard Patio','Courtyard Patio.jpg',448,311),
      new Array('Fall Hydroseeded Lawn','Fall Hydroseeded Lawn.jpg',448,336),
      new Array('Fall Hydroseeded Lawn2','Fall Hydroseeded Lawn2.jpg',200,150),
      new Array('Fall Hydroseeded Lawn3','Fall Hydroseeded Lawn3.jpg',200,150),
      new Array('Flagstone Patio','Flagstone Patio.jpg',448,336),
      new Array('Fountain','Fountain.jpg',448,336),
      new Array('Hydroseeder','Hydroseeder.jpg',200,150),
      new Array('Hydroseeding Application','Hydroseeding Application.jpg',448,336),
      new Array('Hydroseeding_Results','Hydroseeding_Results.jpg',534,400),
      new Array('Landscape','Landscape.jpg',400,300),
      new Array('Landscape2','Landscape2.jpg',448,336),
      new Array('Landscape3','Landscape3.jpg',448,336),
      new Array('Landscape4','Landscape4.jpg',448,336),
      new Array('Landscape5','Landscape5.jpg',448,336),
      new Array('Landscape6','Landscape6.jpg',448,336),
      new Array('Mosiac Retaining Wall','Mosiac Retaining Wall.jpg',448,336),
      new Array('Natural Stone Step','Natural Stone Step.jpg',300,400),
      new Array('Natural Stone Step2','Natural Stone Step2.jpg',406,336),
      new Array('Natural Stone Step3','Natural Stone Step3.jpg',448,336),
      new Array('Natural Stone Wall','Natural Stone Wall.jpg',401,336),
      new Array('Natural Stone Wall2','Natural Stone Wall2.jpg',418,336),
      new Array('Outdoor Fireplace','Outdoor Fireplace.jpg',200,282),
      new Array('Outdoor Kitchen','Outdoor Kitchen.jpg',448,336),
      new Array('Outdoor Kitchen2','Outdoor Kitchen2.jpg',448,336),
      new Array('Outdoor Kitchen3','Outdoor Kitchen3.jpg',448,336),
      new Array('Outdoor Kitchen4','Outdoor Kitchen4.jpg',448,336),
      new Array('Outdoor Kitchen5','Outdoor Kitchen5.jpg',448,336),
      new Array('Patio Firepit','Patio Firepit.jpg',420,336),
      new Array('Paver Patio Step','Paver Patio Step.jpg',448,336),
      new Array('Paver Stone Step','Paver Stone Step.jpg',448,336),
      new Array('Paver Stone Steps','Paver Stone Steps.jpg',448,336),
      new Array('Paver Walkway','Paver Walkway.jpg',300,400),
      new Array('Paver Walkway2','Paver Walkway2.jpg',448,336),
      new Array('Paver Walkway3','Paver Walkway3.jpg',300,400),
      new Array('Pondless Water Feature','Pondless Water Feature.jpg',448,336),
      new Array('Pool Water Feature','Pool Water Feature.jpg',448,336),
      new Array('Retaining Wall After','Retaining Wall After.jpg',448,336),
      new Array('Retaining Wall Before','Retaining Wall Before.jpg',448,336),
      new Array('Stamped Concrete around Pool','Stamped Concrete around Pool.jpg',200,150),
      new Array('Stamped Concrete Curbing','Stamped Concrete Curbing.jpg',200,150),
      new Array('Walkout Patio','Walkout Patio.jpg',448,336),
      new Array('Waterfall','Waterfall.jpg',300,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]);
}
