var space = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"

var tabout = "about us" + space;
var tres = "research" + space;
var topp = "opportunities" + space;
var tlin = "links" + space;
var tnano = "nanotech info" + space;

var habout = "about.overview.html";
var hres = "research.facilities.html";
var hopp = "opp.html";
var hlin = "links.general.html";
var hnano = "javascript:window.open(&#39;http://www.utoronto.ca/ecan/nanotech.vision.html&#39;);void(&#39;&#39;);";

var mabout = "about";
var mres = "res";
var mopp = "opp";
var mlin = "lin";
var mnano = "nano";

var begact = "<FONT CLASS='orange'>";
var endact = "</FONT></TD></TR>";

var lbegin = "<TD BGCOLOR='#00007D' WIDTH='149px' HEIGHT='25px' ALIGN='right' VALIGN='center'>";
var l1 = "<A CLASS='menu' HREF='";
var l2 = "' ONMOUSEOVER='showdiv(";
var l3 = "m);' ONMOUSEOUT='hidedelay();'>";
var lend = "</A></TD></TR>";

function dispmenu(act) {

document.write("<TABLE BORDER='0' CELLPADDING='0' CELLSPACING='0'>");
document.write("<TR><TD BGCOLOR='#00007D' WIDTH='149px' HEIGHT='25px' ALIGN='right' VALIGN='center'>");
document.write("<A CLASS='menu' HREF='index.html'>home" + space + "</A></TD></TR>");
if (act=="about")
	document.write(lbegin + begact + tabout + endact);
else
	document.write(lbegin + l1 + habout + l2 + mabout + l3 + tabout + lend);

if (act=="res")
	document.write(lbegin + begact + tres + endact);
else
	document.write(lbegin + l1 + hres + l2 + mres + l3 + tres + lend);

if (act=="opp")
	document.write(lbegin + begact + topp + endact);
else
	document.write(lbegin + l1 + hopp + l2 + mopp + l3 + topp + lend);

if (act=="lin")
	document.write(lbegin + begact + tlin + endact);
else
	document.write(lbegin + l1 + hlin + l2 + mlin + l3 + tlin + lend);

if (act=="nano")
	document.write(lbegin + begact + tnano + endact);
else 
	document.write(lbegin + l1 + hnano + l2 + mnano + l3 + tnano + lend);

document.write("</TABLE>");
}