/*	Write menus
		poor man's include file
*/
function writeMenuElements() {
	function writeMenuElement (href, img, alt, n, pId) {
		// write document info
	document.write('<p');
	if (pId)	// paragraph id
		document.write(' id="' + pId + '" style="display:none "');
	document.write('>');
	document.write('	<a class="lm" href="' + href + '">');
	document.write('		<img src="Images/' + img + '" alt="' + alt + '" width="115" height="26" class="menuImg" id="menuImg_' + n + '" >');
	document.write('	</a>');
	document.writeln('</p>');
	}


	writeMenuElement ("Index.htm", "btn_home_off.gif", "Return to home page", 1);
	writeMenuElement ("WhatsNew.htm", "btn_whatsnew_off.gif", "What's new", 10);
	writeMenuElement ("javascript: void expandSubMenus();", "btn_music_off.gif", "Musical activities", 2);
	writeMenuElement ("javascript: void expandSubMenus();", "btn_professional_off.gif", "IT and Web development", 3);
	writeMenuElement ("NotYet.htm", "btn_personal_off.gif", "Personal pages", 4);
	writeMenuElement ("LinkMan/LinkMan06.htm", "btn_linkman_off.gif", "Portable web link manager", 5);
	// writeMenuElement ("javascript: void doEmail();", "btn_email_off.gif", "Send me an e-mail",  6);
	writeMenuElement ("http://www.hamm.co.uk/pepys.php", "btn_email_off.gif", "Send me an e-mail",  6);
	writeMenuElement ("javascript: void doLogin();", "btn_login_off.gif", "Log in to display your personal web links", 7, "doLogin");
	writeMenuElement ("javascript: void doLogout();", "btn_logout_off.gif", "Log out", 8, "doLogout");
	writeMenuElement ("javascript: void doRegister(); ", "btn_register_off.gif", "Register to activate your personal web link manager", 9, "doRegister");
/*
		<p id="doRegister" style="display:none ">
			<a class="lm" href=>
				<img src= alt= width="115" height="26" class="menuImg" id="menuImg_9">
			</a>
		</p>
*/
}