var menu = [
["m1",205,"Introduction","index.html"],
	["m2",230,"Instruments","instr.htm"],
	["m3",255,"Restoration","rest.htm"],
	["m4",280,"Where I am","vuarrens.htm"],
	["m5",305,"Links","lien.htm"],
	["m6",330,"Contact","contact.htm"]
	];
var actuell = "";

function writemenu(m) {
	var htmlcode = "<p><b>Serge Rinsoz<br>Luthier<br>1418 Vuarrens VD<br>Switzerland</b><br>Tel./Fax.<br>++41 (0) 21 887 84 46<br><a id='l1' href='mailto:sergerinsoz@tiscali.ch' onMouseover=" + unescape("%22") + "over('l1') " + unescape("%22") + " onMouseout=" + unescape("%22") + "out('l1')" + unescape("%22") + ">sergerinsoz@tiscali.ch</a></p>";
	document.writeln(htmlcode);
	if (m!="m1x") {
		htmlcode ="<div style='position:absolute; top:10px; left:200px'><h1>" + menu[parseInt(m.substring(1))-1][2] + "</h1></div>";
		document.writeln(htmlcode);
	}
	for (var i=0; i<menu.length; ++i) {
		htmlcode = "<div id='" + menu[i][0] + "' style='position:absolute;";
		htmlcode = htmlcode + " top:" + menu[i][1] + "px; left:10px;";
		htmlcode = htmlcode + " color:#800000; cursor:pointer;";
		htmlcode = htmlcode + " text-decoration:underline' onMouseover=" + unescape("%22") + "over('" + menu[i][0] + "') " + unescape("%22") + " onMouseout=" + unescape("%22") + "out('" + menu[i][0] + "')" + unescape("%22") + " onMouseup=" + unescape("%22") + "gotoDest('" + menu[i][0] + "','" + menu[i][3] + "')" + unescape("%22") + ">";
		document.writeln(htmlcode);
		document.writeln(menu[i][2]);
		document.writeln("</div>");
	}
}

function over(menu) {
	if (menu==actuell) return;
	window.document.getElementById(menu).style.color="#000088";
	window.document.getElementById(menu).style.textDecoration="none";
	window.document.getElementById(menu).style.fontWeight="bold";
	if (menu=="m1") {
		window.status="Introduction";
		return true;
	} else if (menu=="m2") {
		window.status="Manufactured intruments";
		return true;
	} else if (menu=="m3") {
		window.status="Instruments restoration: wheeled hurdy-gurdy";
		return true;
	} else if (menu=="m4") {
		window.status="Route plan";
		return true;
	} else if (menu=="m5") {
		window.status="Links";
		return true;	
	} else if (menu=="m6") {
		window.status="Send a message";
		return true;}
}

function out(menu) {
	if (menu==actuell) return;
	window.document.getElementById(menu).style.color="#800000";
	window.document.getElementById(menu).style.textDecoration="underline";
	window.document.getElementById(menu).style.fontWeight="normal";
	window.status="";
	return true;
}

function gotoDest(menu, dest) {
	if (menu==actuell) return;
	window.location.href=dest;
}

function load(menu) {
	over(menu);
	actuell = menu;
}