
smallSizes = new Array(88,88);
mediumSizes = new Array(249,187);
pageName = 'portfolio.htm';
scriptName = 'portfolio.js';
countX = 3;
countY = 2;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(
  new Array('Concrete Polishing, Staining & Art','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','080128185259.jpg',534,400),
      new Array('Photo 2','080128185359.jpg',534,400),
//      new Array('Photo 3','080128185502.jpg',534,400),
//      new Array('Photo 4','080128190049.jpg',688,400),  
      new Array('Concrete floor staining ','img_01.jpg',600,348),
//	  new Array('Acid stained floor','acidstainedfloor.jpg',533,400),
      new Array('Before','stevens_floor_beginning.jpg',534,400),
      new Array('Floors','071109064839.jpg',534,400),
      new Array('Photo 3','122707_015.jpg',534,400),
      new Array('Photo 4','holden_floor_002.jpg',534,400),
      new Array('Photo 5','Dartmouth 025.jpg',300,400),
      new Array('Photo 6','Dartmouth 026.jpg',300,400),
      new Array('Photo 7','Dartmouth 027.jpg',300,400),
      new Array('Photo 8','Dartmouth 028.jpg',534,400),
      new Array('Photo 9','Dartmouth 029.jpg',534,400),
      new Array('Photo 10','Dartmouth 030.jpg',534,400),
      new Array('Photo 11','Dartmouth 031.jpg',534,400),
      new Array('Photo 12','home_show_08_016.jpg',534,400),
      new Array('Photo 13','ome_show_08_017.jpg',534,400),
	  
      new Array('Photo 14','cynda floor saridona rutland wall 008.jpg',534,400),
      new Array('Photo 15','cynda floor saridona rutland wall 009.jpg',534,400),
      new Array('Photo 16','cynda floor saridona rutland wall 010.jpg',534,400),
      new Array('Photo 17','cynda floor saridona rutland wall 011.jpg',534,400)
    )
  ),

  new Array('Stonescapes','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Full front shot','img_02.jpg',600,398),
      new Array('Front entry','img_03.jpg',600,398),
      new Array('Stone entry after','img_18.jpg',600,441),
      new Array('Stone entry stairs','img_19.jpg',600,424)
    )
  ),

  new Array('Before & After','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Front entry before','img_05.jpg',600,398),
      new Array('Front entry after','img_06.jpg',600,450),
      new Array('Front entry stone stairs after','img_07.jpg',600,450),
      new Array('Pool patio before','img_08.jpg',600,398),
      new Array('Pool patio after','img_09.jpg',600,398),
      new Array('Front entry before','img_17.jpg',440,532)
    )
  ),

  new Array('Retaining walls','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
	  new Array('Keystone walls','keystonewalls.jpg',533,400),
	  new Array('Keystone tumbled walls','keystonetumbledwalls.jpg',545,400),
	  new Array('Keystone wall','keystonewall.jpg',548,400),
	  new Array('Raised garden pond','raisedgardenpond.jpg',604,400),
      new Array('Functional Designs','img_24.jpg',600,433),
      new Array('Expert craftsmanship','img_25.jpg',360,269),
      new Array('Versa lok driveway walls','img_26.jpg',600,450),
      new Array('Versa lok/bluestone stairs','img_27.jpg',600,450),
      new Array('Keystone tiered wall','img_28.jpg',600,329),
      new Array('Keystone tiered wall2','img_29.jpg',600,365),
      new Array('Walls of any size','img_30.jpg',473,300),
      new Array('Photo 1','Advanced AB wall 1.jpg',500,247),
      new Array('Photo 2','Anderson.jpg',699,400),
      new Array('Photo 3','Antos right wall.jpg',613,400),
      new Array('Photo 4','Antos.jpg',618,400),
      new Array('Photo 5','Bagaskas back wall.jpg',500,331),
      new Array('Photo 6','Belgard wall & stairs.jpg',603,400),
      new Array('Photo 7','Bergaskas wall 1.jpg',500,331),
      new Array('Photo 8','Gribbons stairs & wall.jpg',320,212),
      new Array('Photo 9','Herman front.jpg',534,400),
      new Array('Photo 10','Herman walls.jpg',660,400),
      new Array('Photo 11','IMG_0431.jpg',534,400),
      new Array('Photo 12','IMG_0444.jpg',534,400),
      new Array('Photo 13','IMG_0446.jpg',534,400),
      new Array('Photo 14','IMG_0672.jpg',534,400),
      new Array('Photo 15','IMG_0864.jpg',534,400),
      new Array('Photo 16','IMG_0865.jpg',534,400),
      new Array('Photo 17','Keystone mini wall.jpg',691,400),
      new Array('Photo 18','Keystone wall.jpg',700,310),
      new Array('Photo 19','Large Keystone wall.jpg',631,400),
      new Array('Photo 20','May St Wall.jpg',614,400),
      new Array('Photo 21','Mynia-Belgard.jpg',579,400),
      new Array('Photo 22','Nyugen wall.jpg',500,283),
      new Array('Photo 23','Razzano.jpg',600,329),
      new Array('Photo 24','Razzano2.jpg',600,365),
      new Array('Photo 25','Savage.jpg',534,400),
      new Array('Photo 26','Slideshow.jpg',500,331),
      new Array('Photo 27','Thompson.jpg',548,400),
      new Array('Photo 28','White.jpg',534,400),
      new Array('Belgard front entry','img_13.jpg',600,398),
      new Array('Creative wall designs','img_31.jpg',525,232),

      new Array('Photo 29','Advanced AB wall 1_1.jpg',500,247),
      new Array('Photo 30','Antos right wall_1.jpg',613,400),
      new Array('Photo 31','Antos_1.jpg',618,400),
      new Array('Photo 32','Bagaskas back wall_1.jpg',500,331),
      new Array('Photo 33','Belgard wall & stairs_1.jpg',603,400),
      new Array('Photo 34','DeMaria stairs.jpg',322,400),
      new Array('Photo 35','Gribbons stairs & wall_1.jpg',320,212),
      new Array('Photo 36','Gribbons stairs.jpg',500,331),
      new Array('Photo 37','Herman front_1.jpg',534,400),
      new Array('Photo 38','IMG_0431_1.jpg',534,400),
      new Array('Photo 39','IMG_0435.jpg',534,400),
      new Array('Photo 40','IMG_0436.jpg',534,400),
      new Array('Photo 41','IMG_0437.jpg',534,400),
      new Array('Photo 42','IMG_0444_1.jpg',534,400),
      new Array('Photo 43','IMG_0446_1.jpg',534,400),
      new Array('Photo 44','IMG_0658.jpg',534,400),
      new Array('Photo 45','IMG_0659.jpg',534,400),
      new Array('Photo 46','IMG_0672_1.jpg',534,400),
      new Array('Photo 47','IMG_0864_1.jpg',534,400),
      new Array('Photo 48','IMG_0865_1.jpg',534,400),
      new Array('Photo 49','IMG_0878.jpg',534,400),
      new Array('Photo 50','IMG_1143.jpg',534,400),
      new Array('Photo 51','IMG_1272.jpg',534,400),
      new Array('Photo 52','Keystone mini wall_1.jpg',691,400),
      new Array('Photo 53','Keystone wall_1.jpg',700,310),
      new Array('Photo 54','Large Keystone wall_1.jpg',631,400),
      new Array('Photo 55','Mynia-Belgard_1.jpg',579,400),
      new Array('Photo 56','Parker front 3.jpg',537,400),
      new Array('Photo 57','Parker front.jpg',537,400),
      new Array('Photo 58','Powers stairs.jpg',534,400),
      new Array('Photo 59','Powers.jpg',534,400),
      new Array('Photo 60','Powers2.jpg',534,400),
      new Array('Photo 61','Razzano2_1.jpg',600,365)
    )
  ),

  new Array('Pools','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
	  new Array('Belgard pool patio','belgardpoolpatio.jpg',604,400),
	  new Array('Pool patio after upper view','img_10.jpg',600,311),
      new Array('Photo 1','silverman_patio.jpg',688,400)
    )
  ),

  new Array('Ponds and waterfeatures','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
	  new Array('Wishing Well','wishingwell.jpg',349,400),
      new Array('Raised patio w/raised pond','img_11.jpg',600,398),
      new Array('Pond','img_14.jpg',600,425)
    )
  ),

  new Array('Pavers','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Belgard landing & walk','img_12.jpg',600,398),
      new Array('Tumbled paver patio','img_20.jpg',600,450),	  
      new Array('Belgard Paver Patio','img_21.jpg',504,254),
      new Array('Belgard walk','img_22.jpg',300,300),
      new Array('Belgard Walk','img_23a.jpg',298,299),
      new Array('Belgard walk','img_23.jpg',600,402),
	  new Array('Natural stone stairs','naturalstonestairs.jpg',533,400),
	  new Array('Quilted patio','quiltedpatio.jpg',533,400),
	  new Array('Any design is possible','anydesign.jpg',700,390),
	  new Array('Front walk','frontwalk.jpg',533,400),

      new Array('Photo 1','Antos_2.jpg',618,400),
      new Array('Photo 2','Auburn house.jpg',655,400),
      new Array('Photo 3','Barrows walk.jpg',534,400),
      new Array('Photo 4','Barrows.jpg',534,400),
      new Array('Photo 5','Barton Patio.jpg',534,400),
      new Array('Photo 6','Belgard stairs & landing.jpg',500,282),
      new Array('Photo 7','Belgard wall & stairs_2.jpg',603,400),
      new Array('Photo 8','Burk back large shot.jpg',534,400),
      new Array('Photo 9','Burk back.jpg',534,400),
      new Array('Photo 10','Burk pond.jpg',400,400),
      new Array('Photo 11','Carroll stairs & walk.jpg',534,400),
      new Array('Photo 12','Carroll stairs & walk1.jpg',534,400),
      new Array('Photo 13','Carroll stairs.jpg',300,400),
      new Array('Photo 14','Carroll walk.jpg',534,400),
      new Array('Photo 15','Chacarrone b-stone steps.jpg',500,331),
      new Array('Photo 16','Chaccarone b-stone.jpg',500,331),
      new Array('Photo 17','Chaccorone daughter walk.jpg',534,400),
      new Array('Photo 18','Chaccorone walk.jpg',329,400),
      new Array('Photo 19','circle.jpg',700,337),
      new Array('Photo 20','Collinson patio.jpg',700,336),
      new Array('Photo 21','Dean Park.jpg',500,331),
      new Array('Photo 22','Dean Park2.jpg',266,401),
      new Array('Photo 23','DeMaria 1.jpg',500,331),
      new Array('Photo 24','DeMaria stairs_1.jpg',322,400),
      new Array('Photo 25','DeMaria.jpg',619,400),
      new Array('Photo 26','Gribbons patio.jpg',500,331),
      new Array('Photo 27','Gribbons patio1.jpg',700,364),
      new Array('Photo 28','Gribbons patio2.jpg',534,400),
      new Array('Photo 29','Gribbons stairs_1.jpg',500,331),
      new Array('Photo 30','Haddad stairs 1.jpg',564,400),
      new Array('Photo 31','Haddad stairs.jpg',611,400),
      new Array('Photo 32','Hanson.jpg',534,400),
      new Array('Photo 33','Hanson2.jpg',534,400),
      new Array('Photo 34','Hanson3.jpg',534,400),
      new Array('Photo 35','Herman front_2.jpg',534,400),
      new Array('Photo 36','Herman patio.jpg',700,391),
      new Array('Photo 37','Herman walls_1.jpg',660,400),
      new Array('Photo 38','L Heareux.jpg',534,400),
      new Array('Photo 39','Leoni.jpg',534,400),
      new Array('Photo 40','MacDonald resized.jpg',534,400),
      new Array('Photo 41','MacDonald stairs.jpg',534,400),
      new Array('Photo 42','MacDonald.jpg',541,400),
      new Array('Photo 43','Marcotte back.jpg',500,331),
      new Array('Photo 44','McCracken.jpg',534,400),
      new Array('Photo 45','Northboro house.jpg',603,400),
      new Array('Photo 46','Parker front 3_1.jpg',537,400),
      new Array('Photo 47','Parker stairs 1.jpg',500,331),
      new Array('Photo 48','Powers stairs_1.jpg',534,400),
      new Array('Photo 49','Powers_1.jpg',534,400),
      new Array('Photo 50','Powers2_1.jpg',534,400),
      new Array('Photo 51','Savage stairs & walk.jpg',534,400),
      new Array('Photo 52','Savage stairs.jpg',534,400),
      new Array('Photo 53','Savage_1.jpg',534,400),
      new Array('Photo 54','Savage1.jpg',534,400),
      new Array('Photo 55','Silverman front walk.jpg',534,400),
      new Array('Photo 56','Silverman front.jpg',534,400),
      new Array('Photo 57','Silverman walk.jpg',534,400),
      new Array('Photo 58','Sturbridge.jpg',483,400),
      new Array('Photo 59','Trafecante1.jpg',417,400),
      new Array('Photo 60','Trafecante3.jpg',500,331),
      new Array('Photo 61','Unilock stairs & walk.jpg',534,400),
      new Array('Photo 62','Witt patio.jpg',534,400),
      new Array('Photo 63','Work to do 005.jpg',300,400),
      new Array('Photo 64','IMG_0866.jpg',627,400),
      new Array('Photo 65','IMG_0871.jpg',534,400),
      new Array('Photo 66','IMG_0872.jpg',534,400),
      new Array('Photo 67','IMG_0873.jpg',534,400),
      new Array('Photo 68','IMG_0879.jpg',534,400),
      new Array('Photo 69','IMG_0880.jpg',534,400),
      new Array('Photo 70','IMG_0882.jpg',588,400),
      new Array('Photo 71','IMG_0888.jpg',534,400),
      new Array('Photo 72','IMG_0892.jpg',534,400),
      new Array('Photo 73','IMG_0893.jpg',534,400),
      new Array('Photo 74','IMG_0894.jpg',534,400),
      new Array('Photo 75','IMG_0895.jpg',534,400),
      new Array('Photo 76','IMG_0896.jpg',534,400),
      new Array('Photo 77','IMG_1141.jpg',534,400),
      new Array('Photo 78','IMG_1142.jpg',534,400),
      new Array('Photo 79','IMG_1143_1.jpg',534,400),
      new Array('Photo 80','IMG_1175.jpg',534,400),
      new Array('Photo 81','IMG_1176.jpg',534,400),
      new Array('Photo 82','IMG_1269.jpg',534,400),
      new Array('Photo 83','IMG_1271.jpg',534,400),
      new Array('Photo 84','IMG_1272_1.jpg',534,400),
      new Array('Photo 85','IMG_1274.jpg',300,400),
      new Array('Photo 86','IMG_0530.jpg',534,400),
      new Array('Photo 87','IMG_0531.jpg',534,400),
      new Array('Photo 88','IMG_0661.jpg',534,400),
      new Array('Photo 89','IMG_0686.jpg',534,400),
      new Array('Photo 90','IMG_0687.jpg',534,400),
      new Array('Photo 91','IMG_0690.jpg',534,400),
      new Array('Photo 92','IMG_0692.jpg',534,400),
      new Array('Photo 93','IMG_0221.jpg',534,400),
      new Array('Photo 94','IMG_0434.jpg',534,400),
      new Array('Photo 95','IMG_0438.jpg',534,400),
      new Array('Photo 96','IMG_0439.jpg',534,400),
      new Array('Photo 97','IMG_0455.jpg',534,400),
      new Array('Photo 98','IMG_0461.jpg',534,400),
      new Array('Photo 99','IMG_0468.jpg',300,400),
      new Array('Photo 100','IMG_0469.jpg',534,400),
      new Array('Photo 101','IMG_0470.jpg',534,400),
      new Array('Photo 102','IMG_0475.jpg',534,400),
      new Array('Photo 103','IMG_0476.jpg',534,400),
      new Array('Photo 104','IMG_0479.jpg',534,400)

    )
  ),

  new Array('Landscape Lighting','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','pic_lighting1.jpg',240,240),
      new Array('Photo 2','pic_lighting2.jpg',240,240),
      new Array('Photo 3','pic_lighting3.jpg',240,240),
      new Array('Photo 4','pic_lighting4.jpg',240,240)
    )
  ),

  new Array('Walks & Patios','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 8','After 1.jpg',534,400),
      new Array('Photo 9','After 2_1.jpg',534,400),
      new Array('Photo 10','Before 1.jpg',534,400),
      new Array('Photo 11','Before 2_1.jpg',534,400),
      new Array('Photo 12','Belgard 1.jpg',534,400),
      new Array('Photo 13','Belgard 10.jpg',572,400),
      new Array('Photo 14','Belgard 11.jpg',534,400),
      new Array('Photo 15','Belgard 12.jpg',700,353),
      new Array('Photo 16','Belgard 13.jpg',688,400),
      new Array('Photo 17','Belgard 14.jpg',500,270),
      new Array('Photo 18','Belgard 15.jpg',500,331),
      new Array('Photo 19','Belgard 16.jpg',500,331),
      new Array('Photo 20','Belgard 17.jpg',500,331),
      new Array('Photo 21','Belgard 2.jpg',534,400),
      new Array('Photo 22','Belgard 3.jpg',534,400),
      new Array('Photo 23','Belgard 4.jpg',534,400),
      new Array('Photo 24','Belgard 5.jpg',534,400),
      new Array('Photo 25','Belgard 6.jpg',534,400),
      new Array('Photo 26','Belgard 7.jpg',534,400),
      new Array('Photo 27','Belgard 8.jpg',534,400),
      new Array('Photo 28','Belgard.jpg',534,400),
      new Array('Photo 29','Belgard2.jpg',534,400),
      new Array('Photo 30','Belgard3.jpg',534,400),
      new Array('Photo 31','Belgard4.jpg',500,331),
      new Array('Photo 32','Belgard9.jpg',534,400),
      new Array('Photo 33','circle pak.jpg',534,400),
      new Array('Photo 34','Clay brick.jpg',534,400),
      new Array('Photo 35','Driveway 2.jpg',534,400),
      new Array('Photo 36','Driveway 3.jpg',534,400),
      new Array('Photo 37','Driveway.jpg',534,400),
      new Array('Photo 38','Idaho quartz 2.jpg',534,400),
      new Array('Photo 39','Idaho quartz.jpg',534,400),
      new Array('Photo 40','Ideal & firepit.jpg',534,400),
      new Array('Photo 41','Ideal 2.jpg',534,400),
      new Array('Photo 42','Ideal2.jpg',534,400),
      new Array('Photo 43','Ideal3.jpg',627,400),
      new Array('Photo 44','Ideal4.jpg',588,400),
      new Array('Photo 45','Ideal5.jpg',300,400),
      new Array('Photo 46','Ideal6.jpg',330,400),
      new Array('Photo 47','Ideal7.jpg',266,401),
      new Array('Photo 48','Maltese cross.jpg',700,391),
      new Array('Photo 49','Techo bloc.jpg',534,400),
      new Array('Photo 50','Unilock & firepit.jpg',534,400),
      new Array('Photo 51','Unilock-firepit.jpg',534,400),
      new Array('Photo 52','Unilock.jpg',534,400),
      new Array('Photo 53','Unilock2.jpg',534,400),
      new Array('Photo 54','Unilock3.jpg',534,400)
    )
  ),

  new Array('Walls & Stairs','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 8','After 2.jpg',320,212),
      new Array('Photo 9','After1.jpg',534,400),
      new Array('Photo 10','Before 2.jpg',600,398),
      new Array('Photo 11','Before1.jpg',534,400),
      new Array('Photo 12','Celtik 5.jpg',537,400),
      new Array('Photo 13','Celtik wall 2.jpg',534,400),
      new Array('Photo 14','Celtik wall 3.jpg',603,400),
      new Array('Photo 15','Celtik wall 4.jpg',537,400),
      new Array('Photo 16','Celtik wall 6.jpg',500,331),
      new Array('Photo 17','Celtik wall 7.jpg',534,400),
      new Array('Photo 18','Celtik wall 8.jpg',534,400),
      new Array('Photo 19','Celtik wall.jpg',534,400),
      new Array('Photo 20','Country Manor 4.jpg',534,400),
      new Array('Photo 21','Country Manor 5.jpg',534,400),
      new Array('Photo 22','Country Manor.jpg',613,400),
      new Array('Photo 23','Country Manor2.jpg',618,400),
      new Array('Photo 24','Country Manor3.jpg',534,400),
      new Array('Photo 25','Field stone 2.jpg',534,400),
      new Array('Photo 26','Field stone.jpg',700,272),
      new Array('Photo 27','Keystone 10.jpg',534,400),
      new Array('Photo 28','Keystone 11.jpg',534,400),
      new Array('Photo 29','Keystone 2.jpg',534,400),
      new Array('Photo 30','Keystone 3.jpg',631,400),
      new Array('Photo 31','Keystone 4.jpg',500,347),
      new Array('Photo 32','Keystone 5.jpg',700,310),
      new Array('Photo 33','Keystone 6.jpg',691,400),
      new Array('Photo 34','Keystone 7.jpg',600,365),
      new Array('Photo 35','Keystone 8.jpg',600,329),
      new Array('Photo 36','Keystone 9.jpg',534,400),
      new Array('Photo 37','Keystone.jpg',534,400),
      new Array('Photo 38','Mortared stone.jpg',500,283),
      new Array('Photo 39','Roman.jpg',534,400),
      new Array('Photo 40','Thin stone 2.jpg',534,400),
      new Array('Photo 41','Thin stone 3.jpg',534,400),
      new Array('Photo 42','Thin stone 4.jpg',534,400),
      new Array('Photo 43','Thin stone 5.jpg',534,400),
      new Array('Photo 44','Thin stone.jpg',534,400),
      new Array('Photo 45','Versa-lok.jpg',534,400),
      new Array('Photo 46','Wishing well.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]);
}
