/////////////////////////////////////////////////////////////////////////////
// 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('117','Home',ssUrlPrefix + 'index.htm',null,'dynamicListIsIndex==false','secondaryUrlVariableField==C10');
g_navNode_0=g_navNode_Root.addNode('118','Saving Energy',ssUrlPrefix + 'SavingEnergy/index.htm','Description==From air conditioning to weatherizing, find everything you need to know about lowering your utility bills.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_0_0=g_navNode_0.addNode('382','101 Ways to Save',ssUrlPrefix + 'SavingEnergy/101/index.htm','Description==All it takes is a few minutes each month, and you\\x27ll notice a difference - and make a difference\x21','secondaryUrlVariableField==C10');
g_navNode_0_1=g_navNode_0.addNode('119','Appliances',ssUrlPrefix + 'SavingEnergy/Appliances/index.htm','Description==By asking the right questions before you buy, and remembering a few easy energy savers, your appliances will make your life easier for years to come.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_0_2=g_navNode_0.addNode('120','Heating \x26 Cooling',ssUrlPrefix + 'SavingEnergy/HeatingCooling/index.htm','Description==Heating and cooling can account for more than half of your utility bills, so it pays to make energy efficiency a priority.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_0_2_0=g_navNode_0_2.addNode('221','Easy Energy Savers',ssUrlPrefix + 'SavingEnergy/HeatingCooling/EnergySavers/index.htm','Description==Looking for simple ways to cut your utility bills? Try our easy heating and air conditioning energy savers.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_0_2_1=g_navNode_0_2.addNode('121','Heating Systems',ssUrlPrefix + 'SavingEnergy/HeatingCooling/HeatingSystems/index.htm','Description==Whether your heat comes from natural gas, electric or even wood, it pays to know how to use your systems efficiently. ','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_0_2_2=g_navNode_0_2.addNode('122','Cooling Systems',ssUrlPrefix + 'SavingEnergy/HeatingCooling/CoolingSystems/index.htm','Description==A new cooling system can be a big investment - but keep in mind that choosing energy-efficient products can mean big energy savings.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_0_2_3=g_navNode_0_2.addNode('222','Geothermal Systems',ssUrlPrefix + 'SavingEnergy/HeatingCooling/Geothermal/index.htm','Description==With a geothermal or ground-source heat pump, you can use the natural warmth of the earth to heat and cool your home.','secondaryUrlVariableField==C10');
g_navNode_0_2_4=g_navNode_0_2.addNode('124','Thermostats \x26 Controls',ssUrlPrefix + 'SavingEnergy/HeatingCooling/ThermostatsControls/index.htm','Description==Don\\x27t forget those other important systems like thermostats, filters, ductwork and vents that can help you control energy costs. ','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_0_3=g_navNode_0.addNode('125','Insulating \x26 Weatherizing',ssUrlPrefix + 'SavingEnergy/Insulating/index.htm','Description==Don\\x27t let those hard-earned energy dollars disappear into thin air - a small investment in weatherizing supplies and insulation can make a big difference in your utility bills.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_0_4=g_navNode_0.addNode('128','Lighting Your Home',ssUrlPrefix + 'SavingEnergy/Lighting/index.htm','Description==Find out how choosing the right light bulbs, fixtures and controls can cut your electricity bills.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_0_5=g_navNode_0.addNode('129','Water Heating \x26 Plumbing',ssUrlPrefix + 'SavingEnergy/WaterHeating/index.htm','Description==Hot water is always there when you need it - but taking it for granted can have a big impact on your energy bills.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_0_6=g_navNode_0.addNode('132','Windows \x26 Doors',ssUrlPrefix + 'SavingEnergy/Windows/index.htm','Description==If windows or doors are on your home improvement list, stop here first to learn how to find the most energy-efficient models - or tighten up the ones you have.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_0_7=g_navNode_0.addNode('133','More Energy Savers',ssUrlPrefix + 'SavingEnergy/More/index.htm','Description==Don\\x27t miss these other great ways to conserve energy, including vacation tips for your appliances.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_1=g_navNode_Root.addNode('134','Building \x26 Remodeling',ssUrlPrefix + 'Building/index.htm','Description==If a brand-new home or remodel is in your future, find out how to plan ahead for long-term livability, maximize energy efficiency and minimize the impact on the environment.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_1_0=g_navNode_1.addNode('135','Planning for Efficiency',ssUrlPrefix + 'Building/Planning/index.htm','Description==Make sure your new home is livable - and affordable - for years to come by learning about R-value, energy-smart products, universal design and money-saving incentives.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_1_1=g_navNode_1.addNode('381','Traditional Construction',ssUrlPrefix + 'Building/Traditional/index.htm','Description==See how the foundation, framework, roof, windows and even the garage work together to create an energy-efficient home.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_1_2=g_navNode_1.addNode('142','Alternative Materials',ssUrlPrefix + 'Building/Alternative/index.htm','Description==A new home is the perfect opportunity to take advantage of the latest advances in building materials - or try a few old-fashioned ones.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_1_3=g_navNode_1.addNode('144','Landscaping',ssUrlPrefix + 'Building/Landscaping/index.htm','Description==The right tree in the right place can help reduce your summer cooling costs by up to 25 percent.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_2=g_navNode_Root.addNode('145','Safety \x26 Health',ssUrlPrefix + 'Safety/index.htm','Description==Keep your family safe around electricity and natural gas, find out how to weather storms safely, get the facts about indoor air quality and more.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_2_0=g_navNode_2.addNode('146','Electrical Safety',ssUrlPrefix + 'Safety/ElectricalSafety/index.htm','Description==It\\x27s easy to take the comfort and convenience of electricity for granted - but taking its dangers for granted can be deadly.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_2_1=g_navNode_2.addNode('147','Natural Gas Safety',ssUrlPrefix + 'Safety/NaturalGasSafety/index.htm','Description==Make sure you know how to respond to a gas leak, use appliances safely and prevent carbon monoxide.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_2_2=g_navNode_2.addNode('148','Storm \x26 Outage Safety',ssUrlPrefix + 'Safety/StormOutageSafety/index.htm','Description==Find out how to keep your family warm, safe and comfortable when Mother Nature strikes.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_2_3=g_navNode_2.addNode('152','Home Safety Products',ssUrlPrefix + 'Safety/HomeSafetyProducts/index.htm','Description==These easy-to-use products can help you keep your family safe around electricity and natural gas.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_2_4=g_navNode_2.addNode('153','Healthy Homes',ssUrlPrefix + 'Safety/HealthyHomes/index.htm','Description==Unexplained illnesses? Your home might have \"sick house\" syndrome caused by allergens, mold, radon, humidity or other problems.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_3=g_navNode_Root.addNode('154','Comfort \x26 Convenience',ssUrlPrefix + 'Comfort/index.htm','Description==If comfort and convenience are high on your home improvement list, check out these energy-smart products and ideas.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_3_0=g_navNode_3.addNode('156','Protecting Electronics',ssUrlPrefix + 'Comfort/ProtectElectronics/index.htm','Description==Protect your home appliances and electronics against damaging electrical power surges.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_3_1=g_navNode_3.addNode('157','Outdoor Living',ssUrlPrefix + 'Comfort/OutdoorLiving/index.htm','Description==If you spend a lot of time outdoors, don\\x27t forget to look for even more easy ways to save energy.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_4=g_navNode_Root.addNode('161','Energy Basics',ssUrlPrefix + 'EnergyBasics/index.htm','Description==Find out how energy works, and learn how you can support the growth of environmentally-friendly renewable energy. ','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_5=g_navNode_Root.addNode('163','TV Show',ssUrlPrefix + 'TVShow/index.htm','Description==See when and where PowerHouse airs in your area, and link to more information about topics featured on the show.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_5_0=g_navNode_5.addNode('164','Episode Guides',ssUrlPrefix + 'TVShow/Episodes/index.htm','Description==Want to learn more about something you saw on the show? Get an overview of each segment and find quick links to more information.','dynamicListIsIndex==true','secondaryUrlVariableField==C10');
g_navNode_6=g_navNode_Root.addNode('364','About Us',ssUrlPrefix + 'About/About','Description==Learn more about Alliant Energy and the PowerHouse vision.');
