
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'steps.htm';
scriptName = 'steps.js';
countX = 3;
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('Steps','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
      new Array('Alpine Irregular Steps','Alpine Irregular Steps.jpg',476,273,'Soft earthtone colors in tans, buff and rust.<br><br>Avg. pallet weight: 3200'),
      new Array('Alpine Snapped Steps','Alpine Snapped Steps.jpg',534,400,'Soft earthtone colors in tans, buff and rust. Snapped on all four sides. Size 5-7" thick x 18" deep x 3 ft or 4 ft long.'),
      new Array('Alpine Squares','Alpine Squares.jpg',578,401,''),
      new Array('Blue Sandstone Snapped Steps','Blue Sandstone Snapped Steps.jpg',700,392,'Dark charcoal gray surface. Flat consistent thickness. Blue/gray color on snapped edges. 5-6" thick x 18" deep x 3` or 4` long.'),
      new Array('Eden Snapped Steps','Eden Snapped Steps.jpg',534,400,'Select pieces of limestone with very smooth bed texture. Consistent thickness, snapped on all four sides. 5-8" thick x 18" deep x 3 ft or 4 ft long.'),
      new Array('Hickory Star Irregular Steps','Hickory Star Irregular Steps.jpg',534,400,'Dark brown and gray sandstone in irregular shapes, 3-5` long x 6-7" thick.<br><br>Avg. pallet weight: 4000'),
      new Array('Hickory Star Snapped Steps','Hickory Star Snapped Steps.jpg',534,400,'Dark brown and gray sandstone natural bed and snapped 4 sides. 5-8" thick x 18" deep x 3 ft or 4 ft long.'),
      new Array('Lunar Blue Irregular Steps','Lunar Blue Irregular Steps.jpg',620,400,'Deep blue/green colors with some buff variations.<br><br>Avg. pallet weight: 3500'),
      new Array('Oakfield Irregular Steps','Oakfield Irregular Steps.jpg',561,357,'Light gray color with dimpled surface and irregular shapes. 5-7" thick x 3-5` long.<br><br>Avg. pallet weight: 4000'),
      new Array('Rocky Mountain Rose Snapped Steps','Rocky Mountain Rose Snapped Steps.jpg',534,400,''),
      new Array('Shawnee Irregular Steps','Shawnee Irregular Steps.jpg',534,400,'Earthtone colors of buff, brown, red & black.<br><br>Avg. pallet weight: 3500'),
      new Array('Shawnee Snapped Step','Shawnee Snapped Step JPG.jpg',581,355,'Flat, smooth beds, earthtone colors of buff, brown, red & black. 5-8" thick x 18" deep x 3 ft or 4 ft long'),
      new Array('Waupun Snapped Steps','Waupun Snapped Steps.jpg',200,120,'Consistant, uniform thickness in buffs, browns & grays. 5-7" thick x 18" deep x 3 ft or 4 ft long.')
    )
  )
)


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]);
  var text = arImages[section][4][number][0];
  if (typeof(arImages[section][4][number][4])!='undefined')
    text += '<br><br><div style="font-weight:normal; text-align:left;">'+arImages[section][4][number][4]+'</div>';
  showMessage('imagemediumname', text);
}

function showImageBig(number) {
  showImagePopup(scriptName,section,number,arImages[section][4][number][2],
   arImages[section][4][number][3]);
}
