/////////////////////////////////////////////////////////////////////////////
// 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('1157','School of Veterinary and Biomedical Sciences',ssUrlPrefix + 'index.htm',null,'cspAZValue==Veterinary and Biomedical Sciences','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspFeatureImgQuery==dSecurityGroup \x3cmatches\x3e \x60Public\x60 \x3cAND\x3e dDocType \x3cmatches\x3e \x60webGraphics\x60\x3cAND\x3e  xSubject \x3csubstring\x3e \x60vbms_hp\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60 ','cspImageQuery==dDocType \x3cmatches\x3e \x60foo\x60','cspNavImage==JCUDEV_015861','cspNavImgURL==index.htm','cspQueryText==dDocType \x3cmatches\x3e \x60foo\x60','secondaryUrlVariableField==region1');
g_navNode_0=g_navNode_Root.addNode('1162','Academic \x26 Research Units',ssUrlPrefix + 'disciplines/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspNavImage==JCUDEV_015861','cspNavImgURL==../index.htm','cspQueryText==dDocType \x3csubstring\x3e \x60foo\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60  \x3cAND\x3e  xJCU_Topic \x3csubstring\x3e \x60Discipline\x60','secondaryUrlVariableField==region1');
g_navNode_0_0=g_navNode_0.addNode('1173','Microbiology and Immunology',ssUrlPrefix + 'disciplines/mi/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspNavImage==JCUDEV_015861','cspNavImgURL==../../index.htm','cspQueryText==\x28xSubject \x3csubstring\x3e \x60immunology\x60 \x3cOR\x3e xSubject \x3csubstring\x3e \x60microbiology\x60\x29 \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60  \x3cAND\x3e  xJCU_Topic \x3csubstring\x3e \x60Discipline\x60','cspSortSpec==dDocTitle asc','secondaryUrlVariableField==region1');
g_navNode_0_1=g_navNode_0.addNode('1171','Physiology and Pharmacology',ssUrlPrefix + 'disciplines/pp/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspNavImage==JCUDEV_015861','cspNavImgURL==../../index.htm','cspQueryText==\x28xSubject \x3csubstring\x3e \x60physiology\x60 \x3cOR\x3e xSubject \x3csubstring\x3e \x60pharmacology\x60\x29 \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60  \x3cAND\x3e  xJCU_Topic \x3csubstring\x3e \x60Discipline\x60','secondaryUrlVariableField==region1');
g_navNode_0_2=g_navNode_0.addNode('1174','AITVAS',ssUrlPrefix + 'disciplines/aitvas/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspNavImage==JCUDEV_015861','cspNavImgURL==../../index.htm','cspQueryText==xSubject \x3csubstring\x3e \x60AITVAS\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60  \x3cAND\x3e  xJCU_Topic \x3csubstring\x3e \x60Discipline\x60','secondaryUrlVariableField==region1');
g_navNode_0_3=g_navNode_0.addNode('1172','Fletcherview Research Station',ssUrlPrefix + 'disciplines/fletcherview/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspDisplayField==\x3c\x24xJCU_Heading\x24\x3e','cspNavImage==JCUDEV_015861','cspNavImgURL==../../index.htm','cspQueryText==xSubject \x3csubstring\x3e \x60fletcherview\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60  \x3cAND\x3e  xJCU_Topic \x3csubstring\x3e \x60Discipline\x60','cspSortSpec==xJCU_Heading asc dDocTitle asc','secondaryUrlVariableField==region1');
g_navNode_0_4=g_navNode_0.addNode('1175','Institute of Tropical Medical Laboratory Science',ssUrlPrefix + 'disciplines/lab/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspNavImage==JCUDEV_015861','cspNavImgURL==../../index.htm','cspQueryText==xSubject \x3csubstring\x3e \x60tropical medical laboratory\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60  \x3cAND\x3e  xJCU_Topic \x3csubstring\x3e \x60Discipline\x60','cspSortSpec==dDocTitle asc','secondaryUrlVariableField==region1');
g_navNode_1=g_navNode_Root.addNode('1164','Biosafety',ssUrlPrefix + 'biosafety/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspDisplayField==\x3c\x24xJCU_Heading\x24\x3e','cspNavImage==JCUDEV_015861','cspNavImgURL==../index.htm','cspQueryText==xSubject \x3csubstring\x3e \x60biosafety\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60','cspSortSpec==xJCU_Heading asc dDocTitle asc','secondaryUrlVariableField==region1');
g_navNode_2=g_navNode_Root.addNode('1159','Degrees and Awards',ssUrlPrefix + 'degrees/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspNavImage==JCUDEV_015861','cspNavImgURL==../index.htm','cspQueryText==dDocType \x3csubstring\x3e \x60foo\x60','cspSortSpec==dDocTitle asc','secondaryUrlVariableField==region1');
g_navNode_2_0=g_navNode_2.addNode('1289','Undergraduate Degrees',ssUrlPrefix + 'degrees/undergraduate/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspDisplayField==\x3c\x24xJCU_Heading\x24\x3e ','cspNavImage==JCUDEV_015861','cspNavImgURL==../../index.htm','cspQueryText==dDocType \x3csubstring\x3e \x60Degrees_programs\x60  \x3cAND\x3e  xAudience \x3csubstring\x3e \x60undergraduate\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60','cspSortSpec==xJCUSequence asc dDocTitle asc','secondaryUrlVariableField==region1');
g_navNode_2_1=g_navNode_2.addNode('1228','Honours',ssUrlPrefix + 'degrees/honours/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspNavImage==JCUDEV_015861','cspNavImgURL==../../index.htm','cspQueryText==dDocType \x3csubstring\x3e \x60Research_topics\x60  \x3cAND\x3e  xAudience \x3csubstring\x3e \x60Students_honours\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60','cspSortSpec==dDocTitle asc','cspSubField==\x3c\x24xDescription\x24\x3e','secondaryUrlVariableField==region1');
g_navNode_2_2=g_navNode_2.addNode('1165','Postgraduate Programs',ssUrlPrefix + 'degrees/postgraduate/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspNavImage==JCUDEV_015861','cspNavImgURL==../../index.htm','cspQueryText==dDocType \x3csubstring\x3e \x60Degrees_programs\x60  \x3cAND\x3e  xAudience \x3csubstring\x3e \x60Students_postgraduate\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60  \x3cAND\x3e  \x3cNOT\x3e \x28xJCU_Topic \x3cmatches\x3e \x60Discipline\x60\x29','cspSortSpec==dDocTitle desc','secondaryUrlVariableField==region1');
g_navNode_3=g_navNode_Root.addNode('1287','News \x26 Events',ssUrlPrefix + 'news/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspNavImage==JCUDEV_015861','cspNavImgURL==../index.htm','cspQueryText==dDocType \x3csubstring\x3e \x60foo\x60','secondaryUrlVariableField==region1');
g_navNode_3_0=g_navNode_3.addNode('1288','School News',ssUrlPrefix + 'news/schoolnews/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspDisplayField==\x3c\x24formatDateWithPattern\x28xKeyDate, \"yyyy\"\x29\x24\x3e','cspNavImage==JCUDEV_015861','cspNavImgURL==../../index.htm','cspQueryText==xJCUContentCategory \x3csubstring\x3e \x60Media/Marketing/Dates/Events\x60  \x3cAND\x3e  \x3cNOT\x3e \x28xJCUContentGrouping \x3csubstring\x3e \x60Marketing\x60\x29  \x3cAND\x3e  \x3cNOT\x3e \x28xSubject \x3csubstring\x3e \x60avpa\x60 \x3cOR\x3e xSubject \x3csubstring\x3e \x60Marek\x60\x29  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60','cspSortSpec==xKeyDate desc','secondaryUrlVariableField==region1');
g_navNode_3_1=g_navNode_3.addNode('1300','Seminars \x26 Presentations',ssUrlPrefix + 'news/seminars/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspDisplayField==\x3c\x24formatDateWithPattern\x28xKeyDate, \"MMMM yyyy\"\x29\x24\x3e','cspNavImage==JCUDEV_015861','cspNavImgURL==../../index.htm','cspQueryText==dDocType \x3csubstring\x3e \x60Presentation\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60','cspSortSpec==xKeyDate desc','cspSubField==\x3c\x24formatDateWithPattern\x28xKeyDate, \"EEEE d MMM yyyy h\x3amm a\"\x29\x24\x3e \x3c\x24xComments\x24\x3e','secondaryUrlVariableField==region1');
g_navNode_4=g_navNode_Root.addNode('1299','Publications',ssUrlPrefix + 'publications/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspDisplayField==\x3c\x24xJCU_Heading\x24\x3e','cspNavImage==JCUDEV_015861','cspNavImgURL==../index.htm','cspQueryText==xJCUContentCategory \x3csubstring\x3e \x60ResearchResults/Publications/Communications\x60  \x3cAND\x3e  xJCUContentGrouping \x3csubstring\x3e \x60Research results/Publications\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60','cspSortSpec==xJCU_Heading asc dDocTitle asc','secondaryUrlVariableField==region1');
g_navNode_5=g_navNode_Root.addNode('1161','Research',ssUrlPrefix + 'research/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspNavImage==JCUDEV_015861','cspNavImgURL==../index.htm','cspQueryText==dDocType \x3csubstring\x3e \x60foo\x60','cspSortSpec==dDocTitle asc','secondaryUrlVariableField==region1');
g_navNode_5_0=g_navNode_5.addNode('1167','Anatomy',ssUrlPrefix + 'research/anatomy/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspNavImage==JCUDEV_015861','cspNavImgURL==../../index.htm','cspQueryText==\x3cNOT\x3e \x28 xAudience \x3csubstring\x3e \x60Students_honours\x60\x29 \x3cAND\x3e xJCUContentCategory \x3csubstring\x3e \x60Academic\x60  \x3cAND\x3e  xJCUContentGrouping \x3csubstring\x3e \x60Research\x60  \x3cAND\x3e  xSubject \x3csubstring\x3e \x60anatomy\x60 \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60 ','cspSortSpec==dDocTitle asc','cspSubField==\x3c\x24xDescription\x24\x3e','secondaryUrlVariableField==region1');
g_navNode_5_1=g_navNode_5.addNode('1168','Microbiology and Immunology',ssUrlPrefix + 'research/mi/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspNavImage==JCUDEV_015861','cspNavImgURL==../../index.htm','cspQueryText==\x3cNOT\x3e \x28 xAudience \x3csubstring\x3e \x60Students_honours\x60\x29 \x3cAND\x3e xJCUContentCategory \x3csubstring\x3e \x60Academic\x60  \x3cAND\x3e  xJCUContentGrouping \x3csubstring\x3e \x60Research\x60  \x3cAND\x3e  \x28xSubject \x3csubstring\x3e \x60microbiology\x60  \x3cOR\x3e xSubject \x3csubstring\x3e \x60immunology\x60\x29\x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60 ','cspSortSpec==dDocTitle asc','secondaryUrlVariableField==region1');
g_navNode_5_2=g_navNode_5.addNode('1169','Physiology and Pharmacology',ssUrlPrefix + 'research/pp/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspNavImage==JCUDEV_015861','cspNavImgURL==../../index.htm','cspQueryText==\x3cNOT\x3e \x28 xAudience \x3csubstring\x3e \x60Students_honours\x60\x29 \x3cAND\x3e xJCUContentCategory \x3csubstring\x3e \x60Academic\x60  \x3cAND\x3e  xJCUContentGrouping \x3csubstring\x3e \x60Research\x60  \x3cAND\x3e  \x28xSubject \x3csubstring\x3e \x60pharmacology\x60  \x3cOR\x3e xSubject \x3csubstring\x3e \x60physiology\x60\x29\x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60 ','cspSortSpec==dDocTitle asc','secondaryUrlVariableField==region1');
g_navNode_7=g_navNode_Root.addNode('1309','Staff',ssUrlPrefix + 'staff/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspNavImage==JCUDEV_015861','cspNavImgURL==../index.htm','cspQueryText==dDocType \x3csubstring\x3e \x60foo\x60','secondaryUrlVariableField==region1');
g_navNode_7_0=g_navNode_7.addNode('1310','Academic and Research Staff',ssUrlPrefix + 'staff/acacdemic/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspDisplayField==\x3c\x24xJCU_Heading\x24\x3e','cspNavImage==JCUDEV_015861','cspNavImgURL==../../index.htm','cspQueryText==dDocType \x3csubstring\x3e \x60Staff_profiles\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60  \x3cAND\x3e  \x28xJCU_Heading \x3csubstring\x3e \x60Academic\x60 \x3cOR\x3e xJCU_Heading \x3csubstring\x3e \x60Research\x60\x29','cspSortSpec==xJCUSequence asc dDocTitle asc','secondaryUrlVariableField==region1');
g_navNode_7_1=g_navNode_7.addNode('1311','Technical Staff',ssUrlPrefix + 'staff/technical/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspNavImage==JCUDEV_015861','cspNavImgURL==../../index.htm','cspQueryText==dDocType \x3csubstring\x3e \x60Staff_profiles\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60  \x3cAND\x3e  xJCU_Heading \x3csubstring\x3e \x60Technical\x60','cspSortSpec==dDocTitle asc','secondaryUrlVariableField==region1');
g_navNode_7_2=g_navNode_7.addNode('1312','Professional Support Staff',ssUrlPrefix + 'staff/support/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspNavImage==JCUDEV_015861','cspNavImgURL==../../index.htm','cspQueryText==dDocType \x3csubstring\x3e \x60Staff_profiles\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60  \x3cAND\x3e  xJCU_Heading \x3csubstring\x3e \x60Professional\x60','cspSortSpec==dDocTitle asc','secondaryUrlVariableField==region1');
g_navNode_7_3=g_navNode_7.addNode('1313','Staff A-Z',ssUrlPrefix + 'staff/az/index.htm','cspBannerImage==JCUDEV_013134','cspBannerURL==http\x3a//www.jcu.edu.au/fmhms/','cspNavImage==JCUDEV_015861','cspNavImgURL==../../index.htm','cspQueryText==dDocType \x3csubstring\x3e \x60Staff_profiles\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60vbms\x60','cspSortSpec==dDocTitle asc','secondaryUrlVariableField==region1');
