
var bgcolor_margin_bottom = "#E6E3D2";
var bgcolor_cell_bottom = "#E6E3D2";
var bgcolor_hcell_bottom = "#E6E3D2";
var background_cell_bottom = "";
var background_hcell_bottom = "";
var class_name_bottom = "menu_dropdown";
var cell_spacing_bottom = 5;
var cell_padding = 0;
var height_bottom = 20;

var arMenu_bottom = 
[
// About Belgard
  [
    [
      ['The Company', 'about.htm'],
      ['News & Events', 'press.htm'],
      ['Careers', 'careers.htm'],
      ['Belgard University', 'university.htm'],
      ['Industry Links', 'links.htm'],
      ['Oldcastle Sites', 'oldcastle_sites.htm']
    ],
	170, -277, 200 
  ],

// Paver Resources
  [
    [
      ['Hardscape Research Center', 'pavers.htm'],
//      ['Paver Products', 'shapes-pavers.htm'],
      ['Technical Specs', 'technical.htm'],
      ['Retaining Walls', 'retaining-wall.htm'],
      ['Paver Photos', 'photos.htm'],
      ['Belgard Tools', 'paving_software.htm'],
      ['Member Support', 'consumers.htm']
    ],
	280, -227, 200 
  ]

]

var timerMenu_bottom;

function hideMenu_bottom() {
  timerMenu_bottom=setTimeout('hideMenuItems_bottom()', 500);
}

function hideMenuItems_bottom() {
  for (var i=0; i<arMenu_bottom.length; i++)
    hideMenuItem_bottom('menu_bottom_'+i, arMenu_bottom[i]);
}

function hideMenuItem_bottom(name, arr) {
  MM_showHideLayers(name,'','hide');
  for(var i=0;i<arr[0].length;i++)
    if ((arr[0][i][2]) && (arr[0][i][2].length>0))
      hideMenuItem_bottom(name+'_'+i, arr[0][i][2]);
}

function showMenu_bottom(name) {
  MM_setPosition_bottom();
  clearTimeout(timerMenu_bottom);
  hideMenuItems_bottom();

  MM_showHideLayers(name,'','show');
  while (name.indexOf("_")!=-1) {
	name = name.substring(0, name.lastIndexOf("_"));
    MM_showHideLayers(name,'','show');
  }
}

function fWriteLayers_bottom() {
  for (var i=0; i<arMenu_bottom.length; i++) {
	writeMenu_bottom('menu_bottom_'+i, arMenu_bottom[i])
  }
}

function writeMenu_bottom(name, arr) {
  document.write("<div id='"+name+"' style='position:absolute; left:0px; top:0px; width:"
   +arr[3]+"px; z-index:1; visibility: hidden' onMouseOver=\"clearTimeout(timerMenu_bottom);\" onMouseOut=\"hideMenu_bottom();\">"); 
  document.write("<table width='100%' border=0 cellspacing=0 cellpadding=0"
   +((bgcolor_margin_bottom!="")?" bgcolor='"+bgcolor_margin_bottom+"'":"")+"><tr><td>"); 
  document.write("<table width='100%' border=0 cellspacing="+cell_spacing_bottom+" cellpadding="+cell_padding+">");
  for (var j=0;j<arr[0].length;j++) {
    document.write("<tr>");
    document.write("<td align=center "+((bgcolor_cell_bottom!="")?" bgcolor='"+bgcolor_cell_bottom+"'":"")
     +((background_cell_bottom!="")?" background='"+background_cell_bottom+"'":"")
	 +" onmouseover=\""+((bgcolor_hcell_bottom!="")?"this.style.backgroundColor='"+bgcolor_hcell_bottom+"';":"")
     +((background_hcell_bottom!="")?" this.style.background='url("+background_hcell_bottom+")';":"")
     +(((arr[0][j][2]) && (arr[0][j][2][0].length>0))?" showMenu_bottom('"+name+"_"+j+"');":" showMenu_bottom('"+name+"');")
	 +"\""
	 +" onmouseout=\""+((bgcolor_cell_bottom!="")?" this.style.backgroundColor='"+bgcolor_cell_bottom+"';":"")
   	 +((background_cell_bottom!="")?" this.style.background='url("+background_cell_bottom+")';":"")+"\""
   	 +" onclick=\"location.href='"+arr[0][j][1]+"'\""
	 +" style='cursor: hand; height_bottom:"+height_bottom+"px;'>"
	 +"<a onclick=\"vExit=false; \" href='"+ arr[0][j][1]+"' class='"+class_name_bottom+"'>"+arr[0][j][0]+"</a></td>");
    document.write("</tr>");
	if (j<(arr[0].length-1))
      document.write("<tr><td align=center><img src='images/menudrop_delimiter.gif' width='145' height_bottom='1'></td></tr>");
	 else
      document.write("<tr><td align=center><img src='images/space.gif' width='1' height_bottom='10'></td></tr>");
  }
  document.write("</table>");
  document.write("</td></tr></table>");
  document.write("</div>");
  for(var j=0;j<arr[0].length;j++) {
    if ((arr[0][j][2]) && (arr[0][j][2][0].length>0)) {
	  writeMenu_bottom(name+'_'+j, arr[0][j][2]);
	}
  }
}

function MM_setPosition_bottom() {
  for (var i=0; i<arMenu_bottom.length; i++)
    setPosition_bottom('menu_bottom_'+i, arMenu_bottom[i])
}

function setPosition_bottom(name, arr) {
  if (IEx) {
    document.all(name).style.left = Number(xy.offsetLeft)+Number(arr[1]);
    document.all(name).style.top = Number(xy.offsetTop)+Number(xy.offsetHeight)+Number(arr[2]);
  }
  else if (NS6) {
    str = "document.getElementById('"+name+"').style.left = document.getElementById('xy').offsetLeft+arr[1]";
    eval(str);
    str = "document.getElementById('"+name+"').style.top = document.getElementById('xy').offsetTop+document.getElementById('xy').offsetHeight+arr[2]";		
    eval(str);
  }	
  for(var i=0;i<arr[0].length;i++)
    if ((arr[0][i][2]) && (arr[0][i][2].length>0))
      setPosition_bottom(name+'_'+i, arr[0][i][2]);
}

