
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'design-centers.htm';
scriptName = 'design-centers.js';
countX = 5;
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('Buckeye Store','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Cantera Wok Pot','24 inch  Cafe II Wok.jpg',535,400),
      new Array('Cantera Pot','30 inch Cafe II Copa Pot.jpg',535,400),
      new Array('Cantera Fountain','5ft Hacienda Fountain.jpg',300,400),
      new Array('Cantera Fountain','6-6ft Cantera English Fountain.jpg',535,400),
      new Array('Artificial Grass','Artificial Grass.jpg',534,400),
      new Array('Boulders','Boulders.jpg',535,400),
      new Array('Natural Stone Displays','Buckeye Showroom.jpg',601,400),
      new Array('Rock','Bulk Rock 2.jpg',534,400),
      new Array('Rock','Bulk Rock.jpg',534,400),
      new Array('Flagstone Bench','Flagstone Bench.jpg',534,400),
      new Array('Outdoor Manor Fireplace','Manor Fire Place.jpg',535,400),
      new Array('Delta Stone Mountain Quarry Blend','Mountain Valley Quarry Blend.jpg',534,400),
      new Array('Delta Stone Mountain Valley Tumbled Rubble','Mountain Valley Tumbled Rubble.jpg',534,400),
      new Array('Pavers','Pavers 2.jpg',534,400),
      new Array('Pavers','Pavers.jpg',534,400),
      new Array('Table w/ Benches','Table w Four Benches.jpg',534,400),
      new Array('Table w/ Benches','Table w Three Benches.jpg',534,400),
      new Array('Water Fall','Water Fall.jpg',535,400),
	  new Array('Nursery','Nursery I.jpg',534,400),
      new Array('Nursery','Nursery II.jpg',534,400),
      new Array('Nursery','Nursery III.jpg',534,400),
      new Array('Nursery','Nursery IV.jpg',534,400),
      new Array('Garden Tools & Supplies','Tools I.jpg',534,400)
    )
  ),

  new Array('Hatcher Store','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Photo 1','Hatcher Pavers w Tent.jpg',450,338),
      new Array('Photo 2','Hatcher Showroom III.jpg',450,338),
      new Array('Photo 3','Hatcher Showroom IV.jpg',450,338),
      new Array('Photo 4','Hatcher Showroom IX.jpg',266,400),
      new Array('Photo 5','Hatcher Showroom V.jpg',450,338),
      new Array('Photo 6','Hatcher Showroom VI.jpg',450,338),
      new Array('Photo 7','Hatcher Showroom VII.jpg',450,338),
      new Array('Photo 8','Hatcher Showroom VIII.jpg',266,400),
      new Array('Photo 9','Hatcher Showroom X.jpg',450,299),
      new Array('Photo 10','Hatcher Showroom XI.jpg',450,299),
      new Array('Photo 11','Hatcher Showroom XII.jpg',450,299),
      new Array('Photo 12','Hatcher Showroom XIII.jpg',450,299),
      new Array('Photo 13','Hatcher Store.jpg',450,299),
      new Array('Photo 14','Water Fall Cantera Stone.jpg',300,400)
    )
  ),

  new Array('Landscape Store','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Outdoor Kitchen','Delta Stone 1.jpg',601,400),
      new Array('Delta Stone Honeysuckle Wall w/ Po','Delta Stone.jpg',601,400),
      new Array('Outdoor Displays','Landscape IV.jpg',450,338),
      new Array('Outdoor Displays','Landscape IX.jpg',450,299),
      new Array('Outdoor Displays','Landscape Outdoor Displays.jpg',601,400),
      new Array('Outdoor Displays','Landscape Store 007.jpg',601,400),
      new Array('Waterfall','Landscape Store 009.jpg',601,400),
      new Array('Waterfall','Landscape Store 010.jpg',601,400),
      new Array('Honeycomb Fireplace w/ Delta Stone Highland','Landscape Store 011.jpg',601,400),
      new Array('Honeycomb Fireplace w/ Delta Stone Highland w/ Pots','Landscape Store 012.jpg',601,400),
      new Array('Manor Fireplace & Outdoor Kitchen','Landscape Store 013.jpg',601,400),
      new Array('Outdoor Displays','Landscape Store III.jpg',450,338),
      new Array('Waterfall w/ Delta Stone Cheyenne Rubble & Old Del Mar Sand Brick Walls','Landscape Store Waterfall Cheyenne Rubble Old Del Mar Sand Brick.jpg',601,400),
      new Array('Pots','Landscape Store.jpg',534,400),
      new Array('Outdoor Displays','Landscape Store1.jpg',534,400),
      new Array('Outdoor Displays','Landscape V.jpg',450,338),
      new Array('Outdoor Displays','Landscape VI.jpg',450,338),
      new Array('Outdoor Displays','Landscape VII.jpg',450,338),
      new Array('Paver Displays','Landscape VIII.jpg',450,338),
      new Array('Waterfall','Landscape Water Fall 2.jpg',534,400),
      //new Array('Photo 21','Landscape Water Fall 3.jpg',450,338),
      new Array('Waterfall','Landscape Water Fall.jpg',601,400),
      new Array('Outdoor Displays','Landscape X.jpg',450,299),
      new Array('Outdoor Displays','Landscape XI.jpg',450,299),
      new Array('Outdoor Displays','Landscape XII.jpg',450,299),
      new Array('Outdoor Displays','Landscape XIII.jpg',450,299),
      new Array('Outdoor Displays','Landscape XIIII.jpg',450,299),
      new Array('Outdoor Displays','Landscape XV.jpg',450,299),
      new Array('Paver Displays','Landscape XVI.jpg',266,400),
      new Array('Paver Display w/Firepit','Landscape Yard II.jpg',534,400),
      new Array('Outdoor Display','Stone Hedge Wall 001.jpg',601,400),
      new Array(' Rockwood  Stonehedge Mortarless Walls.  Navajo Brown','Stone Hedge Wall 002.jpg',601,400),
      new Array(' Rockwood  Stonehedge Mortarless Walls.  Navajo Brown','Stone Hedge Wall 003.jpg',601,400),
      new Array(' Rockwood  Stonehedge Mortarless Walls.  Navajo Brown','Stone Hedge Wall 004.jpg',601,400),
      new Array(' Rockwood  Stonehedge Mortarless Walls.  Navajo Brown','Stone Hedge Wall 006.jpg',601,400),
      new Array('Burnt Adobe Pergola','Landscape Pergola 004.jpg',534,400),
      new Array('Burnt Adobe Pergola','Landscape Pergola 008.jpg',534,400),
      new Array('Burnt Adobe Pergola w/Delta Stone Mountain Valley Tumbled Rubble Columns','Landscape Pergola w Thatch Roof 001.jpg',534,400),
      new Array('Burnt Adobe Pergola w/Delta Stone Mountain Valley Tumbled Rubble Columns','Landscape Pergola w Thatch Roof002.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]);
}
