/////////////////////////////////////////////////////////////////////////////
// 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 eqPos = argValues[i].indexOf("==");
		var attrName = argValues[i].substring(0,eqPos);
		var attrValue = argValues[i].substring(eqPos+2);

		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 eqPos = argValues[i].indexOf("==");
		var attrName = argValues[i].substring(0,eqPos);
		var attrValue = argValues[i].substring(eqPos+2);

		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('3380','Home',ssUrlPrefix + 'index.htm',null,'WebsiteType==Internet microsite','customPageTitle==Charing Cross Hospital');
g_navNode_0=g_navNode_Root.addNode('3381','Getting here',ssUrlPrefix + 'location/index.htm','customPageTitle==Charing Cross Hospital \x7c Getting here');
g_navNode_1=g_navNode_Root.addNode('4286','Contact us',ssUrlPrefix + 'contact/index.htm','customPageTitle== Charing Cross Hospital  \x7c Contact us ');
g_navNode_2=g_navNode_Root.addNode('3886','Introduction video',ssUrlPrefix + 'video/index.htm','customPageTitle== Charing Cross Hospital  \x7c  Introduction video');
g_navNode_3=g_navNode_Root.addNode('3468','Our services',ssUrlPrefix + 'OurServices/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services');
g_navNode_3_0=g_navNode_3.addNode('3469','A\x26E',ssUrlPrefix + 'OurServices/accidentandemergency/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c A\x26E  ');
g_navNode_3_1=g_navNode_3.addNode('3785','Anaesthetics',ssUrlPrefix + 'OurServices/anaesthetics/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Anaesthetics ');
g_navNode_3_2=g_navNode_3.addNode('7927','Audiology and hearing services',ssUrlPrefix + 'OurServices/audiology/index.htm');
g_navNode_3_3=g_navNode_3.addNode('3470','Bariatric services and surgery',ssUrlPrefix + 'OurServices/bariatricservices/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Bariatric services and surgery ');
g_navNode_3_4=g_navNode_3.addNode('402','Blood test',ssUrlPrefix + 'OurServices/bloodtest/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Blood test  ');
g_navNode_3_5=g_navNode_3.addNode('1678','Bowel cancer screening',ssUrlPrefix + 'OurServices/bowelcancerscreening/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Bowel cancer screening ');
g_navNode_3_6=g_navNode_3.addNode('4430','Breast care and surgery services',ssUrlPrefix + 'OurServices/breastcareandsurgeryservices/index.htm','customPageTitle==Charing Cross Hospital  \x7c Our services \x7c Breast care and surgery services ');
g_navNode_3_7=g_navNode_3.addNode('3471','Breast screening services ',ssUrlPrefix + 'OurServices/breastscreeningservices/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Breast screening services ');
g_navNode_3_8=g_navNode_3.addNode('3472','Cancer services',ssUrlPrefix + 'OurServices/cancerservices/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Cancer services ');
g_navNode_3_9=g_navNode_3.addNode('3473','Cardiology',ssUrlPrefix + 'OurServices/cardiology/index.htm','customPageTitle== Charing Cross Hospital \x7c Our services \x7c Cardiology');
g_navNode_3_10=g_navNode_3.addNode('3474','Chest medicine',ssUrlPrefix + 'OurServices/chestmedicine/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Chest medicine ');
g_navNode_3_11=g_navNode_3.addNode('3834','Clinical haematology',ssUrlPrefix + 'OurServices/clinicalhaematology/index.htm','customPageTitle==Charing Cross Hospital  \x7c Our services \x7c Clinical haematology ');
g_navNode_3_12=g_navNode_3.addNode('3835','Colorectal surgery',ssUrlPrefix + 'OurServices/colorectalsurgery/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Colorectal surgery ');
g_navNode_3_13=g_navNode_3.addNode('3475','Critical care',ssUrlPrefix + 'OurServices/criticalcare/index.htm','customPageTitle==Charing Cross Hospital  \x7c Our services \x7c Critical care');
g_navNode_3_14=g_navNode_3.addNode('3476','Dermatology',ssUrlPrefix + 'OurServices/dermatology/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Dermatology ');
g_navNode_3_15=g_navNode_3.addNode('3477','Elderly medicine',ssUrlPrefix + 'OurServices/elderlycare/index.htm','customPageTitle==Elderly medicine \x7c Our services \x7c Charing Cross Hospital');
g_navNode_3_16=g_navNode_3.addNode('3478','Endocrinology/diabetic medicine',ssUrlPrefix + 'OurServices/endocrinology/index.htm','customPageTitle== Charing Cross Hospital \x7c Our services \x7c Endocrinology/diabetic medicine ');
g_navNode_3_17=g_navNode_3.addNode('3479','ENT/audiology',ssUrlPrefix + 'OurServices/entaudiology/index.htm','Synonyms==head and neck','customPageTitle==Charing Cross Hospital \x7c Our services \x7c ENT/audiology');
g_navNode_3_18=g_navNode_3.addNode('3480','Gastroenterology',ssUrlPrefix + 'OurServices/gastroenterology/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Gastroenterology  ');
g_navNode_3_19=g_navNode_3.addNode('3481','Gender surgery',ssUrlPrefix + 'OurServices/gendersurgery/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Gender surgery');
g_navNode_3_20=g_navNode_3.addNode('3482','General surgery',ssUrlPrefix + 'OurServices/generalsurgery/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c General surgery');
g_navNode_3_21=g_navNode_3.addNode('7366','GP practice',ssUrlPrefix + 'OurServices/GP-practice/index.htm');
g_navNode_3_23=g_navNode_3.addNode('3484','Imaging',ssUrlPrefix + 'OurServices/imaging/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Imaging ');
g_navNode_3_24=g_navNode_3.addNode('3485','Infectious diseases',ssUrlPrefix + 'OurServices/infectiousdiseases/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Infectious diseases');
g_navNode_3_25=g_navNode_3.addNode('6620','Liaison psychiatry',ssUrlPrefix + 'OurServices/liaison-psychiatry/index.htm','customPageTitle== Charing Cross Hospital \x7c Our services \x7c Liason psychiatry');
g_navNode_3_26=g_navNode_3.addNode('3486','Nephrology',ssUrlPrefix + 'OurServices/nephrology/index.htm','customPageTitle== Charing Cross Hospital \x7c Our services \x7c Nephrology ');
g_navNode_3_27=g_navNode_3.addNode('3487','Neurology',ssUrlPrefix + 'OurServices/neurology/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Neurology');
g_navNode_3_28=g_navNode_3.addNode('3488','Neurosurgery',ssUrlPrefix + 'OurServices/neurosurgery/index.htm','customPageTitle== Charing Cross Hospital \x7c Our services \x7c Neurosurgery');
g_navNode_3_29=g_navNode_3.addNode('3767','Nutrition and dietetics',ssUrlPrefix + 'OurServices/nutritionanddietetics/index.htm','customPageTitle== Charing Cross Hospital \x7c Our services \x7c  Nutrition and dietetics');
g_navNode_3_30=g_navNode_3.addNode('3768','Occupational therapy',ssUrlPrefix + 'OurServices/occupationaltherapy/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Occupational therapy ');
g_navNode_3_31=g_navNode_3.addNode('3489','Ophthalmology',ssUrlPrefix + 'OurServices/ophthalmology/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Ophthalmology ');
g_navNode_3_32=g_navNode_3.addNode('3490','Oral and maxillofacial surgery',ssUrlPrefix + 'OurServices/oralandmaxillofacialsurgery/index.htm','customPageTitle== Charing Cross Hospital \x7c Our services \x7c Oral and maxillofacial surgery');
g_navNode_3_33=g_navNode_3.addNode('3491','Orthotics',ssUrlPrefix + 'OurServices/orthotics/index.htm','customPageTitle==Orthotics Charing Cross Hospital');
g_navNode_3_34=g_navNode_3.addNode('3738','Outpatients',ssUrlPrefix + 'OurServices/outpatients/index.htm','customPageTitle==Charing Cross Hospital  \x7c Our services \x7c Outpatients ');
g_navNode_3_35=g_navNode_3.addNode('3492','Paediatrics',ssUrlPrefix + 'OurServices/paediatrics/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Paediatrics');
g_navNode_3_35_0=g_navNode_3_35.addNode('777','Paediatric audiology',ssUrlPrefix + 'OurServices/paediatrics/paediatricaudiology/index.htm');
g_navNode_3_36=g_navNode_3.addNode('3769','Physiotherapy',ssUrlPrefix + 'OurServices/physiotherapy/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Physiotherapy ');
g_navNode_3_37=g_navNode_3.addNode('3493','Pain management service',ssUrlPrefix + 'OurServices/painmanagementservice/index.htm','customPageTitle==Charing Cross Hospital  \x7c Our services \x7c Pain management service');
g_navNode_3_38=g_navNode_3.addNode('4033','Palliative care service',ssUrlPrefix + 'OurServices/palliativecareservice/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Palliative care service ');
g_navNode_3_39=g_navNode_3.addNode('3745','Pathology',ssUrlPrefix + 'OurServices/pathology/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Pathology ');
g_navNode_3_40=g_navNode_3.addNode('3494','Pharmacy',ssUrlPrefix + 'OurServices/pharmacy/index.htm','customPageTitle== Charing Cross Hospital \x7c Our services \x7c Pharmacy');
g_navNode_3_41=g_navNode_3.addNode('3495','Plastic surgery',ssUrlPrefix + 'OurServices/plasticsurgery/index.htm','customPageTitle== Charing Cross Hospital \x7c Our services \x7c Plastic surgery');
g_navNode_3_42=g_navNode_3.addNode('4439','Podiatry/diabetic foot clinic',ssUrlPrefix + 'OurServices/podiatryanddiabeticfootclinic/index.htm','customPageTitle== Charing Cross Hospital \x7c Our services \x7c Podiatry/diabetic foot clinic');
g_navNode_3_43=g_navNode_3.addNode('7694','Podiatric surgery',ssUrlPrefix + 'OurServices/podiatric-surgery/index.htm');
g_navNode_3_44=g_navNode_3.addNode('3496','Private healthcare',ssUrlPrefix + 'OurServices/privatehealthcare/index.htm','customPageTitle==  Charing Cross Hospital \x7c Our services \x7c Private healthcare');
g_navNode_3_45=g_navNode_3.addNode('3497','Prosthetics',ssUrlPrefix + 'OurServices/prosthetics/index.htm','customPageTitle== Charing Cross Hospital \x7c Our services \x7c Prosthetics');
g_navNode_3_46=g_navNode_3.addNode('3498','Rheumatology',ssUrlPrefix + 'OurServices/rheumatology/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Rheumatology');
g_navNode_3_47=g_navNode_3.addNode('3499','Sleep services',ssUrlPrefix + 'OurServices/sleepservices/index.htm','customPageTitle== Charing Cross Hospital \x7c Our services \x7c Sleep services ');
g_navNode_3_48=g_navNode_3.addNode('3770','Speech and language therapy',ssUrlPrefix + 'OurServices/speechandlanguagetherapy/index.htm','customPageTitle==Charing Cross Hospital  \x7c Our services \x7c Speech and language therapy');
g_navNode_3_49=g_navNode_3.addNode('3500','Stroke services',ssUrlPrefix + 'OurServices/strokeservices/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Stroke services ');
g_navNode_3_51=g_navNode_3.addNode('3501','Trauma and orthopaedics',ssUrlPrefix + 'OurServices/traumaandorthopaedics/index.htm','customPageTitle==Charing Cross Hospital \x7c Our services \x7c Trauma and orthopaedics ');
g_navNode_3_52=g_navNode_3.addNode('3836','Upper gastrointestinal surgery',ssUrlPrefix + 'OurServices/uppergastrointestinalsurgery/index.htm','customPageTitle== Charing Cross Hospital \x7c Our services \x7c Upper gastrointestinal surgery');
g_navNode_3_53=g_navNode_3.addNode('7361','Urgent care centre',ssUrlPrefix + 'OurServices/urgent-care-centre/index.htm');
g_navNode_3_54=g_navNode_3.addNode('3503','Urology',ssUrlPrefix + 'OurServices/urology/index.htm','customPageTitle== Charing Cross Hospital \x7c Our services \x7c Urology');
g_navNode_3_55=g_navNode_3.addNode('3504','Vascular surgery',ssUrlPrefix + 'OurServices/vascularsurgery/index.htm','customPageTitle== Charing Cross Hospital \x7c Our services \x7c Vascular surgery');
g_navNode_4=g_navNode_Root.addNode('3854','Shops and facilities',ssUrlPrefix + 'shopsandfacilities/index.htm','customPageTitle==Charing Cross Hospital \x7c Shops and facilities ');
g_navNode_5=g_navNode_Root.addNode('3855','Spiritual and religious facilities',ssUrlPrefix + 'spiritualandreligiousfacilities/index.htm','customPageTitle==Charing Cross Hospital \x7c Spiritual and religious facilities ');
g_navNode_6=g_navNode_Root.addNode('3856','Help and support',ssUrlPrefix + 'pals/index.htm','customPageTitle==Charing Cross Hospital \x7c Help and support ');

