var navArray = new Array("abo","acc","adm","adv","aff","ata","dir","ful","mil","mod","par","pla","pro","rea","rec","reg","ris","spo","tra","ven","wel");

for (var x=0; x<navArray.length; x++) {
	eval("var " + navArray[x] + "_on = new Image;");
	eval(navArray[x] + "_on.src = 'images/nav/" + navArray[x] + "_on.gif';");
	eval("var " + navArray[x] + "_off = new Image;");
	eval(navArray[x] + "_off.src = 'images/nav/" + navArray[x] + "_off.gif';");
}

function rollOn(name){
	eval("document.images."+name+".src = "+name+"_on.src");
	return true;
}
function rollOff(name){
	eval("document.images."+name+".src = "+name+"_off.src");
	return true;
}

ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;
W3C = document.getElementById ? 1 : 0;

function showMenu(div) {
	if (ns4) {
		eval("document."+div+".display = 'block'");
	} else if (ie4) {
		eval("document.all."+div+".style.display = 'block'");
	} else if (W3C) {
		eval("document.getElementById('"+div+"').style.display = 'block'");
	}
}	

function hideMenu(div) {
	if (ns4) {
		eval("document."+div+".display = 'none'");
	} else if (ie4) {
		eval("document.all."+div+".style.display = 'none'");
	} else if (W3C) {
		eval("document.getElementById('"+div+"').style.display = 'none'");
	}
}	

function writeNav(page){
	document.writeln("<DIV ID='navbar' style='position:absolute; top:159px; left:0px; width:950px; z-index:16;'>");
	document.writeln("<table border='0' cellspacing='0' cellpadding='0' width='950' bgcolor='#cecfcf'>");
    document.writeln("<tr>");
	if(page=="wel"){
		document.writeln("<td><img name='wel' src='images/nav/wel_on.gif' alt='Welcome' width='80' height='36' border='0' /></td>");
	}else{
    	document.writeln("<td><a href='index.html' onMouseOver='rollOn(&quot;wel&quot;);' onMouseOut='rollOff(&quot;wel&quot;);'><img name='wel' src='images/nav/wel_off.gif' alt='Welcome' width='80' height='36' border='0' /></a></td>");
	}
	document.writeln("<td><a href='' onMouseOver='showMenu(&quot;about&quot;);' onMouseOut='hideMenu(&quot;about&quot;);'><img name='abo' src='images/nav/abo_off.gif' alt='About the Center' width='115' height='36' border='0' /></a></td>");
	if(page=="reg"){
		document.writeln("<td><img name='reg' src='images/nav/reg_on.gif' alt='Registration' width='90' height='36' border='0' /></td>");
	}else{
        document.writeln("<td><a href='registration.html' onMouseOver='rollOn(&quot;reg&quot;);' onMouseOut='rollOff(&quot;reg&quot;);'><img name='reg' src='images/nav/reg_off.gif' alt='Registration' width='90' height='36' border='0' /></a></td>");
	}
	document.writeln("<td><a href='' onMouseOver='showMenu(&quot;program&quot;);' onMouseOut='hideMenu(&quot;program&quot;);'><img name='pro' src='images/nav/pro_off.gif' alt='Program' width='70' height='36' border='0' /></a></td>");
	if(page=="ven"){
		document.writeln("<td><img name='ven' src='images/nav/ven_on.gif' alt='Venue' width='55' height='36' border='0' /></td>");
	}else{
        document.writeln("<td><a href='venue.html' onMouseOver='rollOn(&quot;ven&quot;);' onMouseOut='rollOff(&quot;ven&quot;);'><img name='ven' src='images/nav/ven_off.gif' alt='Venue' width='55' height='36' border='0' /></a></td>");
	}
	document.writeln("<td><a href='' onMouseOver='showMenu(&quot;travel&quot;);' onMouseOut='hideMenu(&quot;travel&quot;);'><img name='tra' src='images/nav/tra_off.gif' alt='Travel' width='55' height='36' border='0' /></a></td>");
	if(page=="acc"){
		document.writeln("<td><img name='acc' src='images/nav/acc_on.gif' alt='Accommodations' width='120' height='36' border='0' /></td>");
	}else{
        document.writeln("<td><a href='accommodations.html' onMouseOver='rollOn(&quot;acc&quot;);' onMouseOut='rollOff(&quot;acc&quot;);'><img name='acc' src='images/nav/acc_off.gif' alt='Accommodations' width='120' height='36' border='0' /></a></td>");
	}
	if(page=="spo"){
		document.writeln("<td><img name='spo' src='images/nav/spo_on.gif' alt='Sponsors &amp; Partners' width='140' height='36' border='0' /></td>");
	}else{
        document.writeln("<td><a href='sponsors.html' onMouseOver='rollOn(&quot;spo&quot;);' onMouseOut='rollOff(&quot;spo&quot;);'><img name='spo' src='images/nav/spo_off.gif' alt='Sponsors &amp; Partners' width='140' height='36' border='0' /></a></td>");
	}
	if(page=="rec"){
		document.writeln("<td><img name='rec' src='images/nav/rec_on.gif' alt='Reception &amp; Dinner' width='130' height='36' border='0' /></td>");
	}else{
        document.writeln("<td><a href='reception.html' onMouseOver='rollOn(&quot;rec&quot;);' onMouseOut='rollOff(&quot;rec&quot;);'><img name='rec' src='images/nav/rec_off.gif' alt='Reception &amp; Dinner' width='130' height='36' border='0' /></a></td>");
	}
	if(page=="ris"){
		document.writeln("<td><img name='ris' src='images/nav/ris_on.gif' alt='Rising Stars' width='94' height='36' border='0' /></td>");
	}else{
        document.writeln("<td><a href='risingstars.html' onMouseOver='rollOn(&quot;ris&quot;);' onMouseOut='rollOff(&quot;ris&quot;);'><img name='ris' src='images/nav/ris_off.gif' alt='Rising Stars' width='94' height='36' border='0' /></a></td>");
	}
    document.writeln("</tr>");
    document.writeln("</table>");
	document.writeln("</DIV>");
}

function writeAboDiv(page){
	document.writeln("<DIV ID='about' style='position:absolute; top:195px; left:80px; width:190px; z-index:20; display:none;'>");
	document.writeln("<table border='0' cellspacing='0' cellpadding='0' bgcolor='#cecfcf'>");
    if(page=="mil"){
		document.writeln("<tr><td onMouseOver='showMenu(&quot;about&quot;);' onMouseOut='hideMenu(&quot;about&quot;);'><img name='mil' src='images/nav/mil_on.gif' alt='About the Millstein Center' width='190' height='27' border='0' /></td></tr>");
	}else{
		document.writeln("<tr><td><a href='millstein.html' onMouseOver='showMenu(&quot;about&quot;); rollOn(&quot;mil&quot;);' onMouseOut='hideMenu(&quot;about&quot;); rollOff(&quot;mil&quot;);'><img name='mil' src='images/nav/mil_off.gif' alt='About the Millstein Center' width='190' height='27' border='0' /></a></td></tr>");
	}
	if(page=="adv"){
		document.writeln("<tr><td onMouseOver='showMenu(&quot;about&quot;);' onMouseOut='hideMenu(&quot;about&quot;);'><img name='adv' src='images/nav/adv_on.gif' alt='Advisory Board' width='190' height='22' border='0' /></td></tr>");
	}else{
		document.writeln("<tr><td><a href='advisory.html' onMouseOver='showMenu(&quot;about&quot;); rollOn(&quot;adv&quot;);' onMouseOut='hideMenu(&quot;about&quot;); rollOff(&quot;adv&quot;);'><img name='adv' src='images/nav/adv_off.gif' alt='Advisory Board' width='190' height='22' border='0' /></a></td></tr>");
	}
	if(page=="aff"){
		document.writeln("<tr><td onMouseOver='showMenu(&quot;about&quot;);' onMouseOut='hideMenu(&quot;about&quot;);'><img name='aff' src='images/nav/aff_on.gif' alt='Affiliated Faculty &amp; Fellows' width='190' height='24' border='0' /></td></tr>");
	}else{
		document.writeln("<tr><td><a href='affiliated.html' onMouseOver='showMenu(&quot;about&quot;); rollOn(&quot;aff&quot;);' onMouseOut='hideMenu(&quot;about&quot;); rollOff(&quot;aff&quot;);'><img name='aff' src='images/nav/aff_off.gif' alt='Affiliated Faculty &amp; Fellows' width='190' height='24' border='0' /></a></td></tr>");
	}
	if(page=="adm"){
		document.writeln("<tr><td onMouseOver='showMenu(&quot;about&quot;);' onMouseOut='hideMenu(&quot;about&quot;);'><img name='adm' src='images/nav/adm_on.gif' alt='Administration' width='190' height='32' border='0' /></td></tr>");
	}else{
		document.writeln("<tr><td><a href='administration.html' onMouseOver='showMenu(&quot;about&quot;); rollOn(&quot;adm&quot;);' onMouseOut='hideMenu(&quot;about&quot;); rollOff(&quot;adm&quot;);'><img name='adm' src='images/nav/adm_off.gif' alt='Administration' width='190' height='32' border='0' /></a></td></tr>");
	}
    document.writeln("</table>");
	document.writeln("</DIV>");
}

function writeProDiv(page){
	document.writeln("<DIV ID='program' style='position:absolute; top:195px; left:285px; width:180px; z-index:20; display:none;'>");
	document.writeln("<table border='0' cellspacing='0' cellpadding='0' bgcolor='#cecfcf'>");
	if(page=="ata"){
		document.writeln("<tr><td onMouseOver='showMenu(&quot;program&quot;);' onMouseOut='hideMenu(&quot;program&quot;);'><img name='ata' src='images/nav/ata_on.gif' alt='At-A-Glance' width='185' height='27' border='0' /></td></tr>");
	}else{
		document.writeln("<tr><td><a href='glance.html' onMouseOver='showMenu(&quot;program&quot;); rollOn(&quot;ata&quot;);' onMouseOut='hideMenu(&quot;program&quot;); rollOff(&quot;ata&quot;);'><img name='ata' src='images/nav/ata_off.gif' alt='At-A-Glance' width='185' height='27' border='0' /></a></td></tr>");
	}
	if(page=="ful"){
		document.writeln("<tr><td onMouseOver='showMenu(&quot;program&quot;);' onMouseOut='hideMenu(&quot;program&quot;);'><img name='ful' src='images/nav/ful_on.gif' alt='Full Program' width='185' height='22' border='0' /></td></tr>");
	}else{
		document.writeln("<tr><td><a href='full.html' onMouseOver='showMenu(&quot;program&quot;); rollOn(&quot;ful&quot;);' onMouseOut='hideMenu(&quot;program&quot;); rollOff(&quot;ful&quot;);'><img name='ful' src='images/nav/ful_off.gif' alt='Full Program' width='185' height='22' border='0' /></a></td></tr>");
	}
	if(page=="mod"){
		document.writeln("<tr><td onMouseOver='showMenu(&quot;program&quot;);' onMouseOut='hideMenu(&quot;program&quot;);'><img name='mod' src='images/nav/mod_on.gif' alt='Moderators & Discussants' width='185' height='24' border='0' /></td></tr>");
	}else{
		document.writeln("<tr><td><a href='moderators.html' onMouseOver='showMenu(&quot;program&quot;); rollOn(&quot;mod&quot;);' onMouseOut='hideMenu(&quot;program&quot;); rollOff(&quot;mod&quot;);'><img name='mod' src='images/nav/mod_off.gif' alt='Moderators & Discussants' width='185' height='24' border='0' /></a></td></tr>");
	}
	if(page=="rea"){
		document.writeln("<tr><td onMouseOver='showMenu(&quot;program&quot;);' onMouseOut='hideMenu(&quot;program&quot;);'><img name='rea' src='images/nav/rea_on.gif' alt='Reading Materials' width='185' height='32' border='0' /></td></tr>");
	}else{
		document.writeln("<tr><td><a href='reading.html' onMouseOver='showMenu(&quot;program&quot;); rollOn(&quot;rea&quot;);' onMouseOut='hideMenu(&quot;program&quot;); rollOff(&quot;rea&quot;);'><img name='rea' src='images/nav/rea_off.gif' alt='Reading Materials' width='185' height='32' border='0' /></a></td></tr>");
	}
    document.writeln("</table>");
	document.writeln("</DIV>");
}

function writeTraDiv(page){
	document.writeln("<DIV ID='travel' style='position:absolute; top:195px; left:410px; width:200px; z-index:20; display:none;'>");
	document.writeln("<table border='0' cellspacing='0' cellpadding='0' bgcolor='#cecfcf'>");
	if(page=="dir"){
		document.writeln("<tr><td onMouseOver='showMenu(&quot;travel&quot;);' onMouseOut='hideMenu(&quot;travel&quot;);'><img name='dir' src='images/nav/dir_on.gif' alt='Directions' width='200' height='27' border='0' /></td></tr>");
	}else{
		document.writeln("<tr><td><a href='travel.html#directions' onMouseOver='showMenu(&quot;travel&quot;); rollOn(&quot;dir&quot;);' onMouseOut='hideMenu(&quot;travel&quot;); rollOff(&quot;dir&quot;);'><img name='dir' src='images/nav/dir_off.gif' alt='Directions' width='200' height='27' border='0' /></a></td></tr>");
	}
	if(page=="par"){
		document.writeln("<tr><td onMouseOver='showMenu(&quot;travel&quot;);' onMouseOut='hideMenu(&quot;travel&quot;);'><img name='par' src='images/nav/par_on.gif' alt='Parking' width='200' height='22' border='0' /></td></tr>");
	}else{
		document.writeln("<tr><td><a href='travel.html#parking' onMouseOver='showMenu(&quot;travel&quot;); rollOn(&quot;par&quot;);' onMouseOut='hideMenu(&quot;travel&quot;); rollOff(&quot;par&quot;);'><img name='par' src='images/nav/par_off.gif' alt='Parking' width='200' height='22' border='0' /></a></td></tr>");
	}
	if(page=="pla"){
		document.writeln("<tr><td onMouseOver='showMenu(&quot;travel&quot;);' onMouseOut='hideMenu(&quot;travel&quot;);'><img name='pla' src='images/nav/pla_on.gif' alt='Directions by Train and by Plane' width='200' height='31' border='0' /></td></tr>");
	}else{
		document.writeln("<tr><td><a href='travel.html#trainandplane' onMouseOver='showMenu(&quot;travel&quot;); rollOn(&quot;pla&quot;);' onMouseOut='hideMenu(&quot;travel&quot;); rollOff(&quot;pla&quot;);'><img name='pla' src='images/nav/pla_off.gif' alt='Directions by Train and by Plane' width='200' height='31' border='0' /></a></td></tr>");
	}
    document.writeln("</table>");
	document.writeln("</DIV>");
}