
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'gallery.htm';
scriptName = 'gallery.js';
countX = 3;
countY = 2;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(

  new Array('Gallery','images/gallery/small/','images/gallery/medium/','images/gallery/big/',
    new Array(
      new Array('Arriscraft Citadel Antique White','Arriscraft Citadel Antique White.jpg',300,400),
      new Array('Belden Belcrest 760 Modular','Belden Belcrest 760 Modular.jpg',579,380),
      new Array('Belden Pawnee Paver','Belden Pawnee Paver.jpg',579,380),
      new Array('Belgard Mega-Bergerac','Belgard Mega-Bergerac.jpg',253,400),
      new Array('Chimeny Pots','Chimeny Pots.jpg',640,300),
      new Array('Hanson Buckingham Renaissance Engineer','Hanson Buckingham Renaissance Engineer.jpg',438,330),
      new Array('heartland red flashed antique pavers','heartland red flashed antique pavers.jpg',534,400),
      new Array('Lawrenceville Monticello Moudlar','Lawrenceville Monticello Moudlar.jpg',534,400),
      new Array('Permeable Pavers','Permeable Pavers.jpg',448,336),
      new Array('Polar White Clear Jumbo white mortar & sand ','Polar White Clear Jumbo white mortar & sand .jpg',600,400),
      new Array('Santa Fe Antique OS Cushwa','Santa Fe Antique OS Cushwa.jpg',244,400),
      new Array('Stonecraft Pennsylvania Ledgestone','Stonecraft Pennsylvania Ledgestone.jpg',450,326)
/*
      new Array('Boren Old Georgetown','Boren Old Georgetown.jpg',500,224),
      new Array('General Shale Olde Indiana Tudor','General Shale Olde Indiana Tudor.jpg',365,230),
      new Array('Wesleyan Blend Smooth','Wesleyan Blend Smooth.jpg',400,300),
      new Array('Boral Frosty Pink Mod','Boral Frosty Pink Mod_1.jpg',545,290),
      new Array('General Shale Providence Oversize','General Shale Providence Oversize.jpg',556,285),
      new Array('Boren Queensbury Mod White Mortar Tan Sand','Boren Queensbury Mod White Mortar Tan Sand.jpg',541,250),
      new Array('Denver Prairie Grey Mod','Denver Prairie Grey Mod.jpg',500,204),
      new Array('Lawrenceville Charleston Mod','Lawrenceville Charleston Mod.jpg',580,289),
      new Array('General Shale Arcadia Mod','General Shale Arcadia Mod_1.jpg',584,396),
      new Array('River Valley Ohio Limestone White Vein With Santiago Regent','River Valley Ohio Limestone White Vein With Santiago Regent.jpg',400,300),
      new Array('Greenbrier Quartz Natural Stone','Greenbrier Quartz Natural Stone.jpg',400,300),
      new Array('Belden Belcrest 560 Mod','Belden Belcrest 560 Mod.jpg',597,365)
*/
    )
  )

)

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 showImageBig(number) {
  showImagePopup(scriptName,section,number,arImages[section][4][number][2],
   arImages[section][4][number][3]);
}
