
smallSizes = new Array(77,77);
//mediumSizes = new Array(200,170);
pageName = 'highway-blocksdetails.htm';
scriptName = 'highway-blocks.js';
countX = 4;
countY = 3;

// sections: name, small images path, medium images path, big images path
// images: name, src, big width, big height
var arImages = new Array(
  new Array('Blocks 4"','images/blocks/4blocks/small/','','images/blocks/4blocks/big/',
    new Array(
		new Array('4 x 8 x 8 Reg','image_gallery.jpg',260,302,''), 
		new Array('4 x 8 x 8 SBN','image_gallery1.jpg',266,292,''), 
		new Array('4 x 8 x 8 DBN','image_gallery2.jpg',268,290,''), 
		new Array('4 x 8 x 16 Single Score','image_gallery3.jpg',337,362,''), 
		new Array('4 x 8 x 16 Reg','image_gallery4.jpg',333,355,''), 
		new Array('4 x 8 x 16 Solid','image_gallery5.jpg',333,327,''), 
		new Array('4 x 8 x 16 Split Face Solid<br>Single Score 1 Face','image_gallery6.jpg',330,319,''), 
		new Array('4 x 8 x 16<br>Single Score','image_gallery7.jpg',317,313,''), 
		new Array('4 x 8 x12 Split Face Solid<br>1 Face 1 End','image_gallery8.jpg',293,282,'') 	
    ),''
  ),
  new Array('Blocks 6"','images/blocks/6blocks/small/','','images/blocks/6blocks/big/',
    new Array(
		new Array('6 x 8 x 8 DBN','image_gallery.jpg',251,247,''), 
		new Array('6 x 8 x 8 SBN','image_gallery1.jpg',253,243,''), 
		new Array('6 x 8 x 8 Reg','image_gallery2.jpg',258,237,''), 
		new Array('6 x 8 x 16 Solid','image_gallery3.jpg',350,301,''), 
		new Array('6 x 8 x 16 Reg','image_gallery4.jpg',124,108,''), 
		new Array('6 x 8 x 16 SBN','image_gallery5.jpg',344,303,''), 
		new Array('6 x 8 x 16 Return Corner','image_gallery6.jpg',372,314,'')	
    ),''
  ),
  new Array('Blocks 8"','images/blocks/8blocks/small/','','images/blocks/8blocks/big/',
    new Array(
		new Array('8 x 4 x Half Height','image_gallery.jpg',344,261,''), 
		new Array('8 x 8 x 16 Bond Beam','image_gallery1.jpg',348,306,''), 
		new Array('8 x 8 x 16 Solid','image_gallery2.jpg',349,307,''), 
		new Array('8 x 8 x 16 3 Core','image_gallery3.jpg',322,285,''), 
		new Array('8 x 8 x 16 Reg','image_gallery4.jpg',327,284,''), 
		new Array('8 x 8 x 16 Single Score','image_gallery5.jpg',326,280,''), 
		new Array('8 x 8 x 16 Corner Sash','image_gallery6.jpg',326,288,''), 
		new Array('8 x 8 x 16 Solid','image_gallery7.jpg',348,302,''), 
		new Array('8 x 8 x 16 Knock out','image_gallery8.jpg',326,287,''), 
		new Array('8 x 8 x 16 Reg 2 Hour','image_gallery9.jpg',328,285,''),
		new Array('8 x 8 x 8 D. D.','image_gallery10.jpg',283,269,''), 
		new Array('8 x 8 x 16 Split Face<br>Single, 1 Face, 1 End','image_gallery11.jpg',283,269,''), 
		new Array('8 x 8 x 16 Split Face<br>1 Face, 1 End','image_gallery12.jpg',347,301,''), 
		new Array('8 x 8 x 16 Split Face<br>Single Score, 1 face','image_gallery13.jpg',344,300,''), 
		new Array('8 x 8 x 16 Split Face<br>1 Face','image_gallery14.jpg',344,299,'') 
    ),''
  ),
  new Array('Blocks 10"','images/blocks/10blocks/small/','','images/blocks/10blocks/big/',
    new Array(
		new Array('10 x 8 x 16 Single<br>Score','image_gallery.jpg',362,342,''), 
		new Array('10 x 8 x 16 Reg','image_gallery1.jpg',359,340,''), 
		new Array('10 x 8 x 16 Split Face','image_gallery2.jpg',359,338,''), 
		new Array('10 x 8 x 16 Corner<br>Sash','image_gallery3.jpg',381,356,''), 
		new Array('10 x 8 x D. D.','image_gallery4.jpg',297,313,''), 
		new Array('10 x 8 x 16 SBN','image_gallery5.jpg',377,360,''), 
		new Array('10 x 4 x 16 Half<br>Height','image_gallery6.jpg',377,337,''), 
		new Array('10 x 8 x 16 Bond<br>Beam','image_gallery7.jpg',379,354,'') 
    ),''
  ),
  new Array('Blocks 12"','images/blocks/12blocks/small/','','images/blocks/12blocks/big/',
    new Array(
		new Array('12 x 8 x 16 Single Score','image_gallery.jpg',386,357,''), 
		new Array('12 x 8 x 16 Corner Sash','image_gallery1.jpg',385,348,''), 
		new Array('12 x 8 x 16 Reg.','image_gallery2.jpg',385,344,''), 
		new Array('12 x 4 x 16 Half Height','image_gallery3.jpg',384,325,''), 
		new Array('12 x 8 x 16 4 Hour','image_gallery4.jpg',385,355,''), 
		new Array('12 x 8 x 16 SBN','image_gallery5.jpg',424,387,''), 
		new Array('12 x 8 x 16 DBN Same End','image_gallery6.jpg',423,387,''), 
		new Array('12 x 8 x 16 Open End','image_gallery7.jpg',386,356,''), 
		new Array('12 x 8 x 16 Bond Beam','image_gallery8.jpg',393,366,''), 
		new Array('12 x 8 x 16 Split Face Sash','image_gallery9.jpg',405,378,''), 	
		new Array('12 x 8 x 16 Split Face 1 Face','image_gallery10.jpg',405,377,''), 
		new Array('12 x 8 x 16 Split Face<br>Single Score 1 Face','image_gallery11.jpg',432,376,'') 
    ),''
  ),
  new Array('Dry Block','','','',
    new Array(
	 new Array('','',0,0,'') 	
    ),'dry_block.htm'
  ),
  new Array('CBIS','','','',
    new Array(
	 new Array('','',0,0,'') 	
    ),'cbis.htm'
  )
)

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 menu_portfolio() {
  var jp;
  document.write('<table border="0" cellspacing="0" cellpadding="0">');
  document.write('<tr><td>Choose a category:&nbsp;<select name="cat" class="select1" onChange="if (this.value.length!=0) window.location=this.value" style="font-size:9px;">');
   document.write('<option value="highway-blocks.htm" '+((section=='')?' selected':'')+'>Standard Masonry Units</option>');
  for (jp=0;jp<arImages.length;jp++) {
   if (arImages[jp][5]=='')
    document.write('<option value="'+pageName+'?section='+jp+'"'+((jp==section)?' selected':'')+'>'+arImages[jp][0]+'</option>');
   else
    document.write('<option value="'+arImages[jp][5]+'"'+((jp==section)?' selected':'')+'>'+arImages[jp][0]+'</option>');	
  }  
  document.write('</select></td></tr>')
  document.write('</table>');
} 
  
function showImageMedium(number) {
  showImage('imagemedium',arImages[section][2]+arImages[section][4][number][1]);
  if (arImages[section][4][number][0]!='')
   showMessage('imagemediumname',arImages[section][4][number][0]);   
  else
   showMessage('imagemediumname','Photo '+Number(Number(number)+1));
}

function showImageBig(number) {
  showImagePopup(scriptName,section,number,arImages[section][4][number][2],
   arImages[section][4][number][3]);
}
