
smallSizes = new Array(91,56);
mediumSizes = new Array(0,0);
pageName = 'architects_shapes.htm';
scriptName = 'architects_shapes.js';
countX = 4; 
countY = 4;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(
  new Array('SHAPES','images/shapes/','','',
    new Array(
//new Array('COBBLE-LOCK™','COBBLE-LOCK.jpg'),
new Array('COLONY™','COLONY.jpg'),
new Array('HEXAGON-STONE™','HEXAGON-STONE.jpg'),
new Array('HOLLAND-STONE™','HOLLAND-STONE.jpg'),
//new Array('KEY LARGO™','KEY-LARGO.jpg'),
new Array('MINI-HOLLAND™','MINI-HOLLAND.jpg'),
new Array('MULTILOCK™','MULTILOCK.jpg'),
new Array('ST. AUGUSTINE™','ST.-AUGUSTINE.jpg'),
new Array('SYMETRY®','SYMETRY.jpg'),
new Array('TURFSTONE™','TURFSTONE.jpg'),
//new Array('UNI-ANCHORLOCK®','UNI-ANCHORLOCK.jpg'),
//new Array('UNI-DECOR®','UNI-DECOR.jpg'),
new Array('UNI ECO-STONE™','UNI-ECO-STONE.jpg'),
//new Array('UNI-STONE®','UNI-STONE.jpg'),
new Array('12 x 12','12-x-12.jpg')
    )
  ),

  new Array('APPIAN-STONE®','images/shapes/','','',
    new Array(
new Array('Rectangular','Rectangular.jpg'),
new Array('Square','Square.jpg')
    )
  ),

  new Array('CLASSICO®','images/shapes/','','',
    new Array(
new Array('Large Rectangular','Large-Rectangular.jpg'),
new Array('Large Circle','Large-Circle.jpg'),
new Array('Small Circle','Small-Circle.jpg'),
new Array('Square','Square1.jpg')
    )
  ),

  new Array('ANTIQUED PAVERS™','images/shapes/','','',
    new Array(
new Array('Appian-Stone® Rectangle','Appian-Stone-Rectangle.jpg'),
new Array('Appian-Stone® Square','Appian-Stone-Square.jpg'),
new Array('Holland-Stone™','Holland-Stone1.jpg')
    )
  ),

  new Array('PAVER TILES™','images/shapes/','','',
    new Array(
new Array('Appian-Stone® Square','Appian-Stone-Square1.jpg'),
new Array('Appian-Stone® Rectangle','Appian-Stone-Rectangle1.jpg'),
new Array('Coping','Coping.jpg'),
new Array('Holland-Stone™','Holland-Stone2.jpg'),
new Array('Seville™','Seville.jpg')
    )
  ),

  new Array('CITY SERIES™','images/shapes/','','',
    new Array(
new Array('8 x 8 Stack','8-x-8-Stack.jpg'),
//new Array('8 x 12 Runner','8-x-12-Runner.jpg'),
new Array('6 x 6 Stack','6-x-6-Stack.jpg'),
new Array('City Diamond','City-Diamond.jpg')
//new Array('4 x 4 Stack','4-x-4-Stack.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][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]);
}
