
smallSizes = new Array(50,50);
mediumSizes = new Array(251,170);
pageName = 'gardensteps.htm';
scriptName = 'gardensteps.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('Garden Steps','images/gardensteps/small/','images/gardensteps/medium/','images/gardensteps/big/',
    new Array(
      new Array('','DSC_0049a.jpg',598,400,'images/profile/gardensteps/Classic-Entry-Step.gif','Grand Entry Step, Classic Profile','Play Vista Apartment Complex, CA','Mortar Set','','14" x 24" x 2 1/2"','Almond','Sandblast'),
      new Array('','Garden Steps.jpg',534,400),
      new Array('','gstep close.jpg',534,400),
      new Array('','P1010030.jpg',534,400),
      new Array('','upper gstep.jpg',534,400),

      new Array('','declaration coping and steps 005.jpg',534,400,'images/profile/gardensteps/Classic Garden Step.gif','Classic Garden Step','Southern California Residence','Mortar Set','','14" x 24" x 2 1/2"','Cafe Brown','Sandblast'),
      new Array('','declaration coping and steps 002.jpg',540,400,'images/profile/gardensteps/Classic Garden Step.gif','Classic Garden Step','Southern California Residence','Mortar Set','','14" x 24" x 2 1/2"','Cafe Brown','Sandblast'),
      new Array('','reale110.jpg',536,400,'images/profile/gardensteps/Classic Garden Step.gif','Classic Garden Step','California Residence','Mortar Set','','14" x 24" x 2 1/2"','Almond','Sandblast'),
      new Array('','reale145.jpg',539,400,'images/profile/gardensteps/Classic Garden Step.gif','Classic Garden Step','California Residence','Mortar Set','','14" x 24" x 2 1/2"','Almond','Sandblast'),
      new Array('','DSC00207.jpg',532,401,'images/profile/gardensteps/Classic Garden Step.gif','Classic Garden Step','Southern California Apartment Complex','Mortar Set','','14" x 24" x 2 1/2"','Almond','Sandblast'),
      new Array('','declaration coping and steps 007.jpg',534,400,'images/profile/gardensteps/Garden Step Outside Radius.gif','Classic Garden Step with Outside Radius','California Residence','Mortar Set','','14" x 24" x 2 1/2" Radius Piece, cut to fit','Cafe Brown','Sandblast'),
      new Array('','Inside Radius.jpg',538,400,'images/profile/gardensteps/Garden Step Inside Radius.gif','Classic Garden Step with Inside Radius','California Residence','Mortar Set','','14" x 24" x 2 1/2" Radius Piece','Almond','Sandblast'),
      new Array('','ModernGardenStep.jpg',534,400,'images/profile/gardensteps/Modern Garden Step.gif','Modern Garden Step & Riser Tile','San Pedro Residence','Mortar Set','','18" x 24" x 2", 6" x 12" x 1"','Porcelain','Sandblast'),
      new Array('','ModernGardenStep2.jpg',533,400,'images/profile/gardensteps/Modern Garden Step.gif','Modern Garden Step','Residence in Whittier, California','Mortar Set','','18" x 24" x 2"','Granada White','Fine-Grain Stipple'),
      new Array('','ModernGardenStepCorner.jpg',537,401,'images/profile/gardensteps/Modern Garden Step Corner.gif','Modern Garden Step - Outside Corner & Straight Pieces','Residence in Southern California','Mortar Set','','18" x 18" x 2", 18" x 24" x 2"','Almond','Sandblast'),
      new Array('','ModernGardenStep4.jpg',310,400,'images/profile/gardensteps/Modern Garden Step.gif','Modern Garden Step & Riser Tile','San Pedro Residence','Mortar Set','','18" x 24" x 2", 6" x 12" x 1"','Porcelain','Sandblast')

    )
  )
)

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 showProfileNew(ind) {
  width = arImages[section][4][ind][2]+300;
  height = arImages[section][4][ind][3]+150;
  if (height<400) height = 400;
  win = window.open('profile_popup.htm?script='+scriptName+'&section='+section
	+'&ind='+ind,'_blank','width='+width+',height='
	+height+',left=17,top=17,statusbar=no,toolbar=no,scrollbars= never,navbar=no');
  win.focus();
}
