	function buildMenu () {
			var tempLinkFound = false;
		for (var tempiLink in lmLinks) {
			var tempLink = lmLinks[tempiLink];
		  var tempre = new RegExp(tempLink[2]);
		 
		  if (!tempLinkFound && document.location.pathname.match(tempre)) {
		  	tempLinkFound = true;
		  	document.write ('<div id="pageNav2" class="maintext">' +
				'<div id="subpageNav">			<div id="subcontainer">' +
				'		<a ' + (tempLink[4] != null ? ' target="' + tempLink[4] + '"' : '') + ' href="' + tempLink[0] + '" class="maintextBold">' + tempLink[1] + '</a>');
				if (tempLink[3] != null) {
						document.write ('<br /><div id="subsectionLinks">');
						for (tempjLink in tempLink[3]) {
							var tempLink2 = tempLink[3][tempjLink];
							document.write ('<a href="' + tempLink2[0] + '">' + tempLink2[1] + '</a><br/>');
						}
						document.write ('</div>');
				}
				document.write ('</div>	</div></div>');
		  	
		    
		  } else {
		   document.write ('<div id="pageNav" class="maintext">' +
			 	'<div id="sectionLinks">' +
				'<a ' + (tempLink[4] != null ? ' target="' + tempLink[4] + '"' : '') + ' href="' + tempLink[0] + '" class="maintext">' + tempLink[1] + '</a>	</div></div>');
				
		  }
		}
}


