



// 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 activateNav() {
	if(loadedMenuLib && canShowAndHideMenus()) { 		
		mainMenu = new NavMenu("siteMenuSet", true);
		mainMenu.addNode(new MenuNode('menu_head_service', 'menu_body_service', "http://www.integrysenergy.com/service/"));
		mainMenu.addNode(new MenuNode('menu_head_electricity', 'menu_body_electricity', "http://www.integrysenergy.com/electricity/"));
        mainMenu.addNode(new MenuNode('menu_head_naturalgas', 'menu_body_naturalgas', "http://www.integrysenergy.com/naturalgas/"));
		mainMenu.addNode(new MenuNode('menu_head_market', 'menu_body_market', "http://www.integrysenergy.com/market/"));
			
		if (mainMenu != null) mainMenu.activate();
	}
}