
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'portfolio.htm';
scriptName = 'portfolio.js';
countX = 5;
countY = 4;
// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(
  new Array('Portfolio','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','0.jpg',309,350,''), 
		new Array('','1.jpg',350,350,''), 
		new Array('','3.jpg',604,400,''), 
		new Array('','4.jpg',540,400,''), 
		new Array('','5.jpg',626,400,''), 
		new Array('','6.jpg',571,400,''), 
		new Array('','7.jpg',616,400,''), 
		new Array('','8.jpg',567,394,''), 
		new Array('','9.jpg',567,391,''), 
		new Array('','10.jpg',560,396,''), 
		new Array('','11.jpg',560,396,''), 
		new Array('','12.jpg',519,396,''), 
		new Array('','13.jpg',602,400,''), 
		new Array('','14.jpg',602,400,'') 
    ),'Click on the images to view a larger display of the photo.'
  ),
  new Array('Barbecues','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','barbecue_with_block1.jpg',533,400,''), 
		new Array('','barbecue_with_stone_countertop.jpg',533,400,''), 
		new Array('','barbecue_with_stucco.jpg',533,400,''),
		new Array('','bbq_02500_036.jpg',533,400,''), 
		new Array('','bbq_02500_039.jpg',533,400,''), 
		new Array('','bbq_Freada_Faal_004.jpg',533,400,''), 
		new Array('','bbq_Freada_Faal_005.jpg',533,400,''), 
		new Array('','bbq_Freada_Faal_006.jpg',533,400,''), 
		new Array('','bbq_Rockney_005.jpg',533,400,''), 
		new Array('','bbq_Rockney_006.jpg',533,400,''), 
		new Array('','bbq_wissot31.jpg',533,400,''),	
		new Array('','barbeque_001.jpg',533,400,''), 
		new Array('','barbeque_002.jpg',533,400,''), 
		new Array('','barbeque_003.jpg',599,400,''), 
		new Array('','barbeque_004.jpg',584,400,''), 
		new Array('','barbeque_005.jpg',592,400,''), 
		new Array('','barbeque_006.jpg',596,400,''), 
		new Array('','barbeque_007.jpg',593,400,''), 
		new Array('','barbeque_008.jpg',627,400,''), 
		new Array('','barbeque_009.jpg',533,400,''), 
		new Array('','barbeque_010.jpg',533,400,''), 
		new Array('','barbeque_011.jpg',533,400,''), 
		new Array('','barbeque_012.jpg',533,400,''), 
		new Array('','barbeque_013.jpg',533,400,''), 
		new Array('','barbeque_014.jpg',533,400,''), 
		new Array('','barbeque_015.jpg',533,400,''), 
		new Array('','barbeque_016.jpg',533,400,''), 
		new Array('','barbeque_017.jpg',533,400,''), 
		new Array('','barbeque_018.jpg',533,400,''), 
		new Array('','barbeque_019.jpg',533,400,''), 
		new Array('','barbeque_020.jpg',533,400,''), 
		new Array('','barbeque_021.jpg',533,400,''), 
		new Array('','barbeque_022.jpg',533,400,''), 
		new Array('','barbeque_023.jpg',533,400,''), 
		new Array('','barbeque_024.jpg',533,400,''), 
		new Array('','barbeque_025.jpg',533,400,''), 
		new Array('','barbeque_026.jpg',533,400,''), 
		new Array('','barbeque_027.jpg',533,400,''), 
		new Array('','barbeque_028.jpg',533,400,''), 
		new Array('','barbeque_029.jpg',533,400,''), 
		new Array('','barbeque_030.jpg',533,400,''), 
		new Array('','barbeque_031.jpg',533,400,''), 
		new Array('','barbeque_032.jpg',533,400,''), 
		new Array('','barbeque_033.jpg',533,400,''), 
		new Array('','barbeque_034.jpg',533,400,''),	
		new Array('','17.jpg',533,400,''), 
		new Array('','18.jpg',613,400,''), 
		new Array('','19.jpg',579,400,''), 
		new Array('','20.jpg',591,400,''), 
		new Array('','21.jpg',593,400,''), 
		new Array('','22.jpg',575,400,''), 
		new Array('','23.jpg',625,400,''), 
		new Array('','24.jpg',533,400,''), 
		new Array('','25.jpg',533,400,''), 
		new Array('','26.jpg',533,400,''), 
		new Array('','27.jpg',533,400,''), 
		new Array('','28.jpg',533,400,''), 
		new Array('','29.jpg',533,400,''), 
		new Array('','30.jpg',533,400,''), 
		new Array('','31.jpg',533,400,''), 
		new Array('','32.jpg',533,400,''), 
		new Array('','33.jpg',533,400,''), 
		new Array('','34.jpg',533,400,''), 
		new Array('','35.jpg',533,400,''), 
		new Array('','36.jpg',533,400,'') 
    ),'Click on the images to view a larger display of the photo.'
  ),
  new Array('Driveways','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','drw_4030_Clarinda_017.jpg',533,400,''), 
		new Array('','drw_Doreen_Lehrhoff_059.jpg',533,400,''), 
		new Array('','drw_Doreen_Lehrhoff_061.jpg',533,400,''), 
		new Array('','drw_Doreen_Lehrhoff_064.jpg',533,400,''),
		new Array('','drive_001.jpg',533,400,''), 
		new Array('','drive_002.jpg',533,400,''), 
		new Array('','drive_003.jpg',533,400,''), 
		new Array('','drive_004.jpg',533,400,''), 
		new Array('','drive_005.jpg',533,400,''), 
		new Array('','drive_006.jpg',533,400,''), 
		new Array('','drive_007.jpg',533,400,''), 
		new Array('','drive_008.jpg',533,400,''), 
		new Array('','drive_009.jpg',533,400,''),	
		new Array('','37.jpg',533,400,''), 
		new Array('','38.jpg',533,400,''), 
		new Array('','39.jpg',533,400,''), 
		new Array('','40.jpg',533,400,''), 
		new Array('','41.jpg',533,400,''), 
		new Array('','42.jpg',533,400,''), 
		new Array('','43.jpg',533,400,''), 
		new Array('','44.jpg',533,400,''), 
		new Array('','45.jpg',533,400,''), 
		new Array('','46.jpg',533,400,''), 
		new Array('','47.jpg',533,400,''), 
		new Array('','48.jpg',533,400,''), 
		new Array('','49.jpg',533,400,''), 
		new Array('','50.jpg',533,400,''), 
		new Array('','51.jpg',533,400,''), 
		new Array('','52.jpg',533,400,''), 
		new Array('','53.jpg',533,400,''), 
		new Array('','54.jpg',533,400,'') 
    ),'Click on the images to view a larger display of the photo.'
  ),
  new Array('Patios and Patio Covers','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','ppc_Doreen_Lehrhoff_058.jpg',533,400,''), 
		new Array('','ppc_Doreen_Lehrhoff_067.jpg',533,400,''), 
		new Array('','ppc_Jim_Pam_Morrison_032.jpg',533,400,''), 
		new Array('','ppc_Morrison_12.jpg',533,400,''), 
		new Array('','ppc_Morrison_14.jpg',533,400,''), 
		new Array('','ppc_Wilson__Landscape_017.jpg',533,400,''),	
		new Array('','patio_001.jpg',533,400,''), 
		new Array('','patio_002.jpg',533,400,''), 
		new Array('','patio_003.jpg',533,400,''), 
		new Array('','patio_004.jpg',533,400,''), 
		new Array('','patio_005.jpg',533,400,''), 
		new Array('','patio_006.jpg',533,400,''), 
		new Array('','patio_007.jpg',533,400,''), 
		new Array('','patio_008.jpg',533,400,''), 
		new Array('','patio_009.jpg',533,400,''), 
		new Array('','patio_010.jpg',533,400,''), 
		new Array('','patio_011.jpg',533,400,''), 
		new Array('','patio_012.jpg',533,400,''), 
		new Array('','patio_013.jpg',533,400,''), 
		new Array('','patio_014.jpg',533,400,''), 
		new Array('','patio_015.jpg',533,400,''), 
		new Array('','patio_016.jpg',533,400,''), 
		new Array('','patio_017.jpg',564,400,''), 
		new Array('','patio_018.jpg',533,400,''), 
		new Array('','patio_019.jpg',533,400,''), 
		new Array('','patio_020.jpg',533,400,''), 
		new Array('','patio_021.jpg',533,400,''), 
		new Array('','patio_022.jpg',533,400,''), 
		new Array('','patio_023.jpg',584,400,''), 
		new Array('','patio_024.jpg',582,400,''), 
		new Array('','patio_025.jpg',272,400,''), 
		new Array('','patio_026.jpg',585,400,''), 
		new Array('','patio_027.jpg',533,400,''), 
		new Array('','patio_028.jpg',300,400,''), 
		new Array('','patio_029.jpg',533,400,''), 
		new Array('','patio_030.jpg',533,400,''), 
		new Array('','patio_031.jpg',533,400,''), 
		new Array('','patio_032.jpg',533,400,''), 
		new Array('','patio_033.jpg',533,400,''), 
		new Array('','patio_034.jpg',533,400,''), 
		new Array('','patio_035.jpg',533,400,''), 
		new Array('','patio_036.jpg',533,400,''), 
		new Array('','patio_037.jpg',533,400,''), 
		new Array('','patio_038.jpg',533,400,''), 
		new Array('','patio_039.jpg',533,400,''), 
		new Array('','patio_040.jpg',533,400,''), 
		new Array('','patio_041.jpg',533,400,''), 
		new Array('','patio_042.jpg',533,400,''),	
		new Array('','55.jpg',533,400,''), 
		new Array('','56.jpg',533,400,''), 
		new Array('','57.jpg',533,400,''), 
		new Array('','58.jpg',533,400,''), 
		new Array('','59.jpg',533,400,''), 
		new Array('','60.jpg',533,400,''), 
		new Array('','61.jpg',533,400,''), 
		new Array('','62.jpg',533,400,''), 
		new Array('','63.jpg',533,400,''), 
		new Array('','64.jpg',533,400,''), 
		new Array('','65.jpg',533,400,''), 
		new Array('','16.jpg',326,350,''), 
		new Array('','66.jpg',533,400,'') 
    ),'Click on the images to view a larger display of the photo.'
  ),
  new Array('Waterfalls','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','wtr_Jim_Pam_Morrison_036.jpg',533,400,''), 
		new Array('','wtr_Picture_441.jpg',533,400,''),	
		new Array('','water_001.jpg',276,400,''), 
		new Array('','water_002.jpg',607,400,''), 
		new Array('','water_003.jpg',617,400,''), 
		new Array('','water_004.jpg',596,400,''), 
		new Array('','water_005.jpg',578,400,''), 
//		new Array('','water_006.jpg',533,400,''), 
		new Array('','water_007.jpg',533,400,''), 
		new Array('','water_008.jpg',533,400,''), 
		new Array('','water_009.jpg',533,400,''), 
		new Array('','water_010.jpg',555,400,''), 
		new Array('','water_011.jpg',553,400,''), 
//		new Array('','water_012.jpg',569,400,''), 
		new Array('','water_013.jpg',564,400,''), 
		new Array('','water_014.jpg',533,400,''), 
		new Array('','water_015.jpg',595,400,''), 
		new Array('','water_016.jpg',604,400,''), 
		new Array('','water_017.jpg',533,400,''), 
		new Array('','water_018.jpg',533,400,''), 
		new Array('','water_019.jpg',533,400,''), 	
		new Array('','67.jpg',242,350,''), 
		new Array('','68.jpg',614,400,''), 
		new Array('','69.jpg',605,400,''), 
		new Array('','70.jpg',616,400,''), 
		new Array('','71.jpg',594,400,''), 
		new Array('','72.jpg',582,400,''), 
		new Array('','73.jpg',604,400,''), 
//		new Array('','74.jpg',596,400,''),
		new Array('','2.jpg',496,400,''), 
		new Array('','15.jpg',619,400,''),
		new Array('','waterfalls.jpg',533,400,''), 
		new Array('','waterfalls_for_backyard.jpg',533,400,''), 
		new Array('','waterfalls_II.jpg',533,400,''), 
		new Array('','waterfalls_with_pond.jpg',533,400,''), 
		new Array('','waterfalls_with_stream.jpg',533,400,'')
    ),'Click on the images to view a larger display of the photo.'
  ),
  new Array('Artificial Turf','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','artifical_grass_pet_friendly.jpg',533,400,''), 
		new Array('','artifical_grass_saves_water.jpg',700,326,''), 
		new Array('','artificial_grass_for_dogs.jpg',533,400,''), 
		new Array('','artificial_grass_for_golf.jpg',533,400,''), 
		new Array('','artificial_grass_putting_green.jpg',533,400,''), 
		new Array('','artificial_grass_with_waterfalls.jpg',533,400,''), 
		new Array('','artificial_turff.jpg',533,400,''),
		new Array('','at_Jim_Pam_Morrison_032.jpg',533,400,''), 
		new Array('','at_Jim_Pam_Morrison_033.jpg',533,400,''), 
		new Array('','at_Jim_Pam_Morrison_034.jpg',533,400,''), 
		new Array('','at_Jim_Pam_Morrison_057.jpg',533,400,''), 
		new Array('','at_Picture_011.jpg',533,400,''),	
		new Array('','artificial_001.jpg',533,400,''), 
		new Array('','artificial_002.jpg',533,400,''), 
		new Array('','artificial_003.jpg',533,400,''), 
		new Array('','artificial_004.jpg',533,400,''), 
		new Array('','artificial_005.jpg',533,400,''), 
		new Array('','artificial_006.jpg',533,400,''), 
		new Array('','artificial_007.jpg',533,400,''), 
		new Array('','artificial_008.jpg',300,400,'')
    ),'Click on the images to view a larger display of the photo.'
  ),
  new Array('Landscape Lighting','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','DSC_0649.jpg',602,400,''), 
		new Array('','DSC_0650.jpg',602,400,''), 
		new Array('','DSC_0651.jpg',602,400,''), 
		new Array('','DSC_0653.jpg',602,400,''), 
		new Array('','DSC_0656.jpg',602,400,''), 
		new Array('','DSC_0657.jpg',602,400,''), 
		new Array('','DSC_0658.jpg',602,400,''), 
		new Array('','DSC_0659.jpg',602,400,''), 
		new Array('','DSC_0665.jpg',700,292,''),	
		new Array('','facebook-ad-2.jpg',539,400,''), 
		new Array('','ll_Pat_10.jpg',533,400,''), 
		new Array('','ll_Pat_11.jpg',533,400,'')
    ),'Click on the images to view a larger display of the photo.'
  ),
  new Array('Brick Pavers','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','paver_patio.jpg',533,400,''), 
		new Array('','paver_paver_with_bbq.jpg',533,400,''), 
		new Array('','paver_pool_deck.jpg',533,400,''),
		new Array('','bp_Doreen_Lehrhoff_071.jpg',533,400,''), 
		new Array('','bp_Doreen_Lehrhoff_072.jpg',533,400,''), 
		new Array('','bp_Doreen_Lehrhoff_073.jpg',533,400,''), 
		new Array('','bp_John&Kelly_Cissell_34.jpg',533,400,''), 
		new Array('','bp_John&Kelly_Cissell_35.jpg',533,400,''), 
		new Array('','bp_John_Ratzenberger_074.jpg',533,400,''), 
		new Array('','bp_Morrison_16.jpg',533,400,''), 
		new Array('','bp_Wilson__Landscape_012.jpg',533,400,''), 
		new Array('','bp_Wilson__Landscape_013.jpg',533,400,''), 
		new Array('','bp_Wilson__Landscape_014.jpg',533,400,''), 
		new Array('','bp_Wilson__Landscape_015.jpg',533,400,'')
    ),'Click on the images to view a larger display of the photo.'
  ),
  new Array('Masonry','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','mry_100.jpg',533,400,''), 
		new Array('','mry_101.jpg',533,400,''), 
		new Array('','mry_103.jpg',533,400,''), 
		new Array('','mry_chandra4.jpg',533,400,''), 
		new Array('','mry_Freada_Faal_001.jpg',533,400,''), 
		new Array('','mry_Freada_Faal_002.jpg',533,400,''), 
		new Array('','mry_Freada_Faal_003.jpg',533,400,''), 
		new Array('','mry_Freada_Faal_007.jpg',533,400,''), 
		new Array('','mry_june182005_017.jpg',533,400,''), 
		new Array('','mry_june182005_034.jpg',533,400,''), 
		new Array('','mry_landscape_pics_026.jpg',533,400,''), 
		new Array('','mry_landscape_pics_027.jpg',533,400,''), 
		new Array('','mry_Pritchard_3.jpg',533,400,''), 
		new Array('','mry_SCOTT_LOYOTA_004.jpg',533,400,''), 
		new Array('','mry_SCOTT_LOYOTA_009.jpg',533,400,''), 
		new Array('','mry_Steve_Bonnie_Brewer_004.jpg',533,400,''), 
		new Array('','mry_wissot.jpg',533,400,''),
		new Array('','masonry.jpg',533,400,''), 
		new Array('','masonry_fireplace.jpg',533,400,''), 
		new Array('','masonry_patio.jpg',533,400,''), 
		new Array('','masonry_spa_deck.jpg',533,400,'')
    ),'Click on the images to view a larger display of the photo.'
  ),
  new Array('Landscaping','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','landscape.jpg',533,400,''), 
		new Array('','lnd_02500_042.jpg',533,400,''), 
		new Array('','lnd_Doreen_Lehrhoff_063.jpg',533,400,''), 
		new Array('','lnd_Jim_Pam_Morrison_037.jpg',533,400,''), 
		new Array('','lnd_Jim_Pam_Morrison_038.jpg',533,400,''), 
		new Array('','lnd_Jim_Pam_Morrison_039.jpg',533,400,''), 
		new Array('','lnd_Jim_Pam_Morrison_040.jpg',533,400,''), 
		new Array('','lnd_Jim_Pam_Morrison_049.jpg',533,400,''), 
		new Array('','lnd_Jim_Pam_Morrison_051.jpg',533,400,''), 
		new Array('','lnd_Jim_Pam_Morrison_057.jpg',533,400,''), 
		new Array('','lnd_John_Ratzenberger_037.jpg',533,400,''), 
		new Array('','lnd_John_Ratzenberger_049.jpg',533,400,''), 
		new Array('','lnd_june182005_018.jpg',533,400,''), 
		new Array('','lnd_OLDMAN_009.jpg',533,400,''), 
		new Array('','lnd_OLDMAN_012.jpg',533,400,'')
    ),'Click on the images to view a larger display of the photo.'
  )
)

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:9px;">');
  for (jp=0;jp<arImages.length;jp++) {
    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][4]!='')
   showMessage('imagemediumname',arImages[section][4][number][4]);   
  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]);
}
