// Looks at path to document and determines which subsection this
// page falls in based on the directory in which it resides or the
// name of the page. Then updates the subsection navigation using
// appropriate information.

if (self != top){
	thisHREF = document.location.href;
	thisHREF = thisHREF.substring(top.baseURL.length,thisHREF.length);
	thisHREF = thisHREF.replace(/html\//,"");
	thisHREF = thisHREF.replace(/.html/,"");
	thisHREF = thisHREF.replace(/\//g,":");
	parameters = new top.parseString(thisHREF,':')
	
	if (parameters[0] == "expeditions"){
		if (parameters[2].indexOf("dispatch_") != -1){
			top.updateSectionNav('dispatches')	
		}else{
			top.updateSectionNav(parameters[2])
		}
	}else{
		top.updateSectionNav(parameters[1])
	}
}
