
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'landscaping.htm';
scriptName = 'landscaping.js';
countX = 4;
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('Landscape Designs','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','6 foot Lexington Vinyl fence White only Vinyl pickets 5_8in x 11 3_8in x 59 3_4in Post 5 in x 5 in.jpg',464,310),
      new Array('Photo 2','A front w wall and plants 101607jpeg.jpg',600,400),
      new Array('Photo 3','A front wo plants 101607jpeg.jpg',600,400),
      new Array('Photo 4','after1.jpg',534,400),
      new Array('Photo 5','Arrigo Cottage  Garden After 600 pix.jpg',534,400),
      new Array('Photo 6','Arrigo Entrance Design After.jpg',534,400),
      new Array('Photo 7','Arrigo Garden After 2.jpg',534,400),
      new Array('Photo 8','back improved 082907.jpg',535,400),
      new Array('Photo 9','back yard wo cherry and crepes w y gardenias.jpg',535,400),
      new Array('Photo 10','beforeafter_02_a1.jpg',550,390),
      new Array('Photo 11','beforeafter_03_a1.jpg',546,400),
      new Array('Photo 12','beforeafter_03_a3.jpg',500,375),
      new Array('Photo 13','beforeafter_04_a1.jpg',533,400),
      new Array('Photo 14','beforeafter_04_a2.jpg',533,400),
      new Array('Photo 15','beforeafter_06_a2.jpg',544,400),
      new Array('Photo 16','beforeafter_07_a1.jpg',549,400),
      new Array('Photo 17','beforeafter_07_a2.jpg',550,384),
      new Array('Photo 18','beforeafter_08_a1.jpg',550,395),
      new Array('Photo 19','beforeafter_09_a3.jpg',550,375),
      new Array('Photo 20','Bianco After 600 pix.jpg',534,400),
      new Array('Photo 21','Caiati After 600 pix.jpg',534,400),
      new Array('Photo 22','Carey Front After 600 pix.jpg',534,400),
      new Array('Photo 23','Casadona After 600 pix.jpg',534,400),
      new Array('Photo 24','Coghill front of home 083007.jpg',535,400),
      new Array('Photo 25','Coghill front right 083007.jpg',535,400),
      new Array('Photo 26','Conner Front beds 091207 jpeg.jpg',535,400),
      new Array('Photo 27','DSCN3721.jpg',535,400),
      new Array('Photo 28','DSCN3723.jpg',535,400),
      new Array('Photo 29','DSCN5007_1.jpg',535,400),
      new Array('Photo 30','DSCN5270.jpg',535,400),
      new Array('Photo 31','DSCN5313.jpg',535,400),
      new Array('Photo 32','DSCN5319 - Copy.jpg',535,400),
      new Array('Photo 33','DSCN5320.jpg',535,400),
      new Array('Photo 34','DSCN5322.jpg',535,400),
      new Array('Photo 35','DSCN5323_1.jpg',535,400),
      new Array('Photo 36','DSCN5324 - Copy.jpg',535,400),
      new Array('Photo 37','DSCN5325.jpg',535,400),
      new Array('Photo 38','DSCN5328.jpg',535,400),
      new Array('Photo 39','DSCN5330.jpg',535,400),
      new Array('Photo 40','DSCN5331.jpg',535,400),
      new Array('Photo 41','DSCN5333.jpg',535,400),
      new Array('Photo 42','DSCN5334.jpg',535,400),
      new Array('Photo 43','DSCN5336.jpg',535,400),
      new Array('Photo 44','DSCN5337.jpg',535,400),
      new Array('Photo 45','DSCN5338.jpg',535,400),
      new Array('Photo 46','DSCN5542.jpg',535,400),
      new Array('Photo 47','DSCN5632_1.jpg',535,400),
      new Array('Photo 48','DSCN5639.jpg',535,400),
      new Array('Photo 49','far end focal 090507.jpg',535,400),
      new Array('Photo 50','far end focal revised 100307 jpeg.jpg',535,400),
      new Array('Photo 51','Fernandez Entrance & Wall After.jpg',534,400),
      new Array('Photo 52','Formento Bck yard after 022108.jpg',534,400),
      new Array('Photo 53','Formento Left rear bed 2nd draft 021908.jpg',534,400),
      new Array('Photo 54','Formento Left rear bed Rough draft 021808.jpg',534,400),
      new Array('Photo 55','Front bed jpg.jpg',535,400),
      new Array('Photo 56','Front bed wo wall jpg.jpg',535,400),
      new Array('Photo 57','garrard front of home accent ltg AFTER 121807.jpg',534,400),
      new Array('Photo 58','Goldsmith Phase 1 AFTER 062408.jpg',534,400),
      new Array('Photo 59','Goldsmith Phase 1 BEFORE 062408.jpg',534,400),
      new Array('Photo 60','Grant After Best 600 pix.jpg',534,400),
      new Array('Photo 61','Kotelec Right side bed 092807 jpeg.jpg',535,400),
      new Array('Photo 62','Labrador Backyard AFTER 011008.jpg',534,400),
      new Array('Photo 63','Laksh Front of home rendering jpeg 091707.jpg',535,400),
      new Array('Photo 64','Lopez After Best.jpg',534,400),
      new Array('Photo 65','MacConnell backyard BASIC After 121207.jpg',534,400),
      new Array('Photo 66','MacConnell Frontyard After 121207.jpg',535,400),
      new Array('Photo 67','Marissa Armour After 600 pix.jpg',534,400),
      new Array('Photo 68','miller backyard rendering AFTER 101607.jpg',535,400),
      new Array('Photo 69','miller backyard rendering w lighting AFTER 101607.jpg',535,400),
      new Array('Photo 70','Miller Front  yard rendering wo center bushes after 101807 jpeg.jpg',535,400),
      new Array('Photo 71','miller front yard rendering wo center bushes and LL AFTER 101907.jpg',535,400),
      new Array('Photo 72','Mitchell Front of home rendering for new plants option B 091907 Jpeg.jpg',535,400),
      new Array('Photo 73','Pape front rendering 091307 jpeg.jpg',535,400),
      new Array('Photo 74','Pete & Gail Gazsy Design After 600 pix.jpg',534,400),
      new Array('Photo 75','Steneck Design After.jpg',534,400),
      new Array('Photo 76','Stenn Garden After Best 600 pix.jpg',534,400),
      new Array('Photo 77','Stevens front perspective wo center bed jpeg.jpg',535,400),
      new Array('Photo 78','sun byard project after jpeg 091907.jpg',535,400),
      new Array('Photo 79','Superabrasive Dayscape including Greenscapes 062607.jpg',535,400),
      new Array('Photo 80','Superabrasive Nightscape including lighting 062607.jpg',535,400),
      new Array('Photo 81','Superabrasive noisy area after w gazebo pavers and plants and water feature 110207.jpg',535,400),
      new Array('Photo 82','Superabrasive Retention pond after with color and wall 110707 JPEG.jpg',535,400),
      new Array('Photo 83','Taylor pool entrance 091207.jpg',535,400),
      new Array('Photo 84','Tilman after.jpg',535,400)
    )
  ),

  new Array('Outdoor Kitchens','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','bbq str. on.jpg',534,400),
      new Array('Photo 2','Leary3.jpg',534,400),
      new Array('Photo 3','Owen fireplace.jpg',534,400),
      new Array('Photo 4','Williams.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]);
}

