/////////////////////////////////////////////////////////////////////////////
// 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('6869','Home',ssUrlPrefix + 'home.html',null);
g_navNode_0=g_navNode_Root.addNode('8184','Department History',ssUrlPrefix + 'DepartmentHistory/index.htm','ShowWhatsInside==true');
g_navNode_1=g_navNode_Root.addNode('17577','Faculty',ssUrlPrefix + 'faculty/home.html');
g_navNode_1_35=g_navNode_1.addNode('11540','Emiro Caicedo-Granados, MD',ssUrlPrefix + 'faculty/Caicedo-Granados/home.html','contributorOnly==false');
g_navNode_1_36=g_navNode_1.addNode('11541','John A. Anderson, MD, PhD',ssUrlPrefix + 'faculty/JAnderson/home.html');
g_navNode_2=g_navNode_Root.addNode('17626','Education',ssUrlPrefix + 'education/home.html','ShowWhatsInside==true');
g_navNode_2_0=g_navNode_2.addNode('17627','Medical Student Education',ssUrlPrefix + 'education/student/home.html');
g_navNode_2_1=g_navNode_2.addNode('171308','Observerships',ssUrlPrefix + 'education/observerships/home.html');
g_navNode_2_2=g_navNode_2.addNode('35204','Residency Training Program',ssUrlPrefix + 'education/training/home.html','ShowWhatsInside==true');
g_navNode_2_2_0=g_navNode_2_2.addNode('83540','Contract, Stipend, Benefits',ssUrlPrefix + 'education/training/benefits/home.html');
g_navNode_2_2_1=g_navNode_2_2.addNode('79671','For Current Residents',ssUrlPrefix + 'education/training/current/home.html');
g_navNode_2_2_2=g_navNode_2_2.addNode('79245','Frequently Asked Questions',ssUrlPrefix + 'education/training/faq/home.html');
g_navNode_2_2_3=g_navNode_2_2.addNode('79234','How to Apply',ssUrlPrefix + 'education/training/apply/home.html');
g_navNode_2_2_4=g_navNode_2_2.addNode('83533','Living in Minnesota',ssUrlPrefix + 'education/training/mnliving/home.html');
g_navNode_2_2_5=g_navNode_2_2.addNode('79619','Residency Manual',ssUrlPrefix + 'education/training/manual/home.html');
g_navNode_2_2_7=g_navNode_2_2.addNode('203408','Residents',ssUrlPrefix + 'education/training/residents/home.html');
g_navNode_2_2_8=g_navNode_2_2.addNode('79644','Training Sites',ssUrlPrefix + 'education/training/sites/home.html');
g_navNode_2_3=g_navNode_2.addNode('17583','Neurotology Fellowship',ssUrlPrefix + 'education/NeurotologyFellowship/home.html','ShowDownloads==true','ShowWhatsInside==false');
g_navNode_2_4=g_navNode_2.addNode('8605','Education Faculty',ssUrlPrefix + 'education/EducationFaculty/index.htm');
g_navNode_2_5=g_navNode_2.addNode('8827','Road to Residency',ssUrlPrefix + 'education/WhatisOtolaryngology/index.htm');
g_navNode_3=g_navNode_Root.addNode('17594','About the Clinic',ssUrlPrefix + 'clinics/home.html','ShowWhatsInside==true');
g_navNode_3_0=g_navNode_3.addNode('36700','Audiology Clinic at University of Minnesota Medical Center, Fairview',ssUrlPrefix + 'clinics/audiology/home.html');
g_navNode_3_1=g_navNode_3.addNode('17595','Facial Plastics and Reconstruction',ssUrlPrefix + 'clinics/facialplastics/home.html');
g_navNode_3_2=g_navNode_3.addNode('17596','Head and Neck',ssUrlPrefix + 'clinics/headandneck/home.html');
g_navNode_3_3=g_navNode_3.addNode('36701','Lions Voice Clinic',ssUrlPrefix + 'clinics/lions/home.html');
g_navNode_3_4=g_navNode_3.addNode('17597','Nasal and Sinus Clinic',ssUrlPrefix + 'clinics/nasalsinus/home.html');
g_navNode_3_5=g_navNode_3.addNode('17599','Otology-Neurotology',ssUrlPrefix + 'clinics/otologyneurotology/home.html','ShowWhatsInside==true');
g_navNode_3_5_0=g_navNode_3_5.addNode('17600','Disorders of the Ear',ssUrlPrefix + 'clinics/otologyneurotology/eardisorders/home.html','ShowWhatsInside==true');
g_navNode_3_5_0_0=g_navNode_3_5_0.addNode('17601','Acoustic Neuroma',ssUrlPrefix + 'clinics/otologyneurotology/eardisorders/acousticneuroma/home.html','ShowRightNavImage==true','ShowWhatsInside==true');
g_navNode_3_5_0_0_0=g_navNode_3_5_0_0.addNode('17602','Diagnosis',ssUrlPrefix + 'clinics/otologyneurotology/eardisorders/acousticneuroma/diagnosis/home.html');
g_navNode_3_5_0_0_1=g_navNode_3_5_0_0.addNode('17603','Microscopy',ssUrlPrefix + 'clinics/otologyneurotology/eardisorders/acousticneuroma/microscopy/home.html');
g_navNode_3_5_0_0_2=g_navNode_3_5_0_0.addNode('17604','Origin and Cause',ssUrlPrefix + 'clinics/otologyneurotology/eardisorders/acousticneuroma/origin/home.html');
g_navNode_3_5_0_0_3=g_navNode_3_5_0_0.addNode('17605','Postoperative',ssUrlPrefix + 'clinics/otologyneurotology/eardisorders/acousticneuroma/postoperative/home.html');
g_navNode_3_5_0_0_4=g_navNode_3_5_0_0.addNode('17606','Symptoms',ssUrlPrefix + 'clinics/otologyneurotology/eardisorders/acousticneuroma/symptoms/home.html');
g_navNode_3_5_0_0_5=g_navNode_3_5_0_0.addNode('17607','Treatment',ssUrlPrefix + 'clinics/otologyneurotology/eardisorders/acousticneuroma/treatment/home.html');
g_navNode_3_5_0_1=g_navNode_3_5_0.addNode('17608','Ear Infections',ssUrlPrefix + 'clinics/otologyneurotology/eardisorders/earinfections/home.html');
g_navNode_3_5_0_2=g_navNode_3_5_0.addNode('17609','Hearing Loss',ssUrlPrefix + 'clinics/otologyneurotology/eardisorders/hearingloss/home.html');
g_navNode_3_5_0_3=g_navNode_3_5_0.addNode('17610','Meniere\'s Disease',ssUrlPrefix + 'clinics/otologyneurotology/eardisorders/meniere/home.html');
g_navNode_3_5_0_4=g_navNode_3_5_0.addNode('17611','Otosclerosis',ssUrlPrefix + 'clinics/otologyneurotology/eardisorders/otosclerosis/home.html');
g_navNode_3_5_0_5=g_navNode_3_5_0.addNode('17612','Tinnitus',ssUrlPrefix + 'clinics/otologyneurotology/eardisorders/tinnitus/home.html');
g_navNode_3_5_1=g_navNode_3_5.addNode('17613','Glossary',ssUrlPrefix + 'clinics/otologyneurotology/glossary/home.html');
g_navNode_3_5_2=g_navNode_3_5.addNode('17614','Physiology and Function of the Ear',ssUrlPrefix + 'clinics/otologyneurotology/physiologyandfunction/home.html','ShowWhatsInside==true');
g_navNode_3_5_2_0=g_navNode_3_5_2.addNode('17615','Dizziness',ssUrlPrefix + 'clinics/otologyneurotology/physiologyandfunction/dizziness/home.html');
g_navNode_3_5_2_1=g_navNode_3_5_2.addNode('17616','Eustachian Tube Function',ssUrlPrefix + 'clinics/otologyneurotology/physiologyandfunction/eustachiantube/home.html');
g_navNode_3_5_2_2=g_navNode_3_5_2.addNode('17617','How an Ear Works -  Balance',ssUrlPrefix + 'clinics/otologyneurotology/physiologyandfunction/balance/home.html');
g_navNode_3_5_2_3=g_navNode_3_5_2.addNode('17618','How an Ear Works - Hearing',ssUrlPrefix + 'clinics/otologyneurotology/physiologyandfunction/hearing/home.html');
g_navNode_3_5_3=g_navNode_3_5.addNode('17619','Treatment of Ear Disease',ssUrlPrefix + 'clinics/otologyneurotology/treatment/home.html','ShowWhatsInside==true');
g_navNode_3_5_3_0=g_navNode_3_5_3.addNode('17620','Benign Paroxysmal Positional Vertigo',ssUrlPrefix + 'clinics/otologyneurotology/treatment/benignvertigo/home.html');
g_navNode_3_5_3_1=g_navNode_3_5_3.addNode('17622','General Information about Ear Surgery',ssUrlPrefix + 'clinics/otologyneurotology/treatment/surgery/home.html');
g_navNode_3_5_3_2=g_navNode_3_5_3.addNode('17624','Procedures for Vertigo',ssUrlPrefix + 'clinics/otologyneurotology/treatment/vertigosurgery/home.html');
g_navNode_3_5_3_3=g_navNode_3_5_3.addNode('17623','Surgery for Chronic Ear Disease',ssUrlPrefix + 'clinics/otologyneurotology/treatment/surgerychronicear/home.html');
g_navNode_3_6=g_navNode_3.addNode('17625','Pediatrics',ssUrlPrefix + 'clinics/pediatrics/home.html');
g_navNode_4=g_navNode_Root.addNode('17642','Research',ssUrlPrefix + 'research/home.html','ShowWhatsInside==true');
g_navNode_4_0=g_navNode_4.addNode('17644','Environment',ssUrlPrefix + 'research/environment/home.html');
g_navNode_4_1=g_navNode_4.addNode('74723','Otolaryngology Research Safety Program',ssUrlPrefix + 'research/safety/home.html');
g_navNode_4_2=g_navNode_4.addNode('17643','Research Areas',ssUrlPrefix + 'research/areas/home.html');
g_navNode_5=g_navNode_Root.addNode('17593','Academic Conferences and Events',ssUrlPrefix + 'conferences/home.html');
g_navNode_6=g_navNode_Root.addNode('17635','Make a Gift',ssUrlPrefix + 'giving/home.html');
g_navNode_7=g_navNode_Root.addNode('8803','Contact Information',ssUrlPrefix + 'contactinformation/index.htm');
if (SSContributor)
{
g_navNode_9=g_navNode_Root.addNode('7090','SSManager',ssUrlPrefix + 'ssmanager/index.htm','contributorOnly==TRUE');
}
