



// 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_homes', 'menu_body_homes', "http://www.integrysenergy.com/home/"));
        mainMenu.addNode(new MenuNode('menu_head_business', 'menu_body_business', "http://www.integrysenergy.com/business/"));
		mainMenu.addNode(new MenuNode('menu_head_account', 'menu_body_account', "https://accel.integrysenergy.com/account/"));
		mainMenu.addNode(new MenuNode('menu_head_news', 'menu_body_news', "http://www.integrysenergy.com/news/"));
			
		if (mainMenu != null) mainMenu.activate();
	}
}