document.writeln('<ul id="hybridNav">');
document.writeln('			<li><a href="/heat-pump-hot-water-heater/">Overview</a></li>');
document.writeln('			<li><a href="/heat-pump-hot-water-heater/water-heater-rebate.htm">Savings, Rebates &amp; Tax Incentives</a></li>');
document.writeln('			<li><a href="/heat-pump-hot-water-heater/high-efficiency-water-heater-savings.htm">Energy Savings</a></li>');
document.writeln('			<li><a href="/heat-pump-hot-water-heater/electric-water-heater-features.htm">Features &amp; Details</a></li>');
document.writeln('			<li><a href="/heat-pump-hot-water-heater/water-heater-installation.htm">Installation</a></li>');
document.writeln('			<li><a href="/heat-pump-hot-water-heater/water-heater-faq.htm">FAQs</a></li>');
document.writeln('		</ul>');

document.writeln('		<div class="leftButtons">');
document.writeln('			<a href="/heat-pump-hot-water-heater/water-heater-rebate.htm"><img src="/images/heat-pump-hot-water-heater/2012_tax_credit.png" width="195" height="95" alt="Tax Credit - Qualifies for state or utility rebates in almost 30 different states! Learn more." title="Tax Credit - Qualifies for state or utility rebates in almost 30 different states! Learn more." /></a><br />');
document.writeln('			<br />');
document.writeln('			<a href="/heat-pump-hot-water-heater/water-heater-stores.htm"><img src="/images/heat-pump-hot-water-heater/left_button_shop.gif" width="205" height="92" alt="Shop Today! Shop for GeoSpring Electric Heat Pump Water Heater - Start Shopping" title="Shop Today! Shop for GeoSpring Electric Heat Pump Water Heater - Start Shopping" /></a><br />');
document.writeln('			<br />');
document.writeln('			<a href="http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=SpecPage&Sku=GEH50DNSRSA"><img src="/images/heat-pump-hot-water-heater/left_button_spec.gif" width="197" height="92" alt="Technical Specs - Easy replacement of standard electrical water heater - Technical specs and dimensions" title="Technical Specs - Easy replacement of standard electrical water heater - Technical specs and dimensions" /></a><br />');
document.writeln('			<br />');
document.writeln('			<img src="/images/heat-pump-hot-water-heater/left_button_contact.gif" width="197" height="95" alt="Contact Us - Questions about the new electric heat pump water heater? Call us! 1-888-443-4394" title="Contact Us - Questions about the new electric heat pump water heater? Call us! 1-888-443-4394" /><br />');
document.writeln('			<br />');
document.writeln('			<a href="/heat-pump-hot-water-heater/ge_hybrid_water_heater_certification.pdf" target="_blank"><img src="/images/heat-pump-hot-water-heater/left_button_certification.gif" width="185" height="105" alt="Federal Tax Credit Certification Statement for products purchased and installed in 2011. Download now." title="Federal Tax Credit Certification Statement for products purchased and installed in 2011. Download now." /></a><br />');
document.writeln('			<br />');
document.writeln('			<a href="http://community.geappliances.com/"><img src="/images/banner_community_geospring.jpg" width="187" height="150" alt="GE Appliances Community - Chat about saving energy, water, being environmentally friendly, saving money &amp; more!" title="GE Appliances Community - Chat about saving energy, water, being environmentally friendly, saving money &amp; more!" /></a><br />');
document.writeln('		</div>');

document.writeln('		<div id="productOfEcomagination"><a href="http://www.ecomagination.com/" target="_blank"><img src="/images/heat-pump-hot-water-heater/product_of_ecomagination.gif" width="154" height="40" alt="a product of Ecomagination" title="a product of Ecomagination" /></a></div>');


/***************************************************************************
The "leftNavSelector" function sets a selected item in the left nav for the 
current page (based on the page URL and the left nav link's HREF).

To force an item in the left nav to be set as selected, the corresponding 
A tag must be assigned a unique ID in the left nav include file. Then you 
must pass that ID into the "leftNavSelector" function.

This function should be run in the page immediately following the left nav 
include call.
***************************************************************************/

function leftNavSelector(optionalID) {
try {
	pageURL = document.location.href;
	// test for Teamsite URL
	workareaCheck = pageURL.indexOf("WORKAREA/");

	// determine URL path (testing for Teamsite, as well)
	if(workareaCheck != -1) {
		pagePath = pageURL.split("WORKAREA/")[1];
		pagePath = pagePath.substr(pagePath.indexOf("/"));
	} else {
		pagePath = location.pathname;
	}
	
	//strip 'index' file reference from URL (for comparison purposes)
	if(pagePath.indexOf("/index.") >= 0) { pagePath = pagePath.substring( 0,pagePath.indexOf("/index.")+1 ); }
	
	//strip anchors from URL (for comparison purposes)
	if(pagePath.indexOf("#") >= 0) { pagePath = pagePath.substring( 0,pagePath.indexOf("#") ); }
	
	if(!optionalID || !document.getElementById(optionalID)) {
	
		var navArray = document.getElementById("hybridNav").getElementsByTagName("a");
		// cycle through nav items looking for one with HREF that matches the page URL
		for(i=0;i<navArray.length;i++) {
			
			var testHref = navArray[i].pathname;
			if(testHref.indexOf("/") != 0) { testHref = "/" + testHref; } // IE doesn't include beginning slash
			
			//strip 'index' file reference from link URLs (for comparison purposes)
			if(testHref.indexOf("/index.") >= 0) { testHref = testHref.substring( 0,testHref.indexOf("/index.")+1 ); }
			
			if(pagePath == testHref) {
				navArray[i].className += " selected";
				break;
			}// if
		} // for
		
	} else { document.getElementById(optionalID).className += " selected"; }
	
} catch(err) {} // try-catch
} // function
