
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'portfolio.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('Extras','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','Before1.jpg',534,400),
      new Array('Photo 2','After1.jpg',604,400),
      new Array('Photo 3','020_6A.jpg',604,400),
      new Array('Photo 4','024_2A.jpg',604,400),
      new Array('Photo 5','022_4A.jpg',604,400),
      new Array('Photo 6','BBQ Before2.jpg',534,400),
      new Array('Photo 7','BBQ Aft5.jpg',534,400),
      new Array('Photo 8','BBQ Berfore1.jpg',534,400),
	  new Array('Photo 9','BBQ Aft1.jpg',534,400),
      new Array('Photo 10','BBQ Aft4.jpg',534,400),
      new Array('Photo 11','BBQ Aft2.jpg',534,400),
      new Array('Photo 12','BBQ Aft3.jpg',534,400),
      new Array('Photo 13','Cloud Step4.jpg',534,400),
      new Array('Photo 14','Cloud aft4.jpg',534,400),
      new Array('Photo 15','Cloud AftBBQ.jpg',534,400),
      new Array('Photo 16','Cloud Step 2.jpg',534,400),
      new Array('Photo 17','Cloud Step1.jpg',534,400),
      new Array('Photo 18','Excavt3.jpg',534,400),
      new Array('Photo 19','Finish Brgh 3.jpg',534,400),
      new Array('Photo 20','Finish brgh2.jpg',534,400),
      new Array('Photo 21','Random I.jpg',534,400),
	  new Array('Photo 22','Gray 1.jpg',534,400),
      new Array('Photo 23','Gray 3.jpg',534,400),
      new Array('Photo 24','Gray 2.jpg',534,400),
      new Array('Photo 25','Gray 4.jpg',534,400),
      new Array('Photo 26','Gray 5.jpg',534,400),
      new Array('Photo 27','Mckinnley Aft2.jpg',534,400),
      new Array('Photo 28','Patio Mckinley.jpg',534,400),
      new Array('Photo 29','McKinnley Aft3.jpg',534,400),
      new Array('Photo 30','Patio Small.jpg',534,400),
      new Array('Photo 31','Picture 1.jpg',534,400),
      new Array('Photo 32','Picture 20.jpg',534,400),
      new Array('Photo 33','Picture 34.jpg',534,400),
      new Array('Photo 34','Picture 22.jpg',534,400),
      new Array('Photo 35','Picture 24.jpg',534,400),
      new Array('Photo 36','Picture 25.jpg',534,400),
      new Array('Photo 37','Entry B1.jpg',534,400),
      new Array('Photo 38','EntryG Aft1.jpg',534,400),
      new Array('Photo 39','Picture 27.jpg',534,400),
      new Array('Photo 40','Retain Bf1.jpg',534,400),
      new Array('Photo 41','Retain Aft1.jpg',534,400),
      new Array('Photo 42','Retain PrepEx.jpg',534,400),
      new Array('Photo 43','Retain PrepEx2.jpg',534,400),
      new Array('Photo 44','Retain Prep1.jpg',534,400),
      new Array('Photo 45','Retain PrepD.jpg',534,400),
      new Array('Photo 46','Retain Comp2.jpg',534,400),
	  new Array('Photo 47','Retain Comp1.jpg',534,400),
	  new Array('Photo 48','Wall 4.jpg',534,400),
      new Array('Photo 49','Retain Aft3.jpg',534,400),
      new Array('Photo 50','Wall.jpg',534,400),
      new Array('Photo 51','Wall2.jpg',534,400),
      new Array('Photo 52','Wall 5.jpg',534,400),
      new Array('Photo 53','Steps 3.jpg',534,400),	  
      new Array('Photo 54','Picture 19.jpg',534,400),
      new Array('Photo 55','Steps 4.jpg',534,400),
      new Array('Photo 56','Steps 1.jpg',534,400),
      new Array('Photo 57','Steps 2.jpg',534,400),
      new Array('Photo 58','Screen Wall Brick.jpg',534,400),
      new Array('Photo 59','Fireplace1.jpg',534,400),
      new Array('Photo 60','Elbow 2.jpg',300,400),
      new Array('Photo 61','Brick Bay.jpg',534,400),
      new Array('Photo 62','Brick Bay2.jpg',534,400),
      new Array('Photo 63','Brick Step.jpg',534,400)
    )
  ),
  
 new Array('BrickPatios','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','BP-Angle Brick Patio 2.jpg',534,400),
      new Array('Photo 2','BP-Angle Brick Patio.jpg',534,400),
      new Array('Photo 3','BP-Brick Patio.jpg',534,400),
      new Array('Photo 4','BP-Brick Planter1.jpg',534,400),
      new Array('Photo 5','BP-Brick Step 2.jpg',534,400),
      new Array('Photo 6','BP-Brick Steps.jpg',534,400),
      new Array('Photo 7','BP-New Used Brick Planter.jpg',534,400),
      new Array('Photo 8','BP-Raised Patio 2.jpg',534,400),
      new Array('Photo 9','BP-Raised Patio.jpg',534,400),
      new Array('Photo 10','BP-Steps With Channel Drain.jpg',534,400)
    )
  ),

  new Array('Driveways','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','Driv-2 Car Driveway 2.jpg',534,400),
      new Array('Photo 2','Driv-2 Car Driveway.jpg',534,400),
      new Array('Photo 3','Driv-Circle Driveway 1.jpg',534,400),
      new Array('Photo 4','Driv-Circle Pattern.jpg',534,400),
      new Array('Photo 5','Driv-Drive Entry Circle.jpg',534,400),
      new Array('Photo 6','Driv-Driveway 1new.jpg',534,400),
      new Array('Photo 7','Driv-Driveway With Circle 2.jpg',534,400),
      new Array('Photo 8','Driv-Driveway With Circle1.jpg',534,400),
      new Array('Photo 9','Driv-Driveway With Planter Border 1.jpg',534,400),
      new Array('Photo 10','Driv-Driveway With Planter Border.jpg',534,400),
      new Array('Photo 11','Driv-HowardAfter 1.jpg',534,400),
      new Array('Photo 12','Driv-HowardAfter 2.jpg',534,400),
      new Array('Photo 13','Driv-HowardAfter 4.jpg',534,400),
      new Array('Photo 14','Driv-HowardAfter 5.jpg',534,400),
      new Array('Photo 15','Driv-Large Drive.jpg',534,400),
      new Array('Photo 16','Driv-Large Drive2.jpg',534,400),
      new Array('Photo 17','Driv-Mega Pattern.jpg',534,400),
      new Array('Photo 18','Driv-Old Style Drive 1.jpg',534,400),
      new Array('Photo 19','Driv-Old Style Drive 2.jpg',534,400),
      new Array('Photo 20','Driv-Old Style Drive 3.jpg',534,400),
      new Array('Photo 21','Driv-Old Style Drive.jpg',534,400),
      new Array('Photo 22','Driv-Tree 1.jpg',534,400),
      new Array('Photo 23','Driv-Tree 2.jpg',534,400),
      new Array('Photo 24','Driv-Tree 3 Driveway.jpg',534,400),
      new Array('Photo 25','Driv-Tree 4 Driveway.jpg',534,400),
      new Array('Photo 26','Driv-Victorian C2.jpg',534,400),
      new Array('Photo 27','Driv-Victorian C3.jpg',534,400),
      new Array('Photo 28','Driv-Victorian C4.jpg',534,400),
      new Array('Photo 29','Driv-Victorian C5.jpg',534,400),
      new Array('Photo 30','Driv-Victorian C6.jpg',534,400),
      new Array('Photo 31','Driv-Victorian C7.jpg',534,400),
      new Array('Photo 32','Driv-Victorian C8.jpg',534,400),
      new Array('Photo 33','Driv-Victorian Drive.jpg',534,400)
    )
  ),

  new Array('Entry','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','En-Brick Entry.jpg',534,400),
      new Array('Photo 2','En-Courtyard entry.jpg',534,400),
      new Array('Photo 3','En-Entry Way 2.jpg',534,400),
      new Array('Photo 4','En-Entry Way.jpg',534,400),
      new Array('Photo 5','En-Fountain Entry 2.jpg',534,400),
      new Array('Photo 6','En-Fountain Entry 3.jpg',534,400),
      new Array('Photo 7','En-Fountain Entry.jpg',534,400),
      new Array('Photo 8','En-Hillside Entry1.jpg',534,400),
      new Array('Photo 9','En-Mariners 84.jpg',534,400),
      new Array('Photo 10','En-Paver Entry 1.jpg',534,400),
      new Array('Photo 11','En-Paver Entry 2.jpg',534,400),
      new Array('Photo 12','En-Paver Entry 3.jpg',534,400),
      new Array('Photo 13','En-Paver Entry.jpg',534,400),
      new Array('Photo 14','En-Raised Boarder Walk.jpg',534,400),
      new Array('Photo 15','En-Walk Path.jpg',534,400),
      new Array('Photo 16','En-Walk With Planters.jpg',534,400)
    )
  ),

  new Array('Firepits','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','F-Large Fire Pit Wood 2.jpg',534,400),
      new Array('Photo 2','F-Large Fire Pit Wood 3.jpg',534,400),
      new Array('Photo 3','F-Large Fire Pit Wood.jpg',534,400),
      new Array('Photo 4','F-Large Gas Fire Pit.jpg',534,400),
      new Array('Photo 5','Fire pit small.jpg',534,400),
      new Array('Photo 6','Fire pit small2.jpg',534,400),
      new Array('Photo 7','Fire Pit With Seat Wall.jpg',534,400),
      new Array('Photo 8','Fire Pit With Seat Wall2.jpg',534,400),
      new Array('Photo 9','Firepit 1.jpg',534,400),
      new Array('Photo 10','Firepit 2.jpg',534,400)
    )
  ),

  new Array('Patio1','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','P1-Elevated Patio1.jpg',600,400),
      new Array('Photo 2','P1-Elevated Patio2.jpg',600,400),
      new Array('Photo 3','P1-Elevated Patio3.jpg',600,400),
      new Array('Photo 4','P1-Elevated Patio4.jpg',600,400),
      new Array('Photo 5','P1-Elevated Patio5.jpg',600,400),
      new Array('Photo 6','P1-Elevated Patio6.jpg',600,400),
      new Array('Photo 7','P1-Patio Entertain.jpg',534,400),
      new Array('Photo 8','P1-Patio Entertainment.jpg',534,400),
      new Array('Photo 9','P1-Raised Circle Patio.jpg',534,400),
      new Array('Photo 10','P1-Raised Patio 2.jpg',534,400),
      new Array('Photo 11','P1-Raised Patio 3.jpg',534,400),
      new Array('Photo 12','P1-Raised Walk Circle.jpg',534,400),
      new Array('Photo 13','P1-Slope Patio 1.jpg',534,400),
      new Array('Photo 14','P1-Sloped Patio 2.jpg',534,400)
    )
  ),

  new Array('Patio2','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','P2-Backyard Patio 2.jpg',534,400),
      new Array('Photo 2','P2-Backyard Patio.jpg',534,400),
      new Array('Photo 3','P2-Backyard Patio3.jpg',534,400),
      new Array('Photo 4','P2-Catalina Patio 3.jpg',534,400),
      new Array('Photo 5','P2-Catalina Patio.jpg',534,400),
      new Array('Photo 6','P2-Catalina Patio2.jpg',534,400),
      new Array('Photo 7','P2-Catalina Patio3.jpg',534,400),
      new Array('Photo 8','P2-Chess Board 1.jpg',534,400),
      new Array('Photo 9','P2-Chess Board 2.jpg',534,400),
      new Array('Photo 10','P2-Chess Board 3.jpg',534,400),
      new Array('Photo 11','P2-Chess Board 4.jpg',534,400),
      new Array('Photo 12','P2-Chess Board.jpg',534,400),
      new Array('Photo 13','P2-Circle 2.jpg',534,400),
      new Array('Photo 14','P2-Circle 3.jpg',534,400),
      new Array('Photo 15','P2-Circle Patio Raised.jpg',534,400),
      new Array('Photo 16','P2-From Kitchen Patio.jpg',534,400),
      new Array('Photo 17','P2-LG Circle Patern.jpg',534,400),
      new Array('Photo 18','P2-LG Patio 1.jpg',534,400),
      new Array('Photo 19','P2-LG Patio 10.jpg',534,400),
      new Array('Photo 20','P2-LG Patio 11.jpg',534,400),
      new Array('Photo 21','P2-LG Patio 2.jpg',534,400),
      new Array('Photo 22','P2-LG Patio 3.jpg',534,400),
      new Array('Photo 23','P2-LG Patio 4.jpg',534,400),
      new Array('Photo 24','P2-LG Patio 5.jpg',534,400),
      new Array('Photo 25','P2-LG Patio 6.jpg',534,400),
      new Array('Photo 26','P2-LG Patio 7.jpg',534,400),
      new Array('Photo 27','P2-LG Patio 8.jpg',534,400),
      new Array('Photo 28','P2-LG Patio 9.jpg',534,400),
      new Array('Photo 29','P2-LG Patio.jpg',534,400),
      new Array('Photo 30','P2-Outdoor Kitchen Patio.jpg',534,400),
      new Array('Photo 31','P2-Patio on Side.jpg',534,400),
      new Array('Photo 32','P2-Patio walk.jpg',534,400),
      new Array('Photo 33','P2-Patio With Fire Pit.jpg',534,400),
      new Array('Photo 34','P2-Raised Patio 4.jpg',534,400),
      new Array('Photo 35','P2-Raised Patio 5.jpg',534,400),
      new Array('Photo 36','P2-Raised Patio 6.jpg',534,400),
      new Array('Photo 37','P2-Raised Patio 8.jpg',534,400),
      new Array('Photo 38','P2-Raised Patio 9.jpg',534,400),
      new Array('Photo 39','P2-Raised Patio.jpg',534,400),
      new Array('Photo 40','P2-Raised Walk 2.jpg',534,400),
      new Array('Photo 41','P2-Raised Walk For Deck.jpg',534,400),
      new Array('Photo 42','P2-Raised Walk For Deck2.jpg',534,400),
      new Array('Photo 43','P2-Raised Walk.jpg',534,400),
      new Array('Photo 44','P2-Raised Walk3.jpg',534,400),
      new Array('Photo 45','P2-Seat Wall 2.jpg',534,400),
      new Array('Photo 46','P2-Seat Wall 3.jpg',534,400),
      new Array('Photo 47','P2-Seat Wall Patio.jpg',534,400),
      new Array('Photo 48','P2-Walk Tree Wrap 3.jpg',534,400),
      new Array('Photo 49','P2-Walk Tree Wrap 4.jpg',534,400),
      new Array('Photo 50','P2-Walk Tree Wrap.jpg',534,400),
      new Array('Photo 51','P2-Walk Tree Wrap2.jpg',534,400),
      new Array('Photo 52','P2-Walkway Merge.jpg',534,400)
    )
  ),

  new Array('Patio 3','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','P3-Hillside Patio.jpg',534,400),
      new Array('Photo 2','P3-Patio On Hillside .jpg',534,400),
      new Array('Photo 3','P3-Patio Upper.jpg',534,400),
      new Array('Photo 4','P3-Ramp Walkway 2.jpg',534,400),
      new Array('Photo 5','P3-Ramp Walkway 3.jpg',534,400),
      new Array('Photo 6','P3-Ramp Walkway 4.jpg',534,400),
      new Array('Photo 7','P3-Ramp Walkway 5.jpg',534,400),
      new Array('Photo 8','P3-Ramp Walkway1.jpg',534,400)
    )
  ),

  new Array('Steps','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','S-Entry Step 1.jpg',534,400),
      new Array('Photo 2','S-Entry Step 2.jpg',534,400),
      new Array('Photo 3','S-Entry Step 3.jpg',534,400),
      new Array('Photo 4','S-Entry Step 4.jpg',534,400),
      new Array('Photo 5','S-Entry Step 5.jpg',534,400),
      new Array('Photo 6','S-Entry Step 6.jpg',534,400),
      new Array('Photo 7','S-Entry Step.jpg',600,400),
      new Array('Photo 8','S-Entry Steps 7.jpg',534,400),
      new Array('Photo 9','S-Entry Steps 8.jpg',534,400),
      new Array('Photo 10','S-Patio Step 2.jpg',534,400),
      new Array('Photo 11','S-Patio Step.jpg',534,400),
      new Array('Photo 12','S-Steps 1.jpg',534,400),
      new Array('Photo 13','S-Steps 2.jpg',534,400),
      new Array('Photo 14','S-Steps 3.jpg',534,400)

    )
  ),

  new Array('Walls','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','W-Country Manor  Wall  .jpg',534,400),
      new Array('Photo 2','W-Country Manor Planter Wall 2.jpg',534,400),
      new Array('Photo 3','W-Country Manor Planter Wall.jpg',534,400),
      new Array('Photo 4','W-Country Manor Wall 2.jpg',534,400),
      new Array('Photo 5','W-Country Manor Wall 3.jpg',534,400),
      new Array('Photo 6','W-Country Manor Wall 4.jpg',534,400),
      new Array('Photo 7','W-Highland 1.jpg',600,400),
      new Array('Photo 8','W-Highland 10.jpg',600,400),
      new Array('Photo 9','W-Highland 11.jpg',600,400),
      new Array('Photo 10','W-Highland 12.jpg',600,400),
      new Array('Photo 11','W-Highland 2.jpg',600,400),
      new Array('Photo 12','W-Highland 3.jpg',600,400),
      new Array('Photo 13','W-Highland 4.jpg',600,400),
      new Array('Photo 14','W-Highland 5.jpg',600,400),
      new Array('Photo 15','W-Highland 6.jpg',600,400),
      new Array('Photo 16','W-Highland 7.jpg',600,400),
      new Array('Photo 17','W-Highland 8.jpg',600,400),
      new Array('Photo 18','W-Highland 9.jpg',600,400),
      new Array('Photo 19','W-Highland Border Wall 2.jpg',534,400),
      new Array('Photo 20','W-Highland Border Wall 4.jpg',534,400),
      new Array('Photo 21','W-Highland Border Wall 5.jpg',534,400),
      new Array('Photo 22','W-Highland Border Wall 6.jpg',534,400),
      new Array('Photo 23','W-Highland Border Wall.jpg',534,400),

      new Array('Photo 24','W-Highland Column 2.jpg',534,400),
      new Array('Photo 25','W-Highland Column 3.jpg',534,400),
      new Array('Photo 26','W-Highland Column.jpg',534,400),
      new Array('Photo 27','W-Highland Wall 2 Ft High.jpg',534,400),
      new Array('Photo 28','W-Highland Wall and Cap.jpg',534,400),
      new Array('Photo 29','W-Highland Wall With Columns.jpg',534,400),
      new Array('Photo 30','W-Manor Fence 6foot High.jpg',534,400),
      new Array('Photo 31','W-Manor Wall 3 High 2.jpg',534,400),
      new Array('Photo 32','W-Manor Wall 3 High.jpg',534,400),
      new Array('Photo 33','W-Manor Wall Shaver2.jpg',534,400),
      new Array('Photo 34','W-Manor Wall ShaverWall 1.jpg',534,400),
      new Array('Photo 35','W-Masonry Wall Extended 2.jpg',534,400),
      new Array('Photo 36','W-Masonry Wall Extended 3.jpg',534,400),
      new Array('Photo 37','W-Masonry Wall Extended.jpg',534,400),
      new Array('Photo 38','W-Picture 32.jpg',534,400),
      new Array('Photo 39','W-Picture 50.jpg',534,400),
      new Array('Photo 40','W-Picture 8.jpg',534,400),
      new Array('Photo 41','W-Planter 3.jpg',534,400),
      new Array('Photo 42','W-Planter Wall 1.jpg',534,400),
      new Array('Photo 43','W-Planter Wall 10.jpg',534,400),
      new Array('Photo 44','W-Planter Wall 2.jpg',534,400),
      new Array('Photo 45','W-Planter Wall 3.jpg',534,400),
      new Array('Photo 46','W-Planter Wall 4.jpg',534,400),
      new Array('Photo 47','W-Planter Wall 5.jpg',534,400),
      new Array('Photo 48','W-Planter Wall 6.jpg',534,400),
      new Array('Photo 49','W-Planter Wall 7.jpg',534,400),
      new Array('Photo 50','W-Planter Wall 8.jpg',534,400),
      new Array('Photo 51','W-Planter Wall 9.jpg',534,400),
      new Array('Photo 52','W-Screen Wall For Air Conditioner.jpg',534,400),
      new Array('Photo 53','W-Screen Wall Gray.jpg',534,400),
      new Array('Photo 54','W-Screen Wall.jpg',534,400),
      new Array('Photo 55','Wall 3.jpg',534,400)
    )
  ),

  new Array('Water Fountain','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','Water Fountain 1.jpg',534,400),
      new Array('Photo 2','Water Fountain 2.jpg',534,400),
      new Array('Photo 3','Water Fountain 3.jpg',534,400),
      new Array('Photo 4','Water Fountain 4.jpg',534,400),
      new Array('Photo 5','Water Fountain 5.jpg',534,400),
      new Array('Photo 6','Water Fountain.jpg',534,400),
      new Array('Photo 7','WaterFeature.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]);
}

