
smallSizes = new Array(50,50);
mediumSizes = new Array(251,170);
pageName = 'classic_garden_step.htm';
scriptName = 'classic_garden_step.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('Classic Garden Step','images/photos/small/','images/photos/medium/','images/photos/big/',
    new Array(
      new Array('','pic039.jpg',533,400),
      new Array('','pic040.jpg',533,400),
      new Array('','pic042.jpg',533,400),
      new Array('','pic043.jpg',533,317),
      new Array('','pic071.jpg',534,400),
      new Array('','pic072.jpg',534,400),
      new Array('','pic074.jpg',534,400),
      new Array('','pic077.jpg',252,170),
      new Array('','pic082.jpg',252,170),
      new Array('','declaration coping and steps 005.jpg',534,400),
      new Array('','declaration coping and steps 002.jpg',534,400),
      new Array('','reale110.jpg',534,400),
      new Array('','reale145.jpg',534,400),
      new Array('','declaration coping and steps 007.jpg',534,400),
      new Array('','Inside Radius.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]);
}
