
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'portfolio.htm';
scriptName = 'portfolio.js';
countX = 5;
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('Fountains and Waterfalls','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','fountains_001.jpg',602,400,''), 
		new Array('','fountains_002.jpg',602,400,''), 
		new Array('','fountains_003.jpg',602,400,''), 
		new Array('','fountains_004.jpg',602,400,''), 
		new Array('','fountains_005.jpg',602,400,''), 
		new Array('','fountains_006.jpg',602,400,''), 
		new Array('','fountains_007.jpg',602,400,''), 
		new Array('','fountains_008.jpg',266,400,''), 
		new Array('','fountains_009.jpg',266,400,''),	
		new Array('','fountains01.jpg',605,400,''), 
		new Array('','fountains02.jpg',258,400,''), 
		new Array('','fountains03.jpg',601,400,''),
        new Array('','collins fountain 002.jpg',594,400,''),
        new Array('','collins fountain 005_1.jpg',676,400,''),
        new Array('','collins fountain 012_1.jpg',648,400,''),
		new Array('','jobs_palms_gazebo_028.jpg',300,400,''), 
		new Array('','jobs_palms_gazebo_029.jpg',494,400,''), 
		new Array('','t-roys_fountain_003.jpg',602,400,''), 		
//        new Array('','collins oasis 016.jpg',300,400,''),
        new Array('','fountains 1.jpg',534,400,''),
        new Array('','fountains 2.jpg',300,400,''),
        new Array('','fountains.jpg',300,400,'')
    ),0,1
  ),
  new Array('Landscape Lighting','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','lighting_001.jpg',601,400,''), 
		new Array('','lighting_002.jpg',601,400,''), 
		new Array('','lighting_003.jpg',601,400,''), 
		new Array('','lighting_007.jpg',601,400,''), 
		new Array('','lighting_008.jpg',601,400,''), 
		new Array('','lighting_009.jpg',601,400,''), 
		new Array('','lighting_010.jpg',601,400,''), 
		new Array('','lighting_011.jpg',601,400,''),	
		new Array('','lighting01.jpg',590,400,''), 
		new Array('','lighting02.jpg',603,400,''), 
		new Array('','lighting03.jpg',605,400,''), 
		new Array('','lighting04.jpg',600,400,''), 
		new Array('','lighting05.jpg',603,400,''), 
		new Array('','lighting06.jpg',603,400,''), 
		new Array('','lighting07.jpg',601,400,''), 
		new Array('','lighting08.jpg',612,400,''), 
		new Array('','lighting09.jpg',605,400,''), 
		new Array('','lighting10.jpg',604,400,''), 
		new Array('','lighting11.jpg',603,400,''), 
		new Array('','lighting12.jpg',600,400,''), 
		new Array('','lighting13.jpg',605,400,'') ,
        new Array('','collins fountain 005.jpg',676,400,''),
        new Array('','collins fountain 012.jpg',648,400,''),
        new Array('','collins lighting 007.jpg',534,400,''),
        new Array('','collins lighting 011.jpg',300,400,''),
        new Array('','collins lighting 016.jpg',534,400,''),
        new Array('','collins lighting 022.jpg',534,400,''),
        new Array('','collins lighting 026.jpg',534,400,''),
        new Array('','collins lighting 027.jpg',534,400,''),
        new Array('','collins lighting 029.jpg',534,400,''),
        new Array('','collins lighting 030.jpg',534,400,''),
        new Array('','collins lighting 037.jpg',534,400,''),
        new Array('','collins lighting 056.jpg',534,400,''),
        new Array('','collins lighting 058.jpg',534,400,''),
        new Array('','collins lighting 061.jpg',534,400,''),
        new Array('','jodys pics easter 07 jobs products 053.jpg',700,341,''),
        new Array('','jodys pics easter 07 jobs products 055.jpg',629,400,''),
        new Array('','jodys pics easter 07 jobs products 065.jpg',534,400,''),
        new Array('','jodys pics easter 07 jobs products 085.jpg',534,400,''),
        new Array('','jodys pics easter 07 jobs products 087.jpg',534,400,''),
        new Array('','jodys pics easter 07 jobs products 090.jpg',534,400,''),
        new Array('','jodys pics easter 07 jobs products 091.jpg',534,400,''),
        new Array('','jodys pics easter 07 jobs products 100.jpg',504,400,''),
        new Array('','pool 018.jpg',534,400,'')
    ),0,3
  ),
  new Array('Landscaping','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('Before','landbefore_003.jpg',601,400,''),
		new Array('After','landafter_002.jpg',601,400,''),
		new Array('Before','landbefore_001.jpg',601,400,''),
		new Array('After','landafter_001.jpg',601,400,''),
		new Array('Before','landbefore_002.jpg',601,400,''),
		new Array('After','landafter_003.jpg',601,400,''),
		new Array('Before','landscaping_bef03.jpg',592,400,''),
		new Array('After','landscaping_aft01.jpg',600,400,''),
		new Array('Before','landscaping_bef01.jpg',605,400,''),
		new Array('Before','landscaping_bef02.jpg',603,400,''),
		new Array('After','hardscapes_aft07.jpg',590,400,''),
		new Array('After','hardscapes_aft08.jpg',605,400,''),
		new Array('After','hardscapes_aft09.jpg',604,400,''),
		new Array('After','hardscapes_aft10.jpg',585,400,''),
		new Array('After','hardscapes_aft11.jpg',590,400,''),
		new Array('Before','landscaping_bef04.jpg',587,400,''), 
		new Array('Before','landscaping_bef05.jpg',590,400,''),	
		new Array('After','landscaping_aft02.jpg',269,400,''), 
		new Array('After','landscaping_aft03.jpg',266,400,''), 
		new Array('After','landscaping_aft04.jpg',266,400,''), 
		new Array('After','landscaping_aft05.jpg',258,400,''), 
		new Array('After','landscaping_aft06.jpg',269,400,''), 
		new Array('After','landscaping_aft07.jpg',574,400,''), 
		new Array('','landscaping01.jpg',533,400,''), 
		new Array('','landscaping02.jpg',533,400,''), 
		new Array('','landscaping03.jpg',533,400,''), 
		new Array('','landscaping04.jpg',533,400,''), 
		new Array('','landscaping05.jpg',533,400,''), 
		new Array('','landscaping06.jpg',533,400,''), 
		new Array('','landscaping07.jpg',533,400,''), 
		new Array('','landscaping08.jpg',533,400,''), 
		new Array('','landscaping09.jpg',533,400,''),
      new Array('Before 1','donaldsons and easter 07 001.jpg',602,400,''),
      new Array('Before 1','donaldsons and easter 07 002.jpg',602,400,''),
      new Array('Before 1','donaldsons and easter 07 007.jpg',602,400,''),
      new Array('After 1','jobs 008.jpg',534,400,''),
      new Array('After 1','jobs 009.jpg',534,400,''),
      new Array('After 1','jobs 010.jpg',534,400,''),
      new Array('Before 2','jobs 001.jpg',534,400,''),
      new Array('Before 2','jobs 002.jpg',534,400,''),
      new Array('After 2','reed  oasis 004.jpg',534,400,''),
      new Array('After 2','reed  oasis 007.jpg',534,400,''),
      new Array('Before 3','jobs 012.jpg',534,400,''),
      new Array('After 3','jobs mason quinlan 011.jpg',534,400,''),
      new Array('After 3','jobs mason quinlan 015.jpg',534,400,''),
      new Array('Before 4','jobs and products 003.jpg',534,400,''),
      new Array('After 4','ted martin oasis 001.jpg',534,400,''),
      new Array('After 4','ted martin oasis 003.jpg',534,400,''),
      new Array('After 4','ted martin oasis 005.jpg',534,400,''),
      new Array('After 4','ted martin oasis 009.jpg',534,400,''),
      new Array('Before 5','jobs and products 020.jpg',534,400,''),
      new Array('After 5','jobs and products 001.jpg',534,400,''),
      new Array('After 5','jobs and products 004.jpg',534,400,''),
      new Array('After 5','jobs and products 005.jpg',534,400,''),
      new Array('Before','collins before.jpg',534,400,''),
      new Array('Before','worrisome sylvestris 002.jpg',534,400,''),
      new Array('After','collins oasis 001.jpg',534,400,''),
      new Array('After','collins oasis 003.jpg',534,400,''),
      new Array('After','Copy of spray bar 001.jpg',534,400,''),
      new Array('After','jobs and products 006.jpg',534,400,''),
      new Array('After','jobs and products 007_1.jpg',534,400,''),
      new Array('After','jobs and products 011.jpg',534,400,''),
      new Array('After','jobs and products 012.jpg',534,400,''),
      new Array('After','jobs and products 014_1.jpg',534,400,''),
      new Array('After','jobs mason quinlan 004.jpg',534,400,''),
      new Array('After','jobs mason quinlan 005.jpg',534,400,''),
      new Array('After','jobs mason quinlan 006.jpg',534,400,''),
      new Array('After','jodys pics easter 07 jobs products 031.jpg',514,400,''),
      new Array('After','jodys pics easter 07 jobs products 032.jpg',700,341,''),
      new Array('After','pool 007.jpg',534,400,''),
      new Array('After','pool 012.jpg',534,400,'')
    ),0,2
  ),
  new Array('Plants & Trees','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','palms_029.jpg',265,400,''), 
		new Array('','palms_030.jpg',601,400,''), 
		new Array('','palms_031.jpg',265,400,''),
		new Array('','specialty_008.jpg',265,400,''), 
		new Array('','specialty_009.jpg',601,400,''), 
		new Array('','specialty_010.jpg',601,400,''),			
		new Array('','specialty_001.jpg',266,400,''), 
		new Array('','specialty_002.jpg',266,400,''), 
//		new Array('','specialty_003.jpg',266,400,''), 
//		new Array('','specialty_004.jpg',266,400,''), 
//		new Array('','specialty_005.jpg',266,400,''), 
		new Array('','specialty_006.jpg',266,400,''), 
		new Array('','specialty_007.jpg',266,400,''), 	
		new Array('','palms_001.jpg',266,400,''), 
		new Array('','palms_002.jpg',266,400,''), 
		new Array('','palms_003.jpg',266,400,''), 
		new Array('','palms_004.jpg',266,400,''), 
		new Array('','palms_005.jpg',602,400,''), 
		new Array('','palms_006.jpg',602,400,''), 
		new Array('','palms_007.jpg',266,400,''), 
		new Array('','palms_008.jpg',266,400,''), 
		new Array('','palms_009.jpg',266,400,''), 
		new Array('','palms_010.jpg',602,400,''), 
		new Array('','palms_011.jpg',266,400,''), 
		new Array('','palms_012.jpg',266,400,''), 
		new Array('','palms_013.jpg',266,400,''), 
		new Array('','palms_014.jpg',266,400,''), 
		new Array('','palms_015.jpg',266,400,''), 
		new Array('','palms_016.jpg',602,400,''), 
		new Array('','palms_017.jpg',266,400,''), 
		new Array('','palms_018.jpg',266,400,''), 
		new Array('','palms_019.jpg',602,400,''), 
		new Array('','palms_020.jpg',266,400,''), 
		new Array('','palms_021.jpg',266,400,''), 
		new Array('','palms_022.jpg',266,400,''), 
		new Array('','palms_023.jpg',602,400,''), 
		new Array('','palms_024.jpg',266,400,''), 
		new Array('','palms_025.jpg',602,400,''), 
		new Array('','palms_026.jpg',266,400,''), 
		new Array('','palms_027.jpg',266,400,''), 
		new Array('','palms_028.jpg',266,400,''),	
		new Array('','palms01.jpg',601,400,''), 
		new Array('','palms02.jpg',601,400,''), 
		new Array('','palms03.jpg',601,400,''), 
		new Array('','palms04.jpg',265,400,''), 
		new Array('','palms05.jpg',265,400,''), 
		new Array('','palms06.jpg',260,400,''), 
		new Array('','palms07.jpg',264,400,''), 
		new Array('','palms08.jpg',263,400,''), 
//		new Array('','palms09.jpg',265,400,''), 
		new Array('','palms10.jpg',603,400,''), 
		new Array('','palms11.jpg',268,400,''),
        new Array('','boug. and topiary 001.jpg',534,400,''),
        new Array('','boug. and topiary 002.jpg',534,400,''),
        new Array('','boug. and topiary 004.jpg',300,400,''),
        new Array('','boug. and topiary 006.jpg',300,400,''),
        new Array('','boug. and topiary 007.jpg',300,400,''),
        new Array('','boug. and topiary 009.jpg',300,400,''),
        new Array('','boug. and topiary 010.jpg',534,400,''),
        new Array('','boug. and topiary 012.jpg',300,400,''),
        new Array('','collins oasis 020.jpg',534,400,''),
        new Array('','collins oasis 025.jpg',300,400,''),
        new Array('','dec 11 08 snow 009.jpg',300,400,''),
        new Array('','dec 11 08 snow 011.jpg',534,400,''),
        new Array('','GetAttachment[8].jpg',534,400,''),
        new Array('','holiday inn express 002.jpg',300,400,''),
        new Array('','jobs and products 002.jpg',300,400,''),
        new Array('','jobs mason quinlan 003.jpg',300,400,''),
        new Array('','jodys pics easter 07 jobs products 080.jpg',300,400,''),
        new Array('','palms 004.jpg',300,400,''),
        new Array('','palms 005.jpg',300,400,''),
        new Array('','palms 006.jpg',300,400,''),
        new Array('','pond and hybrid sylv. 008.jpg',300,400,''),
        new Array('','reed  oasis 010.jpg',300,400,'')
    ),0,0
  ),
  new Array('Paver Hardscapes','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('Before','hardscapes_bef01.jpg',603,400,''),
		new Array('After','hardscapes_aft01.jpg',612,400,''),
		new Array('After','hardscapes_aft02.jpg',605,400,''),
		new Array('After','hardscapes_aft03.jpg',603,400,''),
		new Array('After','hardscapes_aft04.jpg',605,400,''),
		new Array('After','hardscapes_aft05.jpg',603,400,''),
		new Array('Before','hardscapes_bef02.jpg',602,400,''),
		new Array('After','hardscapes_aft06.jpg',600,400,''),
		new Array('Before','hardscapes_bef03.jpg',606,400,''),
		new Array('After','hardscapes_aft12.jpg',600,400,''),
		new Array('After','hardscapes_aft13.jpg',609,400,''),
		new Array('After','hardscapes_aft14.jpg',609,400,''),
		new Array('After','hardscapes_aft15.jpg',263,400,''),
		new Array('Before','hardscapes_bef04.jpg',601,400,''),
		new Array('After','hardscapes_aft16.jpg',602,400,''),
		new Array('After','hardscapes_aft17.jpg',596,400,''),
		new Array('After','hardscapes_aft18.jpg',605,400,''),
		new Array('After','hardscapes_aft19.jpg',266,400,''),
		new Array('','hardscapes01.jpg',593,400,''),
		new Array('','hardscapes02.jpg',273,400,''),
		new Array('','hardscapes03.jpg',593,400,''),
		new Array('','hardscapes04.jpg',588,400,''),
		new Array('','hardscapes05.jpg',609,400,''),
		new Array('','hardscapes06.jpg',603,400,''),
		new Array('','hardscapes07.jpg',613,400,''),
		new Array('','hardscapes08.jpg',585,400,''),
        new Array('','jobs and products 007.jpg',534,400,''),
        new Array('','jobs and products 014.jpg',534,400,''),
        new Array('','pool 005.jpg',534,400,'')
    ),0,4
  ),
  new Array('Bulk Rock, Soils and Mulch','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','bulkrock_001.jpg',265,400,''), 
		new Array('','bulkrock_002.jpg',601,400,''), 
		new Array('','bulkrock_003.jpg',601,400,''), 
		new Array('','bulkrock_004.jpg',601,400,''), 
		new Array('','bulkrock_005.jpg',601,400,''), 
		new Array('','bulkrock_006.jpg',601,400,''), 
		new Array('','bulkrock_007.jpg',601,400,''), 
		new Array('','bulkrock_008.jpg',601,400,''), 
		new Array('','bulkrock_009.jpg',601,400,''), 
		new Array('','bulkrock_010.jpg',601,400,''), 
		new Array('','bulkrock_011.jpg',601,400,''), 
		new Array('','bulkrock_012.jpg',601,400,''), 
		new Array('','bulkrock_013.jpg',601,400,''), 
		new Array('','bulkrock_014.jpg',601,400,''), 
		new Array('','bulkrock_015.jpg',601,400,''), 
		new Array('','bulkrock_016.jpg',601,400,''), 
		new Array('','bulkrock_017.jpg',265,400,''), 
		new Array('','bulkrock_018.jpg',601,400,''), 
		new Array('','bulkrock_019.jpg',601,400,''), 
		new Array('','bulkrock_020.jpg',601,400,''), 
		new Array('','bulkrock_021.jpg',601,400,''), 
		new Array('','bulkrock_022.jpg',601,400,''), 
		new Array('','bulkrock_023.jpg',601,400,''), 
		new Array('','bulkrock_024.jpg',601,400,''), 
		new Array('','bulkrock_025.jpg',601,400,''), 
		new Array('','bulkrock_026.jpg',601,400,''),
		new Array('','bulk_rock_001.jpg',602,400,''), 
		new Array('','bulk_rock_002.jpg',602,400,''),
		new Array('','mulch_001.jpg',601,400,''), 
		new Array('','mulch_002.jpg',601,400,''), 
		new Array('','mulch_003.jpg',601,400,''), 
		new Array('','mulch_004.jpg',601,400,''), 
		new Array('','mulch_005.jpg',601,400,'')		
    ),0,6
  ),
  new Array('Accessories','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','pottery_001.jpg',266,400,''), 
		new Array('','pottery_002.jpg',266,400,''), 
		new Array('','pottery_003.jpg',266,400,''), 
		new Array('','pottery_004.jpg',602,400,''), 
		new Array('','pottery_005.jpg',266,400,''), 
		new Array('','pottery_006.jpg',602,400,''), 
		new Array('','pottery_007.jpg',602,400,''), 
		new Array('','pottery_008.jpg',266,400,''), 
		new Array('','pottery_009.jpg',266,400,''), 
		new Array('','pottery_010.jpg',602,400,''),
        new Array('','jodys pics easter 07 jobs products 072.jpg',534,400,''),
        new Array('','jodys pics easter 07 jobs products 073.jpg',534,400,''),
        new Array('','jodys pics easter 07 jobs products 074.jpg',300,400,''),
        new Array('','jodys pics easter 07 jobs products 075.jpg',534,400,''),
        new Array('','jodys pics easter 07 jobs products 076.jpg',534,400,''),
        new Array('','jodys pics easter 07 jobs products 077.jpg',300,400,'')
    ),0,7
  ),
  new Array('Vinyl Gazebos','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','jobs_palms_gazebo_024.jpg',300,400,''), 
		new Array('','jobs_palms_gazebo_025.jpg',533,400,''), 
		new Array('','jobs_palms_gazebo_026.jpg',300,400,''), 
        new Array('','gazebos 001.jpg',534,400,''),
        new Array('','gazebos 002.jpg',534,400,''),
        new Array('','gazebos 005.jpg',534,400,''),
        new Array('','gazebos 006.jpg',300,400,''),
        new Array('','gazebos 009.jpg',534,400,'')
    ),0,5
  ),
  new Array('Retaining Walls','','','','',0,0,'retaining_walls.htm'
  ) 
)

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 menu_portfolio() {
  var jp;
  document.write('<table border="0" cellspacing="0" cellpadding="0">');
  document.write('<tr><td>Choose a category:&nbsp;<select name="cat" class="select1" onChange="if (this.value.length!=0) window.location=this.value" style="font-size:11px;">');
  for (jp=0;jp<arImages.length;jp++) {
   if (typeof(arImages[jp][7])!='undefined')
    document.write('<option value="'+arImages[jp][7]+'?section='+jp+'"'+((jp==section)?' selected':'')+'>'+arImages[jp][0]+'</option>');	
   else
    document.write('<option value="'+pageName+'?section='+jp+'"'+((jp==section)?' selected':'')+'>'+arImages[jp][0]+'</option>');
  }  
  document.write('</select></td></tr>')
  document.write('</table>');
} 
  
function showImageMedium(number) {
  showImage('imagemedium',arImages[section][2]+arImages[section][4][number][1]);
  if (arImages[section][4][number][0]!='')
   showMessage('imagemediumname',arImages[section][4][number][0]);   
  else
   showMessage('imagemediumname','Photo '+Number(Number(number)+1));
}

function showImageBig(number) {
  showImagePopup(scriptName,section,number,arImages[section][4][number][2],
   arImages[section][4][number][3]);
}
