
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.substr(document.location.pathname.length-4) != '.htm')
		szPath += '/' + document.location.pathname.split('/')[1] ;
	else if (document.location.pathname.split('/')[2] != 'analysisresources' || document.location.pathname.split('/')[2] != 'customer' || document.location.pathname.split('/')[2] != 'energymarketing' || document.location.pathname.split('/')[2] != 'products' && document.location.pathname.substr(document.location.pathname.length-4) != '.htm')
		szPath += '/' + document.location.pathname.split('/')[1];	*/

}


	var NoOffFirstLineMenus=7;
  	var LowBgColor='#e6f0eb';
  	var HighBgColor='#a0c5b4';
	var FontLowColor='#000000';
	var FontHighColor='#FFFFFF';
  	var BorderColor='#FFFFFF';
	var BorderWidthMain=0;
	var BorderWidthSub=1;
	var BorderBtwnMain=1;
	var BorderBtwnSub=1;
  	var FontFamily="Verdana, Geneva, Arial, Helvetica, sans-serif"
	var FontSize=8;
	var FontBold=1;
	var FontItalic=0;
  	var MenuTextCentered='left';
	var MenuCentered="left";
	var MenuVerticalCentered="top";
	var ChildOverlap=2.31;
	var ChildVerticalOverlap=0;
	var LeftPaddng=4;
	var TopPaddng=4;
	
	var StartLeft=24;
	var VerCorrect=0;
	var HorCorrect=-2;
	var FirstLineHorizontal=2;
	var MenuFramesVertical=0;
	var DissapearDelay=1000;
	var UnfoldDelay=100;
	var TakeOverBgColor=1;
	var FirstLineFrame='topFrame';
	var SecLineFrame='contents';
  	var DocTargetFrame='contents';
	var MenuWrap=1;
	var TargetLoc='';
	var RightToLeft=1;
	var BottomUp=0;
	var UnfoldsOnClick=0;
	var WebMasterCheck=0;
	var KeepHilite=0;
	var BaseHref="";
  	var Arrws=['',4,8,'',4,8,'',4,8];
	var MenuUsesFrames=0;
	var RememberStatus=2;
	var PartOfWindow=.75;
	var BuildOnDemand=1;
	var MenuSlide="";
	var MenuShadow="";
	var MenuOpacity="";
	var stAppPath = "";


	if(navigator.appName.indexOf("Netscape")>(-1))
    { 
        var StartTop=133;    
            
    } 
    if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1))
    { 
         var StartTop=140;   
    } 
         
function menumouseover(obj)
{
	obj.style.color="white"
}   

function menumouseout(obj)
{
	obj.style.color="black"
}   
            
function BeforeStart(){return}
function AfterBuild(){
	if(FrstCreat){return}}
function BeforeFirstOpen(){return}
function AfterCloseAll()
	{
		var selects=document.getElementsByTagName('select');
		var textboxs=document.getElementsByTagName('input');
		for (var i = 0; i < selects.length; i++)
			{
				if(selects[i].name.indexOf("ddlProfile")>-1) 
					{
						selects[i].style.visibility='';
					}
				if(selects[i].name.indexOf("ddlSoldToPrime")>-1) 
					{
						selects[i].style.visibility='';
					}
			}
		for (var j = 0; j < textboxs.length; j++)
			{
				if(textboxs[j].name.indexOf("txtUserName")>-1) 
					{
						textboxs[j].style.visibility='';
					}
			}
		return;
	}

// Below statement is to assign the image path

var imagepath =  "/images/";	
var stAppPath =  szPath + "/";
//End statement


// Menu tree:
// MenuX=new Array("ItemText","Link","background image",number of sub elements,height,width,"bgcolor","bghighcolor",
//  "fontcolor","fonthighcolor","bordercolor","fontfamily",fontsize,fontbold,fontitalic,"textalign","statustext");
// Color and font variables defined in the menu tree take precedence over the global variables
// Fontsize, fontbold and fontitalic are ignored when set to -1.
// For rollover images ItemText format is:  "rollover?../images/nav/Image1.jpg?../images/nav/Image2.jpg" 

//Menu starts here

Menu1=new Array("rollover?" + imagepath + "menu_products.gif?" + imagepath + "menu_products_on.gif",stAppPath + "products/Index.aspx",'',4 ,23,166,"","","","","","",-1,-1,-1,"","");

  //Menu1_1=new Array("Overview",stAppPath + "products/Index.aspx",'',0,22,161,"","","","","","",-1,-1,-1,"","");
  		
  Menu1_1=new Array("Electricity",stAppPath + "products/electricity/index.aspx",'',7,22,161,"","","","","","",-1,-1,-1,"","");  
			Menu1_1_1=new Array("Fixed Price",stAppPath + "products/electricity/fixedPrice.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");
			Menu1_1_2=new Array("Indexed Price",stAppPath + "products/electricity/indexedPrice.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");
			Menu1_1_3=new Array("Time-of-Use",stAppPath + "products/electricity/timeOfUse.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");			
			Menu1_1_4=new Array("Fixed and Index Combination",stAppPath + "products/electricity/fixedIndexCombination.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");			
			Menu1_1_5=new Array("Demand Response Program",stAppPath + "products/electricity/DR.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");
			Menu1_1_6=new Array("Renewable Energy",stAppPath + "products/electricity/Renewable.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");			
			Menu1_1_7=new Array("<table><tr><td valign='middle' onmouseover='menumouseover(this)' onmouseout='menumouseout(this)' style='FONT-SIZE: 11px; fontFamily: Verdana, Geneva, Arial, Helvetica, sans-serif'><B>PA Deregulation</B></td></tr></table>",stAppPath + "products/electricity/PA.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");
			
			
  /*Menu1_5=new Array("Dual Fuel",stAppPath + "products/dualfuel/index.htm",'',2,22,161,"","","","","","",-1,-1,-1,"",""); 
    		Menu1_5_1=new Array("Dual Fuel Dashboard",stAppPath + "dashboard/unAuthenticatedDualFuel.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");
  			Menu1_5_2=new Array("Product Overview",stAppPath + "products/dualfuel/index.htm",'',0,22,210,"","","","","","",-1,-1,-1,"","");
  			//Menu1_5_3=new Array("Energy Election",stAppPath + "products/dualfuel/energyElection.htm",'',0,22,210,"","","","","","",-1,-1,-1,"","");
			//Menu1_5_4=new Array("Recall Incentive",stAppPath + "products/dualfuel/recallIncentive.htm",'',0,22,210,"","","","","","",-1,-1,-1,"","");
			//Menu1_5_5=new Array("Total Energy",stAppPath + "products/dualfuel/totalEnergy.htm",'',0,22,210,"","","","","","",-1,-1,-1,"","");
			//Menu1_5_6=new Array("Custom Dual Fuel",stAppPath + "products/dualfuel/customDualFuel.htm",'',0,22,210,"","","","","","",-1,-1,-1,"","");
 */		
  Menu1_2=new Array("Green",stAppPath + "products/green/index.aspx",'',3,22,161,"","","","","","",-1,-1,-1,"","");
            Menu1_2_1=new Array("Demand Response Program",stAppPath + "products/green/DR.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");
			Menu1_2_2=new Array("<table><tr><td valign='middle' onmouseover='menumouseover(this)' onmouseout='menumouseout(this)' style='FONT-SIZE: 11px; fontFamily: Verdana, Geneva, Arial, Helvetica, sans-serif'><B>Renewable Energy</B></td></tr></table>",stAppPath + "products/green/Renewable.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");
			Menu1_2_3=new Array("Hess C-Neutral",stAppPath + "products/green/CNeutral.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");
			
  Menu1_3=new Array("Natural Gas",stAppPath + "products/naturalgas/Index.aspx",'',4,22,161,"","","","","","",-1,-1,-1,"","");  
			Menu1_3_1=new Array("Fixed Price",stAppPath + "products/naturalgas/FixedPrice.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");
			Menu1_3_2=new Array("NYMEX Plus Basis",stAppPath + "products/naturalgas/NymexPlusBasis.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");
			Menu1_3_3=new Array("Hess PRiME",stAppPath + "products/naturalgas/HessPrime.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");
//			Menu1_3_4=new Array("Dynamic Triggering",stAppPath + "products/naturalgas/DynamicTriggering.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");
//	Fix 339	Menu1_3_4=new Array("Caps and Collars",stAppPath + "products/naturalgas/CapsandCollars.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");
			Menu1_3_4=new Array("Dual Fuel",stAppPath + "products/naturalgas/DualFuel.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");
			

  Menu1_4=new Array("Fuel Oil",stAppPath + "products/fueloil/Index.aspx",'',3,22,161,"","","","","","",-1,-1,-1,"","");    
			Menu1_4_1=new Array("Fixed Price",stAppPath + "products/fueloil/fixedPrice.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");
// Fix 339	Menu1_4_2=new Array("Caps and Collars",stAppPath + "products/fueloil/capsAndCollars.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");
			Menu1_4_2=new Array("Floating Price",stAppPath + "products/fueloil/floatingPrice.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");
			Menu1_4_3=new Array("Dual Fuel",stAppPath + "products/fueloil/dualFuel.aspx",'',0,22,210,"","","","","","",-1,-1,-1,"","");
		
Menu2=new Array("rollover?" + imagepath + "pixel.gif?" + imagepath + "pixel.gif","",'',0,23,10,"#15522e","","","","","",-1,-1,-1,"","");

Menu3=new Array("rollover?" + imagepath + "menu_market.gif?" + imagepath + "menu_market_on.gif",stAppPath + "custMIC/custMarketInfo.aspx",'',5,23,166,"","","","","","",-1,-1,-1,"","");

  Menu3_1=new Array("Overview ",stAppPath + "analysisresources/index.htm",'',0,22,190,"","","","","","",-1,-1,-1,"","");
  Menu3_2=new Array("Market Charts and Prices",stAppPath + "analysisresources/marketAnalysis.htm",'',0,22,190,"","","","","","",-1,-1,-1,"","");  
  Menu3_3=new Array("Insights and News",stAppPath + "custMIC/custMarketInfo.aspx",'',0,22,190,"","","","","","",-1,-1,-1,"","");    
  Menu3_4=new Array("Events Schedule",stAppPath + "analysisresources/eventsSchedule.aspx",'',0,22,190,"","","","","","",-1,-1,-1,"","");  
  Menu3_5=new Array("NYMEX Settlement",stAppPath + "reports/NymexSettlementReport.aspx",'',0,22,190,"","","","","","",-1,-1,-1,"","");  
  

Menu4=new Array("rollover?" + imagepath + "pixel.gif?" + imagepath + "pixel.gif","",'',0,23,10,"#15522e","","","","","",-1,-1,-1,"","");

Menu5=new Array("rollover?" + imagepath + "menu_manage.gif?" + imagepath + "menu_manage_on.gif",stAppPath + "dashboard/UnAuthenticated.aspx",'',0,23,166,"","","","","","",-1,-1,-1,"","");

  /*Menu5_1=new Array("Dashboard ",stAppPath + "dashboard/UnAuthenticated.aspx",'',0,22,161,"","","","","","",-1,-1,-1,"","");
  Menu5_2=new Array("Customer Service",stAppPath + "customer/customerService.aspx",'',0,22,161,"","","","","","",-1,-1,-1,"","");  
  Menu5_3=new Array("Contact Us",stAppPath + "customer/contact.htm",'',0,22,161,"","","","","","",-1,-1,-1,"","");    */
  
Menu6=new Array("rollover?" + imagepath + "pixel.gif?" + imagepath + "pixel.gif","",'',0,23,10,"#15522e","","","","","",-1,-1,-1,"","");

Menu7=new Array("rollover?" + imagepath + "menu_online.gif?" + imagepath + "menu_online_on.gif",stAppPath + "siteMap.htm",'',7,23,166,"","","","","","",-1,-1,-1,"","");

  Menu7_1=new Array("Sitemap ",stAppPath + "siteMap.htm",'',0,22,161,"","","","","","",-1,-1,-1,"","");
  Menu7_2=new Array("Glossary",stAppPath + "customer/glossary.htm",'',0,22,161,"","","","","","",-1,-1,-1,"","");  
  Menu7_3=new Array("FAQ",stAppPath + "customer/faq.htm",'',0,22,161,"","","","","","",-1,-1,-1,"","");    
  Menu7_4=new Array("Conversion Calculator",stAppPath + 'dashboard/conversionCalculator.aspx','',0,22,161,"","","","","","",-1,-1,-1,"","");
  Menu7_5=new Array("Conversion Factors",stAppPath + 'dashboard/conversionChart.aspx','',0,22,161,"","","","","","",-1,-1,-1,"","");
  Menu7_6=new Array("Help","javascript:window.open('" + stAppPath + "WebHelp/Hess_Energy_Marketing.htm','', 'width=700,height=400,left=200,top=200,resizable=yes,scrollbars=yes')",'',0,22,161,"","","","","","",-1,-1,-1,"","");  
  Menu7_7=new Array("Site Search",stAppPath + 'SiteSearch.aspx?ref=home','',0,22,161,"","","","","","",-1,-1,-1,"","");
 