function eval_location() {

// ascertain the document location and image path
var here=new String(document.location),path=new String(document.images['navbottomwc'+mkeys[0]].src);
	if (typeof (document.images['l2topnav'+mkeys[0]])!='undefined') 
		{
		var toppath=new String(document.images['l2topnav'+mkeys[0]].src);
		toppath = toppath.substring(0,toppath.lastIndexOf("/")+1);
		}
// get the path to the graphics folder
path = path.substring(0,path.lastIndexOf("/")+1);

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

// set the image to the down state
if (here.indexOf(mkeys[i])>-1) {
MM_nbGroup('down','navbar1','navbottomwc'+mkeys[i],path+'nav-bottom-wc-'+mkeys[i]+'-d.jpg',1);
	if (typeof (document.images['l2topnav'+mkeys[0]])!='undefined') 
		{
		MM_nbGroup('down','navbar2','l2topnav'+mkeys[i],toppath+'l2-topnav-'+mkeys[i]+'-d.jpg',1);
		}
break; }
}
}