function eval_location() {

// ascertain the document location and image path
var here=new String(document.location),path=new String(document.images[0].src);

// get the path to the graphics folder
path = path.substring(0,path.lastIndexOf("/")+1);

for (i=0;i<mkeys.length;i++){
// work through the keywords and test one is in the location

// set the image to the down state
if (here.indexOf(mkeys[i])>-1) {
MM_nbGroup('down','navbar1','l2nav'+mkeys[i],path+'l2-nav-'+mkeys[i]+'-d.gif',1);
break; }
}


if (mkeys[i] == "about") {
var str_title = document.title.toLowerCase();
//alert(str_title);
var skey = new String;
if (str_title.indexOf("introduction") > -1) skey = "intro";
if (str_title.indexOf("contact") > -1) skey = "con"; 
//alert(skey);
if (skey != "") MM_nbGroup('down','navbar2','l3snabout'+skey,path+"l3-sn-about-"+skey+'-d.gif',1);
}

if (mkeys[i] == "programs") {
var str_title = document.title.toLowerCase();
//alert(str_title);
var skey = new String;
if (str_title.indexOf("ma") > -1) skey = "ma";
if (str_title.indexOf("phd") > -1) skey = "phd";
if (str_title.indexOf("thesis") > -1) skey = "the"; 
//alert(skey);
if (skey != "") MM_nbGroup('down','navbar2','l3snprog'+skey,path+"l3-sn-prog-"+skey+'-d.gif',1);
}

if (mkeys[i] == "faculty") {
var str_title = document.title.toLowerCase();
//alert(str_title);
var skey = new String;
if (str_title.indexOf("faculty") > -1) skey = "dir";
if (str_title.indexOf("administration") > -1) skey = "admin";
if (str_title.indexOf("advisory") > -1) skey = "adv"; 
//alert(skey);
if (skey != "") MM_nbGroup('down','navbar2','l3snfac'+skey,path+"l3-sn-fac-"+skey+'-d.gif',1);
}

if (mkeys[i] == "news") {
var str_title = document.title.toLowerCase();
//alert(str_title);
var skey = new String;
if (str_title.indexOf("events") > -1) skey = "events";
if (str_title.indexOf("conferences") > -1) skey = "conf";
if (str_title.indexOf("archives") > -1) skey = "arc"; 
//alert(skey);
if (skey != "") MM_nbGroup('down','navbar2','l3snnews'+skey,path+"l3-sn-news-"+skey+'-d.gif',1);
}

if (mkeys[i] == "resources") {
var str_title = document.title.toLowerCase();
//alert(str_title);
var skey = new String;
if (str_title.indexOf("related") > -1) skey = "related"; 
if (str_title.indexOf("links") > -1) skey = "links";
//alert(skey);
if (skey != "") MM_nbGroup('down','navbar2','l3snres'+skey,path+"l3-sn-res-"+skey+'-d.gif',1);
}


return;
}

