
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'portfolio.htm';
scriptName = 'portfolio.js';
countX = 4;
countY = 3;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(
//0
  new Array('Legacy Landscaping Inc. Album 1','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','A1.jpg',534,400),
      new Array('Photo 2','A2.jpg',300,400),
      new Array('Photo 3','A3.jpg',534,400),
      new Array('Photo 4','A4.jpg',534,400),
      new Array('Photo 5','A5.jpg',534,400),
      new Array('Photo 6','A6.jpg',300,400),
      new Array('Photo 7','A7.jpg',534,400),
      new Array('Photo 8','A8.jpg',534,400),
      new Array('Photo 9','A9.jpg',534,400)
    )
  ),
//1
  new Array('Legacy Landscaping Inc. Album 2','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','B1.jpg',534,400),
      new Array('Photo 2','B10.jpg',534,400),
      new Array('Photo 3','B2.jpg',534,400),
      new Array('Photo 4','B4.jpg',534,400),
      new Array('Photo 5','B5.jpg',534,400),
      new Array('Photo 6','B6.jpg',534,400),
      new Array('Photo 7','B7.jpg',534,400),
      new Array('Photo 8','B8.jpg',534,400),
      new Array('Photo 9','B9.jpg',534,400),	  
      new Array('Photo 10','1-31-10 009.jpg',534,400),
      new Array('Photo 11','12-4-09 012.jpg',534,400),
      new Array('Photo 12','12-4-09 025.jpg',534,400)
    )
  ),
//2
  new Array('Legacy Landscaping Inc. Album 3','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','C1.jpg',534,400),
      new Array('Photo 2','C10.jpg',534,400),
      new Array('Photo 3','C2.jpg',534,400),
      new Array('Photo 4','C3.jpg',534,400),
      new Array('Photo 5','C4.jpg',534,400),
      new Array('Photo 6','C5.jpg',534,400),
      new Array('Photo 7','C6.jpg',534,400),
      new Array('Photo 8','C7.jpg',534,400),
      new Array('Photo 9','C8.jpg',534,400),
      new Array('Photo 10','C9.jpg',534,400)
    )
  ),
//3
  new Array('Legacy Landscaping Inc. Album 4','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','D1.jpg',534,400),
      new Array('Photo 2','D10.jpg',534,400),
      new Array('Photo 3','D2.jpg',534,400),
      new Array('Photo 4','D5.jpg',534,400),
      new Array('Photo 5','D6.jpg',534,400),
      new Array('Photo 6','D7.jpg',534,400),
      new Array('Photo 7','D9.jpg',534,400)
    )
  ),
//4
  new Array('Legacy Landscaping Inc. Album 5','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','E1.jpg',534,400),
      new Array('Photo 2','E2.jpg',534,400),
      new Array('Photo 3','E3.jpg',534,400),
      new Array('Photo 4','E7.jpg',534,400),
      new Array('Photo 5','E8.jpg',534,400)
	)
  ),
//5  
  new Array('Fireplaces and Kitchens','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','004.jpg',533,400),
      new Array('Photo 2','007.jpg',534,400),
      new Array('Photo 3','FP pics 017.jpg',534,400),
      new Array('Photo 4','FP pics 019.jpg',534,400),
      new Array('Photo 5','IMG_0088.jpg',300,400),
      new Array('Photo 6','1-31-10 004.jpg',534,400),
      new Array('Photo 7','1-31-10 010.jpg',534,400),
	  //20100617
      new Array('Photo 1','6-17-10 004.jpg',534,400),
      new Array('Photo 2','6-17-10 007.jpg',534,400),
      new Array('Photo 4','6-17-10 009.jpg',534,400) 
    )
  ),
//6 
  new Array('Grading','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','016.jpg',534,400),
      new Array('Photo 2','023.jpg',534,400)
    )
  ),
//7
  new Array('Patios and Walkways','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','47.jpg',600,400),
      new Array('Photo 2','028.jpg',534,400),
      new Array('Photo 3','029.jpg',534,400),
      new Array('Photo 4','030.jpg',534,400),
      new Array('Photo 5','031.jpg',534,400),
      new Array('Photo 6','034.jpg',534,400),
      new Array('Photo 7','P4090006.jpg',534,400),
      new Array('Photo 8','P4170017.jpg',534,400),
      new Array('Photo 9','P4230025.jpg',534,400),
	  new Array('Photo 10','12-4-09 024.jpg',534,400),
      new Array('Photo 11','12-4-09 034.jpg',534,400),
	  //20100617
      new Array('Photo 12','Whetzel 023.jpg',534,400),
      new Array('Photo 13','Whetzel 025.jpg',534,400),
      new Array('Photo 14','Whetzel 038.jpg',534,400),
      new Array('Photo 15','Whetzel 045.jpg',534,400),
      new Array('Photo 16','Whetzel 046.jpg',534,400),
	  //20100617
      new Array('Photo 11','6-17-10 008.jpg',534,400)
    )
  ),
//8
  new Array('Seat Walls-firepits','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','28.jpg',600,400),
      new Array('Photo 2','29e.jpg',600,400),
      new Array('Photo 3','026.jpg',534,400),
      new Array('Photo 4','P4090002.jpg',533,400),
      new Array('Photo 5','P4170019.jpg',534,400),	  
      new Array('Photo 6','12-4-09 021.jpg',534,400),	  
      new Array('Photo 7','12-4-09 014.jpg',534,400),	  
	  //20100615
      new Array('Photo 8','Whetzel 015.jpg',534,400),
      new Array('Photo 9','Whetzel 035.jpg',534,400),
      new Array('Photo 10','Whetzel 037.jpg',534,400)
    )
  ),

  new Array('Walls','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','29.jpg',600,400)
   
  /*  )
  ),
  
 Array('Portfolio','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Whetzel 015','Whetzel 015.jpg',534,400),
      new Array('Whetzel 023','Whetzel 023.jpg',534,400),
      new Array('Whetzel 025','Whetzel 025.jpg',534,400),
      new Array('Whetzel 035','Whetzel 035.jpg',534,400),
      new Array('Whetzel 037','Whetzel 037.jpg',534,400),
      new Array('Whetzel 038','Whetzel 038.jpg',534,400),
      new Array('Whetzel 045','Whetzel 045.jpg',534,400),
      new Array('Whetzel 046','Whetzel 046.jpg',534,400)
	  =
	  new Array('Photo 1','6-17-10 004.jpg',534,400),
      new Array('Photo 2','6-17-10 007.jpg',534,400),
      new Array('Photo 3','6-17-10 008.jpg',534,400),
      new Array('Photo 4','6-17-10 009.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]);
}
