// This function has to be called in the onload statement of the body tag
// The file generic.js has to be associated via a <script language="JavaScript" src="generic.js"></script>
// variable array mkeys (mainnav)
// mkeys works via the location property (subfolder)
// define the array in the Macromedia JavaScript code:
// mkeys = new Array('keyword1',...,'keyword#');
// slices should be named l2-keyword
// 6/14/2001 RJ

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);

// 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','l2'+mkeys[i],path+'l2-'+mkeys[i]+'-d.gif',1);
break; }
}

return;
}
