
smallSizes = new Array(77,77);
mediumSizes = new Array(200,170);
pageName = 'bbq.htm';
scriptName = 'bbq.js';
countX = 5;
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('BBQ\'s Fireplaces & Rings','images/portfolio/small/','images/portfolio/medium/','images/portfolio/big/',
    new Array(
		new Array('Quesnell','IMG_2492_edited-1.jpg',533,400,''), 
		new Array('Quesnell','IMG_3152_edited-1.jpg',533,400,''), 
		new Array('Quesnell','IMG_3171_edited-1.jpg',533,400,''), 
		new Array('Aryan','IMG_2674_edited-1.jpg',533,400,''), 
		new Array('Aryan','IMG_2746_edited-1.jpg',533,400,''), 
		new Array('Aryan','IMG_2794_edited-1.jpg',533,400,''), 
		new Array('Aryan','IMG_3750_edited-1.jpg',533,400,''), 
		new Array('Aryan','IMG_3752_edited-1.jpg',300,400,''), 
		new Array('Aryan','IMG_3753_edited-1.jpg',533,400,''), 
		new Array('Aryan','IMG_3757_edited-1.jpg',375,400,''), 
		new Array('Aryan','IMG_3778_edited-1.jpg',533,400,''), 
		new Array('Aryan','img_3019_edited-1.jpg',600,400,''), 
		new Array('Aryan - no-chimney','img_3021_edited-1.jpg',600,400,''), 
		new Array('Davey','lw_fire_ring.jpg',320,400,''), 	
		new Array('Froehlich','lw_bbq_07.jpg',600,400,''), 
		new Array('Meyer','lw_pavers_1_2.jpg',607,400,''), 
		new Array('Calhom','img_1147.jpg',533,400,''), 
		new Array('Cooper','lw_bbqsfireplaces_rings-1.jpg',600,400,''), 
		new Array('Cooper','lw_bbqsfireplaces_rings-2.jpg',600,400,''), 
		new Array('Ortega','lw_bbqsfireplaces_rings.jpg',600,400,''), 
		new Array('Ortega','lw_bbq_01.jpg',600,400,''), 
		new Array('Ortega','lw_bbq_02.jpg',600,400,''), 
		new Array('Ortega','lw_bbq_03.jpg',600,400,''), 
		new Array('Ortega','lw_bbq_04.jpg',600,400,''), 
		new Array('Ortega','lw_bbq_05.jpg',600,400,''), 
		new Array('Froehlich','lw_bbq_06.jpg',600,400,''), 
		new Array('Lindenburger','lw_bbq_08.jpg',611,400,''), 
		new Array('Lindenburger','lw_bbq_09.jpg',611,400,''), 
		new Array('Smith','lw_bbq_10.jpg',588,400,''), 
		new Array('Miramontes','lw_bbq_11.jpg',565,400,''), 
		new Array('Miramontes','lw_bbq_12.jpg',482,400,''),
		new Array('Wilson','img_1284_edited-1.jpg',533,400,''), 
		new Array('Wilson','img_1291.jpg',533,400,''),
		new Array('Wilson','img_1281.jpg',300,400,''), 
		new Array('Wilson','Wilson_Del_Paso-07_edited-1.jpg',554,400,''), 
		new Array('Wilson','wilson_del_paso-08_edited-1.jpg',641,400,''), 
		new Array('Froehlich','img_8480_edited-1.jpg',266,400,''),
		new Array('Taylor','lw_web_firepits_taylor-2.jpg',533,400,''),
		new Array('Lanthorne','lanthorne-05_edited-1.jpg',533,400,''),
		new Array('Garcia','bbq_img_3239_edited-1.jpg',600,400,''), 
		new Array('Garcia','bbq_img_3243_edited-1.jpg',600,400,'')
    ),'Click on the images to view a larger display of our elegant colors, shapes and patterns.'
  )
)

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;">');
  for (jp=0;jp<arImages.length;jp++) {
    document.write('<option value="'+pageName+'?section='+jp+'"'+((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]);
}

