
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('Pavers','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','img_09.jpg',380,228,'Flagstone patios are a way to bring back that feeling of nature by using what God created.<br><br>A boulder fountain in the center gives you the sound of rushing water but without the maintenance of a true pond.<br><br>Sealing the flagstone brings out the true color of the stone.'),
      new Array('Photo 2','img_03.jpg',367,218,'Flagstone - New York blue stone<br>Steps - 10" New York blue stone<br><br>Boulder walls and flagstone steps give a natural feeling to the space.<br><br>Plantings in the boulder wall adds color and texture and helps with erosion.'),
      new Array('Photo 3','img_04.jpg',377,200,'Stone sitting benches on a circle patio will give you a place to enjoy the sounds of splashing water in your pond.<br><br>Adding ornamental trees and Asian accent pieces give character to the surrounding space.'),	  
      new Array('Photo 4','img_05.jpg',372,214,'Pavers - Old Roman Classic- grey<br>Available at Belden Brick<br><br>A brick pathway with bordering plants leads to a circle patio with a table and chairs.<br><br>Use landscape lighting to enhance the look of your space at night.'),
      new Array('Photo 5','img_13.jpg',368,256,'Pavers - clay - red and black<br>Fire Pit - Creta stone with top cap<br>Available at Belden Brick<br><br>Custom fire pits are a great way to relax with friends and family on those chilly summer nights.<br>Boulders placed around the perimeter will give your patio a sense of having it`s own unique space.<br>Adding planting beds helps give more color and texture to the space.'),
      new Array('Photo 6','img_02.jpg',313,401,'Patio - Desert Heritage - tumbled<br>Steps- Creta Stone - tan<br>Available at Belden Brick<br><br>Custom brick patios add beauty and elegance to any outdoor living space.<br>Potted plant material will add to the look of your space and allow you to change them around for a different feel.<br>Adding a walkway within the patio is a way to  create a sense of direction from one area to another.'),
      new Array('Photo 7','img_12.jpg',461,237,'Flagstone - Chilton<br>Boulder - Feather Rock<br><br>Small ponds with fountains made of Feather Rock are very inviting and relaxing.<br>The water follows every crevice of the boulder so each stone is one of a kind.<br>Installation is both cost effective and efficient.'),
      new Array('Photo 8','img_11.jpg',461,235,'Pavers - Navastone tile - cappacino<br>Walls - Creta stone - moss green<br>Stairs - Creta stone - moss green<br>Fire pit - Creta stone - moss green<br>Trellis and Arbor - custom - Legend<br><br>This patio was built for a customer who loves the outdoors , complete with a sitting area built right into the wall.<br>Sealing the tile will bring out the beauty of the living space.'),
      new Array('Photo 9','img_10.jpg',456,228,'Award Winner<br>2004 Parade of Homes<br>"Best Landscape"<br>Homes over $500,000.00<br><br>Owner - Jim Bursma<be>Homestead Timbers - Marne MI'),	  
      new Array('Photo 10','img_08.jpg',454,245,'Award Winner<br>2004 Parade of Homes<br>"Best Landscape"<br>Homes over $500,000.00<br><br>Owner - Jim Bursma<be>Homestead Timbers - Marne MI'),
      new Array('Photo 11','img_07.jpg',454,249,'Patio - 2` slate - hand cut<br>Fire pit - Creta stone - moss green<br><br>Custom slate patio with fire pit - Homestead Timbers "Forest Escape"'),
      new Array('Photo 12','img_06.jpg',457,235,'Pavers - Nava Stone - Autumn brown<br>Walls - Creta stone - Mountain stone<br><br>This brick paver driveway is accented by a matching retaining wall.<br>Circle patterns were added at the customers request.'),
      new Array('Photo 13','img_01.jpg',462,233,'Half circles , full circles and pathways can be incorporated into any patio.<br><br>Just about any style or shape can be done with pavers.'),
      new Array('Photo 14','img_100.jpg',534,400,''),
      new Array('Photo 15','img_101.jpg',534,400,''),
      new Array('Photo 16','img_102.jpg',534,400,''),
      new Array('Photo 17','img_103.jpg',534,400,''),
      new Array('Photo 18','img_54.jpg',534,400,''),
      new Array('Photo 19','img_55.jpg',534,400,''),
      new Array('Photo 20','img_56.jpg',534,400,''),
      new Array('Photo 21','img_57.jpg',534,400,''),
      new Array('Photo 22','img_58.jpg',534,400,''),
      new Array('Photo 23','img_59.jpg',534,400,''),
      new Array('Photo 24','img_60.jpg',534,400,''),
      new Array('Photo 25','img_61.jpg',534,400,''),
      new Array('Photo 26','img_62.jpg',534,400,''),
      new Array('Photo 27','img_63.jpg',534,400,''),
      new Array('Photo 28','img_64.jpg',534,400,''),
      new Array('Photo 29','img_65.jpg',534,400,''),
      new Array('Photo 30','img_66.jpg',534,400,''),
      new Array('Photo 31','img_67.jpg',534,400,''),
      new Array('Photo 32','img_68.jpg',534,400,''),
      new Array('Photo 33','img_69.jpg',534,400,''),
      new Array('Photo 34','img_70.jpg',534,400,''),
      new Array('Photo 35','img_71.jpg',534,400,''),
      new Array('Photo 36','img_72.jpg',534,400,''),
      new Array('Photo 37','img_73.jpg',534,400,''),
      new Array('Photo 38','img_74.jpg',534,400,''),
      new Array('Photo 39','img_75.jpg',534,400,''),
      new Array('Photo 40','img_76.jpg',534,400,''),
      new Array('Photo 41','img_77.jpg',534,400,''),
      new Array('Photo 42','img_78.jpg',534,400,''),
      new Array('Photo 43','img_79.jpg',534,400,''),
      new Array('Photo 44','img_80.jpg',534,400,''),
      new Array('Photo 45','img_81.jpg',534,400,''),
      new Array('Photo 46','img_82.jpg',534,400,''),
      new Array('Photo 47','img_83.jpg',534,400,''),
      new Array('Photo 48','img_84.jpg',534,400,''),
      new Array('Photo 49','img_85.jpg',534,400,''),
      new Array('Photo 50','img_86.jpg',534,400,''),
      new Array('Photo 51','img_87.jpg',534,400,''),
      new Array('Photo 52','img_88.jpg',534,400,''),
      new Array('Photo 53','img_89.jpg',300,400,''),
      new Array('Photo 54','img_90.jpg',300,400,''),
      new Array('Photo 55','img_91.jpg',300,400,''),
      new Array('Photo 56','img_92.jpg',300,400,''),
      new Array('Photo 57','img_93.jpg',534,400,''),
      new Array('Photo 58','img_94.jpg',300,400,''),
      new Array('Photo 59','img_95.jpg',300,400,''),
      new Array('Photo 60','img_96.jpg',534,400,''),
      new Array('Photo 61','img_97.jpg',300,400,''),
      new Array('Photo 62','img_98.jpg',534,400,''),
      new Array('Photo 63','img_99.jpg',534,400,'')
    )
  ),

  new Array('Patio','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','burch-1.jpg',75,75,''),
      new Array('Photo 2','burch-2.jpg',75,75,''),
      new Array('Photo 3','burch-3.jpg',75,75,''),
      new Array('Photo 4','burch-4.jpg',500,333,''),
      new Array('Photo 5','burch-5.jpg',75,75,''),
      new Array('Photo 6','burch-6.jpg',75,75,''),
      new Array('Photo 7','burch-7.jpg',75,75,'')
    )
  ),
	
  new Array('Recent Projects','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','recent_001.jpg',534,400,''),
      new Array('Photo 2','recent_002.jpg',534,400,''),
      new Array('Photo 3','recent_003.jpg',534,400,''),
      new Array('Photo 4','recent_004.jpg',534,400,''),
      new Array('Photo 5','recent_005.jpg',534,400,''),
      new Array('Photo 6','recent_006.jpg',534,400,''),
      new Array('Photo 7','recent_007.jpg',534,400,''),
      new Array('Photo 8','recent_008.jpg',534,400,''),
      new Array('Photo 9','recent_009.jpg',534,400,''),
      new Array('Photo 10','recent_010.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][4]);
}

function showImageBig(number) {
  showImagePopup(scriptName,section,number,arImages[section][4][number][2],
   arImages[section][4][number][3]);
}
