function eval_location()
{
setNav('location',mkeys,'navbar1','pn','gif','ind','gif');
if (typeof(skeys) != 'undefined'&& skeys.length>1) {
	setNav('location',skeys,'navbar2','','gif','','');
}
if (typeof(tkeys) != 'undefined'&& tkeys.length>1) {
	setNav('location',tkeys,'navbar3','','gif','','');
}
return;
}
// FUNCTION nameTarget
// split pairs into match part and destination part
//
function nameTarget(keyword) {
	
	if (keyword.indexOf('|')>-1) {
		var keyArray = keyword.split('|');
	} else {
		var keyArray = Array(keyword,keyword);
	}
return keyArray;
}
//
// FUNCTION setNav
// generic SmartNav with options
//
// arguments:
// kMode	-> validate against location or title
// kArray	-> array of keywords
// nBar		-> navbar name
// prefix	-> images/object prefix
// iType	-> image type gif or jpg or png
// xInd		-> extra indicator image prefix
// xiType	-> extra indicator image type
//
function setNav(kMode,kArray,nBar,prefix,iType,xInd,xiType)
{
	// ascertain the document property
	if (kMode == 'location') {
		var here=new String(document.location);
	} else {
		var here=new String(document.title.toLowerCase());
	}

	// work through the keywords and test against the here string
	for (i=0;i<kArray.length;i++){
		
		// split function -> if pipe present
		var trigger = new Array();
		trigger = nameTarget(kArray[i]);

		if (here.indexOf(trigger[0])>-1){

			// get curent image source property
			var imgName = new String(prefix+trigger[1]);
			path=new String(document.images[imgName].src);
			// get the path to the graphics folder
			path = path.substring(0,path.lastIndexOf("/")+1);

			// executre standard MM behavior
			MM_nbGroup('down',nBar,imgName,path+prefix+(prefix.length>0?'-':'')+trigger[1]+'-d.'+iType,1);

			// check for additional indicator
			if (xInd.length > 0) {
				document.images[xInd+trigger[1]].src = path+xInd+'-'+trigger[1]+'-d.'+xiType;
			}
			// end execution after first match
			return true;
		}
	}
}
