
var arProducts = new Array(

  new Array('LEED Documentation',
    new Array(
      new Array('LEED Documentation','leed_documentation.htm')
    ), 'leed_documentation'
  ),

  new Array('Architectural Block',
    new Array(
      new Array('Photo Gallery','photos.htm'),
      new Array('Shapes & Sizes','shapes.htm'),
      new Array('Colors Collection','colors.htm'),
      new Array('Technical Notes','technical.htm'),
      new Array('Case Studies','case.htm')
    ), 'architectural_block'
  ),

  new Array('Sure Touch <font color="#FF0000">(New Product)</font>',
    new Array(
      new Array('Intro/Description','suretouch_introduction.htm'),
      new Array('Insulation','suretouch_insulation.htm'),
      new Array('Colors','suretouch_colors.htm'),
      new Array('Accessories','suretouch_accessories.htm'),
      new Array('Installation','suretouch_installation.htm'),
      new Array('Photos','suretouch_photos.htm'),
      new Array('Projects','suretouch_projects.htm')
    ), 'sure_touch'
  ),

  new Array('Belgard Pavers',
    new Array(
      new Array('Products','shapes-pavers.htm'),
      new Array('Photo Gallery','belgard_photos.htm'),
      new Array('Shapes & Sizes','belgard_shapes.htm'),
      new Array('Colors Collection','belgard_colors.htm'),
      new Array('Patterns','belgard_patterns.htm'),
      new Array('New Products','belgard_products.htm'),
      new Array('Catalogs Library','belgard_catalogs.htm'),
      new Array('Technical Notes','belgard_technical.htm'),
      new Array('Sales Tools','belgard_sales.htm'),
      new Array('Case Studies','white-paper.htm')
    ), 'belgard'
  ),

  new Array('Solar Lighting <font color="#FF0000">(New Product)</font>',
    new Array(
      new Array('Solar Lighting','solar-lighting.htm')
    ), 'solar_lighting'
  ),

  new Array('Outdoor Living Products',
    new Array(
      new Array('Products','outdoor_living_products.htm'),
      new Array('Chicago Brick Ovens','shapes-chicago.htm'),
      new Array('Harmony Outdoor Living','shapes_harmony_outdoor.htm'),
      new Array('Medium Rare Appliances','shapes_medium_rare.htm')
    ), 'outdoor_living_products'
  ),

  new Array('Keystone Walls',
    new Array(
      new Array('Showroom','keystone.htm'),
      new Array('Catalogs','keystone_catalogs.htm'),
      new Array('Photo Gallery','keystone_photos.htm'),
      new Array('Technical Notes','keystone_technical.htm'),
      new Array('Technical','keystone_technical1.htm'),
      new Array('Case Studies','keystone_case.htm') 
    ), 'keystone_walls'
  ),

  new Array('Integra Wall',
    new Array(
      new Array('Introduction','integra_introduction.htm'),
      new Array('Photo Gallery','integra_photos.htm'),
      new Array('Shapes & Sizes','integra_shapes.htm'),
      new Array('Colors Collection','integra_colors.htm'),
      new Array('Technical Notes','integra_technical.htm'),
      new Array('Digital Catalog','javascript:catalogIntegraWall();')
    ), 'integra_wall'
  ), 
 
  new Array('Trenwyth Stone',
    new Array(
      new Array('Astra-Glaze-SW+','tren_astra.htm'),
      new Array('New AG Platinum','tren_platinum.htm'),
      new Array('Trendstone','tren_trendstone.htm'),
      new Array('Trendstone Plus','tren_trendstoneplus.htm'),
      new Array('Mesastone','tren_mesastone.htm'),
      new Array('<i>PRAIRIE</i> stone','tren_prairiestone.htm'),
      new Array('Acousta-Wal','tren_acousta.htm'),
      new Array('Split Face','tren_splitface.htm')
    ), 'trenwyth_stone'
  ),
   
  new Array('Quik-Brik',
    new Array(
      new Array('Photo Gallery','quik_photos.htm'),
      new Array('Benefits','quik_benefits.htm'),
      new Array('Colors Collection','quik_colors.htm'),
      new Array('Technical Notes','quik_technical.htm'),
      new Array('FAQ`s','quik_faq.htm')
//      new Array('Sales Tools','quik_sales.htm')
    ), 'quik_brik'
  ),

  new Array('Dufferin Stone',
    new Array(
      new Array('Overview','dufferin_overview.htm'),
      new Array('Photo Gallery','dufferin_photos.htm'),
      new Array('Colors Collection','dufferin_colors.htm'),
      new Array('Patterns','dufferin_patterns.htm'),
      new Array('Installation','dufferin_installation.htm'),
      new Array('Technical Notes','dufferin_technical.htm'),
      new Array('Digital Catalogs','dufferin_catalogs.htm')
    ), 'dufferin_stone'
  ),

  new Array('AmeriMix',
    new Array(
      new Array('AmeriMix','javascript:openWebsite(\'http://www.amerimix.com\');')
    ), 'amerimix'
  ),

  new Array('Glass Block',
    new Array(
      new Array('Description','glassblock.htm'),
      new Array('Products','glassblock_products.htm'),
      new Array('Photo Gallery','glassblock_photos.htm'),
      new Array('Dealer Locations','glassblock_dealers.htm')
    ), 'glass_block'
  )

/*
  new Array('Spec Mix Products',
    new Array(
      new Array('Showroom','specmix_products.htm')
    )
  ),
*/
)

function menu_products() {
  var company_index = -1;
  var product_index = -1;

  if ((typeof(company)!='undefined')) {
    for (var i=0; i<arProducts.length; i++) {
	  if (arProducts[i][2] == company) {
        company_index = i;

		if ((typeof(index)=='undefined'))
		  product_index = -1;
        else
          product_index = index;

		break;
	  }
	}
  }

  for (var i=0;i<arProducts.length;i++) {
	document.write('<tr>');
	document.write('<td width="1" bgcolor="#687583"><img src="images/space.gif" width="1" height="1"></td>');
	document.write('<td width="27" bgcolor="#687583"><img src="images/space.gif" width="1" height="1"></td>');
	document.write('<td width="16" bgcolor="#687583"><img src="images/space.gif" width="1" height="1"></td>');
	document.write('<td width="158" bgcolor="#687583"><img src="images/space.gif" width="1" height="1"></td>');
	document.write('</tr>');
    document.write('<tr>');
	document.write('<td width="1"><img src="images/menuleft_company_l.gif" width="1" height="29"></td>');
	document.write('<td width="27" background="images/menuleft_company_bg.gif" valign="top"><img src="images/menuleft_company_t.gif" width="25" height="4"></td>');
	document.write('<td width="16" background="images/menuleft_company_bg.gif"><img src="images/arrow_company.gif" width="9" height="7"></td>');
	document.write('<td width="*" background="images/menuleft_company_bg.gif">');
	document.write('<a href="'+arProducts[i][1][0][1]+'" '+((company_index==i)?'class="menuleft_selected"':'class="menuleft"')+'>'+arProducts[i][0]+'</a>');
	document.write('</td>');
    if ((company_index==i) && (arProducts[i][1].length>1)) {
      document.write('<tr>');
	  document.write('<td colspan="4">');
      document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
      for (var j=0;j<arProducts[i][1].length;j++) {
/*
		if ((i==3) && (j==0)) j=1
		else if ((i==9) && (j==0)) j=1
		else if ((i==2) && (j==0)) j=1;
*/
        document.write('<tr>');
	    document.write('<td colspan="3" bgcolor="#475E79"><img src="images/space.gif" width="1" height="1"></td>');
	    document.write('</tr>');
        document.write('<tr>');
	    document.write('<td width="44" height="29"><img src="images/space.gif" width="44" height="1"></td>');
	    document.write('<td width="16"><img src="images/arrow_product.gif" width="9" height="7"></td>');
	    document.write('<td width="*"><a href="'+arProducts[i][1][j][1]+'" '+((product_index==j)?'class="menuleft_selected"':'class="menuleft"')+'>'+arProducts[i][1][j][0]+'</a></td>');
	    document.write('</tr>');
	  }
      document.write('</table>');
      document.write('</td>');
      document.write('</tr>');
	}
	document.write('</tr>');
  }
  document.write('<tr>');
  document.write('<td colspan="4" bgcolor="#687583"><img src="images/space.gif" width="1" height="1"></td>');
  document.write('</tr>');
}

function menu_arrow() {
  document.write('<img src="images/space.gif" width=1 height='+Number((Number(index)+1)*15)+'><br>');
  document.write('<img src="images/arrow1.gif" width="11" height="14" border="0">');
}


