/////////////////////////////////////////////////////////////////////////////
// Function : NavNode (constructor)
// Comments :
/////////////////////////////////////////////////////////////////////////////
function NavNode(id, label, href, parent)
{
	this.m_parent = null;
	this.m_level = 0;

	if (parent)
	{
		this.m_parent = parent;
		this.m_level = parent.m_level+1;
	}

	this.m_id = id;

	// assume that m_label will most often be used directly as HTML
	this.m_rawlabel = label;

	label = label.replace(/&/g, '&amp;');
	label = label.replace(/</g, '&lt;');
	label = label.replace(/>/g, '&gt;');
	label = label.replace(/"/g, '&quot;');

	this.m_label = label;

	this.m_href = href;
	this.m_subNodes = new Array();

	var argValues = NavNode.arguments;
	var argCount = NavNode.arguments.length;

	for (i = 4 ; i < argCount ; i++)
	{
		var attrName = argValues[i].split("==")[0];
		var attrValue = argValues[i].split("==")[1];

		eval("this.cp_" + attrName + " = '" + attrValue + "';");
	}

	NavNode.prototype.addNode = addNode;
	NavNode.prototype.isSelected = isSelected;
}

/////////////////////////////////////////////////////////////////////////////
// Function : addNode
// Comments :
/////////////////////////////////////////////////////////////////////////////
function addNode(id, label, href)
{
	var newIndex = this.m_subNodes.length;
	var newNode = new NavNode(id, label, href, this);

	var argValues = addNode.arguments;
	var argCount = addNode.arguments.length;

	for (i = 3 ; i < argCount ; i++)
	{
		var attrName = argValues[i].split("==")[0];
		var attrValue = argValues[i].split("==")[1];

		eval("newNode.cp_" + attrName + " = '" + attrValue + "';");
	}

	this.m_subNodes[newIndex] = newNode;
	return newNode;
}

/////////////////////////////////////////////////////////////////////////////
// Function : isSelected
// Comments :
/////////////////////////////////////////////////////////////////////////////
function isSelected()
{
    var pos = window.location.href.lastIndexOf("/");
    var docname = window.location.href.substring(pos+1, window.location.href.length);

    pos = this.m_href.lastIndexOf("/");
    var myname = this.m_href.substring(pos+1, this.m_href.length);

    if (docname == myname)
		return true;
	else
		return false;
}

/////////////////////////////////////////////////////////////////////////////
// Function : customSectionPropertyExists
// Comments :
/////////////////////////////////////////////////////////////////////////////
function customSectionPropertyExists(csp)
{
	return (typeof csp != _U && csp != null);
}

/////////////////////////////////////////////////////////////////////////////
// Function : getCustomSectionProperty
// Comments :
/////////////////////////////////////////////////////////////////////////////
function getCustomSectionProperty(csp)
{
	if (customSectionPropertyExists(csp))
	{
		return csp;
	}
	else
	{
		return "";
	}
}

/////////////////////////////////////////////////////////////////////////////

var g_navNode_Root = new NavNode('1273','Home',ssUrlPrefix + 'index.htm',null,'AdditionalCSS==groups/globaltemplates/documents/web_asset/emeacss.css,groups/globaltemplates/documents/web_asset/TMC_CSS.css','Language==en','RedirectURL==1285','StartDivID==A','UnicaID==blk\x3auk');
g_navNode_0=g_navNode_Root.addNode('1285','Trustee Master Class',ssUrlPrefix + 'institutional/index.htm','MicrositeName==Trustee Master Class');
g_navNode_0_0=g_navNode_0.addNode('1274','Events',ssUrlPrefix + 'institutional/events/index.htm','SecurePage==FALSE','ShowRelResources==TRUE');
g_navNode_0_0_0=g_navNode_0_0.addNode('1306','Current',ssUrlPrefix + 'institutional/events/current/index.htm','ShowRelResources==TRUE');
g_navNode_0_0_1=g_navNode_0_0.addNode('1307','Previous',ssUrlPrefix + 'institutional/events/Previous/index.htm','HideTabs==TRUE','SecurePage==TRUE','ShowNavInTabs==FALSE','ShowRelResources==TRUE');
g_navNode_0_0_1_0=g_navNode_0_0_1.addNode('7388','Previous Events Details',ssUrlPrefix + 'institutional/events/Previous/PreviousEventsDetails/index.htm','HideTabs==TRUE','ShowRelResources==TRUE');
g_navNode_0_1=g_navNode_0.addNode('1275','Jargon Buster',ssUrlPrefix + 'institutional/jargon-buster/index.htm','ShowRelResources==TRUE');
g_navNode_0_1_0=g_navNode_0_1.addNode('1298','Search',ssUrlPrefix + 'institutional/jargon-buster/Search/index.htm','ShowRelResources==TRUE');
g_navNode_0_3=g_navNode_0.addNode('1278','Help',ssUrlPrefix + 'institutional/Help/index.htm','ShowRelResources==TRUE');
g_navNode_0_4=g_navNode_0.addNode('1279','Contact Us',ssUrlPrefix + 'institutional/contact-us/index.htm','ShowRelResources==TRUE');
g_navNode_0_5=g_navNode_0.addNode('1289','Login',ssUrlPrefix + 'institutional/Login/index.htm','DoNotShowInBreadcrumb==FALSE','DoNotShowInNavigation==TRUE','ShowRelResources==TRUE');
g_navNode_0_5_0=g_navNode_0_5.addNode('1296','LoginConfirmation',ssUrlPrefix + 'institutional/Login/LoginConfirmation/index.htm','DoNotShowInBreadcrumb==TRUE','DoNotShowInNavigation==TRUE','RedirectURL==1285');
g_navNode_0_6=g_navNode_0.addNode('1280','Register',ssUrlPrefix + 'institutional/register/index.htm','DoNotShowInNavigation==TRUE','ShowRelResources==TRUE');
g_navNode_0_7=g_navNode_0.addNode('1281','Learning Zone',ssUrlPrefix + 'institutional/learning-zone/index.htm','DoNotShowInNavigation==TRUE','RedirectURL==1290');
g_navNode_0_7_0=g_navNode_0_7.addNode('1302','Material',ssUrlPrefix + 'institutional/learning-zone/material/index.htm','DoNotShowInNavigation==TRUE','RedirectURL==1290');
g_navNode_0_7_0_1=g_navNode_0_7_0.addNode('1290','Quick Reference Guides',ssUrlPrefix + 'institutional/learning-zone/material/quick-reference-guide/index.htm','SecurePage==TRUE','ShowNavInTabs==TRUE','ShowRelResources==TRUE');
g_navNode_0_7_0_2=g_navNode_0_7_0.addNode('1292','Webcasts',ssUrlPrefix + 'institutional/learning-zone/material/webcasts/index.htm','SecurePage==TRUE','ShowRelResources==TRUE');
g_navNode_0_7_0_3=g_navNode_0_7_0.addNode('1291','Thought Pieces',ssUrlPrefix + 'institutional/learning-zone/material/thought-pieces/index.htm','Query==dDocType \x3cmatches\x3e \x60Literature\x60 \x3cAND\x3e xWebsites \x3ccontains\x3e \x60uk\x60 \x3cAND\x3e \x28\x28xSubType \x3cmatches\x3e \x6017\x60 \x3cAND\x3e xAppGenericText1 \x3cmatches\x3e \x60currents\x60\x29 \x3cOR\x3e \x28xSubType \x3cmatches\x3e \x6067\x60\x29 \x3cOR\x3e \x28xSubType \x3cmatches\x3e \x60112\x60\x29\x29 \x3cAND\x3e xTargetAudienceOrVenue \x3ccontains\x3e \x607\x60','SecurePage==TRUE','ShowRelResources==TRUE');
g_navNode_0_9=g_navNode_0.addNode('1304','privacy policy',ssUrlPrefix + 'institutional/privacypolicy/index.htm','DoNotShowInNavigation==TRUE');

