
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('Landscaping','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','3.jpg',534,400),
      new Array('Photo 2','4.jpg',534,400),
      new Array('Photo 3','5.jpg',534,400),
      new Array('Photo 4','6.jpg',534,400),
      new Array('Photo 5','7.jpg',534,400),
      new Array('Photo 6','8.jpg',534,400),
      new Array('Photo 7','JN L Backyard 001.jpg',534,400),
      new Array('Photo 8','JN L Backyard 002.jpg',534,400),
      new Array('Photo 9','JN L Backyard 003.jpg',534,400),
      new Array('Photo 10','JN L Backyard 004.jpg',534,400),
      new Array('Photo 11','JN L Backyard 005.jpg',534,400),
      new Array('Photo 12','JN L Backyard 006.jpg',534,400),
      new Array('Photo 13','JN L Backyard 007.jpg',534,400),
      new Array('Photo 14','JN L Backyard 008.jpg',534,400),
      new Array('Photo 15','JN L Backyard 009.jpg',534,400),
      new Array('Photo 16','JN L Backyard 010.jpg',534,400),
      new Array('Photo 17','JN L Backyard 011.jpg',534,400),
      new Array('Photo 18','JN L Backyard 017.jpg',534,400),
      new Array('Photo 19','JN L Backyard 025.jpg',534,400),
      new Array('Photo 20','JN L Backyard 031.jpg',534,400),
      new Array('Photo 21','JN L Backyard 032.jpg',534,400),
      new Array('Photo 22','JN L Backyard 035.jpg',534,400),
      new Array('Photo 23','jnl 088.jpg',300,400),
      new Array('Photo 24','jnl 089.jpg',534,400),
      new Array('Photo 25','jnl 090.jpg',534,400),
      new Array('Photo 26','jnl 091.jpg',534,400),
      new Array('Photo 27','jnl 092.jpg',534,400),
      new Array('Photo 28','jnl 093.jpg',534,400),
      new Array('Photo 29','jnl 094.jpg',534,400),
      new Array('Photo 30','JNL002.jpg',611,400),
      new Array('Photo 31','JNL014.jpg',602,400),
      new Array('Photo 32','Ultimate Backyard 009.jpg',602,400),
      new Array('Photo 33','Ultimate Backyard 010.jpg',602,400),
      new Array('Photo 34','Ultimate Backyard 011.jpg',602,400),
      new Array('Photo 35','Ultimate Backyard 012.jpg',602,400),
      new Array('Photo 36','Ultimate Backyard 013.jpg',602,400),
      new Array('Photo 37','Ultimate Backyard 014.jpg',602,400),
      new Array('Photo 38','Ultimate Backyard 015.jpg',400,400)
    )
  ),

  new Array('Pavers','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','jnl 010.jpg',534,400),
      new Array('Photo 2','jnl 011.jpg',534,400),
      new Array('Photo 3','jnl 012.jpg',534,400),
      new Array('Photo 4','jnl 013.jpg',534,400),
      new Array('Photo 5','jnl 014.jpg',534,400),
      new Array('Photo 6','P4180030.jpg',534,400),
      new Array('Photo 7','pavers-drive.jpg',534,400),
      new Array('Photo 8','pavers-drive2.jpg',534,400),
      new Array('Photo 9','pavers-011.jpg',534,400),
      new Array('Photo 10','pavers-023.jpg',300,400),
      new Array('Photo 11','pool-deck-2.jpg',534,400),
      new Array('Photo 12','pool-deck-4.jpg',534,400),
	  new Array('Photo 13','belgard-pool-deck-1.jpg',534,400),
      new Array('Photo 14','tulsa-planter-1.jpg',534,400)


    )
  ),

  new Array('Retaining Walls','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
	  new Array('Photo 1','DSCN0134.jpg',534,400),
      new Array('Photo 2','DSCN0178.jpg',534,400),
      new Array('Photo 3','DSCN0183.jpg',534,400),
      new Array('Photo 4','Failing Wall Hattiesburg, MS.jpg',534,400),
	  new Array('Photo 5','Side View.jpg',534,400),
      new Array('Photo 6','Sideview.jpg',534,400),
      new Array('Photo 7','soil anchors.jpg',534,400),
      new Array('Photo 8','top view.jpg',534,400),
	  new Array('Photo 9','Finish.jpg',534,400),
	  new Array('Photo 10','Bldg 10 001.jpg',534,400),
      new Array('Photo 11','Bldg 10 006.jpg',534,400),
      new Array('Photo 12','Bldg 10 009.jpg',534,400),
      new Array('Photo 13','Bldg 10 014.jpg',534,400),
      new Array('Photo 14','001.jpg',534,400),
      new Array('Photo 15','002.jpg',534,400),
      new Array('Photo 16','courtyard wall (2).jpg',534,400),
      new Array('Photo 17','courtyard wall.jpg',534,400),
      new Array('Photo 18','jnl 005.jpg',534,400),
      new Array('Photo 19','jnl 007.jpg',534,400),
      new Array('Photo 20','jnl 008.jpg',534,400),
      new Array('Photo 21','P4180031.jpg',534,400)
   )
 ),
	  
   new Array('Patio','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','023.jpg',534,400),
      new Array('Photo 2','025.jpg',534,400),
      new Array('Photo 3','029.jpg',534,400),
      new Array('Photo 4','030.jpg',534,400),
	  new Array('Photo 5','JNL_001.jpg',602,400),
      new Array('Photo 6','JNL_008.jpg',602,400),
      new Array('Photo 7','JNL_013.jpg',602,400),
      new Array('Photo 8','JNL_015.jpg',602,400),
      new Array('Photo 9','JNL_018.jpg',602,400),
      new Array('Photo 10','JNL_019.jpg',602,400),
      new Array('Photo 11','JNL_022.jpg',602,400),
      new Array('Photo 12','JNL_023.jpg',602,400),
      new Array('Photo 13','JNL_025.jpg',602,400),
      new Array('Photo 14','JNL_026.jpg',602,400),
      new Array('Photo 15','JNL_027.jpg',602,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]);
}
