
pageName = 'block.htm';
scriptName = 'block.js';
countX = 3;
countY = 2;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(
  new Array('Brick','images/block/',
    new Array(
      new Array('','concrete brick.jpg'),
      new Array('','dobie brick.jpg')
    )
  ),

  new Array('Solid Slabs','images/block/',
    new Array(
      new Array('','1 x 8 x 16 solid.jpg'),
      new Array('','2 x 8 x 16 solid.jpg'),
      new Array('','2.25 x 8 x 16 solid.jpg'),
      new Array('','3 x 8 x 16 solid.jpg')
    )
  ),

  new Array('4" Block','images/block/',
    new Array(
      new Array('','4 x 4 x 16 solid.jpg'),
      new Array('','4 x 8 x 16 hollow.jpg'),
      new Array('','4 x 8 x 16 solid.jpg'),
      new Array('','4 x 8 x 12 hollow.jpg'),
      new Array('','4 x 8 x 12 solid.jpg'),
      new Array('','4 x 8 x 8 hollow.jpg'),
      new Array('','4 x 8 x 8 solid.jpg'),
      new Array('','4 x 5 x 16 hollow.jpg')
    )
  ),

  new Array('6" Block','images/block/',
    new Array(
      new Array('','6 x 8 x 16 hollow.jpg'),
      new Array('','6 x 8 x 16 solid.jpg')
    )
  ),

  new Array('8" Block','images/block/',
    new Array(
      new Array('','8 x 8 x 16 hollow.jpg'),
      new Array('','8 x 8 x 16 solid.jpg'),
      new Array('','8 x 8 x 8 hollow.jpg'),
      new Array('','8 x 8 x 16 solid top.jpg'),
      new Array('','8 x 8 x 16 SBBB.jpg'),
      new Array('','8 x 8 x 16 HBBB.jpg'),
      new Array('','8 inch 45 degree block.jpg'),
      new Array('','8 inch solid header.jpg'),
      new Array('','8 x 8 x 16 double corner.jpg'),
      new Array('','8 x 8 x 16 rebar block.jpg'),
      new Array('','8 x 4 x 16 hollow.jpg'),
      new Array('','8 x 5 x 16 hollow.jpg'),
      new Array('','8 x 8 x 16 75 percent solid.jpg')
    )
  ),

  new Array('10" Block','images/block/',
    new Array(
      new Array('','10 x 8 x 16 holow.jpg'),
      new Array('','10 x 8 x 16 SBBB.jpg')
    )
  ),

  new Array('12" Block','images/block/',
    new Array(
      new Array('','12 x 8 x 16 hollow.jpg'),
      new Array('','12 x 8 x 16 solid.jpg'),
      new Array('','12 x 8 x 8 hollow.jpg'),
      new Array('','12 x 8 x 16 SBBB.jpg'),
      new Array('','12 x 8 x 16 HBBB.jpg'),
      new Array('','12 inch 45 degree.jpg'),
      new Array('','12 x 8 x 16 double corner.jpg'),
      new Array('','12 x 8 x 16 rebar block.jpg'),
      new Array('','12 x 8 x 16 double sash.jpg'),
      new Array('','12 x 4 x 16 hollow.jpg'),
      new Array('','12 x 8 x 16 solid top.jpg')
    )
  ),

  new Array('16" Block','images/block/',
    new Array(
      new Array('','16 x 8 x 16 hollow.jpg'),
      new Array('','16 x 8 x 16 rebar block.jpg')
    )
  )
)

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][2].length))
  ind = 0; 

