pageName = 'colors.htm';
scriptName = 'colors.js';

countX = 2;
countY = 2; 

  var arColors = new Array(
	new Array('Dublin Cobble','Dublin Cobble',
	  new Array(
	    new Array('DubCob_Brownstone1.jpg','Brownstone Red'),
	    new Array('DubCob_Fossil1.jpg','Fossil Beige'),
	    new Array('DubCob_Silex1.jpg','Silex Grey')
	  )
	),
	new Array('Mega Bergerac','Mega Bergerac',
	  new Array(
	    new Array('Mega_Ardennes1.jpg','Ardennes Grey'),
	    new Array('Mega_Brittany1.jpg','Brittany Beige'),
	    new Array('Mega_Esterel1.jpg','Esterel Red')
	  )
	),
	new Array('Bergerac','Bergerac',
	  new Array(
	    new Array('Mega_Ardennes1.jpg','Ardennes Grey'),
	    new Array('Mega_Brittany1.jpg','Brittany Beige'),
	    new Array('Mega_Esterel1.jpg','Esterel Red')
	  )
	),
	new Array('Celtik Wall','Celtik Wall',
	  new Array(
	    new Array('celtik_sheffield.jpg','Sheffield'),
	    new Array('celtik_oxford.jpg','Oxford'),
	    new Array('1_14_range_essex.jpg','Essex')
	  )
	)	
  )
  
  section = getParameter(self.document.location.href, 'section');
  if (isNaN(section) || (section=='') || (section<0) || (section>arColors.length-1))
    section = 0;

  ind = getParameter(self.document.location.href, 'ind');
  if (isNaN(ind) || (ind=='') || (ind<0) || (ind>arColors[section][2].length))
   ind = 0; 
  
  var arImages = new Array();
  function preload() {
    for (i=0;(i<(Number(ind)+Number(countX*countY))) && (i<arColors[section][2].length);i++) {
      arImages[i] = new Image(156,155);
      arImages[i].src = 'images/colors/'+arColors[section][0]+'/fw/'+arColors[section][2][i][0];
    }
  }

  function showImageMedium(number) {
    showImage('imagemedium','images/colors/'+arColors[section][0]+'/fw/'+arColors[section][2][number][0]);
    showMessage('imagename',arColors[section][2][number][1]);
  }
