
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'portphotos.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(
  new Array('Landscaping','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','Reed Residence 005.jpg',700,355,'','',''), 
		new Array('','Reed Residence 006.jpg',700,397,'','',''), 
		new Array('','Reed Residence 013.jpg',533,400,'','',''), 
		new Array('','Reed Residence 017.jpg',533,400,'','',''), 
		new Array('','Reed Residence cropped 005.jpg',700,355,'','',''),
		new Array('','Reed Residence 007.jpg',533,400,'','',''),
		new Array('','land_Pavers_003.jpg',533,400,'','',''), 
		new Array('','land_Pavers_004.jpg',533,400,'','',''), 
		new Array('','land_Pavers_007.jpg',533,400,'','','')
    ),6,'Landscaping is a great way to add  value and accent your outdoor living space.&nbsp;  Trees, shrubs and flowers (softscape) are used to accent and provide  color throughout each season.&nbsp; Pavers,  flag stone, retaining walls and columns (hardscape) are used to create  pathways, patios and usable outdoor living spaces. &nbsp;&nbsp;Accent your landscaping with a pond or  pondless waterfall and create an outdoor paradise to relax or entertain.&nbsp;&nbsp; Contact us today and we will be glad to meet  with you and provide you with a project proposal.'
  ),
  new Array('Pavers','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','Illinois_paver_jobs_001.jpg',533,400,'','',''), 
		new Array('','Illinois_paver_jobs_002.jpg',533,400,'','',''), 
		new Array('','Illinois_paver_jobs_004.jpg',533,400,'','',''), 
		new Array('','Illinois_paver_jobs_006.jpg',533,400,'','',''), 
		new Array('','Illinois_paver_jobs_007.jpg',533,400,'','',''), 
		new Array('','Illinois_paver_jobs_008.jpg',533,400,'','',''), 
		new Array('','Illinois_paver_jobs_010.jpg',533,400,'','',''), 
		new Array('','Doubletree Entrance 2.jpg',533,400,'','',''), 
		new Array('','Doubletree Entrance 5.jpg',628,400,'','',''), 
		new Array('','Illinois_paver_jobs_011.jpg',533,400,'','',''), 
		new Array('','Illinois_paver_jobs_013.jpg',533,400,'','',''), 
		new Array('','Illinois_paver_jobs_014.jpg',533,400,'','',''), 
		new Array('','Illinois_paver_jobs_015.jpg',533,400,'','',''), 
		new Array('','Illinois_paver_jobs_017.jpg',533,400,'','',''), 
		new Array('','Illinois_paver_jobs_018.jpg',533,400,'','',''), 
		new Array('','Illinois_paver_jobs_019.jpg',533,400,'','',''), 
		new Array('','Illinois_paver_jobs_020.jpg',533,400,'','',''),
//		new Array('','Reed Residence 007.jpg',533,400,'','',''), 
		new Array('','pav_Munro_pavers_1.jpg',533,400,'','',''), 
		new Array('','pav_Munro_pavers_2.jpg',533,400,'','',''), 
		new Array('','pav_Munro_pavers_5_edt.jpg',700,344,'','',''), 
		new Array('','Paver Patios 021.jpg',533,400,'','',''), 
		new Array('','Paver Patios 022.jpg',533,400,'','',''), 
		new Array('','Paver Patios 023.jpg',533,400,'','',''), 
		new Array('','Paver Patios 038.jpg',533,400,'','',''), 
		new Array('','Paver Patios 039.jpg',533,400,'','',''), 
		new Array('','Paver Patios 042.jpg',533,400,'','',''), 
		new Array('','Paver Patios 043.jpg',533,400,'','',''), 
		new Array('','Paver Patios 044.jpg',533,400,'','',''), 
		new Array('','Paver Patios 046.jpg',533,400,'','',''), 
		new Array('','Paver Patios 047.jpg',533,400,'','',''), 
		new Array('','Paver Patios 049.jpg',533,400,'','',''), 
		new Array('','Paver Patios 050.jpg',533,400,'','',''), 
		new Array('','Paver Patios 053.jpg',533,400,'','',''), 
		new Array('','Paver Patios 054.jpg',533,400,'','',''), 
		new Array('','Paver Patios 055.jpg',533,400,'','',''), 
		new Array('','Paver Patios 056.jpg',533,400,'','',''), 
		new Array('','Pavers Patios 013.jpg',533,400,'','',''), 
		new Array('','Pavers Patios 015.jpg',533,400,'','',''), 
		new Array('','Pavers Patios 016.jpg',533,400,'','',''), 
		new Array('','Pavers Patios 017.jpg',533,400,'','',''),	
		new Array('','pavers_PA140310.jpg',533,400,'','',''), 
		new Array('','pavers_PA140312.jpg',533,400,'','',''), 
		new Array('','pavers_PA140313.jpg',533,400,'','',''), 
		new Array('','pavers_PA140315.jpg',533,400,'','',''), 
		new Array('','pavers_PA140316.jpg',533,400,'','',''), 
		new Array('','pavers_PA140317.jpg',533,400,'','',''), 
		new Array('','pavers_PA140320.jpg',533,400,'','',''), 
		new Array('','pavers_PA140321.jpg',533,400,'','',''), 
		new Array('','pavers_PA140322.jpg',533,400,'','',''), 
		new Array('','pavers_PA140323.jpg',533,400,'','',''), 	
//		new Array('','IMG_0147.jpg',533,400,'','',''), 
//		new Array('','IMG_0148.jpg',533,400,'','',''), 
//		new Array('','IMG_0149.jpg',533,400,'','',''), 
		new Array('','P8120056.jpg',533,400,'','',''), 
		new Array('','P8120057.jpg',533,400,'','',''), 
		new Array('','P8120059.jpg',533,400,'','',''), 
		new Array('','P8120060.jpg',533,400,'','',''), 
		new Array('','P8290097.jpg',533,400,'','',''), 
		new Array('','P8290098.jpg',533,400,'','',''), 
		new Array('','P8290099.jpg',533,400,'','',''), 	
		new Array('','pav_Pavers_001.jpg',533,400,'','',''), 
		new Array('','pav_Pavers_002.jpg',533,400,'','',''), 
		new Array('','pav_Pavers_003.jpg',533,400,'','',''), 
		new Array('','pav_Pavers_005.jpg',533,400,'','',''),	
		new Array('','Pr_cdg1.jpg',533,400,'','',''), 
//		new Array('','Pr_P1100101.jpg',533,400,'','',''), 
//		new Array('','Pr_P1100103.jpg',533,400,'','',''), 
		new Array('','Pr_P1280175.jpg',533,400,'','',''), 
		new Array('','Pr_P1280177.jpg',533,400,'','',''), 
		new Array('','Pr_P3140080_0047.jpg',533,400,'','',''),
		new Array('','Pr_P3140081_00481.jpg',533,400,'','',''),
		new Array('','Pr_P6210037.jpg',533,400,'','',''),
		new Array('','Pr_P6210038.jpg',533,400,'','',''),
		new Array('','Pr_P6210039.jpg',533,400,'','',''),
		new Array('','Pr_P6210040.jpg',533,400,'','',''), //current
		new Array('','Pr_P6250169.jpg',533,400,'','',''),
		new Array('','Pr_P6250170.jpg',533,400,'','',''),
		new Array('','Pr_P6250178.jpg',533,400,'','',''),
		new Array('','Pr_P6250179.jpg',533,400,'','',''),
		new Array('','Pr_P6250180.jpg',533,400,'','',''),
		new Array('','Pr_P6250183.jpg',533,400,'','',''),
		new Array('','Pr_P6250186.jpg',533,400,'','',''),
		new Array('','pav_P7020038.jpg',533,400,'','',''),
		new Array('','pav_P7020041.jpg',533,400,'','',''),
		new Array('','pav_P7020044.jpg',533,400,'','',''),
		new Array('','Pr_P9180038.jpg',533,400,'','',''),
		new Array('','Pavers01.jpg',533,400,'','',''),
		new Array('','Pavers02.jpg',534,400,'','',''),
		new Array('','Pavers03.jpg',533,400,'','',''),
//		new Array('','Pavers05.jpg',533,400,'','',''),
		new Array('','Pavers09.jpg',533,400,'','',''),
		new Array('','Pavers10.jpg',533,400,'','',''),
		new Array('','Pavers11.jpg',533,400,'','',''),
		new Array('','Pavers12.jpg',533,400,'','','')
    ),4,'Pavers provide an elegant yet  extremely durable surface that will enhance the look and value of your home or  business.&nbsp; From patios and driveways to  streets and parking lots, pavers are an attractive alternative to concrete,  asphalt or wood which often require regular maintenance.&nbsp;&nbsp; Since pavers are made of high strength  concrete, they are resistant to pitting, cracking and fading and are virtually  maintenance free.&nbsp; With&nbsp; a multitude of design possibilities and color  choices, each paver project is unique and constructed to fit your needs and  desires. &nbsp;&nbsp;Contact us today and we will  be glad to meet with you and provide you with a project proposal.'
  ),
  new Array('Walls','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','7272009_012.jpg',533,400,'','',''), 
		new Array('','7272009_013.jpg',533,400,'','',''), 
		new Array('','7272009_014.jpg',533,400,'','',''), 
		new Array('','7272009_017.jpg',533,400,'','',''),	
		new Array('','wal_Munro_Ret_Wall_2.jpg',533,400,'','',''), 
		new Array('','wal_Munro_Ret_wall_edt.jpg',626,400,'','',''),	
		new Array('','PC270489.jpg',533,400,'','',''), 
		new Array('','PC270490.jpg',533,400,'','',''), 	
		new Array('','walls_P9190166.jpg',533,400,'','','') //current
//		new Array('','Walls01.jpg',533,400,'','','')
    ),2, 'Let us transform your sloping, unuseable areas into space that your children can play on and you can entertain on by installing a wide selection of Belgard, Keystone or natural stone retaining walls. We can create multi-tiered walls with steps that will dramatically increase the usefulness of your outdoor area and increase the value of your home.'
  ),
  new Array('Ponds & Water Features','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('','vacation_2008_194.jpg',533,400,'','',''), 
		new Array('','vacation_2008_196.jpg',533,400,'','',''), 
		new Array('','vacation_2008_197.jpg',533,400,'','',''), 
		new Array('','vacation_2008_199.jpg',533,400,'','',''), 	
		new Array('','ponds_P9120153.jpg',533,400,'','',''), 
		new Array('','ponds_P9120154.jpg',533,400,'','',''), 
		new Array('','ponds_P9120155.jpg',533,400,'','',''), 
		new Array('','Pond_P6250172.jpg',533,400,'','',''),
		new Array('','wat_P7020034.jpg',533,400,'','',''), 
		new Array('','wat_P7020036.jpg',533,400,'','',''), 
		new Array('','wat_P7020037.jpg',533,400,'','',''),  //current
		new Array('','wat_P7020040.jpg',533,400,'','',''), 
		new Array('','wat_P7020042.jpg',533,400,'','',''), 
		new Array('','wat_P7020044.jpg',533,400,'','',''), 
		new Array('','Pond_P6250175.jpg',533,400,'','',''),
		new Array('','Pond_P6250176.jpg',533,400,'','',''),
		new Array('','Pond_P6250184.jpg',533,400,'','',''),
		new Array('','Pond_P6250185.jpg',533,400,'','','')
    ),10,'We can install peaceful, relaxing ponds and waterfalls for that special aquatic garden with a wide range of stones and plants.'
  )  
)

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 preloadphotos() {
  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;">');
  document.write('<option value="portfolio.htm">Please select...</option>');
  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][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]);
}
