
smallSizes = new Array(50,50);
mediumSizes = new Array(251,170);
pageName = 'sonorastone_pavers.htm';
scriptName = 'sonorastone_pavers.js';
countX = 3;
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('Sonorastone&reg; Peaked Wall Cap','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
      new Array('','pic018.jpg',534,400),
      new Array('','pic019.jpg',534,400),
      new Array('','pic025.jpg',534,400),
      new Array('','pic046.jpg',533,400),
      new Array('','pic047.jpg',533,400),
      new Array('','pic067.jpg',627,400),
      new Array('','pic068.jpg',636,400),
      new Array('','pic069.jpg',587,400),
      new Array('','pic070.jpg',534,400),
      new Array('','pic071.jpg',534,400),
      new Array('','pic072.jpg',534,400),
      new Array('','pic073.jpg',534,400),
      new Array('','pic074.jpg',534,400),
      new Array('','pic075.jpg',252,170),
      new Array('','pic076.jpg',251,170),
      new Array('','pic077.jpg',252,170),
      new Array('','pic078.jpg',251,170),
      new Array('','pic079.jpg',252,170),
      new Array('','pic080.jpg',251,170),
      new Array('','pic081.jpg',252,170),
      new Array('','pic082.jpg',252,170),
      new Array('','reale110.jpg',534,400),
      new Array('','reale145.jpg',534,400),
      new Array('','Inside Radius.jpg',534,400),
      new Array('','ModernGardenStep2.jpg',534,400),
      new Array('','pic014_1.jpg',300,400),
      new Array('','pic015_1.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 showProfile(number) {
  profile(arImages[section][4][number][2]);
}
