/////////////////////////////////////////////////////////////////////////////
// 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('1','Home',ssUrlPrefix + 'index.htm',null,'contactPaneColour==b2df54','featuredPaneIsWide==TRUE','paneFeatureStyle==width\x3a385px\x3bfloat\x3aleft\x3bpadding-right\x3a16px\x3b','paneGenericColour==C4E67D','paneGenericStyle==margin-right\x3a10px\x3b','showContactPane==TRUE','showFeaturesPane==TRUE','showGenericPane==TRUE');
g_navNode_1=g_navNode_Root.addNode('81','Services \x26 Solutions',ssUrlPrefix + 'ServicesSolutions/index.htm','hideContactPane==FALSE','imageWidth==100px','maxImageWidth==50px','showContactPane==TRUE');
g_navNode_1_0=g_navNode_1.addNode('4','Services',ssUrlPrefix + 'ServicesSolutions/Services/index.htm','maxImageWidth==50px','showContactPane==TRUE','showFeaturesPane==FALSE');
g_navNode_1_0_0=g_navNode_1_0.addNode('34','Consulting',ssUrlPrefix + 'ServicesSolutions/Services/Consulting/index.htm','hideContactPane==FALSE','showContactPane==TRUE');
g_navNode_1_0_1=g_navNode_1_0.addNode('37','System Integration',ssUrlPrefix + 'ServicesSolutions/Services/SystemIntegration/index.htm','hideContactPane==FALSE','showContactPane==TRUE');
g_navNode_1_0_2=g_navNode_1_0.addNode('85','Content Migration',ssUrlPrefix + 'ServicesSolutions/Services/ContentMigration/index.htm');
g_navNode_1_0_3=g_navNode_1_0.addNode('84','System Migration',ssUrlPrefix + 'ServicesSolutions/Services/SystemMigration/index.htm');
g_navNode_1_0_4=g_navNode_1_0.addNode('38','Training',ssUrlPrefix + 'ServicesSolutions/Services/Training/index.htm','hideContactPane==FALSE','showContactPane==TRUE');
g_navNode_1_0_5=g_navNode_1_0.addNode('36','Support Centre',ssUrlPrefix + 'ServicesSolutions/Services/Support/index.htm','hideContactPane==FALSE','showContactPane==TRUE');
g_navNode_1_1=g_navNode_1.addNode('3','Solutions',ssUrlPrefix + 'ServicesSolutions/Solutions/index.htm','maxImageWidth==50px','prodHeaderBgColor==\x2385A366','prodHeaderNavBgColor==\x2385A366','prodHeaderTitleBgColor==\x23336600','showContactPane==TRUE','showFeaturesPane==FALSE','viewDemoLink==FALSE');
g_navNode_1_1_0=g_navNode_1_1.addNode('25','Atlas',ssUrlPrefix + 'ServicesSolutions/Solutions/Atlas/index.htm','hideContactPane==TRUE','prodHeaderNavBgColor==BED8BF','prodHeaderTitleBgColor==006600','secondaryUrlVariableField==region4','showPortfolio2a==FALSE','showPortfolio2b==TRUE','viewDemoLink==FALSE');
g_navNode_1_1_0_0=g_navNode_1_1_0.addNode('51','Features',ssUrlPrefix + 'ServicesSolutions/Solutions/Atlas/Features/index.htm','hideContactPane==TRUE','hideOnSitemap==TRUE','prodHeaderNavBgColor==BED8BF','prodHeaderTitleBgColor==006600');
g_navNode_1_1_1=g_navNode_1_1.addNode('26','Calendar',ssUrlPrefix + 'ServicesSolutions/Solutions/Calendar/index.htm','hideContactPane==TRUE','prodHeaderTitleBgColor==7caf62');
g_navNode_1_1_1_0=g_navNode_1_1_1.addNode('53','Features',ssUrlPrefix + 'ServicesSolutions/Solutions/Calendar/Features/index.htm','hideContactPane==TRUE','hideOnSitemap==TRUE','prodHeaderTitleBgColor==7caf62');
g_navNode_1_1_2=g_navNode_1_1.addNode('27','Collaborate',ssUrlPrefix + 'ServicesSolutions/Solutions/Collaborate/index.htm','hideContactPane==TRUE','prodHeaderTitleBgColor==a89078');
g_navNode_1_1_2_0=g_navNode_1_1_2.addNode('55','Features',ssUrlPrefix + 'ServicesSolutions/Solutions/Collaborate/Features/index.htm','hideContactPane==TRUE','hideOnSitemap==TRUE','prodHeaderTitleBgColor==a89078','showPortfolio2a==TRUE');
g_navNode_1_1_4=g_navNode_1_1.addNode('29','Hera',ssUrlPrefix + 'ServicesSolutions/Solutions/Hera/index.htm','hideContactPane==TRUE','prodHeaderNavBgColor==1a9acd','prodHeaderTitleBgColor==1a9acd');
g_navNode_1_1_4_0=g_navNode_1_1_4.addNode('57','Features',ssUrlPrefix + 'ServicesSolutions/Solutions/Hera/Features/index.htm','hideContactPane==TRUE','hideOnSitemap==TRUE','prodHeaderNavBgColor==8DCDE6','prodHeaderTitleBgColor==1a9acd','showPortfolio2a==TRUE','showPortfolio2b==FALSE');
g_navNode_1_1_5=g_navNode_1_1.addNode('30','Image Bank',ssUrlPrefix + 'ServicesSolutions/Solutions/ImageBank/index.htm','hideContactPane==TRUE','prodHeaderTitleBgColor==9c0000');
g_navNode_1_1_5_0=g_navNode_1_1_5.addNode('58','Features',ssUrlPrefix + 'ServicesSolutions/Solutions/ImageBank/Features/index.htm','hideContactPane==TRUE','hideOnSitemap==TRUE','prodHeaderTitleBgColor==9c0000','showPortfolio2a==TRUE');
g_navNode_1_1_7=g_navNode_1_1.addNode('32','Iris',ssUrlPrefix + 'ServicesSolutions/Solutions/Iris/index.htm','hideContactPane==TRUE','hideOnSitemap==FALSE','prodHeaderNavBgColor==F9C981','prodHeaderTitleBgColor==f29303');
g_navNode_1_1_7_0=g_navNode_1_1_7.addNode('60','Features',ssUrlPrefix + 'ServicesSolutions/Solutions/Iris/Features/index.htm','hideContactPane==TRUE','hideOnSitemap==TRUE','prodHeaderNavBgColor==F9C981','prodHeaderTitleBgColor==f29303','showPortfolio2a==TRUE');
g_navNode_1_1_8=g_navNode_1_1.addNode('33','Staff Directory',ssUrlPrefix + 'ServicesSolutions/Solutions/StaffDirectory/index.htm','hideContactPane==TRUE','prodHeaderNavBgColor==B9BDDF','prodHeaderTitleBgColor==7285ca');
g_navNode_1_1_8_0=g_navNode_1_1_8.addNode('80','Features',ssUrlPrefix + 'ServicesSolutions/Solutions/StaffDirectory/Features/index.htm','hideContactPane==TRUE','hideOnSitemap==TRUE','prodHeaderNavBgColor==B9BDDF','prodHeaderTitleBgColor==7285ca','showPortfolio2a==TRUE','showPortfolio2b==FALSE');
g_navNode_2=g_navNode_Root.addNode('10','Industries',ssUrlPrefix + 'Industries/index.htm','contactPaneTitle==HI THERE','featuredPaneIsWide==FALSE','maxImageWidth==50px','showContactPane==TRUE','showFeaturesPane==FALSE','showLeftNav==TRUE','showRelatedPane==FALSE');
g_navNode_2_0=g_navNode_2.addNode('12','Financial Services',ssUrlPrefix + 'Industries/FinancialServices/index.htm','hideContactPane==FALSE','showContactPane==TRUE');
g_navNode_2_1=g_navNode_2.addNode('88','Healthcare',ssUrlPrefix + 'Industries/Healthcare/index.htm');
g_navNode_2_1_0=g_navNode_2_1.addNode('89','Clinical Records',ssUrlPrefix + 'Industries/Healthcare/ClinicalRecords/index.htm','showFeaturesPane==TRUE','showRelatedPane==TRUE');
g_navNode_2_2=g_navNode_2.addNode('11','Oil \x26 Gas',ssUrlPrefix + 'Industries/OilGas/index.htm','hideContactPane==FALSE','maxImageWidth==85px','showContactPane==TRUE','showFeaturesPane==FALSE','showRelatedPane==TRUE');
g_navNode_2_3=g_navNode_2.addNode('14','Public Sector',ssUrlPrefix + 'Industries/PublicSector/index.htm','hideContactPane==FALSE','maxImageWidth==60px','showContactPane==TRUE');
g_navNode_2_4=g_navNode_2.addNode('13','Retail',ssUrlPrefix + 'Industries/Retail/index.htm','maxImageWidth==150px','showContactPane==TRUE','showFeaturesPane==FALSE','showGenericPane==FALSE','showRelatedPane==TRUE');
g_navNode_2_5=g_navNode_2.addNode('15','Transport',ssUrlPrefix + 'Industries/Transport/index.htm','maxImageWidth==100px','showContactPane==TRUE','showPortfolio2a==FALSE','showPortfolio2b==FALSE');
g_navNode_3=g_navNode_Root.addNode('5','Clients',ssUrlPrefix + 'Clients/index.htm','alignToTable==TRUE','maxImageWidth==200px','showContactPane==TRUE','showRelatedPane==TRUE');
g_navNode_4=g_navNode_Root.addNode('6','Company',ssUrlPrefix + 'Company/index.htm','hideBreadcrumb==FALSE','showContactPane==TRUE');
g_navNode_4_1=g_navNode_4.addNode('40','Management',ssUrlPrefix + 'Company/Management/index.htm','hideContactPane==FALSE','maxImageWidth==110px','showContactPane==TRUE','showPortfolio2a==TRUE');
g_navNode_4_3=g_navNode_4.addNode('41','Partners',ssUrlPrefix + 'Company/Partners/index.htm','showContactPane==TRUE','showFeaturesPane==FALSE');
g_navNode_4_4=g_navNode_4.addNode('42','Careers',ssUrlPrefix + 'Company/Careers/index.htm','showContactPane==TRUE');
g_navNode_4_5=g_navNode_4.addNode('43','Contact',ssUrlPrefix + 'Company/Contact/index.htm','displayContactForm==FALSE','hideContactPane==TRUE','showFeaturesPane==FALSE','showRelatedPane==FALSE','test==TRUE');
g_navNode_5=g_navNode_Root.addNode('7','Sitemap',ssUrlPrefix + 'Sitemap/index.htm','hideContactPane==TRUE');
