
smallSizes = new Array(50,50);
mediumSizes = new Array(273,170);
pageName = 'narrow_pavers.htm';
scriptName = 'narrow_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('Narrow Modular Pavers','images/paver/small/','images/paver/big/','images/paver/popup/',
    new Array(
      new Array('','narrow-modular.jpg',600,385),

new Array('','DSC_0022a.jpg',268,400,'images/profile/paver/NMP.gif','Narrow Modular Paver','Hyatt Regency, Los Angeles','Sand Set','','3" x 24" x 4"','Almond','Sandblast'),
      new Array('','59-08-131-Master.jpg',266,400,'images/profile/paver/NMP.gif','Narrow Modular Paver','Embarcadero, San Francisco','Mortar Set','','3" x 24" x 4"','French Gray','Sandblast'),
      new Array('','DSC_0060.jpg',598,400,'images/profile/paver/NMP.gif','Narrow Modular Paver','Hyatt Regency, Los Angeles','Sand Set','','3" x 24" x 4"','Almond','Sandblast'),
      new Array('','Narrow-Mods-VM-Ware-3.jpg',533,400,'images/profile/paver/NMP.gif','Narrow Modular Paver','VM Ware, San Francisco','','','3" x 24" x 4"','Almond','Sandblast'),

      new Array('','pp38-39.jpg',273,170),
      new Array('','pp40-41.jpg',273,170),
      new Array('','pp42-43.jpg',273,170),
      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),

      new Array('','IntrepidOverviewtoWebMay3.jpg',300,400),
      new Array('','IntrepidtoWebMay3.jpg',300,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]);
}

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();
}