
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'samples.htm';
scriptName = 'samples.js';
countX = 2;
countY = 3;

// <font color="#660a01"><strong><u>Categories:</u></strong></font> name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(

  new Array('Colors','images/samples/small/','images/samples/medium/','images/samples/big/',
    new Array(
      new Array('La Jolla Blend','La Jolla Blend.jpg',208,210),
      new Array('Rio Blend','Rio Blend.jpg',208,210),
      new Array('Sahara Blend','Sahara Blend.jpg',208,210),
      new Array('Sedona Blend','Sedona Blend.jpg',208,210),
      new Array('Sierra Blend','Sierra Blend.jpg',208,210),
      new Array('Toscana Blend','Toscana Blend.jpg',208,210)
    )
  ),

  new Array('Patterns','images/samples/small/','images/samples/medium/','images/samples/big/',
    new Array(
      new Array('Cambridge Cobble1','Cambridge Cobble1.jpg',133,134),
      new Array('Cambridge Cobble2','Cambridge Cobble2.jpg',134,134),
      new Array('Cambridge Cobble3','Cambridge Cobble3.jpg',133,134),
      new Array('Cambridge Cobble4','Cambridge Cobble4.jpg',134,133),
      new Array('Dublin Modular1','Dublin Modular1.jpg',133,134),
      new Array('Dublin Modular2','Dublin Modular2.jpg',133,134),
      new Array('Dublin Modular3','Dublin Modular3.jpg',134,134),
      new Array('Dublin Modular4','Dublin Modular4.jpg',134,133),
      new Array('Dublin Modular5','Dublin Modular5.jpg',133,134),
      new Array('Dublin Modular6','Dublin Modular6.jpg',133,134),
      new Array('Holland Pavers1','Holland Pavers1.jpg',134,134),
      new Array('Holland Pavers2','Holland Pavers2.jpg',134,133),
      new Array('Holland Pavers3','Holland Pavers3.jpg',133,132),
      new Array('Holland Pavers4','Holland Pavers4.jpg',133,134)
    )
  ),

  new Array('Styles','images/samples/small/','images/samples/medium/','images/samples/big/',
    new Array(
      new Array('Bergerac (Toscana Blend)','Bergerac (Toscana Blend).jpg',208,210),
      new Array('Bergerac Circle (Toscana Blend)','Bergerac Circle (Toscana Blend).jpg',155,155),
      new Array('Cambridge Cobble (Tumbled, Rio Blend)','Cambridge Cobble (Tumbled, Rio Blend).jpg',210,210),
      new Array('Cambridge Cobble (Untumbled, Rio Blend)','Cambridge Cobble (Untumbled, Rio Blend).jpg',210,210),
      new Array('Celtik Wall (La Jolla Blend)','Celtik Wall (La Jolla Blend).jpg',210,210),
      new Array('Dublin Cobble Combo (Sahara Blend)','Dublin Cobble Combo (Sahara Blend).jpg',210,210),
      new Array('Dublin Modular (Sahara Blend)','Dublin Modular (Sahara Blend).jpg',210,210),
      new Array('Mega Bergerac (Toscana Blend)','Mega Bergerac (Toscana Blend).jpg',200,210)
    )
  )
)


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]);
}
