var szPath;

if (document.location.href.indexOf('#') == -1)

{

	szPath = document.location.href.substr(0, document.location.href.length - (document.location.pathname.length + document.location.search));

	/*if (document.location.pathname.split('/')[1] != 'analysisresources' && document.location.pathname.split('/')[1] != 'customer' && document.location.pathname.split('/')[1] != 'energymarketing' && document.location.pathname.split('/')[1] != 'products' && document.location.pathname.split('/')[1].substr(document.location.pathname.split('/')[1].length-4) != '.htm')

		szPath += '/' + document.location.pathname.split('/')[1] ;*/

}

else

{

	var szTmpPath = document.location.href.substr(0,document.location.href.indexOf('#'))

	szPath = szTmpPath.substr(0, szTmpPath.length - (document.location.pathname.length + document.location.search));

	/*if (document.location.pathname.split('/')[1] != 'analysisresources' && document.location.pathname.split('/')[1] != 'customer' && document.location.pathname.split('/')[1] != 'energymarketing' && document.location.pathname.split('/')[1] != 'products' && document.location.pathname.split('/')[1].substr(document.location.pathname.split('/')[1].length-4) != '.htm')

		szPath += '/' + document.location.pathname.split('/')[1] ;*/

}



document.write("<div class=sidebar>")

	

	document.write("<div id=NaturalGas style=display:none>")

					document.write("<table width=100%  border=0 cellspacing=0 cellpadding=0>")

					document.write("<tr>")

					document.write("<td class=evenBoxHeader>NATURAL GAS</td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td class=evenBoxContent>")

					document.write("<div id=leftnav>")

					document.write("<table width=100%  border=0 cellspacing=0 cellpadding=0>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='../../products/naturalgas/fixedPrice.htm' class=leftLinks>Fixed Price</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src="+szPath+"/images/arrow_orange.gif width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='../../products/naturalgas/nymex.htm' class=leftLinks>NYMEX Plus Basis</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='../../products/naturalgas/dualFuel.htm' class=leftLinks>Dual Fuel Products</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='../../products/naturalgas/hessPrime.htm' class=leftLinks>HESS PRiME&#153;</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='../../products/naturalgas/dynamicTriggering.htm' class=leftLinks>Dynamic Triggering&#8482;</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='../../products/naturalgas/CapsandCollars.htm' class=leftLinks>Caps and Collars</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='../../customer/glossary.htm#gasterms' class=leftLinks>Glossary</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='../../products/naturalgas/index.htm#map' class=leftLinks>Service Areas Map</a></td>")

					document.write("</tr>")



					document.write("<tr id=trCommodity>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='/customer/triggerServices.aspx' class=leftLinks>Commodity Services</a></td>")

					document.write("</tr>")					



					document.write("</table>")

					document.write("</div>")

					document.write("</td>")

					document.write("</tr>")

					document.write("<tr><td class=horSep_tab><img src='"+szPath+"/images/horSep_tabs.gif' width=5 height=37></td>")

					document.write("</tr>")

					document.write("</table>")	

					

				document.write("</div>")

	

				

					document.write("<div id=MarketInformation style=display:none>")

					document.write("<table width=100%  border=0 cellspacing=0 cellpadding=0>")

					document.write("<tr>")

					document.write("<td class=evenBoxHeader>MARKET INFORMATION CENTER</td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td class=evenBoxContent>")

					document.write("<div id=leftnav>")

					document.write("<table width=100%  border=0 cellspacing=0 cellpadding=0>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='/analysisresources/marketanalysis.htm' class=leftLinks>Market Charts and Prices</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src="+szPath+"/images/arrow_orange.gif width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='/custMIC/custMarketInfo.aspx' class=leftLinks>Insights and News</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='/analysisresources/eventsSchedule.aspx' class=leftLinks>Event Schedule</a></td>")

					document.write("</tr>")						

                                        document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='/reports/NymexSettlementReport.aspx' class=leftLinks>Nymex Settlement</a></td>")

					document.write("</tr>")	

					document.write("</table>")

					document.write("</div>")

					document.write("</td>")

					document.write("</tr>")

					document.write("<tr><td class=horSep_tab><img src='"+szPath+"/images/horSep_tabs.gif' width=5 height=37></td>")

					document.write("</tr>")

					document.write("</table>")	

					

				document.write("</div>")

				

				

				

	

				document.write("<div id=FuelOil style=display:none>")

				document.write("<table width=100%  border=0 cellspacing=0 cellpadding=0>")

				document.write("<tr>")

				document.write("<td class=evenBoxHeader>FUEL OIL PRODUCTS</td>")

				document.write("</tr>")

					document.write("<tr>")

					document.write("<td class=evenBoxContent>")

					document.write("<div id=leftnav>")

					document.write("<table width=100%  border=0 cellspacing=0 cellpadding=0>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='fixedPrice.htm' class=leftLinks>Fixed Price</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='capsCollars.htm' class=leftLinks>Caps and Collars</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='floatingPrice.htm' class=leftLinks>Floating Price</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='dualFuel.htm' class=leftLinks>Dual Fuel Products</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='../../customer/glossary.htm#oilterms' class=leftLinks>Glossary</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='index.htm#map' class=leftLinks>Service Areas Map</a></td>")

					document.write("</tr>")

					document.write("</table>")

					document.write("</div>")

					document.write("</td>")

					document.write("</tr>")

					document.write("<tr><td class=horSep_tab><img src='"+szPath+"/images/horSep_tabs.gif' width=5 height=37></td>")

					document.write("</tr>")

					document.write("</table>")	

					

				document.write("</div>")

								

		

				document.write("<div id=DualFuel style=display:none>")

						document.write("<table width=100%  border=0 cellspacing=0 cellpadding=0>")

						document.write("<tr>")

						document.write("<td class=evenBoxHeader>DUAL FUEL PRODUCTS</td>")

						document.write("</tr>")

					document.write("<tr>")

					document.write("<td class=evenBoxContent>")

					document.write("<div id=leftnav>")

					document.write("<table width=100%  border=0 cellspacing=0 cellpadding=0>")

					/*document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='energyElection.htm' class=leftLinks>Energy Election</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='recallIncentive.htm' class=leftLinks>Recall Incentive</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='totalEnergy.htm' class=leftLinks>Total Energy</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='customDualFuel.htm' class=leftLinks>Custom Dual Fuel</a></td>")

					document.write("</tr>")*/

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='/dashboard/unAuthenticatedDualFuel.aspx' class=leftLinks>Dual Fuel Dasboard</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='index.htm' class=leftLinks>Product Overview</a></td>")

					document.write("</tr>")

					document.write("</table>")

						document.write("</div>")

					document.write("</td>")

					document.write("</tr>")

					document.write("<tr><td class=horSep_tab><img src='"+szPath+"/images/horSep_tabs.gif' width=5 height=37></td>")

					document.write("</tr>")

					document.write("</table>")	

					

				document.write("</div>")

								

		

				document.write("<div id=Electricity style=display:none>")

						document.write("<table width=100%  border=0 cellspacing=0 cellpadding=0>")

						document.write("<tr>")

						document.write("<td class=evenBoxHeader>ELECTRICITY PRODUCTS</td>")

						document.write("</tr>")

					document.write("<tr>")

					document.write("<td class=evenBoxContent>")

					document.write("<div id=leftnav>")

					document.write("<table width=100%  border=0 cellspacing=0 cellpadding=0>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='../../products/electricity/fixedPrice.htm' class=leftLinks>Fixed Price</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='../../products/electricity/indexedPrice.htm' class=leftLinks>Indexed Price</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='../../products/electricity/timeOfUse.htm' class=leftLinks>Time-of-Use</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='../../products/electricity/fixedIndexCombination.htm' class=leftLinks>Fixed and Index Combination</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='../../products/electricity/demandresponse.aspx' class=leftLinks>Demand Response Program</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='../../green/renewable.aspx' class=leftLinks>Renewable Energy</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='../../customer/glossary.htm#electricityterms' class=leftLinks>Glossary</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='../../products/electricity/index.htm#map' class=leftLinks>Service Areas Map</a></td>")

					document.write("</tr>")

					document.write("</table>")

						document.write("</div>")

					document.write("</td>")

					document.write("</tr>")

					document.write("<tr><td class=horSep_tab><img src='"+szPath+"/images/horSep_tabs.gif' width=5 height=37></td>")

					document.write("</tr>")

					document.write("</table>")	

					

				document.write("</div>")

								

		

				

				

				document.write("<div id=Green style=display:none>")

					document.write("<table width=100%  border=0 cellspacing=0 cellpadding=0>")

					document.write("<tr>")

					document.write("<td class=evenBoxHeader>GREEN</td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td class=evenBoxContent>")

					document.write("<div id=leftnav>")

					document.write("<table width=100%  border=0 cellspacing=0 cellpadding=0>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='../../green/carbon.aspx' class=leftLinks>C-Neutral</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src="+szPath+"/images/arrow_orange.gif width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='../../products/electricity/demandresponse.aspx' class=leftLinks>Demand Response Program</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='../../green/renewable.aspx' class=leftLinks>Renewable Energy</a></td>")

					document.write("</tr>")						



					document.write("</table>")

					document.write("</div>")

					document.write("</td>")

					document.write("</tr>")

					document.write("<tr><td class=horSep_tab><img src='"+szPath+"/images/horSep_tabs.gif' width=5 height=37></td>")

					document.write("</tr>")

					document.write("</table>")	

					

				document.write("</div>")

			

		

		

				document.write("<div id=FaqSections style=display:none>")

					document.write("<table width=100%  border=0 cellspacing=0 cellpadding=0>")

					document.write("<tr>")

					document.write("<td class=oddBoxHeader>FAQ SECTIONS</td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td class=oddBoxContent>")

					document.write("<div id=leftnav>")

					document.write("<table width=100%  border=0 cellspacing=0 cellpadding=0>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='faq.htm#general' class=leftLinks>General</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='faq.htm#naturalgas' class=leftLinks>Natural Gas</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='faq.htm#fueloil' class=leftLinks>Fuel Oil</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='faq.htm#dualfuel' class=leftLinks>Dual Fuel</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='faq.htm#electricity' class=leftLinks>Electricity</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='faq.htm#Demand Response - PJM (applies to DE, MD, NJ, PA, DC)' class=leftLinks>Demand Response</a></td>")

					document.write("</tr>")

					document.write("</table>")

						document.write("</div>")

					document.write("</td>")

					document.write("</tr>")

					document.write("<tr><td class=horSep_tab><img src='"+szPath+"/images/horSep_tabs.gif' width=5 height=37></td>")

					document.write("</tr>")

					document.write("</table>")	

					

				document.write("</div>")

						

		

		

				document.write("<div id=Glossary style=display:none>")

					document.write("<table width=100%  border=0 cellspacing=0 cellpadding=0>")

					document.write("<tr>")

					document.write("<td class=evenBoxHeader>GLOSSARY OF ENERGY TERMS</td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td class=evenBoxContent>")

					document.write("<div id=leftnav>")

					document.write("<table width=100%  border=0 cellspacing=0 cellpadding=0>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='glossary.htm#gasterms' class=leftLinks>Natural Gas Terms</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='glossary.htm#oilterms' class=leftLinks>Fuel Oil Terms</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='glossary.htm#electricityterms' class=leftLinks>Electricity Terms</a></td>")

					document.write("</tr>")

					document.write("</table>")

						document.write("</div>")

					document.write("</td>")

					document.write("</tr>")

					document.write("<tr><td class=horSep_tab><img src='"+szPath+"/images/horSep_tabs.gif' width=5 height=37></td>")

					document.write("</tr>")

					document.write("</table>")	

					

				document.write("</div>")

									

				document.write("<div id=AboutForm style=display:none>")

					document.write("<ul class=quicklinks>")

					document.write("<li><strong>About this form:</strong></li>")

					document.write("<li><p>This is the Customer Center page. You have to enter your username and password for further proceedings.</p></li>")

					document.write("</ul>")

					

					document.write("<div class=rule><br /></div>")

					

				document.write("</div>")

			

	  

	  

	  document.write("<div id=divQuickLinks>")

	  document.write("<table width=100%  border=0 cellspacing=0 cellpadding=0>")

	  document.write("<tr>")

	  document.write("<td class=oddBoxHeader>QUICK LINKS</td>")

	  document.write("</tr>")

					document.write("<tr>")

					document.write("<td class=oddBoxContent>")

					document.write("<div id=leftnav>")

					document.write("<table width=100%  border=0 cellspacing=0 cellpadding=0>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='"+szPath+"/customer/contact.htm' class=leftLinks>Contact Us</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='"+szPath+"/dashboard/unAuthenticatedDualFuel.aspx' class=leftLinks>Dual Fuel Program</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='"+szPath+"/custMIC/custMarketInfo.aspx' class=leftLinks>Insights and News</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='"+szPath+"/analysisresources/marketAnalysis.htm' class=leftLinks>Market Charts and Prices</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='"+szPath+"/dashboard/unAuthenticated.aspx' class=leftLinks>Manage My Account</a></td>")

					document.write("</tr>")

					document.write("<tr>")

					document.write("<td width=10><img src='"+szPath+"/images/arrow_orange.gif' width=3 height=5></td>")

					document.write("<td class=leftLinkCell><a href='"+szPath+"/customer/requestInfo.aspx' class=leftLinks>Request Information</a></td>")

					document.write("</tr>")

					document.write("</table>")

					document.write("</div>")

					document.write("</td>")

					document.write("</tr>")

					document.write("<tr><td class=horSep_tab><img src='"+szPath+"/images/horSep_tabs.gif' width=5 height=37></td>")

					document.write("</tr>")

					document.write("</table>")	

					

				document.write("</div>")



					

				document.write("<div id=divSearchServices>")

				document.write("<table width=100%  border=0 cellspacing=0 cellpadding=0>")

				document.write("<tr>")

				document.write("<td class=evenBoxHeader>SEARCH SERVICES IN YOUR AREA</td>")

				document.write("</tr>")

				document.write("<tr>")

					document.write("<td class=evenBoxContent>")

					document.write("<div id=leftnav>")

					document.write("<table width=65%  border=0 cellspacing=0 cellpadding=0>")

					document.write("<tr>")

					document.write("<td id=zText class=leftLinkCell>")

					document.write("<a onclick='dummy()'><input tabindex=-1 type=image src="+szPath+"/images/white_bg.jpg /></a><br>")

					document.write("<a onclick='TextChange()' style='TEXT-DECORATION: none'><input id='zip' class=inputTxt type=text maxlength=5 value=zip onkeypress='return clickZipButton(event)' class=textBox style=width:70px></a></td>")

					document.write("<td>")

					document.write("<table width=50%  border=0 cellspacing=0 cellpadding=0>")

					document.write("<tr>")

					//<a id=btnZip onclick=pagetransfer() ><input class=inputBtn type=image name=zSubmit value=submit src="+szPath+"/images/zip_submit.gif /></a>")

					document.write("<td align=right><img src='"+szPath+"/images/but_leftBorder.gif' width=8 height=18></td>")

					document.write("<td nowrap class=buttonBg><a id=btnZip  href='javascript:pagetransfer();' class=button>Go</a><input id='btnZipSearch' style=display:none style=visibility:hidden onclick='javascript:pagetransfer();' type=submit value=SubmitQuery></td>")

					document.write("<td align=left><img src='"+szPath+"/images/but_rightBorder.gif' width=8 height=18></td>")

					document.write("</tr>")

					document.write("</table>")

					document.write("</td>")

					document.write("</tr>")

					document.write("</table>")

					document.write("</div>")

					document.write("</td>")

					document.write("</tr>")

					document.write("<tr><td class=horSep_tab><img src='"+szPath+"/images/horSep_tabs.gif' width=5 height=37></td>")

					document.write("</tr>")

					document.write("</table>")	

					

				document.write("</div>")

				//document.write("<table width = 100%>")

		//document.write("<tr>")

			//document.write("<td id=zText>")

				//document.write("<a onclick=dummy()><input tabindex=-1 type=image src="+szPath+"/images/white_bg.jpg /></a><br>")

				//document.write("  Search Services in Your Area<br clear=all />")

				//document.write("  <span>&nbsp;</span> <input class=inputTxt name=zip type=text maxlength=5 value=zip onbeforeupdate=TextChange()/>&nbsp;<a onclick=pagetransfer()><input class=inputBtn type=image name=zSubmit value=submit src="+szPath+"/images/zip_submit.gif /></a>")

				//document.write("  <span>&nbsp;</span> <a onclick=TextChange()><input id='zip' class=inputTxt type=text maxlength=5 value=zip onkeypress='return clickZipButton()' /></a>&nbsp;<a id=btnZip onclick=pagetransfer() ><input class=inputBtn type=image name=zSubmit value=submit src="+szPath+"/images/zip_submit.gif /></a>")

				

			//document.write("</td>")

		//document.write("</tr>")

		

	//document.write("</table>")



			document.write("<div id=divSiteSearch>")

			document.write("<table width=100%  border=0 cellspacing=0 cellpadding=0>")

			document.write("<tr>")

			document.write("<td class=oddBoxHeader>SITE SEARCH</td>")

				document.write("</tr>")

				document.write("<tr>")

					document.write("<td class=oddBoxContent>")

					document.write("<div id=leftnav>")

					document.write("<table width=95%  border=0 cellspacing=0 cellpadding=0>")

					document.write("<tr>")

					document.write("<td id=zText class=leftLinkCell><input type=text class=inputTxt id=txtSearch onkeypress='clickSearchButton(event)' style=width:110px>")

					document.write("</td>")

					//document.write("</tr>")

					//document.write("<tr>")

					//document.write("<td align=right class=leftLinkCell style=padding-top:8px>")

					//document.write("<tr>")

					document.write("<td valign=bottom align=right ><img src='"+szPath+"/images/but_leftBorder.gif' width=8 height=18></td>")

					document.write("<td nowrap class=buttonSearchBg><a href=javascript:OpenSearchResults(); class=button id=btnSearch>Search</a><input id='btnSiteSearch' style=display:none style=visibility:hidden onclick='javascript:OpenSearchResults();'	type=submit value=SubmitQuery></td>")																																				

					document.write("<td valign=bottom align=left><img src='"+szPath+"/images/but_rightBorder.gif' width=8 height=18></td>")

					document.write("</tr>")					

					//document.write("</td>")

					//document.write("</tr>")

					document.write("</table>")

					document.write("</div>")

					document.write("</td>")

					document.write("</tr>")

			document.write("</table>")

			document.write("</div>")



//document.write("<table>")

//document.write("<tr>")

			//document.write("<td id=zText>")

			//document.write("  Site Search<br clear=all />")

				//document.write(" <span>&nbsp;</span> <input type=text class=inputTxt id=txtSearch onkeypress='clickSearchButton(event)'>&nbsp;<input class=inputBtn type=image id=btnSearch name=Search onclick='return OpenSearchResults()' value=Search src="+szPath+"/images/search.jpg />")

			//document.write("</td>")

		//document.write("</tr>")

		//document.write("</table>")



function Test()

{

alert('test1')

}

function pagetransfer()

{

	var szPath;

	if (document.location.href.indexOf('#') == -1)

	{

		szPath = document.location.href.substr(0, document.location.href.length - (document.location.pathname.length + document.location.search));

		if (document.location.pathname.split('/')[1] != 'analysisresources' && document.location.pathname.split('/')[1] != 'customer' && document.location.pathname.split('/')[1] != 'energymarketing' && document.location.pathname.split('/')[1] != 'products' && document.location.pathname.split('/')[1].substr(document.location.pathname.split('/')[1].length-4) != '.htm')

			szPath += '/' + document.location.pathname.split('/')[1] ;

	}

	else

	{

		var szTmpPath = document.location.href.substr(0,document.location.href.indexOf('#'))

		szPath = szTmpPath.substr(0, szTmpPath.length - (document.location.pathname.length + document.location.search));

		if (document.location.pathname.split('/')[1] != 'analysisresources' && document.location.pathname.split('/')[1] != 'customer' && document.location.pathname.split('/')[1] != 'energymarketing' && document.location.pathname.split('/')[1] != 'products' && document.location.pathname.split('/')[1].substr(document.location.pathname.split('/')[1].length-4) != '.htm')

			szPath += '/' + document.location.pathname.split('/')[1] ;

	}

	

	var regex = new RegExp( /^\d{5}([\-]\d{4})?$/);

	

	if (!regex.test(document.getElementById("zip").value)) 

		{

			alert("Zip code is not valid.");

			document.getElementById("zip").value = "zip";

			

		}

	else

		{

			location.href=szPath+'/customer/requestInfo.aspx?ZipCode='+ document.getElementById("zip").value + '&SideRequest=True' + '&FromSearchServices=True';

			//window.open(szPath+'/customer/requestInfo.aspx?ZipCode='+ document.getElementById("zip").value + '&SideRequest=True' + '&FromSearchServices=True');

			//document.location=szPath+'/customer/requestInfo.aspx?ZipCode='+ document.getElementById("zip").value + '&SideRequest=True' + '&FromSearchServices=True';

		}

	

	

}

function TextChange()

{

	if(document.getElementById("zip").value == "zip")

	{

		document.getElementById("zip").value = "";

	}

}

function Trim(TRIM_VALUE)

{

	if(TRIM_VALUE.length < 1)

	{

	return"";

	}

	TRIM_VALUE = RTrim(TRIM_VALUE);

	TRIM_VALUE = LTrim(TRIM_VALUE);

	if(TRIM_VALUE=="")

	{

	return "";

	}

	else

	{

	return TRIM_VALUE;

	}

} //End Function



function RTrim(VALUE)

{

	var w_space = String.fromCharCode(32);

	var v_length = VALUE.length;

	var strTemp = "";

	if(v_length < 0)

	{

	return"";

	}

	var iTemp = v_length -1;



	while(iTemp > -1)

	{

	if(VALUE.charAt(iTemp) == w_space)

	{

	}

	else

	{

	strTemp = VALUE.substring(0,iTemp +1);

	break;

	}

	iTemp = iTemp-1;



	} //End While

	return strTemp;



} //End Function



function LTrim(VALUE)

{

	var w_space = String.fromCharCode(32);

	if(v_length < 1)

	{

	return"";

	}

	var v_length = VALUE.length;

	var strTemp = "";



	var iTemp = 0;



	while(iTemp < v_length)

	{

	if(VALUE.charAt(iTemp) == w_space)

	{

	}

	else

	{

	strTemp = VALUE.substring(iTemp,v_length);

	break;

	}

	iTemp = iTemp + 1;

	} //End While

	return strTemp;

} //End Function

function OpenSearchResults()

{

	if (Trim(document.getElementById("txtSearch").value) == "")

	{

		alert("Please enter a search phrase.")

		//return false;

	}

	else

	{

		document.location.href=szPath+'/SiteSearch.aspx?szSearch='+ document.getElementById("txtSearch").value;

	}

	//window.showModalDialog('SiteSearch.aspx?szSearch='+ document.getElementById("txtSearch").value,'','dialogHeight:400px;dialogWidth:550px;dialogLeft:300;dialogTop:150;help: No; resizable: No; status: No');

}

function dummy()

{

	return false;

}

function clickSearchButton(e)

{   

      var bt = document.getElementById("btnSiteSearch");       

      if (typeof bt == 'object'){ 

            if(navigator.appName.indexOf("Netscape")>(-1))

            { 

                  if (e.which == 13)

                  { 

                        document.getElementById("btnSiteSearch").click(); 

                        return false; 

                  } 

            } 

            if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1))

            { 

                  if (event.keyCode == 13)

                  { 

                        bt.click(); 

                        return false; 

                  } 

            } 

      } 

} 



function clickZipButton(e)

{ 

      var bt = document.getElementById("btnZipSearch");

     if (typeof bt == 'object'){

            if(navigator.appName.indexOf("Netscape")>(-1)){ 

            //var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;            

            var unicode=e.charCode? e.charCode : e.keyCode  

               if (e.which == 13){ 

                        bt.click(); 

                        return false; 

                  } 

            } 

            if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){ 

                  if (event.keyCode == 13){                  

                        bt.click(); 

                        return false; 

                  } 

            } 

      } 

} 







	

	



