
// Syntaxes: *** START EDITING HERE, READ THIS SECTION CAREFULLY! ***
//
// Each menu instance is created with the following parameters 
// menu[menuNumber][0] = new Menu(Vertical menu? (true/false),
//								  'popout indicator'( <, >), 
//								  left,
//								  top,
//								  width,
//								  'mouseover color',
//								  'background color',
//								  'border stylesheet',
//								  'text stylesheet');
//
// Left and Top are measured on-the-fly relative to the top-left corner of its trigger, or
// for the root menu, the top-left corner of the page.
//
// Each menu item instance is created with the following
// menu[menuNumber][itemNumber] = new Item('Text',
//										   'URL',
//										   'target frame', 
//										   length of menu item,
//										   additional spacing to next menu item, 
//										   number of target menu to popout);
//
// If no target menu (popout) is desired, set it to 0. Likewise, if your site does not use
// frames, pass an empty string as a frame target.
//
// Something that needs explaining - the Vertical Menu setup. You can see most menus below
// are 'true', that is they are vertical, except for the first root menu. The 'length' and
// 'width' of an item depends on its orientation -- length is how long the item runs for in
// the direction of the menu, and width is the lateral dimension of the menu. Just look at
// the examples and tweak the numbers, they'll make sense eventually :).

	
	var menu = new Array();

	// Default set up values passed to most menu constructors (just passed to functions, not
	// a global variable - makes things easier to change later in bulk).
	
	var defOver = '#F5EFD0';  //default MouseOver color
	var defBack = '#fff';  //default Background color
	var defBorderCSS = 'menuborder';  //default border CSS
	var defItemTextCSS = 'dropmenu';  //default text CSS
	var menuLeftPos = 175;
	var menuTopPos = 40;
	var menuVerticalSpacing = 19;

	var defLength1 = 20;   
	var defLength2 = 33;   
	var defLength3 = 46;   
	var defLength4 = 59;   
	var defWidth = 170; 	
	var headerSpacing = 85;  //Default spacing for the header
	var popimg = '<img src="/images/dropmenuarrow.gif"/>'
	var popimgleft = '<img src="/images/dropmenuarrowleft.gif"/>'
	
	
	
	menu[0] = new Array();  // Menu
	
	menu[0][0] = new Menu(false, '',  menuLeftPos, menuTopPos, defLength1, '','','', defItemTextCSS);
	menu[0][1] = new Item("", '/investors/publications/annual/ar_2004/financials/',  '_top', headerSpacing, 0 , 1);
	menu[0][2] = new Item("", '/investors/publications/annual/ar_2004/chairman/',  '_top', headerSpacing, 0 , 2);
	menu[0][3] = new Item("", '/investors/publications/annual/ar_2004/operations/',  '_top', headerSpacing, 0 , 3);
	menu[0][4] = new Item("", '/investors/publications/annual/ar_2004/leadership/',  '_top', headerSpacing, 0 , 4);
	menu[0][5] = new Item("", '/investors/publications/annual/ar_2004/investor/',  '_top', headerSpacing, 0 , 0);
	menu[0][6] = new Item("", '/investors/publications/annual/ar_2004/downloads/',  '_top', headerSpacing, 0 , 0);
	menu[0][7] = new Item("", '/investors/publications/annual/ar_2004/feedback/',  '_top', 0, 0 , 5);
	
	menu[1] = new Array();  //Financials Menu
	
	menu[1][0] = new Menu(true, popimg,  -6, defLength1, 165, defOver, defBack, defBorderCSS, defItemTextCSS);
	menu[1][1] = new Item("Safe Harbor Statement", '/investors/publications/annual/ar_2004/financials/safe_harbor.asp',  '_top', defLength1, 0 , 0);
	menu[1][2] = new Item("Financial Highlights", '/investors/publications/annual/ar_2004/financials/highlights.asp',  '_top', defLength1, 0 , 0);
	menu[1][3] = new Item("Consolidated Statements of Operations", '/investors/publications/annual/ar_2004/financials/operations.asp',  '_top', defLength2, 0 , 0);
	menu[1][4] = new Item("Consolidated Balance Sheets", '/investors/publications/annual/ar_2004/financials/balance_sheets.asp',  '_top', defLength2, 0 , 0);
	menu[1][5] = new Item("Consolidated Statements of Cash Flows", '/investors/publications/annual/ar_2004/financials/cash_flows.asp',  '_top', defLength2, 0 , 0);
	menu[1][6] = new Item("Consolidated Statements of Common Stockholders' Equity and Comprehensive Income (Loss)", '/investors/publications/annual/ar_2004/financials/equity.asp',  '_top', defLength4, 0 , 0);
	menu[1][7] = new Item("Non-GAAP Financial Measures", '/investors/publications/annual/ar_2004/financials/non_gaap.asp',  '_top', defLength2, 0 , 0);
	
	menu[2] = new Array();  //From the Chairman Menu
	
	menu[2][0] = new Menu(true, popimg,  -5, defLength1, 145, defOver, defBack, defBorderCSS, defItemTextCSS);
	menu[2][1] = new Item("Letter to Shareholders", '/investors/publications/annual/ar_2004/chairman/letter.asp',  '_top', defLength1, 0 , 0);
	menu[2][2] = new Item("Financial Highlights", '/investors/publications/annual/ar_2004/chairman/highlights.asp',  '_top', defLength1, 0 , 0);
	menu[2][3] = new Item("2005 Charter", '/investors/publications/annual/ar_2004/chairman/charter.asp',  '_top', defLength1, 0 , 0);
	
	menu[3] = new Array();  //Operations Menu
	
	menu[3][0] = new Menu(true, popimg,  55, defLength1, 130, defOver, defBack, defBorderCSS, defItemTextCSS);
	menu[3][1] = new Item("President's Report", '/investors/publications/annual/ar_2004/operations/report.asp',  '_top', defLength1, 0 , 0);
	menu[3][2] = new Item("Duke Power", '/investors/publications/annual/ar_2004/operations/dp.asp',  '_top', defLength1, 0 , 0);
	menu[3][3] = new Item("Duke Energy Gas Transmission", '/investors/publications/annual/ar_2004/operations/degt.asp',  '_top', defLength2, 0 , 0);
	menu[3][4] = new Item("Duke Energy Field Services", '/investors/publications/annual/ar_2004/operations/defs.asp',  '_top', defLength2, 0 , 0);
	menu[3][5] = new Item("Duke Energy North America", '/investors/publications/annual/ar_2004/operations/dena.asp',  '_top', defLength2, 0 , 0);
	menu[3][6] = new Item("Duke Energy International", '/investors/publications/annual/ar_2004/operations/dei.asp',  '_top', defLength2, 0 , 0);
	menu[3][7] = new Item("Crescent Resources", '/investors/publications/annual/ar_2004/operations/crescent.asp',  '_top', defLength1, 0 , 0);
	
	menu[4] = new Array();  //Leadership Menu
	
	menu[4][0] = new Menu(true, popimg,  60, defLength1, 140, defOver, defBack, defBorderCSS, defItemTextCSS);
	menu[4][1] = new Item("Board of Directors", '/investors/publications/annual/ar_2004/leadership/board.asp',  '_top', defLength1, 0 , 0);
	menu[4][2] = new Item("Executive Management", '/investors/publications/annual/ar_2004/leadership/executive.asp',  '_top', defLength1, 0 , 0);
	
	menu[5] = new Array();  //Feedback Menu
	
	menu[5][0] = new Menu(true, popimg,  -76, -14, 170, defOver, defBack, defBorderCSS, defItemTextCSS);
	menu[5][1] = new Item("Tell Us What You Think", 'javascript:O_LC()',  '_top', defLength1, 0 , 0);
	menu[5][2] = new Item("Opt Out of Printed Materials", 'https://www.icsdelivery.com/duk/index.html',  '_blank', defLength1, 0 , 0);
	menu[5][3] = new Item("Contact Investor Relations", 'https://mdenote1.duke-energy.com/custweb/email.nsf/Contact?OpenForm&RBU=21',  '_blank', defLength1, 0 , 0);