/////////////////////////////////////////////////////////////////////////////
// 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('116','Eaton \x7c Home Heartbeat',ssUrlPrefix + 'index.htm',null,'MetaDescription==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','MetaKeywords==Home Heartbeat, Home Awareness, Home Monitoring, Home Security, Awareness System','MetaTitle==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer');
g_navNode_0=g_navNode_Root.addNode('197','What is it?',ssUrlPrefix + 'Whatisit/index.htm','MetaDescription==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','MetaKeywords==Home Heartbeat, Awareness System, Home Sensor, Home Awareness, Home Monitoring, Home Security, House Heartbeat','MetaTitle==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','cspNavImageOff==/ecm/groups/public/\x40pub/\x40homeheartbeat/documents/content/98055220.gif','cspNavImageOn==/ecm/groups/public/\x40pub/\x40homeheartbeat/documents/content/98055219.gif','cspTabNumber==1');
g_navNode_0_0=g_navNode_0.addNode('205','How It Works',ssUrlPrefix + 'Whatisit/HowItWorks/index.htm','MetaDescription==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','MetaKeywords==Home Heartbeat, Home Sensor, Wireless Home Sensor, Home Awareness, House Heartbeat, Home Security','MetaTitle==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','cspTabNumber==1');
g_navNode_0_1=g_navNode_0.addNode('5167','Video Overview',ssUrlPrefix + 'Whatisit/VideoOverview/index.htm','MetaDescription==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','MetaKeywords==Home Heartbeat, Home Awareness, Home Monitoring, Home Heartbeat Starter Pack, Home Security','MetaTitle==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','contributorOnly==false','cspTabNumber==1');
g_navNode_1=g_navNode_Root.addNode('198','Packages',ssUrlPrefix + 'Packages/index.htm','MetaDescription==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','MetaKeywords==Home Heartbeat Packages, Home Heartbeat Starter Pack, Home Heartbeat Sensors, Buy Home Heartbeat, Water Damage Protection','MetaTitle==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','cspNavImageOff==/ecm/groups/public/\x40pub/\x40homeheartbeat/documents/content/98055222.gif','cspNavImageOn==/ecm/groups/public/\x40pub/\x40homeheartbeat/documents/content/98055221.gif','cspTabNumber==2');
g_navNode_2=g_navNode_Root.addNode('199','Accessories',ssUrlPrefix + 'Accessories/index.htm','MetaDescription==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','MetaKeywords==Home Heartbeat Accessories, Home Heartbeat Sensors, Door Sensor, Window Sensor, Water Sensor, Moton Sensor, Automatic Water Shutoff, Garage Door Sensor, HomeKey, Power Sensor, Reminder Sensor, Attention Sensor, Water Leak Protection, Water Damage','MetaTitle==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','cspNavImageOff==/ecm/groups/public/\x40pub/\x40homeheartbeat/documents/content/98055224.gif','cspNavImageOn==/ecm/groups/public/\x40pub/\x40homeheartbeat/documents/content/98055223.gif','cspTabNumber==3');
g_navNode_3=g_navNode_Root.addNode('200','Support',ssUrlPrefix + 'Support/index.htm','MetaDescription==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','MetaKeywords==Home Heartbeat Support, Home Heartbeat Instructions, Home Heartbeat Manuals','MetaTitle==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','cspNavImageOff==/ecm/groups/public/\x40pub/\x40homeheartbeat/documents/content/98055230.gif','cspNavImageOn==/ecm/groups/public/\x40pub/\x40homeheartbeat/documents/content/98055229.gif','cspTabNumber==4');
g_navNode_3_0=g_navNode_3.addNode('2650','Product FAQs',ssUrlPrefix + 'Support/ProductFAQs/index.htm','MetaDescription==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','MetaKeywords==Home Heartbeat FAQs','MetaTitle==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','contributorOnly==false','cspTabNumber==4');
g_navNode_4=g_navNode_Root.addNode('201','Buy It',ssUrlPrefix + 'BuyIt/index.htm','MetaDescription==/HomeHeartBeat/Maintenance/index.htm','MetaKeywords==Buy Home Heartbeat, Door Sensor, Window Sensor, Home Heartbeat Starter Pack, Water Sensor, Motion Sensor, Garage Door Sensor, HomeKey, Power Sensor, Reminder Sensor, Attention Sensor, Water Leak Protection, Home Heartbeat, Water Damage Protection','RedirectURL==https\x3a//store.homeheartbeat.com/','contributorOnly==false','cspNavImageOff==/ecm/groups/public/\x40pub/\x40homeheartbeat/documents/content/98055232.gif','cspNavImageOn==/ecm/groups/public/\x40pub/\x40homeheartbeat/documents/content/98055231.gif','cspTabNumber==5');
g_navNode_5=g_navNode_Root.addNode('202','Press Room',ssUrlPrefix + 'PressRoom/index.htm','MetaDescription==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','MetaKeywords==Home Heartbeat, Home Sensor, House Heartbeat, Home Awareness, Home Monitoring, Home Heartbeat Awareness System','MetaTitle==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','cspNavImageOff==/ecm/groups/public/\x40pub/\x40homeheartbeat/documents/content/98055234.gif','cspNavImageOn==/ecm/groups/public/\x40pub/\x40homeheartbeat/documents/content/98055233.gif','cspTabNumber==6');
g_navNode_5_0=g_navNode_5.addNode('2826','Archived Press Releases',ssUrlPrefix + 'PressRoom/ArchivedPressReleases/index.htm','MetaDescription==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','MetaKeywords==home monitoring, home automation, home safety, home awareness, motion detector, water damage, home security, monitoring systems, security systems, security management systems, security system, security management system, burglary protection, fire protection, house heartbeat, house alerts, home alerts','MetaTitle==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','contributorOnly==false','cspTabNumber==6');
g_navNode_5_1=g_navNode_5.addNode('214','Appearances',ssUrlPrefix + 'PressRoom/Appearances/index.htm','MetaDescription==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','MetaKeywords==home monitoring, home automation, home safety, home awareness, motion detector, water damage, home security, monitoring systems, security systems, security management systems, security system, security management system, burglary protection, fire protection, house heartbeat, house alerts, home alerts','MetaTitle==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','cspTabNumber==6');
g_navNode_5_2=g_navNode_5.addNode('216','FAQs',ssUrlPrefix + 'PressRoom/FAQs/index.htm','MetaDescription==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','MetaKeywords==home monitoring, home automation, home safety, home awareness, motion detector, water damage, home security, monitoring systems, security systems, security management systems, security system, security management system, burglary protection, fire protection, house heartbeat, house alerts, home alerts','MetaTitle==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','cspTabNumber==6');
g_navNode_6=g_navNode_Root.addNode('2769','My HHB',ssUrlPrefix + 'MyHHB/index.htm','MetaDescription==https\x3a//store.homeheartbeat.com/OA_HTML/ibeCAcpProfMenuHome.jsp?a\x3db','MetaTitle==/HomeHeartBeat/Maintenance/index.htm','RedirectURL==https\x3a//store.homeheartbeat.com/OA_HTML/ibeCAcpProfMenuHome.jsp?a\x3db','contributorOnly==false','cspNavImageOff==/ecm/groups/public/\x40pub/\x40homeheartbeat/documents/content/98059448.gif','cspNavImageOn==/ecm/groups/public/\x40pub/\x40homeheartbeat/documents/content/98059447.gif');
g_navNode_7=g_navNode_Root.addNode('3487','HHB Broadband',ssUrlPrefix + 'HHBBroadband/index.htm','MetaDescription==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','MetaKeywords==Home Heartbeat Portal','MetaTitle==Home Heartbeat Portal','NewWindow==false','RedirectURL==http\x3a//www.myhomeheartbeat.com/','contributorOnly==false','cspNavImageOff==/ecm/groups/public/\x40pub/\x40homeheartbeat/documents/content/ct_065656.gif','cspNavImageOn==/ecm/groups/public/\x40pub/\x40homeheartbeat/documents/content/ct_065657.gif');
g_navNode_10=g_navNode_Root.addNode('1349','About Us',ssUrlPrefix + 'AboutUS/index.htm','MetaDescription==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','MetaKeywords==home monitoring, home automation, home safety, home awareness, motion detector, water damage, home security, monitoring systems, security systems, security management systems, security system, security management system, burglary protection, fire protection, house heartbeat, house alerts, home alerts','MetaTitle==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer');
g_navNode_10_0=g_navNode_10.addNode('2772','About Eaton',ssUrlPrefix + 'AboutUS/AboutEaton/index.htm','MetaDescription==Home Heartbeat-Home Awareness, Monitoring, Automation \x26 Safety that security systems do not offer','MetaKeywords==home monitoring, home automation, home safety, home awareness, motion detector, water damage, home security, monitoring systems, security systems, security management systems, security system, security management system, burglary protection, fire protection, house heartbeat, house alerts, home alerts','RedirectURL==http\x3a//www.eaton.com/EatonCom/OurCompany/AboutUs/index.htm');
