
smallSizes = new Array(77,77);
mediumSizes = new Array(249,174);
pageName = 'colors.htm';
scriptName = 'colors.js';
countX = 3;
countY = 1;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(
  new Array('Bergerac Paver','images/colors/Bergerac Paver/small/','images/colors/Bergerac Paver/middle/','images/colors/Bergerac Paver/big/',
    new Array(
      new Array('Ardennes Grey','ardennes_greyjpg.jpg',452,377),
      new Array('Brittany Beige','brittany_beige.jpg',450,375),
      new Array('Fossil Beige','fossil_beige.jpg',450,375),	  
      new Array('Potomac Blend','potomac_blend.jpg',450,375),
      new Array('Terracotta','terracotta.jpg',450,375)
    )
  ),
  new Array('Cambridge Cobble','images/colors/Cambridge Cobble/small/','images/colors/Cambridge Cobble/middle/','images/colors/Cambridge Cobble/big/',
    new Array(
      new Array('Chattahoochee','chattahoochee.jpg',450,375),
      new Array('Country Blend','country_blend.jpg',450,375),
      new Array('Georgia Blend','georgia_blend.jpg',450,375),	  
      new Array('Grey Granite','grey_granite.jpg',450,375)
    )
  ),
  new Array('Celtik Wall','images/colors/Celtik Wall/small/','images/colors/Celtik Wall/middle/','images/colors/Celtik Wall/big/',
    new Array(
      new Array('Highland Brown','BO_CELT_HIGHLAND.jpg',450,375),
      new Array('Oxford Charcoal','BO_CELT_OXFORD_CH.jpg',450,375),
      new Array('Edingburg Red','EDINBURG_RED.jpg',450,375),
      new Array('Sheffield Beige','SHEFFIELD_BEIGE.jpg',450,375)
    )
  ),
  new Array('Dublin Cobble','images/colors/Dublin Cobble/small/','images/colors/Dublin Cobble/middle/','images/colors/Dublin Cobble/big/',
    new Array(
      new Array('Ardennes Grey','ardennes_grey.jpg',450,375),
      new Array('Fossil Beige','fossil_beige.jpg',450,375),
      new Array('Potomac','potomac.jpg',450,375),
      new Array('Terracotta','terracotta.jpg',450,375)
    )
  ),
  new Array('Holland Pavers','images/colors/Holland Pavers/small/','images/colors/Holland Pavers/middle/','images/colors/Holland Pavers/big/',
    new Array(
      new Array('Chattahoochee','Chattahoochee.jpg',450,375),
      new Array('Country Blend','COUNTRY_BLEND.jpg',450,375),
      new Array('Georgia Blend','GEORGIA_BLEND.jpg',450,375),
      new Array('Grey Granite','Grey_Granite.jpg',450,375),
      new Array('Sandstone','Sandstone.jpg',450,375),
      new Array('Spice Blend','SPICE_BLEND.jpg',450,375)
    )
  ), 
  new Array('Mega Bergerac','images/colors/Mega Bergerac/small/','images/colors/Mega Bergerac/middle/','images/colors/Mega Bergerac/big/',
    new Array(
      new Array('Ardennes Grey','ardennes_grey.jpg',450,375),
      new Array('Brittany Beige','brittany_beige.jpg',450,375),
      new Array('Fossil Beige','fossil_beige.jpg',450,375),
      new Array('Potomac Blend','potomac_blend.jpg',450,375),
      new Array('Terracotta','terracotta.jpg',450,375)
    )
  ), 
  new Array('Mega Stone','images/colors/Mega Stone/small/','images/colors/Mega Stone/middle/','images/colors/Mega Stone/big/',
    new Array(
      new Array('Ardennes','ardennes.jpg',450,375),
      new Array('Terracotta','terracotta.jpg',450,375),
      new Array('Brittany Beige','brittany_beige.jpg',450,375),
      new Array('Fossil Beige','fossil_beige.jpg',450,375),
      new Array('Potomac Blend','potomac_blend.jpg',450,375)
    )
  )
)

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 preloadphotos() {
  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]);
}

