
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'stone.htm';
scriptName = 'stone.js';
countX = 2;
countY = 3;

// <font color="#660a01"><strong><u>Categories:</u></strong></font> name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(

  new Array('Stone Flooring','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
      new Array('','Cameron Stone Landing.jpg',534,400),
      new Array('','Fargo Buckskin Landing.jpg',534,400),
      new Array('','Fargo Buckskin Natural Stone Walkway.jpg',534,400),
      new Array('','Fargo Buckskin Stone.jpg',534,400),
      new Array('','Lompoc Natural Stone Porch.jpg',300,400),
      new Array('','Lompoc Natural Stone Walkway.jpg',300,400),
      new Array('','Natural Stone Patio & Walkway.jpg',534,400),
      new Array('','Quartzite Natural Stone Walkway.jpg',534,400),
      new Array('','Slate Stone Walkway.jpg',534,400),
      new Array('','Softset natural stone walkway.jpg',300,400),
      new Array('','Softset natural stone with natural stone fire pit.jpg',534,400),
	  new Array('','Picture 223.jpg',534,400),
      new Array('','Picture 600.jpg',534,400)
    )
  ),

  new Array('Stone Steps','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
      new Array('','Blue Stone Steps.jpg',534,400),
      new Array('','Cameron Stone Staircase.jpg',534,400),
      new Array('','Cameron Stone Step Entrance.jpg',534,400),
      new Array('','Cameron Stone Steps and Driveway.jpg',534,400),
      new Array('','Cameron Stone Steps.jpg',534,400),
      new Array('','Fargo Buckskin Natural Stone Steps.jpg',534,400),
      new Array('','Fargo Buckskin Staricase.jpg',534,400),
      new Array('','Fargo Buckskin Step Caps, & Stucco Face.jpg',534,400),
      new Array('','Fargo Buckskin Steps, with Ledger Stone.jpg',534,400),
      new Array('','Fargo Buckskin Steps.jpg',534,400),
      new Array('','Fargo Buckskin Stone Steps.jpg',534,400),
      new Array('','Lompoc Stairs, Walkway, and Veneer.jpg',534,400),
      new Array('','Natural Stone Gold Travertine Steps.jpg',534,400),
      new Array('','Natural Stone Landing & Steps.jpg',534,400),
      new Array('','Natural Stone Steps & Landing.jpg',534,400),
      new Array('','Natural Stone Steps with Ledger Stone.jpg',534,400),
      new Array('','Natural Stone Tahoe Travertine Steps & Pavers.jpg',534,400),
      new Array('','Natural Stone Tahoe Travertine Steps.jpg',534,400),
      new Array('','Quartzite Stone Steps & Landings.jpg',534,400),
      new Array('','Slate Stone Steps.jpg',534,400),
      new Array('','Slate Tile Steps.jpg',534,400),
      new Array('','Three Rivers Landing.jpg',534,400),
      new Array('','Three Rivers Natural Stone Steps.jpg',534,400),
      new Array('','Three Rivers Natural Stone.jpg',534,400),
      new Array('','Three Rivers Stone Steps.jpg',534,400),
      new Array('','Three Rivers Stone.jpg',534,400)
    )
  ),

  new Array('Stone Veneers','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
      new Array('','Bluestone Ledgestone.jpg',534,400),
      new Array('','Bluestone Natural Stone Ledgestone with Travertine Pavers.jpg',534,400),
      new Array('','Bluestone Stacked Veneer.jpg',534,400),
      new Array('','Country Rubble Manufactured Stone Veneer.jpg',534,400),
      new Array('','Country Rubble Manufactured Stone Veneers.jpg',534,400),
      new Array('','Country Rubble Manufactured Stone..jpg',534,400),
      new Array('','Country Rubble Manufactured Stone.jpg',534,400),
      new Array('','Country Rubble Manufactured. Stone.jpg',534,400),
      new Array('','Fargo Buckskin Ledgestone.jpg',534,400),
      new Array('','Manufactured Country Rubble.jpg',534,400),
      new Array('','Manufactured Ledgestone.jpg',534,400),
      new Array('','Manufactured River Rock, and Brick Column Veneer.jpg',603,400),
      new Array('','Manufactured Stack Stone Veneer with Bullnose Cap.jpg',534,400),
      new Array('','Manufactured Stack Stone with Bluestone Cap.jpg',534,400),
      new Array('','Manufactured Stack Stone with Grout Joints..jpg',534,400),
      new Array('','Manufactured Stack Stone with Grout Joints.jpg',534,400),
      new Array('','Manufactured Stone Column Veneer, Bluestone Steps, and Travertine Caps.jpg',534,400),
      new Array('','Manufactured Stone Stacked Stone Veneer.jpg',534,400),
      new Array('','Manufactured Stone Stacked Veneer.jpg',534,400),
      new Array('','Manufactured Stone Veneer with Bullnose.jpg',534,400),
      new Array('','Manufactured Stone Veneer.jpg',534,400),
      new Array('','Manufactured Stone Wall Veneer.jpg',534,400),
      new Array('','ManufacturedStacked Stone.jpg',534,400),
      new Array('','Natural Ledgestone B.B.Q. Veneer.jpg',534,400),
      new Array('','Natural Stone Ledger Stone.jpg',603,400),
      new Array('','Natural Stone Ledgestone with Slate Accents.jpg',300,400),
      new Array('','Natural Stone Ledgestone.jpg',603,400),
      new Array('','Natural Stone Panel Veneer.jpg',534,400),
      new Array('','Natural Stone Veneer & Cap, with Soft Set Walkway.jpg',534,400),
      new Array('','Slate Stone Veneer.jpg',534,400),
      new Array('','Wall faced Country Rubble Manufactured Stone.jpg',534,400),
	  new Array('','Picture 297.jpg',534,400),
      new Array('','Picture 528.jpg',534,400),
      new Array('','Picture 540.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]);
}
