



// Code follows to configure the menu to use the HTML on this
// page. Note that we are requiring that the client have Javascript1.2
// for this code to execute.

// *** THIS CODE SHOULD BE EXECUTED AFTER THE HTML IT
// *** REFERS TO HAS BEEN LOADED.
//
// Instead of placing the code after the HTML as you see
// here, you could place it in a function and call the
// function once the target HTML/page has loaded
// (through the BODY tag's onLoad event, for example).
//

// If we've loaded the menu library and the
// library supports this browser, set it up:

// ---------------------------------------------

// var mainMenu = null
// Declare our new menu, which will store its prefs in
// a cookie named "testMenuSet" (assuming the browser allows the
// cookie), and will collapse all other nodes when a user opens
// a node (hence the "true").

// Create and add a node for each set of menu header/body.
// menu_head_MyAccount is the ID of the element encapsulating the "My Account" header
// (the ID of a <SPAN> tag in this case), and menu_body_MyBill is the ID of
// the <TR> tag encapsulating the menu's 'body'.

// ---------------------------------------------

// Now the menu has been all configured and ready to go. It's time to
// activate the menu. This function call adds <A> .. </A> tags around your Nodes'
// header text, and uses the cookie to set the default look of your menu. If
// no cookie exists yet, the menu will be completely closed.

		
var mainMenu = null

function activateHomeSideNav() {
	if(loadedMenuLib && canShowAndHideMenus()) { 		
		mainMenu = new NavMenu("homeMenuSet", true);
		mainMenu.addNode(new MenuNode('menu_head_1', 'menu_body_1', 'http://www.minnesotaenergyresources.com/home/saving.aspx'));
		mainMenu.addNode(new MenuNode('menu_head_2', 'menu_body_2', 'http://www.minnesotaenergyresources.com/home/rates.aspx'));
		mainMenu.addNode(new MenuNode('menu_head_3', 'menu_body_3', 'http://www.minnesotaenergyresources.com/home/safety.aspx'));
		mainMenu.addNode(new MenuNode('menu_head_4', 'menu_body_4', 'http://www.minnesotaenergyresources.com/service/'));			
			
		if (mainMenu != null)
			mainMenu.activate();
		}
}

function activateBusinessSideNav() {
	if(loadedMenuLib && canShowAndHideMenus()) { 		
		mainMenu = new NavMenu("businessMenuSet", true);
		mainMenu.addNode(new MenuNode('menu_head_1', 'menu_body_1', 'http://www.minnesotaenergyresources.com/business/saving.aspx'));
		mainMenu.addNode(new MenuNode('menu_head_1b', 'menu_body_1b', 'http://www.minnesotaenergyresources.com/business/eis.aspx'));
		mainMenu.addNode(new MenuNode('menu_head_2', 'menu_body_2', 'http://www.minnesotaenergyresources.com/business/rates.aspx'));
		mainMenu.addNode(new MenuNode('menu_head_3', 'menu_body_3', 'http://www.minnesotaenergyresources.com/business/ed.aspx'));
		mainMenu.addNode(new MenuNode('menu_head_4', 'menu_body_4', 'http://www.minnesotaenergyresources.com/business/safety.aspx'));
		mainMenu.addNode(new MenuNode('menu_head_5', 'menu_body_5', 'http://www.minnesotaenergyresources.com/service/'));			
			
		if (mainMenu != null)
			mainMenu.activate();
		}
}

function activateServiceSideNav() {
	if(loadedMenuLib && canShowAndHideMenus()) { 		
		mainMenu = new NavMenu("serviceMenuSet", true);
		mainMenu.addNode(new MenuNode('menu_head_1', 'menu_body_1', 'http://www.minnesotaenergyresources.com/service/bill.aspx'));
		mainMenu.addNode(new MenuNode('menu_head_6', 'menu_body_6', 'http://www.minnesotaenergyresources.com/service/homeservices.aspx'));
		mainMenu.addNode(new MenuNode('menu_head_2', 'menu_body_2', 'http://www.minnesotaenergyresources.com/service/moving.aspx'));
		mainMenu.addNode(new MenuNode('menu_head_3', 'menu_body_3', 'http://www.minnesotaenergyresources.com/service/building.aspx'));
		mainMenu.addNode(new MenuNode('menu_head_4', 'menu_body_4', 'http://www.minnesotaenergyresources.com/service/problem.aspx'));
		mainMenu.addNode(new MenuNode('menu_head_5', 'menu_body_5', 'http://www.minnesotaenergyresources.com/service/mop.aspx'));

					
			
		if (mainMenu != null)
			mainMenu.activate();
		}
}

function activateNewsSideNav() {
	if(loadedMenuLib && canShowAndHideMenus()) { 
		mainMenu = new NavMenu("newsMenuSet", true);
		mainMenu.addNode(new MenuNode('menu_head_1', 'menu_body_1', 'http://www.minnesotaenergyresources.com/news/about.aspx'));
		mainMenu.addNode(new MenuNode('menu_head_2', 'menu_body_2', 'http://www.minnesotaenergyresources.com/news/news.aspx'));
		mainMenu.addNode(new MenuNode('menu_head_3', 'menu_body_3', 'http://www.minnesotaenergyresources.com/news/community.aspx'));
		mainMenu.addNode(new MenuNode('menu_head_4', 'menu_body_4', 'http://www.minnesotaenergyresources.com/news/environment.aspx'));
		mainMenu.addNode(new MenuNode('menu_head_5', 'menu_body_5', 'http://www.minnesotaenergyresources.com/news/regulatory.aspx'));			
			
		if (mainMenu != null)
			mainMenu.activate();
		}
}