
smallSizes = new Array(50,50);
mediumSizes = new Array(273,170);
pageName = 'photospaver.htm';
scriptName = 'photospaver.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('Precast Pavers','images/paver/small/','images/paver/big/','images/paver/popup/',
    new Array(
      new Array('','p1.jpg',534,400),
      new Array('','p2.jpg',570,400),
      new Array('','p3.jpg',534,400),
      new Array('','p4.jpg',534,400),
      new Array('','p5.jpg',534,400),
      new Array('','p6.jpg',501,400),
      new Array('','p7.jpg',534,400),
      new Array('','p8.jpg',534,400),
      new Array('','p9.jpg',534,400),
      new Array('','Classic-Walk-Pavers.jpg',300,400),
      new Array('','Classic-Walk-Pavers2.jpg',613,400),
      new Array('','pp06.jpg',273,170,'images/profile/paver/p17.gif','Classic Walks','Private Residence in San Diego, CA','Mortar Set','','24" x 24" x 1&frac34;"','Granada White','Fine Grain Stipple Finish','This unique design of Stepstone Classic Walks and the homeowners choice of decorative tile placed in a staggered pattern makes for a wonderful look'),
      new Array('','pp32.jpg',273,170,'images/profile/paver/p17.gif','Classic Walks','Corporate Lunch Patio in Torrance, CA','Sand Set','','18" x 18" x 1&frac12;"','French Gray','Fine Grain Stipple Finish','A closer view of Stepstone Classic Walks in this lunch patio application to show the field cuts (performed by the mason in charge) necessary to fit the jobsite conditions'),
      new Array('','pp46.jpg',273,170,'images/profile/paver/p13.gif','Classic Ballastone Paver with Custom Brick Precast','Stanford University in Palo Alto, CA','Mortar Set','','18" x 18" x 2"','Almond','Exposed Aggregate','Considered a design challenge, this project involved matching and replacing a large section of the existing concrete on this 2nd story roof-top campus building, plus affix additional square footage. Our Classic Ballastone Paver along with a custom brick precast trim provided the perfect solution. See "DETAILS" for more information'),
      new Array('','pp34.jpg',273,170,'images/profile/paver/p17.gif','Classic Walks','Corporate Headquarters in Torrance, CA','Sand Set','','12" x 12" x 1&frac34;"','French Gray','Fine Grain Stipple Finish','Stepstone Classic Walks in a running bond layout creating a nice pathway along the side of this building'),
      new Array('','pp35.jpg',273,170,'images/profile/paver/p17.gif','Classic Walks','Corporate Lunch Patio in Torrance, CA','Sand Set','','18" x 18" x 1&frac34;"','French Gray','Fine Grain Stipple Finish','A zoomed in view of Stepstone Classic Walks in this lunch patio setting makes being outside more enjoyable for the employees'),
      new Array('','pp20-21.jpg',273,170,'images/profile/paver/p17.gif','Classic Walks','Private Residence in Gardena, CA','Sand Set in Ashlar Pattern','','Incorporates 6 standard sizes','French Gray','Fine Grain Stipple Finish','Stepstone Classic Walks arranged in our very own Ashlar pattern utilizing 6 standard sizes makes an attractive backyard design'),
      new Array('','pp25.jpg',273,170,'images/profile/paver/p03.gif','Dekstone','Private Residence in Discovery Bay, CA','Loose Laid','','24" x 24" x 2"','Granada White','Fine Grain Stipple Finish','Stepstone Dekstone pavers replace traditional wood deck surfaces with a look that is truly remarkable. Dekstone are high strength, reinforced pavers that combine beauty, durability and fire resistance of concrete with traditional wood or steel deck framing'),
      new Array('','pp38-39.jpg',273,170,'images/profile/paver/p23.gif','California Architectural Narrow Modular Paver','Stanford University in Palo Alto, CA','Sand Set','','2 7/8" x 4" x 23 7/8"','French Gray','Light Sandblast Finish','Stepstone Inc. Narrow Modular Pavers are visually tied into the existing architectural campus design and provide an overall linear continuity. View the next page for a closer look'),
      new Array('','pp40-41.jpg',273,170,'images/profile/paver/p23.gif','California Architectural Narrow Modular Paver','Stanford University in Palo Alto, CA','Sand Set','','2 7/8" x 4" x 23 7/8"','French Gray','Light Sandblast Finish','A closer view of Stepstone Narrow Modular Pavers that blend perfectly with the existing architectural style while providing wide student walkways and emergency vehicle access'),
      new Array('','pp42-43.jpg',273,170,'images/profile/paver/p23.gif','California Architectural Narrow Modular Paver','Stanford University in Palo Alto, CA','Sand Set','','2 7/8" x 4" x 23 7/8"','French Gray','Light Sandblast Finish','A closer view of Stepstone Narrow Modular Pavers that blend perfectly with the existing architectural style while providing wide student walkways and emergency vehicle access'),
      new Array('','006_006.jpg',313,400),
      new Array('','007_007.jpg',313,400),
      new Array('','008_008.jpg',513,400),
      new Array('','009_009.jpg',512,400),
      new Array('','84590003.jpg',261,400),
      new Array('','DRIVEWAY.jpg',534,400),
      new Array('','Narrow Modular 2.jpg',261,400),
      new Array('','Narrow Modular 3.jpg',599,400),
      new Array('','Narrow Modular Closeup.jpg',607,400),
      new Array('','NMP UCSF Edited by Paul Schraub.jpg',293,400),
      new Array('','NMP UCSF.jpg',611,400),
      new Array('','nmp.jpg',534,400),
      new Array('','nmp2.jpg',534,400),
      new Array('','nmpporch.jpg',534,400),
      new Array('','P1010007.jpg',534,400),
      new Array('','P1010011.jpg',534,400),
      new Array('','P1010026.jpg',534,400),
      new Array('','PATIO 2.jpg',534,400),
      new Array('','POOL.jpg',300,400),
      new Array('','Sunset NMP UCSF.jpg',579,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 showProfileNew(ind) {
  width = arImages[section][4][ind][2]+300;
  height = arImages[section][4][ind][3]+150;
  if (height<500) height = 500;
  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();
}