
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'application-landscape.htm';
scriptName = 'application-landscape-photos.js';
countX = 7;
countY = 4;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(

   new Array('Cobbler & Stone Edging portfolio Photos','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Canadian Cobblers 1','App-Canadian Cobblers 1.jpg',534,400),
      new Array('Canadian Cobblers 2','App-Canadian Cobblers  2.jpg',534,400),
      new Array('Misty Gray Tumbled 8x8','App-Misty Gray Tumbled 8x8.jpg',649,400),
      new Array('Mexican Beach Pebbles','App-Mexican-Beach-Pebbles.jpg',533,400)
    )
  ),

  new Array('Drywall portfolio Photos','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Alpine 8 inch Drywall','App-Alpine 8 inch Drywall.jpg',300,400),
      new Array('Aux Vases Old World Tumbled Drywall 1','App-Aux Vases Old World Tumbled Drywall 1.jpg',534,400),
      new Array('Aux Vases Old World Tumbled Drywall 2','App-Aux Vases Old World Tumbled Drywall 2.jpg',586,400),
	  new Array('Calico Cream drywall','App-Calico Cream drywall.jpg',534,400),
      new Array('Calico Cream drywall 1','App-Calico Cream drywall (1).jpg',534,400),
      new Array('Calico Cream drywall 2','App-Calico Cream drywall (4).jpg',534,400),
      new Array('Dove Gray Random Drywall 1','App-Dove Gray Random Drywall 1.jpg',534,400),
      new Array('Dove Gray Random Drywall 2','App-Dove Gray Random Drywall 2.jpg',534,400),
      new Array('Eden 8 inch Drywall & Steppers','App-Eden 8 inch Drywall & Steppers.jpg',534,400),
      new Array('Eden 8 inch Drywall 1','App-Eden 8 inch Drywall 1.jpg',401,400),
      new Array('Eden 8 inch Drywall 2','App-Eden 8 inch Drywall 2.jpg',578,401),
      new Array('EW Gold 8 inch Drywall 1','App-EW Gold 8 inch Drywall 1.jpg',534,400),
      new Array('EW Gold 8 inch Drywall 2','App-EW Gold 8 inch Drywall 2.jpg',534,400),
      new Array('EW Gold Old World Tumbled Drywall','App-EW Gold Old World Tumbled Drywall.jpg',579,400),
      new Array('Indian Creek','App-Indian Creek.jpg',598,400),
      new Array('Oakfield Steppers','App-Oakfield Steppers.jpg',534,400),
      new Array('Weathered Fieldstone 1','App-Weathered Fieldstone 1.jpg',534,400),
      new Array('Weathered Fieldstone 2','App-Weathered Fieldstone 2.jpg',534,400),
      new Array('Weathered Fieldstone 3','App-Weathered Fieldstone 3.jpg',534,400),
      new Array('Weathered Fieldstone 4','App-Weathered Fieldstone 4.jpg',534,400),
      new Array('Weathered Fieldstone 5','App-Weathered Fieldstone 5.jpg',534,400),
      new Array('Weathered Fieldstone 6','App-Weathered Fieldstone 6.jpg',300,400),
      new Array('Weathered Fieldstone 7','App-Weathered Fieldstone 7.jpg',534,400)
    )
  ),

  new Array('Flagstone portfolio Photos','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Aux Vases Sawed Pavers','App-Aux Vases Sawed Pavers 1.jpg',309,400),
      new Array('Cumberland Mountain Flag & Veneer 1','App-Cumberland Mountain Flag & Veneer 1.jpg',600,400),
      new Array('Cumberland Mountain Flag & Veneer 2','App-Cumberland Mountain Flag & Veneer 2.jpg',534,400),
      new Array('Eden Flagstone 1','App-Eden Flagstone 1.jpg',534,400),
      new Array('Eden Flagstone 2','App-Eden Flagstone 2.jpg',495,400),
      new Array('Hickory Star Steppers 1','App-Hickory Star Steppers 1.jpg',534,400),
      new Array('Hickory Star Steppers 2','App-Hickory Star Steppers 2.jpg',534,400),
      new Array('Plumwood Flagstone 1','App-Plumwood Flagstone 1.jpg',534,400),
      new Array('Plumwood Flagstone 2','App-Plumwood Flagstone 2.jpg',559,400),
      new Array('Plumwood Flagstone 3','App-Plumwood Flagstone 3.jpg',574,400),
      new Array('Shadow Mountain Gray Flagstone 1','App-Shadow Mountain Gray Flagstone 1.jpg',534,400),
      new Array('Shadow Mountain Gray Flagstone 2','App-Shadow Mountain Gray Flagstone 2.jpg',534,400),
      new Array('Shadow Mountain Gray Flagstone 3','App-Shadow Mountain Gray Flagstone 3.jpg',534,400),
      new Array('Weathered Fieldstone Path 1','App-Weathered Fieldstone Path 1.jpg',534,400),
      new Array('Weathered Fieldstone Path 2','App-Weathered Fieldstone Path 2.jpg',534,400),
      new Array('Shawnee #1','App-Shawnee1.jpg',602,400),
      new Array('Shawnee Flag set in mulch','App-Shawnee Flag set in mulch.jpg',602,400),
      new Array('Shawnee Flagstone 1','App-Shawnee Flagstone 1.jpg',300,400),
      new Array('Shawnee Flagstone 2','App-Shawnee Flagstone 2.jpg',534,400),
      new Array('Shawnee Flagstone 3','App-Shawnee Flagstone 3.jpg',528,400),
      new Array('Shawnee Flagstone 4','App-Shawnee Flagstone 4.jpg',534,400),
      new Array('Shawnee Flagstone 5','App-Shawnee Flagstone 5.jpg',584,400),
      new Array('Shawnee Flagstone 6','App-Shawnee Flagstone 6.jpg',616,400),
      new Array('Hickory Star Flag 1','App-Hickory-Star-Flag-1.jpg',533,400),
      new Array('Hickory Star Flag 2','App-Hickory-Star-Flag-2.jpg',420,400)

    )
  ),

  new Array('Natural Step portfolio Photos','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Adobe Buff Irregular Steps','App-Adobe Buff Irregular Steps.jpg',534,400),
      new Array('Aux Vases Sawed Steps, Rockfaced','App-Aux Vases Sawed Steps, Rockfaced.jpg',534,400),
      new Array('Eden Irregular Steps 1','App-Eden Irregular Steps.jpg',534,400),
      new Array('Eden Irregular Steps 2','App-Eden Irregular Steps 2.jpg',534,400),
      new Array('EW Gold Boulders & Irregular Steps','App-EW Gold Boulders & Irregular Steps 1.jpg',300,400),
      new Array('EW Gold Irregular Steps 1','App-EW Gold Irregular Steps 1.jpg',534,400),
      new Array('EW Gold Irregular Steps 2','App-EW Gold Irregular Steps 2.jpg',602,400),
      new Array('EW Gold Sawed Irregular Steps 1','App-EW Gold Sawed Irregular Steps 1.jpg',534,400),
      new Array('EW Gold Sawed Irregular Steps 2','App-EW Gold Sawed Irregular Steps 2.jpg',534,400),
      new Array('Hickory Star irregular steps','App-Hickory Star irregular steps.jpg',602,400),
      new Array('Shawnee Snapped Steps 1','App-Shawnee Snapped Steps 1.jpg',300,400),
      new Array('Shawnee Snapped Steps 2','App-Shawnee Snapped Steps 2.jpg',534,400),
      new Array('Shawnee Snapped Steps 3','App-Shawnee Snapped Steps 3.jpg',534,400),
      new Array('Shawnee Snapped Steps 4','App-Shawnee Snapped Steps 4.jpg',544,400),
      new Array('Weathered Limestone Irregular Steps 1','App-Weathered Limestone Irregular Steps 1.jpg',534,400),
      new Array('Weathered Limestone Irregular Steps 2','App-Weathered Limestone Irregular Steps 2.jpg',534,400),
      new Array('Weathered Limestone Irregular Steps 3','App-Weathered Limestone Irregular Steps 3.jpg',534,400),
      new Array('Weathered Limestone Irregular Steps 4','App-Weathered Limestone Irregular Steps 4.jpg',534,400),
      new Array('Weathered Sandstone Boulders & Irregular Steps 1','App-Weathered Sandstone Boulders & Irregular Steps 1.jpg',534,400),
      new Array('Weathered Sandstone Boulders & Irregular Steps 2','App-Weathered Sandstone Boulders & Irregular Steps 2.jpg',534,400),
      new Array('Weathered Sandstone Irregular Steps 1','App-Weathered Sandstone Irregular Steps.jpg',534,400),
      new Array('Weathered Sandstone Irregular Steps 2','App-Weathered Sandstone Irregular Steps 2.jpg',534,400),
      new Array('Weathered Sandstone Irregular Steps 3','App-Weathered Sandstone Irregular Steps 3.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]);
}

