
smallSizes = new Array(77,77);
mediumSizes = new Array(171,171);
pageName = 'portphotos.htm';
scriptName = 'portfolio.js';
countX = 2;
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('Labyrinth','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('Labyrinth','dsc05388.jpg',533,400,'') 
    ),0
  ),
//  new Array('Landscape','images/portfolio/landscape/small/','images/portfolio/landscape/medium/','images/portfolio/landscape/big/',
//    new Array(
//      new Array('Before','1blandscape.jpg',283,441,'Install a dry river bed for drainage solutions'),
//      new Array('After','2alandscape.jpg',290,350,'Install a dry river bed for drainage solutions'),
//      new Array('Before','2blandscape.jpg',270,444,'Install a dry river bed for drainage solutions'),
//      new Array('After','1alandscape.jpg',267,342,'Install a dry river bed for drainage solutions'),
//      new Array('Before','070604214301.jpg',533,400,''),
//      new Array('After','070604214436.jpg',533,400,''),
//	new Array('Photo 1','lnd_McCormick1.jpg',533,400,''), 
//	new Array('Photo 2','lnd_McCormick2.jpg',533,400,''), 
//	new Array('Photo 3','lnd_OrangeLake1.jpg',533,400,''), 
//	new Array('Photo 4','lnd_OrangeLake2.jpg',533,400,''), 
//	new Array('Photo 5','lnd_OrangeLake3.jpg',533,400,''), 
//	new Array('Photo 6','lnd_OrangeLake4.jpg',533,400,''),	  
//      new Array('Photo 7','11awatergarden.jpg',433,244,''),
//      new Array('Photo 8','12awatergarden.jpg',423,277,''),
//      new Array('Photo 9','23awatergarden.jpg',389,286,''),
//      new Array('Photo 10','22awatergarden.jpg',444,276,''),
//      new Array('Photo 11','21awatergarden.jpg',435,290,'')	  	  	  	  	  	  	  	  	  	  
//      new Array('Before','3blandscape.jpg',440,283,'Installation of sand traps and putting greens'),
//	  new Array('Before','3alandscape.jpg',440,264,'Installation of sand traps and putting greens'),
//	  new Array('After','31alandscape.jpg',359,234,'Installation of sand traps and putting greens')
//    ),3
//  ),  
//
//  new Array('Horse Barns','images/portfolio/horsebarns/small/','images/portfolio/horsebarns/medium/','images/portfolio/horsebarns/big/',
//    new Array(
//      new Array('Before','11bhorsebarn.jpg',382,256,''),
//      new Array('After','11ahorsebarn.jpg',429,295,''),
//      new Array('Before','12bhorsebarn.jpg',418,295,''),
//      new Array('After','12ahorsebarn.jpg',442,229,'')
//    ),0
//  ),
  
  new Array('Walls','images/portfolio/walls/small/','images/portfolio/walls/medium/','images/portfolio/walls/big/',
    new Array(
      new Array('Before','99bwall.jpg',436,285,''),
      new Array('After','991awall.jpg',452,290,''),
      new Array('Before','143bwall.jpg',399,222,''),
      new Array('After','142awall.jpg',442,294,''),
      new Array('Before','2bwall.jpg',396,242,''),
      new Array('After','2awall.jpg',449,276,''),
      new Array('Before','3bwall.jpg',436,232,''),
      new Array('After','3awall.jpg',436,182,''),
      new Array('Before','4bwall.jpg',450,293,''),
      new Array('After','4awall.jpg',434,280,''),
      new Array('Photo 1','101awall.jpg',444,262,''),
      new Array('Photo 2','102awall.jpg',439,291,''),
      new Array('Photo 3','111awall.jpg',441,286,''),
      new Array('Photo 4','131awall.jpg',353,196,''),
      new Array('Photo 5','51awall.jpg',432,284,''),
      new Array('Photo 6','52awall.jpg',409,247,''),
      new Array('Photo 7','53awall.jpg',429,287,''),
      new Array('Photo 8','61awall.jpg',444,262,''),
      new Array('Photo 9','71awall.jpg',448,294,''),
      new Array('Photo 10','72awall.jpg',356,239,''),
      new Array('Photo 11','73awall.jpg',408,293,''),
      new Array('Photo 12','81awall.jpg',374,205,''),
      new Array('Photo 13','91awall.jpg',377,280,''),
      new Array('After','992awall.jpg',368,192,''),	  	  	  	  	  	  	  	  	  	  
      new Array('After','993awall.jpg',429,297,''),
      new Array('After','141awall.jpg',405,208,''),
	new Array('Before','rw_BeforeCates3.jpg',533,400,''), 
	new Array('After','rw_AfterCates3.jpg',533,400,''), 
	new Array('Before','rw_BeforeCox1.jpg',533,400,''), 
	new Array('After','rw_AfterCox1.jpg',533,400,''), 
	new Array('Before','rw_BeforeCox2.jpg',533,400,''), 
	new Array('After','rw_AfterCox2.jpg',533,400,''), 
	new Array('Before','rw_BeforeCox3.jpg',533,400,''), 
	new Array('After','rw_AfterCox3.jpg',533,400,''), 
	new Array('Before','rw_BeforeJim1.jpg',533,400,''), 
	new Array('After','rw_AfterJim1.jpg',533,400,''), 
	new Array('Before','rw_BeforeMcNulty3.jpg',533,400,''), 
	new Array('After','rw_AfterMcNulty3.jpg',533,400,''), 
	new Array('Before','rw_BeforeMcNulty4.jpg',533,400,''), 
	new Array('After','rw_AfterMcNulty4.jpg',533,400,''), 
	new Array('Photo 14','rw_Jimsteps1.jpg',533,400,''), 
	new Array('Photo 15','rw_JimSteps2.jpg',533,400,'')	  
    ),21
  ),  
  new Array('Patios and Walks','images/portfolio/walks/small/','images/portfolio/walks/medium/','images/portfolio/walks/big/',
    new Array(
      new Array('Before','103bwalks.jpg',442,256,''),
      new Array('After','101awalks.jpg',292,433,''),
      new Array('Before','113bwalks.jpg',288,387,''),
      new Array('After','111awalks.jpg',444,294,''),	  	  	  	  	  	  	  	  	  	  
      new Array('Before','121bwalks.jpg',437,268,''),
      new Array('After','123awalks.jpg',441,286,''),
      new Array('Before','171bwalks.jpg',446,292,''),
      new Array('After','172awalks.jpg',444,268,''),
      new Array('Before','183bwalks.jpg',450,266,''),
      new Array('After','182awalks.jpg',439,286,''),
      new Array('Before','19bwalks.jpg',434,287,''),
      new Array('After','19awalks.jpg',418,267,''),
      new Array('Before','201bwalks.jpg',435,270,''),
      new Array('After','202awalks.jpg',440,288,''),
      new Array('Before','211bwalks.jpg',437,280,''),
      new Array('After','212awalks.jpg',444,293,''),
      new Array('Photo 1','141awalks.jpg',441,275,''),
      new Array('Photo 2','151awalks.jpg',438,254,''),
      new Array('Photo 3','131awalks.jpg',443,266,''),
      new Array('Photo 4','161awalks.jpg',446,278,''),
      new Array('After','122awalks.jpg',437,266,''),
      new Array('After','213awalks.jpg',446,270,''),
      new Array('After','112awalks.jpg',411,294,''),
      new Array('After','181awalks.jpg',442,285,''),
	new Array('Before','ptwl_BeforeArcus.jpg',533,400,''), 
	new Array('After','ptwl_AfterArcus.jpg',533,400,''), 
	new Array('Before','ptwl_BeforeCates1.jpg',533,400,''), 
	new Array('After','ptwl_AfterCates1.jpg',533,400,''), 
	new Array('Before','ptwl_BeforeCates2.jpg',533,400,''), 
	new Array('After','ptwl_AfterCates2.jpg',533,400,''), 
	new Array('Before','ptwl_beforeMcNulty1.jpg',533,400,''), 
	new Array('After','ptwl_AfterMcNulty1.jpg',533,400,''), 
	new Array('Before','ptwl_BeforeMcNulty2.jpg',533,400,''), 
	new Array('After','ptwl_AfterMcNulty2.jpg',533,400,''), 
	new Array('After','ptwl_AfterMcNulty5.jpg',533,400,''), 
	new Array('After','ptwl_AfterMcNulty6.jpg',533,400,''), 
	new Array('Before','ptwl_BeforeNesbitt1.jpg',533,400,''), 
	new Array('After','ptwl_AfterNesbitt1.jpg',533,400,''), 
	new Array('Before','ptwl_BeforeNesbitt2.jpg',533,400,''), 
	new Array('After','ptwl_AfterNesbitt2.jpg',533,400,''), 
	new Array('Before','ptwl_BeforeNesbitt3.jpg',533,400,''), 
	new Array('After','ptwl_AfterNesbitt3.jpg',533,400,''), 
	new Array('Before','ptwl_BeforeNesbitt4.jpg',533,400,''), 
	new Array('After','ptwl_AfterNesbitt4.jpg',533,400,''), 
	new Array('Before','ptwl_BeforeNesbitt5.jpg',533,400,''), 
	new Array('After','ptwl_AfterNesbitt5.jpg',533,400,''), 
	new Array('Photo 5','ptwl_anthony1.jpg',300,400,''), 
	new Array('Photo 6','ptwl_Anthony2.jpg',533,400,''), 
	new Array('Photo 7','ptwl_McNulty-083.jpg',533,400,''),
    new Array('After','193awalks.jpg',442,264,'')
    ),1
  )
)

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 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]);
}
