
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'portfolio.htm';
scriptName = 'portfolio.js';
countX = 3;
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('Driveways','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','2 color driveway w circle.jpg',534,400),
      new Array('Photo 2','2 tone driveway with circle 1.jpg',534,400),
      new Array('Photo 3','dirveway with circle.jpg',534,400),
      new Array('Photo 4','extra parking dirve.jpg',534,400),
      new Array('Photo 5','Extra Parking Driveway.jpg',534,400),
      new Array('Photo 6','Seregenti Driveway.jpg',534,400)
    )
  ),

  new Array('Landscapes','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','Front landscape and walk.jpg',534,400),
      new Array('Photo 2','front landscape.jpg',534,400),
      new Array('Photo 3','full landscape with walk.jpg',534,400),
      new Array('Photo 4','landscape along house.jpg',534,400),
      new Array('Photo 5','landscape and drievway.jpg',640,371),
      new Array('Photo 6','landscape and walk.jpg',534,400),
      new Array('Photo 7','landscape patio fence.jpg',534,400),
      new Array('Photo 8','landscapes 51 002.jpg',534,400),
      new Array('Photo 9','landscapes 51 003.jpg',534,400),
      new Array('Photo 10','landscapes 51 004.jpg',534,400),
      new Array('Photo 11','landscpae with circle.jpg',534,400),
      new Array('Photo 12','landscpae.jpg',534,400),
      new Array('Photo 13','wall and landscape.jpg',534,400),
      new Array('Photo 14','wall with landscape.jpg',534,400)
    )
  ),

  new Array('Patios','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','2 tier belgard patio.jpg',534,400),
      new Array('Photo 2','another patio under deck.jpg',534,400),
      new Array('Photo 3','another shot of same.jpg',534,400),
      new Array('Photo 4','belgard patio6.jpg',534,400),
      new Array('Photo 5','blue stone 2.jpg',534,400),
      new Array('Photo 6','Blue stone aptio.jpg',534,400),
      new Array('Photo 7','chapel wall raised patio 2.jpg',534,400),
      new Array('Photo 8','chapel wall raised patio.jpg',534,400),
      new Array('Photo 9','close up of inlay.jpg',534,400),
      new Array('Photo 10','close up Sandalwood patio.jpg',534,400),
      new Array('Photo 11','deck off patio 2.jpg',534,400),
      new Array('Photo 12','grey patio with circle.jpg',534,400),
      new Array('Photo 13','lowered hot tub patio.jpg',534,400),
      new Array('Photo 14','mcdonagh.jpg',534,400),
      new Array('Photo 15','patio and walk.jpg',534,400),
      new Array('Photo 16','patio entrance.jpg',534,400),
      new Array('Photo 17','patio firepit and seating wall.jpg',534,400),
      new Array('Photo 18','patio full.jpg',534,400),
      new Array('Photo 19','patio under deck.jpg',534,400),
      new Array('Photo 20','Patio with Differnt color circle.jpg',534,400),
      new Array('Photo 21','patio with firepit7.jpg',534,400),
      new Array('Photo 22','patio with pillars.jpg',534,400),
      new Array('Photo 23','patio with sitting wall.jpg',534,400),
      new Array('Photo 24','patio with sitting wall2.jpg',534,400),
      new Array('Photo 25','patio with wall and pillar.jpg',534,400),
      new Array('Photo 26','patio with wall, planting circle and pietra edge.jpg',534,400),
      new Array('Photo 27','pool patio and landscape.jpg',534,400),
      new Array('Photo 28','raised patio and step.jpg',534,400),
      new Array('Photo 29','raised patio by deck.jpg',534,400),
      new Array('Photo 30','raised patio.jpg',534,400),
      new Array('Photo 31','ricks camera 053.jpg',534,400),
      new Array('Photo 32','Scarborough.jpg',534,400),
      new Array('Photo 33','small patio modified K pattern.jpg',534,400),
      new Array('Photo 34','small patio with blue stone inlay.jpg',534,400),
      new Array('Photo 35','small patio yoder.jpg',534,400),
      new Array('Photo 36','small patio.jpg',534,400),
      new Array('Photo 37','sunken patio.jpg',534,400),
      new Array('Photo 38','walkway with patio and Paver art.jpg',534,400)
    )
  ),

  new Array('Walkways','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','3 walks together.jpg',534,400),
      new Array('Photo 2','another rear walk to patio.jpg',534,400),
      new Array('Photo 3','brian 048.jpg',534,400),
      new Array('Photo 4','detail of walk intersect.jpg',534,400),
      new Array('Photo 5','front walk 2 color.jpg',534,400),
      new Array('Photo 6','front walk with front steps.jpg',534,400),
      new Array('Photo 7','front walk with Rocka Step and wall.jpg',534,400),
      new Array('Photo 8','slope 2.jpg',534,400),
      new Array('Photo 9','slope 3.jpg',534,400),
      new Array('Photo 10','small rear walk 2.jpg',534,400),
      new Array('Photo 11','small rear walk.jpg',300,400),
      new Array('Photo 12','small walk 2.jpg',300,400),
      new Array('Photo 13','small walk withe dge.jpg',534,400),
      new Array('Photo 14','small walk.jpg',534,400),
      new Array('Photo 15','small walkway.jpg',545,400),
      new Array('Photo 16','walk from patio to drive and doors.jpg',534,400),
      new Array('Photo 17','walk to pool.jpg',534,400),
      new Array('Photo 18','walk with walls.jpg',534,400),
      new Array('Photo 19','walkway 1.jpg',300,400),
      new Array('Photo 20','walkway with paver lights.jpg',534,400),
      new Array('Photo 21','walkway with steps.jpg',300,400),
      new Array('Photo 22','wall wal and aptio under deck.jpg',534,400)
    )
  ),

  new Array('Walls','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','close up of quarry stone wall.jpg',534,400),
      new Array('Photo 2','hesser 1.jpg',534,400),
      new Array('Photo 3','hesser 2.jpg',534,400),
      new Array('Photo 4','patio w sitting wall.jpg',534,400),
      new Array('Photo 5','quarry stone wall with steps.jpg',534,400),
      new Array('Photo 6','quarrystoen wall.jpg',534,400),
      new Array('Photo 7','Sandalwood wall with step.jpg',534,400),
      new Array('Photo 8','small privacy wall.jpg',534,400),
      new Array('Photo 9','small quaryy stone wall.jpg',534,400),
      new Array('Photo 10','small wall under deck.jpg',320,240),
      new Array('Photo 11','small wall with landscape.jpg',534,400),
      new Array('Photo 12','wall and belgik edge.jpg',534,400),
      new Array('Photo 13','wall below pool house.jpg',534,400),
      new Array('Photo 14','wall with landscaping.jpg',534,400),
      new Array('Photo 15','wall004.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]);
}
