
smallSizes = new Array(50,50);
mediumSizes = new Array(251,170);
pageName = 'truncated_pavers.htm';
scriptName = 'truncated_pavers.js';
countX = 3;
countY = 4;

var arImages = new Array(
  new Array('Truncated Dome Pavers','images/truncated_pavers/small/','images/truncated_pavers/medium/','images/truncated_pavers/big/',
    new Array(
      new Array('','P1010010.jpg',534,400,'images/profile/truncated_pavers/Truncated-Dome.gif','Aligned Truncated Dome Paver','Commercial Retail Center in San Jose, CA','Mortar Set','','12" x 12" x 2"','Federal Yellow',''),

      new Array('','P1010012.jpg',317,400,'images/profile/truncated_pavers/Truncated-Dome.gif','Aligned Truncated Dome Paver','Commercial Retail Center in San Jose, CA','Mortar Set','','12" x 12" x 2"','Federal Yellow',''),
	  
      new Array('','DSCF0055.jpg',534,400,'images/profile/truncated_pavers/Truncated-Dome.gif','Aligned Truncated Dome Paver','Popular Coffee Shop in Fullerton, CA','Mortar Set','','12" x 12" x 2"','Federal Yellow',''),
	  
      new Array('','TRUNCATED CHRCL4.jpg',534,400,'images/profile/truncated_pavers/Diagonal-Truncated-Dome.gif','Diagonal Truncated Dome Paver','Public Sidewalk in Northern California','Mortar Set','','12" x 12" x 2"','Charcoal',''),
	  
      new Array('','Ontario t.d.151.jpg',300,400,'images/profile/truncated_pavers/Truncated-Dome.gif','Aligned Truncated Dome Paver','Home Improvement Retailer in Ontario, CA','Mortar Set','','12" x 12" x 2"','Federal Yellow',''),
	  
      new Array('','truncated domes 034.jpg',534,400,'images/profile/truncated_pavers/Truncated-Dome.gif','Aligned Truncated Dome Paver','Southern California Home Improvement Center','Mortar Set','','12" x 12" x 2"','Federal Yellow',''),
	  
      new Array('','truncated domes 037.jpg',534,400,'images/profile/truncated_pavers/Truncated-Dome.gif','Aligned Truncated Dome Paver','Home Improvement Center in Escondido, CA','Mortar Set','','12" x 12" x 2"','Federal Yellow','')
    )
  )
)

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();
}
