
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'natural_stone.htm';
scriptName = 'natural_stone.js';
countX = 2;
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('Dimensional Cut Stone','images/products/small/','images/products/medium/','images/products/big/',
    new Array(
      new Array('Demensional Natl Cleft AUTUMN BROWN','Demensional Natl Cleft AUTUMN BROWN.jpg',534,400),
      new Array('Full Range Color','Full Range Color.jpg',534,400),
      new Array('Deminisional THERMAL Flagging, Blue or Full Range','Deminisional THERMAL Flagging, Blue or Full Range.jpg',534,400),
      new Array('Dimensional Natural Cleft Flagging, Blue,Full Range or Lilac','Dimensional Natural Cleft Flagging, Blue,Full Range or Lilac.jpg',534,400)
    )
  ),

  new Array('Edging','images/products/small/','images/products/medium/','images/products/big/',
    new Array(
      new Array('Edging Tumbled Blue River','Edging Tumbled Blue River.jpg',534,400),
      new Array('Edging Tumbled Wind River','Edging Tumbled Wind River.jpg',534,400),
      new Array('Fire Pit Kit','Fire Pit Kit.jpg',534,400),
      new Array('Belgium Block-Desert Sand, Regular','Belgium Block-Desert Sand, Regular.jpg',534,400),
      new Array('Belgium Block-Gray, Jumbo, Cube, Regular','Belgium Block-Gray, Jumbo, Cube, Regular.jpg',534,400)
    )
  ),

  new Array('Flagstone & Steppers','images/products/small/','images/products/medium/','images/products/big/',
    new Array(
      new Array('Irregular Black Hills Flagging','Irregular Black Hills Flagging.jpg',534,400),
      new Array('Irregular Flagging- Blue Select','Irregular Flagging- Blue Select.jpg',300,400),
      new Array('Irregular Flagging-Arizona','Irregular Flagging-Arizona.jpg',300,400),
      new Array('Irregular Flagging-Full Range','Irregular Flagging-Full Range.jpg',300,400),
      new Array('Irregular Flagging-Lilac','Irregular Flagging-Lilac.jpg',300,400),
      new Array('Irregular Garden Path Mojave','Irregular Garden Path Mojave.jpg',534,400),
      new Array('Irregular Hickory Gray Flagging','Irregular Hickory Gray Flagging.jpg',534,400),
      new Array('Irregular Tennessee Crab Irregular','Irregular Tennessee Crab Irregular.jpg',534,400),
      new Array('Ledge Blue River','Ledge Blue River.jpg',534,400),
      new Array('Semco Sandstone','Semco Sandstone.jpg',534,400),
      new Array('Steppers Chilton','Steppers Chilton.jpg',534,400),
      new Array('Steppers Fieldstone Large','Steppers Fieldstone Large.jpg',534,400),
      new Array('Steppers Fieldstone Small','Steppers Fieldstone Small.jpg',534,400),
      new Array('Steppers Hickory Gray','Steppers Hickory Gray.jpg',534,400),
      new Array('Steppers Tumbled Irregular Paving','Steppers Tumbled Irregular Paving.jpg',534,400),
      new Array('Tumbled Irregular Blue','Tumbled Irregular Blue_1.jpg',534,400),
      new Array('Steppers Fieldstone Med','Steppers Fieldstone Med.jpg',534,400),
      new Array('Stepping Stones, Desert Sand or Multi Color (avg 12-14 in.)','Stepping Stones, Desert Sand or Multi Color (avg 12-14 in.).jpg',534,400)
    )
  ),

  new Array('Landscaping Stone & Boulders','images/products/small/','images/products/medium/','images/products/big/',
    new Array(
      new Array('Cove Stone Coco Beach','Cove Stone Coco Beach.jpg',534,400),
      new Array('Garden Round Autumn Haze','Garden Round Autumn Haze.jpg',534,400),
      new Array('Garden Round Pink Marble','Garden Round Pink Marble.jpg',534,400),
      new Array('Garden Round White Marble','Garden Round White Marble.jpg',534,400),
      new Array('Kewanee Skippers','Kewanee Skippers.jpg',534,400),
      new Array('Kewannee River Pebbles','Kewannee River Pebbles.jpg',534,400),
      new Array('Landscape Boulder Autumn Haze','Landscape Boulder Autumn Haze.jpg',534,400),
      new Array('Landscape Boulder Autumn Red','Landscape Boulder Autumn Red.jpg',534,400),
      new Array('Landscape Boulder Canadian River','Landscape Boulder Canadian River.jpg',534,400),
      new Array('Landscape Boulder Dixie Pink','Landscape Boulder Dixie Pink.jpg',534,400),
      new Array('Landscape Boulder Highrise PA Fieldstone','Landscape Boulder Highrise PA Fieldstone.jpg',534,400),
      new Array('Landscape Boulder Jumbo PA Fieldstone','Landscape Boulder Jumbo PA Fieldstone.jpg',534,400),
      new Array('Landscape Boulder Med Weathered Limestone','Landscape Boulder Med Weathered Limestone.jpg',534,400),
      new Array('Landscape Boulder White Marble','Landscape Boulder White Marble.jpg',534,400),
      new Array('Landscape Boulder Zebra','Landscape Boulder Zebra.jpg',534,400),
      new Array('Landscape Boulders Med Royal Gorge','Landscape Boulders Med Royal Gorge.jpg',534,400),
      new Array('Ledge Large Cedar Ridge','Ledge Large Cedar Ridge.jpg',534,400),
      new Array('Ledge Small Cedar Ridge','Ledge Small Cedar Ridge.jpg',534,400),
      new Array('Mexican Beach Black 1-2','Mexican Beach Black 1-2.jpg',534,400),
      new Array('One Man Canadian River','One Man Canadian River.jpg',534,400),
      new Array('One Man Dixie Pink','One Man Dixie Pink.jpg',534,400),
      new Array('One Man White Marble','One Man White Marble.jpg',534,400),
      new Array('River Rounds-Small','River Rounds-Small.jpg',300,400)
    )
  ),

  new Array('Steps & Treads','images/products/small/','images/products/medium/','images/products/big/',
    new Array(
      new Array('Step Treads, Mantels, Hearths(can be Custom Sized)','Step Treads, Mantels, Hearths(can be Custom Sized).jpg',534,400),
      new Array('Step Black Hills 4`','Step Black Hills 4`.jpg',534,400),
      new Array('Step Blue River 4`','Step Blue River 4`.jpg',534,400)
    )
  ),

  new Array('Wallstone','images/products/small/','images/products/medium/','images/products/big/',
    new Array(
      new Array('Black Regency Veneer','Black Regency Veneer.jpg',534,400),
      new Array('Blue River Natural Wall','Blue River Natural Wall.jpg',534,400),
      new Array('Buff Wallstone','Buff Wallstone.jpg',534,400),
      new Array('Carolina Rose Veneer','Carolina Rose Veneer.jpg',534,400),
      new Array('Colonial Wall 3-6','Colonial Wall 3-6.jpg',534,400),
      new Array('Colonial Wall Gray 1-3','Colonial Wall Gray 1-3.jpg',534,400),
      new Array('Colonial Wall Lilac 1-3','Colonial Wall Lilac 1-3.jpg',534,400),
      new Array('Dove Gray Building Stone','Dove Gray Building Stone.jpg',534,400),
      new Array('Dove Gray Veneer','Dove Gray Veneer.jpg',534,400),
      new Array('Garden Path Adirondak','Garden Path Adirondak.jpg',534,400),
      new Array('Hickory Gray Wall','Hickory Gray Wall.jpg',534,400),
      new Array('Maple Creek Wallstone','Maple Creek Wallstone.jpg',534,400),
      new Array('Mountain Laurel 2-3','Mountain Laurel 2-3.jpg',534,400),
      new Array('PA Fieldstone 1-3','PA Fieldstone 1-3.jpg',534,400),
      new Array('PA Fieldstone 3-6','PA Fieldstone 3-6.jpg',534,400),
      new Array('PA Fieldstone 6-12','PA Fieldstone 6-12.jpg',534,400),
      new Array('Pocono Blend 1-3','Pocono Blend 1-3.jpg',534,400),
      new Array('River Flats','River Flats.jpg',534,400),
      new Array('River Valley Blend','River Valley Blend.jpg',534,400),
      new Array('Tumbled Irregular Blue','Tumbled Irregular Blue.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]);
}
