pageName = 'belgard_colors.htm';
scriptName = 'belgard_colors.js';

countX = 2;
countY = 3; 

  var arColors = new Array(
	new Array('Aspen Stone','Aspen Stone',
	  new Array(
      new Array('aspen-stone-greystone.jpg','Greystone'),
      new Array('aspen-stone-sandstone.jpg','Sandstone')
	  )
	),
	new Array('Belgard Stone','Belgard Stone',
	  new Array(
      new Array('belgard-stone-ardennes-gr.jpg','Ardennes Grey'),
      new Array('belgard-stone-blustone.jpg','Bluestone'),
      new Array('belgard-stone-brit-beige.jpg','Brittany Beige'),
      new Array('belgard-stone-brnstn-red.jpg','Brownstone Red'),
      new Array('belgard-stone-lannon.jpg','Lannon'),
      new Array('belgard-stone-moss.jpg','Moss')
	  )
	),
	new Array('Bergerac','Bergerac',
	  new Array(
      new Array('bergerac-4pc-blustone.jpg','Bluestone'),
      new Array('bergerac-4pc-brit-beige.jpg','Brittany Beige'),
      new Array('bergerac-4pc-brnstn-red.jpg','Brownstone Red'),
      new Array('bergerac-4pc-lannon.jpg','Lannon'),
      new Array('bergerac-4pc-moss.jpg','Moss'),
      new Array('Bergerac-4pc-Sedona-Brown.jpg','Sedona Brown'),
      new Array('Bergerac-4pc-Tuscan-Amber.jpg','Tuscan Amber'),
      new Array('bergerac-ardennes.jpg','Ardennes')
	  )
	),
	new Array('Cambridge Squre','Cambridge Squre',
	  new Array(
      new Array('cambridge-sq-autumn-blend.jpg','Autumn Blend'),
      new Array('cambridge-sq-CCred.jpg','CC Red'),
      new Array('cambridge-sq-charcoal.jpg','Charcoal'),
      new Array('cambridge-sq-lakeshore.jpg','Lakeshore'),
      new Array('cambridge-sq-pewter.jpg','Pewter')
	  )
	),
	new Array('Celtic','Celtic',
	  new Array(
      new Array('celtic-oxford.jpg','Oxford'),
      new Array('celtic-sheffield-1.jpg','Sheffield')
	  )
	),
	new Array('Diamond Beveled','Diamond Beveled',
	  new Array(
      new Array('diamond-beveled-chestnut.jpg','Chestnut'),
      new Array('diamond-beveled-granite-cop.jpg','Granite'),
      new Array('diamond-beveled-grey-copy.jpg','Grey'),
      new Array('diamond-beveled-red-black.jpg','Red Black')
	  )
	),
	new Array('Diamond Pro Stone','Diamond Pro Stone',
	  new Array(
      new Array('diamond-pro-stone-cut-grani.jpg','Granite'),
      new Array('diamond-pro-stone-cut-irons.jpg','Ironstone'),
      new Array('diamond-pro-stone-cut-sands.jpg','Sandstone')
	  )
	),
	new Array('Diamond Straight','Diamond Straight',
	  new Array(
      new Array('diamond-straight-chestnut.jpg','Chestnut'),
      new Array('diamond-straight-granite.jpg','Granite'),
      new Array('diamond-straight-grey.jpg','Grey'),
      new Array('diamond-straight-red-black.jpg','Red Black'),
      new Array('diamond-straight-tan.jpg','Tan')
	  )
	),
	new Array('Dublin 3pc','Dublin 3pc',
	  new Array(
      new Array('dublin-3pc-ardennes-gr.jpg','Ardennes Grey'),
      new Array('dublin-3pc-blustone.jpg','Bluestone'),
      new Array('dublin-3pc-brit-beige.jpg','Brittany Beige'),
      new Array('dublin-3pc-brwnstn-red.jpg','Brownstone Red'),
      new Array('dublin-3pc-lannon.jpg','Lannon'),
      new Array('dublin-3pc-moss.jpg','Moss'),
      new Array('Dublin-3pc-Sedona-Brown.jpg','Sedona Brown'),
      new Array('dublin-3pc-tuscan-amber.jpg','Tuscan Amber')
	  )
	),
	new Array('Dublin 4pc','Dublin 4pc',
	  new Array(
      new Array('dublin-4pc-ardennes-gr.jpg','Ardennes Grey'),
      new Array('dublin-4pc-blustone.jpg','Bluestone'),
      new Array('dublin-4pc-brit-beige.jpg','Brittany Beige'),
      new Array('dublin-4pc-brwnstn-red.jpg','Brownstone Red'),
      new Array('dublin-4pc-lannon.jpg','Lannon'),
      new Array('dublin-4pc-moss.jpg','Moss')
	  )
	),
	new Array('Highland Freestanding','Highland Freestanding',
	  new Array(
      new Array('highland-freestanding-grani.jpg','Granite'),
      new Array('highland-freestanding-irons.jpg','Ironstone'),
      new Array('highland-freestanding-sands.jpg','Sandstone')
	  )
	),
	new Array('Highland Stone','Highland Stone',
	  new Array(
      new Array('highland-stone-granite.jpg','Granite'),
      new Array('highland-stone-ironstone.jpg','Ironstone'),
      new Array('highland-stone-prairie-blen.jpg','Prairie Blend'),
      new Array('highland-stone-sandstone.jpg','Sandstone')
	  )
	),
	new Array('Holland','Holland',
	  new Array(
      new Array('Holland_CCBrown02.jpg','CC Brown'),
      new Array('holland-autumn-blend.jpg','Autumn Blend'),
      new Array('holland-CCred.jpg','CC Red'),
      new Array('holland-charcoal.jpg','Charcoal'),
      new Array('holland-lakeshore.jpg','Lakeshore'),
      new Array('holland-pewter.jpg','Pewter'),
      new Array('holland-tan.jpg','Tan')
	  )
	),
	new Array('Mega Bergerac','Mega Bergerac',
	  new Array(
      new Array('mega-bergerac-3pc-blustone.jpg','Bluestone'),
      new Array('mega-bergerac-3pc-brit-beig.jpg','Brittany Beige'),
      new Array('mega-bergerac-3pc-brnstn-re.jpg','Brownstone Red'),
      new Array('mega-bergerac-3pc-lannon.jpg','Lannon'),
      new Array('mega-bergerac-3pc-lennox.jpg','Lennox'),
      new Array('mega-bergerac-3pc-moss.jpg','Moss'),
      new Array('Mega-Bergerac_Tucsan-Amber.jpg','Tucsan Amber')
	  )
	),
	new Array('Mega Stone','Mega Stone',
	  new Array(
      new Array('mega-stone-ardennes-gr.jpg','Ardennes Grey'),
      new Array('mega-stone-britt-beige.jpg','Brittany Beige'),
      new Array('mega-stone-brnstn-red.jpg','Brownstone Red'),
      new Array('mega-stone-lannon.jpg','Lannon'),
      new Array('mega-stone-lennox.jpg','Lennox'),
      new Array('mega-stone-moss.jpg','Moss'),
      new Array('mega-stone-tuscan-ambr.jpg','Tucsan Amber')
	  )
	),
	new Array('Tholland','Tholland',
	  new Array(
      new Array('Tholland-autumn-blend.jpg','Autumn Blend'),
      new Array('Tholland-CCred.jpg','CC Red'),
      new Array('Tholland-charcoal.jpg','Charcoal'),
      new Array('Tholland-Lakeshore.jpg','Lakeshore'),
      new Array('Tholland-pewter.jpg','Pewter')
	  )
	),
	new Array('Windsor','Windsor',
	  new Array(
      new Array('windsor-brown.jpg','Brown'),
      new Array('windsor-charcoal.jpg','Charcoal'),
      new Array('windsor-cottage.jpg','Cottage'),
      new Array('windsor-grey-1.jpg','Grey'),
      new Array('windsor-honey.jpg','Honey'),
      new Array('windsor-quarry-grey.jpg','Quarry Grey'),
      new Array('windsor-red.jpg','Red'),
      new Array('windsor-red-black.jpg','Red Black'),
      new Array('windsor-tan.jpg','Tan')
	  )
	)	
  )
  
  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/newcolors1/'+arColors[section][1]+'/fw/'+arColors[section][2][i][0];
    }
  }

  function showImageMedium(number) {
    showImage('imagemedium','images/newcolors1/'+arColors[section][1]+'/fw/'+arColors[section][2][number][0]);
    showMessage('imagename',arColors[section][2][number][1]);
  }
