/////////////////////////////////////////////////////////////////////////////
// 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('277','P\xe1gina principal',ssUrlPrefix + 'index.html',null,'ShowAlert==TRUE','ShowDateTime==TRUE','ShowWeather==TRUE','secondaryUrlVariableField==region5','xmlDocName==STATICLIST_HOME_NEWS');
g_navNode_0=g_navNode_Root.addNode('278','Residentes',ssUrlPrefix + 'residentssp/index.html','ChooseTitleBarStyle==plum','ShowAlert==TRUE','ShowDateTime==TRUE','ShowWeather==TRUE','secondaryUrlVariableField==region9');
g_navNode_0_0=g_navNode_0.addNode('290','Vecindarios',ssUrlPrefix + 'residentssp/vecindarios/index.html','ChooseTitleBarStyle==plum','ShowAlert==TRUE','ShowDateTime==TRUE','ShowWeather==TRUE','secondaryUrlVariableField==region9');
g_navNode_0_1=g_navNode_0.addNode('291','Servicios familiares',ssUrlPrefix + 'residentssp/serviciosfamiliares/index.html','ChooseTitleBarStyle==plum','ShowAlert==TRUE','ShowDateTime==TRUE','ShowWeather==TRUE','secondaryUrlVariableField==region9');
g_navNode_1=g_navNode_Root.addNode('279','Negocios',ssUrlPrefix + 'businesssp/index.html','ChooseTitleBarStyle==plum','ShowAlert==TRUE','ShowDateTime==TRUE','ShowWeather==TRUE','secondaryUrlVariableField==region9');
g_navNode_2=g_navNode_Root.addNode('280','Seguridad p\xfablica',ssUrlPrefix + 'publicsafetysp/index.html','ChooseTitleBarStyle==plum','ShowAlert==TRUE','ShowDateTime==TRUE','ShowWeather==TRUE','secondaryUrlVariableField==region9');
g_navNode_2_0=g_navNode_2.addNode('300','Violencia dom\xe9stica',ssUrlPrefix + 'publicsafetysp/violencia/index.html','ChooseTitleBarStyle==plum','ShowAlert==TRUE','ShowDateTime==TRUE','ShowWeather==TRUE','secondaryUrlVariableField==region9');
g_navNode_3=g_navNode_Root.addNode('281','Calles y transporte',ssUrlPrefix + 'transportationsp/index.html','ChooseTitleBarStyle==plum','ShowAlert==TRUE','ShowDateTime==TRUE','ShowWeather==TRUE','secondaryUrlVariableField==region9');
g_navNode_4=g_navNode_Root.addNode('282','Arte y cultura',ssUrlPrefix + 'recreationsp/index.html','ChooseTitleBarStyle==plum','ShowAlert==TRUE','ShowDateTime==TRUE','ShowWeather==TRUE','secondaryUrlVariableField==region9');
g_navNode_5=g_navNode_Root.addNode('283','Gobierno',ssUrlPrefix + 'citygovernmentsp/index.html','ChooseTitleBarStyle==plum','ShowAlert==TRUE','ShowDateTime==TRUE','ShowWeather==TRUE','secondaryUrlVariableField==region9');
g_navNode_5_0=g_navNode_5.addNode('309','Alcalde y concejo municipal',ssUrlPrefix + 'citygovernmentsp/mayorcouncilsp/index.html','ChooseTitleBarStyle==plum','ShowAlert==TRUE','ShowDateTime==TRUE','ShowWeather==TRUE','secondaryUrlVariableField==region9');
g_navNode_6=g_navNode_Root.addNode('284','Empleos',ssUrlPrefix + 'employmentsp/index.html','ChooseTitleBarStyle==plum','ShowAlert==TRUE','ShowDateTime==TRUE','ShowWeather==TRUE','secondaryUrlVariableField==region9');
g_navNode_7=g_navNode_Root.addNode('306','Noticias',ssUrlPrefix + 'newssp/index.html','ChooseTitleBarStyle==plum','ShowAlert==TRUE','ShowDateTime==TRUE','ShowWeather==TRUE','secondaryUrlVariableField==region9','xmlQueryText==dDocType \x3cmatches\x3e \x60News_Release\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60ESPANOL\x60 \x3cAND\x3e  xDocRefDate \x3e\x3d \x60\x3c\x24dateCurrent\x28-7\x29\x24\x3e\x60');
g_navNode_7_0=g_navNode_7.addNode('307','rsssp',ssUrlPrefix + 'newssp/rsssp/index.html','ChooseTitleBarStyle==plum','ShowDateTime==TRUE','xmlQueryText==dDocType \x3cmatches\x3e \x60News_Release\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60ESPANOL\x60 \x3cAND\x3e  xDocRefDate \x3e\x3d \x60\x3c\x24dateCurrent\x28-7\x29\x24\x3e\x60');
g_navNode_7_1=g_navNode_7.addNode('52','Noticias Archivos',ssUrlPrefix + 'newssp/archivos/index.html','ChooseTitleBarStyle==plum','ShowAlert==TRUE','ShowDateTime==TRUE','ShowWeather==TRUE','secondaryUrlVariableField==region9');
g_navNode_8=g_navNode_Root.addNode('308','Manager',ssUrlPrefix + 'Manager/index.html','ChooseTitleBarStyle==royal blue','ShowDateTime==TRUE');
