var path = "."

var NS4 = (document.layers);
var IE4 = (document.all);
var NS5 = (navigator.appName.indexOf("Netscape") > -1) && (navigator.appVersion.indexOf("5.") == 0);
var ver4 = (NS4 || IE4 || NS5);
var isMac = (navigator.appVersion.indexOf("Mac") != -1);
var IE5 = (navigator.appVersion.indexOf("MSIE 5") != -1);
var IE6 = (navigator.appVersion.indexOf("MSIE 6") != -1);

var menuItems = new Array();
//Add a new menuItems for each menu level needed.
menuItems[0] = new menuItem("Home", path +"/index.html")
menuItems[1] = new menuItem("Program at a Glance",path + "/program_at_a_glance.html")
menuItems[2] = new menuItem("Technical Program", path + "/technical_program.html")
menuItems[3] = new menuItem("Student Program", path + "/student_program.html")
menuItems[4] = new menuItem("Social & Companion Program", path + "/social_events.html")
menuItems[5] = new menuItem("Registration & Hotel", path + "/registration.html")
menuItems[6] = new menuItem("About Toronto", path + "/about_toronto.html")
menuItems[7] = new menuItem("Supporters", path + "/supporters.html")
menuItems[8] = new menuItem("Organizing Committee", path + "/committee.html")

function menuItem(name,link)
{
	this.name = name
	this.link = link 
}

function initializeMenu()
{
if (NS4)
{
	document.write('<layer id="menu" left="7" top="140" visibility=show>')
}

document.write('<table border="0" cellpadding="0" cellspacing="0">')
	
for (var i = 0; i < menuItems.length; i++) 
{
	document.write('<tr>')
	
	if (i == 0)
		document.write(' 	<td colspan="2">');
	else if (i == (menuItems.length - 1))
		document.write('	<td><img src="' + path + '/images/lastnode.gif"></td><td nowrap>');
	else
		document.write('	<td><img src="' + path + '/images/middlenode.gif"></td><td nowrap>');
	
	if (menuItems[i].link != "")
		document.write('<a href="'+ menuItems[i].link +'" ')
	else
		document.write('<span ')	

	if (openAt == menuItems[i].name)
		document.write(' class="black">')
	else
		document.write(' class="green">')

	document.write(menuItems[i].name)

	if (menuItems[i].link != "")
		document.write('</a></td>')
	else
		document.write('</span></td>')	

	document.write('</tr>')	
}

if (openAt == "Home")
{
	document.write('<tr><td colspan="2" align="center"><br><br><a href="http://www.ieee.org/organizations/society/power/subpages/meetings-folder/2003%20Toronto/lightning-session.htm" target="_external"><img  src="images/lightning.gif" width="175" height="120" border="0" alt=""></a></td></tr>');
	document.write('<tr><td colspan="2">&nbsp;<br></td></tr><tr><td colspan="2" align="center"><a href="http://www.torontotourism.com" style="font-size: 10pt; text-decoration: none;" target="_external">SARS Update</a></td></tr>')
	document.write('<tr><td colspan="2" align="center"><br><a href="./sarsFAQ.html" style="font-size: 10pt; text-decoration: none;">SARS Frequently Asked<br>Questions</a></td></tr>')
}
document.write('</table>')

if (NS4)
{
	document.write('</layer>')
}
}