
smallSizes = new Array(66,66);
mediumSizes = new Array(280,176);
pageName = 'pigments.htm';
scriptName = 'pigments.js';
countX = 2;
countY = 5;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(
  new Array('Mix Mineral PIgments','images/catalog/pigments/small/','images/catalog/pigments/medium/','images/catalog/pigments/big/',
    new Array(
      new Array('Pig Black RX 2071','black2071.jpg',600,300),
      new Array('Pig Cobalt Blue 2028','cobaltblue2028.jpg',600,300),
      new Array('Pig Green RX 2061','green2061.jpg',600,300),
      new Array('Pig Red Oxide RX 2035','redoxide2035.jpg',600,300),
      new Array('Pig Red Terra RX 2019','redterracota2019.jpg',600,300),
      new Array('Pig White RX 2000','white2000.jpg',600,300),
      new Array('Pig Yellow Bright NT 2053','yellowbright2053.jpg',600,300),
      new Array('Pig Yellow CT 2101','yellow2101.jpg',600,300),
      new Array('Pig Yellow Oxide RX 2011','yellowoxide2011.jpg',600,300)
    )
  ),

  new Array('Pigments Mix Aqua','images/catalog/pigments/small/','images/catalog/pigments/medium/','images/catalog/pigments/big/',
    new Array(
      new Array('Pig Bright Blue RN 2021','brightblue2021.jpg',600,300),
      new Array('Pig BRight Green RN 2062','brightgreen2062.jpg',600,300),
      new Array('Pig Bright Orange RN 2036','brightorange2036.jpg',600,300),
      new Array('Pig Bright Red RN 2034','brightred2034.jpg',600,300),
      new Array('Pig Purple RN 2080','purple2080.jpg',600,300)
    )
  )
)

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]);
}
