
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'project_center.htm';
scriptName = 'project_center.js';
countX = 4;
countY = 2;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(

  new Array('Concrete Pavers','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','DSCN0986.jpg',534,400),
      new Array('Photo 2','DSCN0995.jpg',534,400),
      new Array('Photo 3','DSCN0998.jpg',534,400),
      new Array('Photo 4','IMGP2943.jpg',534,400),
      new Array('Photo 5','IMGP2944.jpg',534,400),
      new Array('Photo 6','IMGP2946.jpg',534,400),
      new Array('Photo 7','IMGP2947.jpg',534,400),
      new Array('Photo 8','IMGP2953.jpg',300,400),
      new Array('Photo 9','IMGP2954.jpg',300,400),
      new Array('Photo 10','IMGP2956.jpg',534,400),
      new Array('Photo 11','Job10.jpg',561,400),
      new Array('Photo 12','Job26.jpg',560,400),
      new Array('Photo 13','Job6.jpg',300,400),
      new Array('Photo 14','PI090281.jpg',534,400),
      new Array('Photo 15','PI090326.jpg',300,400),
      new Array('Photo 16','PI270158.jpg',534,400),
      new Array('Photo 17','PI270187.jpg',534,400),
      new Array('Photo 18','PI290288.jpg',534,400),
      new Array('Photo 19','PI290292.jpg',534,400),
      new Array('Photo 20','PI290293.jpg',300,400),
      new Array('Photo 21','PI290296.jpg',300,400),
      new Array('Photo 22','PI290297.jpg',300,400)
    )
  ),

  new Array('Decorative Rock and Bark','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','doug.jpg',534,400),
      new Array('Photo 2','DSCN0973.jpg',534,400),
      new Array('Photo 3','DSCN0983.jpg',534,400),
      new Array('Photo 4','DSCN0992.jpg',300,400),
      new Array('Photo 5','DSCN0993.jpg',534,400),
      new Array('Photo 6','DSCN0994.jpg',534,400),
      new Array('Photo 7','DSCN0999.jpg',534,400),
      new Array('Photo 8','Job2.jpg',560,400),
      new Array('Photo 9','PI020441.jpg',534,400),
      new Array('Photo 10','PI020444.jpg',534,400),
      new Array('Photo 11','PI120185.jpg',534,400)
    )
  ),

  new Array('Flagstone and Boulders','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','5.jpg',600,400),
      new Array('Photo 2','7.jpg',560,401),
      new Array('Photo 3','8.jpg',300,400),
      new Array('Photo 4','Copy of PI290349.jpg',534,400),
      new Array('Photo 5','DSCN0974.jpg',534,400),
      new Array('Photo 6','DSCN0976.jpg',300,400),
      new Array('Photo 7','DSCN0977.jpg',534,400),
      new Array('Photo 8','DSCN0978.jpg',300,400),
      new Array('Photo 9','DSCN0980.jpg',300,400),
      new Array('Photo 10','IMGP2695.jpg',534,400),
      new Array('Photo 11','IMGP2933.jpg',300,400),
      new Array('Photo 12','IMGP2934.jpg',300,400),
      new Array('Photo 13','IMGP2935.jpg',534,400),
      new Array('Photo 14','IMGP2960.jpg',534,400),
      new Array('Photo 15','Job11.jpg',534,400),
      new Array('Photo 16','Job14.jpg',300,400),
      new Array('Photo 17','PI270260.jpg',534,400),
      new Array('Photo 18','PI290302.jpg',534,400),
      new Array('Photo 19','PI290316.jpg',534,400),
      new Array('Photo 20','PI290319.jpg',300,400),
      new Array('Photo 21','PI290320.jpg',300,400),
      new Array('Photo 22','PI290332.jpg',300,400),
      new Array('Photo 23','PI290349.jpg',534,400),
      new Array('Photo 24','Picture 005.jpg',300,400),
      new Array('Photo 25','Picture 024.jpg',534,400)
    )
  ),

  new Array('General Lanscape','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','PI170018.jpg',300,400),
      new Array('Photo 2','PI170023.jpg',534,400)
    )
  ),

  new Array('Pre-Cast Products','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','PI270191.jpg',534,400),
      new Array('Photo 2','PI270215.jpg',300,400),
      new Array('Photo 3','PI290327.jpg',300,400),
      new Array('Photo 4','PI290352.jpg',300,400)
    )
  ),

  new Array('Stone Veneers','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','DSCN0970.jpg',534,400),
      new Array('Photo 2','DSCN0981.jpg',300,400),
      new Array('Photo 3','DSCN1000.jpg',300,400),
      new Array('Photo 4','IMGP2708.jpg',534,400),
      new Array('Photo 5','Job27.jpg',534,400),
      new Array('Photo 6','PI270159.jpg',534,400),
      new Array('Photo 7','PI270161.jpg',534,400),
      new Array('Photo 8','PI270209.jpg',300,400),
      new Array('Photo 9','PI270219.jpg',300,400),
      new Array('Photo 10','PI290306.jpg',534,400),
      new Array('Photo 11','PI290307.jpg',534,400),
      new Array('Photo 12','PI290310.jpg',534,400)
    )
  ),

  new Array('Walls','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','2.jpg',500,400),
      new Array('Photo 2','Celtik Toscana 1 Arroyo Grande.jpg',534,400),
      new Array('Photo 3','Celtik Toscana 2 Arroyo Grande.jpg',534,400),
      new Array('Photo 4','Celtik Toscana 3 Arroyo Grande.jpg',534,400),
      new Array('Photo 5','Copy of PI270217.jpg',534,400),
      new Array('Photo 6','IMGP2696.jpg',534,400),
      new Array('Photo 7','IMGP2697.jpg',534,400),
      new Array('Photo 8','IMGP2699.jpg',534,400),
      new Array('Photo 9','IMGP2949.jpg',300,400),
      new Array('Photo 10','IMGP2951.jpg',534,400),
      new Array('Photo 11','Job13.jpg',534,400),
      new Array('Photo 12','Job15.jpg',534,400),
      new Array('Photo 13','JWLCeltic007.jpg',293,400),
      new Array('Photo 14','PI020434.jpg',534,400),
      new Array('Photo 15','PI020437.jpg',534,400),
      new Array('Photo 16','PI020440.jpg',534,400),
      new Array('Photo 17','PI090312.jpg',534,400),
      new Array('Photo 18','PI090321.jpg',300,400),
      new Array('Photo 19','PI270188.jpg',534,400),
      new Array('Photo 20','PI270192.jpg',534,400),
      new Array('Photo 21','PI270204.jpg',300,400),
      new Array('Photo 22','PI270218.jpg',534,400),
      new Array('Photo 23','PI290315.jpg',534,400),
      new Array('Photo 24','PI290317.jpg',534,400),
      new Array('Photo 25','sandstone_11LG.jpg',454,345),
      new Array('Photo 26','Use1.jpg',534,400)
    )
  ),

  new Array('Water Features','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','IMGP1400.jpg',534,400),
      new Array('Photo 2','IMGP1404.jpg',534,400),
      new Array('Photo 3','IMGP1405.jpg',534,400),
      new Array('Photo 4','IMGP1406.jpg',534,400),
      new Array('Photo 5','Job4.jpg',534,400),
      new Array('Photo 6','Job5.jpg',317,400),
      new Array('Photo 7','PI270173.jpg',534,400),
      new Array('Photo 8','PI270176.jpg',534,400),
      new Array('Photo 9','PI270178.jpg',300,400),
      new Array('Photo 10','PI270180.jpg',534,400),
      new Array('Photo 11','PI270262.jpg',300,400),
      new Array('Photo 12','PI280063.jpg',534,400),
      new Array('Photo 13','PI280069.jpg',300,400),
      new Array('Photo 14','PI280076.jpg',534,400),
      new Array('Photo 15','PI290304.jpg',300,400),
      new Array('Photo 16','PI290328.jpg',300,400),
      new Array('Photo 17','PI290370.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]);
}
