// JavaScript Document
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);
// alert(path);
// work through the keywords and test one is in the location
	for (i=0;i<mkeys.length;i++){
//alert(mkeys);
// set the image to the down state
		if (here.indexOf(mkeys[i])>-1) {
			MM_nbGroup('down','navbar1',mkeys[i],path+'l2-'+mkeys[i]+'-d.gif',1);
			break; 
		}
	}

// if it is the about page with the subnav 
if (mkeys[i] == "culinary") {
	var str_title = document.URL.toLowerCase();
	//var str_title = document.getElementById('heading').innerHTML.toLowerCase();
	//var str_title = document.title.toLowerCase();
	//alert(str_title);
	var skey = new String;
	if (str_title.indexOf("faculty") > -1) skey = "faculty";
	if (str_title.indexOf("jobs") > -1) skey = "jobs";
	//alert(path);
	if (skey != "") MM_nbGroup('down','navbar2',skey,path+"subnav-culinary-"+skey+'-d.gif',1);

}	

if (mkeys[i] == "wine_programs") {
	var str_title = document.URL.toLowerCase();
	//var str_title = document.getElementById('heading').innerHTML.toLowerCase();
	//var str_title = document.title.toLowerCase();
	//alert(str_title);
	var skey = new String;
	if (str_title.indexOf("faculty") > -1) skey = "faculty";
	if (str_title.indexOf("committee") > -1) skey = "committee";
	//alert(path);
	if (skey != "") MM_nbGroup('down','navbar4',skey,path+"subnav-wine-"+skey+'-d.gif',1);

}

if (mkeys[i] == "seminars") {
	var str_title = document.URL.toLowerCase();
	//var str_title = document.getElementById('heading').innerHTML.toLowerCase();
	//var str_title = document.title.toLowerCase();
	//alert(str_title);
	var skey = new String;
	if (str_title.indexOf("arts") > -1) skey = "arts";
	if (str_title.indexOf("certificate_programs") > -1) skey = "certificate_programs";
	if (str_title.indexOf("hands_on") > -1) skey = "hands_on";
	if (str_title.indexOf("health_series") > -1) skey = "health_series";
	if (str_title.indexOf("special_events") > -1) skey = "special_events";
	if (str_title.indexOf("tastings_demos") > -1) skey = "tastings_demos";
	//alert(path);
	if (skey != "") MM_nbGroup('down','navbar4',skey,path+"subnav-"+skey+'-d.gif',1);

}	
	return;
}
