// Cascading Popup Menus 

//function ItemStyle(){var names=['len','spacing','popInd','popPos','pad','outCol','overCol','outClass','overClass','outBorder','overBorder','outAlpha','overAlpha','normCursor','nullCursor'];

var hBar = new ItemStyle(100, 0, '', 0, 0, '', '#dc241f', 
						 'highText', 'highTextHoverH', '', '',
 null, null, 'hand', 'default');//HEADERNAV

var wmNav = new ItemStyle(100, 0, '', 0, 0, '', '#dc241f', 
						 'wordmarkText', 'wordmarkTextHoverH', '', '',
 null, null, 'hand', 'default');//WORDMARK

var lNav = new ItemStyle(100, 0, '', 0, 0, '', '#dc241f', 
						 'leftnavText', 'leftnavTextHoverH', '', '',
 null, null, 'hand', 'default');//LEFTNAV

var daihd = new ItemStyle(100, 0, '', 0, 0, '', '#dc241f', 'daihead', 'daiheadHoverH', '', '',
 null, null, 'hand', 'default');//LEFTNAVCategoryHeader

var daihdtop = new ItemStyle(100, 0, '', 0, 0, '', '#dc241f', 'daiheadtop', 'daiheadtop', '', '',
 null, null, 'hand', 'default');//LEFTNAVTopHeader
 
 var hFooter = new ItemStyle(100, 0, '', 0, 0, '', '#ffffff', 'footer', 'footerH', '', '',
 null, null, 'hand', 'default');//FOOTERNAV
 
 var hBarNoLink = new ItemStyle(4, 0, '', 10, 0, '#003A63', '#003A63', 'highText', 'highText', '', '',
null, null, 'hand', 'default');//doesn't do anything?
 
 // The sub Menu items

var subM = new ItemStyle(18, 0, '&gt;', -10, 0, '#FFFFFF', '#6699CC', 'menulist', 'menulistJ',
 'itemBorder', 'itemBorder', null, null, 'hand', 'default');//doesn't do anything?

// subBlank 

var subBlank = new ItemStyle(18, 0, '&gt;', -10, 0, '#FFFFFF', '#6699CC', 'menulist', 'menulistJ',
 'itemBorderBlank', 'itemBorder', null, null, 'hand', 'default');//doesn't do anything?



var vBar = new ItemStyle(18, 0, '', 0, 0, '', '', 'menulist', 'menulistH', '', '', null, null, 'hand', 'default');//doesn't do anything?
 
var subV = new ItemStyle(18, 0, '', 0, 0, '#FFFFFF', '#6699CC', 'menulist', 'menulistH', 'itemBorder', 'itemBorder', null, null, 'hand', 'default');//??????


var wBar = new ItemStyle(18, 0, '', 0, 0, '#E1EAF2', '#E1EAF2', 'whsMenulist', 'whsMenulistH', '', '', null, null, 'hand', 'default');//doesn't do anything
 
var subW = new ItemStyle(18, 0, '', 0, 0, '#FFFFFF', '#6699CC', 'whsMenulist', 'whsMenulistH', '', '', null, null, 'hand', 'default');//doesn't do anything



// PopupMenu() object


var hMenu3 = new PopupMenu('hMenu3');
with (hMenu3)
{


//  'root3': the name of this menu.
//   true: orientated as a vertical menu (false creates a horizontal menu).
//      10: the 'left' offset of this menu in pixels.
//       0: the 'top' offset of this menu in pixels.
//      17: the height of this menu (for vertical menus, this becomes the menu width).
//    hBar: the ItemStyle used to give this menu colours and layout/formatting.
//      '': this menu does not display within a frame (see the Frameset Example Script to do that).
//   false: this menu shows submenus on mouseover. 'true' means show on click.
//


startMenu('root3', true, 'page.elmPos("leftnav").x-40', 'page.elmPos("leftnav").y-20', 180, lNav, '', false);
addItem('DoDIEA 1.1 Products', null, '', daihdtop, 30);
addItem('Project Charter (AV-1)', 'products/DIEA_Charter_v1-0.pdf', '', null, 18);
addItem('Hierarchical Activity Model (OV-5)','DIEA_HTML/IWP/default.htm', '', null, 30);
addItem('Principles and Rules (OV-6a)', 'products/Consolidated Principles and Business Rules.pdf', '', null, 18);
addItem('Glossary (AV-2)', 'products/glossary.pdf', '', null, 18);
addItem('----------------------', null, '', null, 18);
addItem('NCOW RM 1.2 Activity Definitions', 'products/NCOW_RM_v1_2_Activity_Definitions.pdf', '', null, 30);
addItem('FAQs', 'faq.html', '', null, 18);

addItem('Net-Centric Guidance', '', '', daihdtop, 18);
addItem('DoD CIO Homepage', '../../', '', null, 18);
addItem('DoD CIO Strategic Plan', 'DoDCIO_Strat_Plan.pdf', '', null, 18);
addItem('DoD Net-Centric Data Strategy', 'Net-Centric-Data-Strategy-2003-05-092.pdf', '', null, 30);
addItem('DoD Net-Centric Services Strategy', 'Services_Strategy.pdf', '', null, 30);
addItem('DoD Information Assurance Policy', '850001p.pdf', '', null, 30);
addItem('DoD Information Sharing Strategy', 'InfoSharingStrategy.pdf', '', null, 30);
addItem('DoD IT Portfolio Management Directive', '811501p.pdf', '', null, 30);
addItem('DoD Telecommunications Directive', 'DoD_464013p.pdf', '', null, 30);
addItem('Net-Centric Enterprise Information Assurance (IA) Strategy', 'products/PP-06-0393_NC_IA_Strategy_26April06.doc', '', null, 42);
addItem('Net-Centric Spectrum Management Strategy', 'products/Signed_DoD_Net-Centric_Spectrum_Mngt_Strategy.pdf', '', null, 30);
addItem('NetOps Strategic Vision', '../../docs/DoD_NetOps_Strategic_Vision.pdf', '', null, 30);


addItem('Transition Partners', '', '', daihdtop, 18);
addItem('Defense Business Transformation', 'http://www.defenselink.mil/dbt', '', null, 30);

addItem('Privacy and Web Policies', '', '', daihdtop, 18);
addItem('Privacy Policy', '../../other/privacy.shtml', '', null, 18);
addItem('DoD Web Policy', 'http://www.dod.mil/webmasters/', '', null, 18);

//addItem('Time & Attendance', '/bta/dai/process_areas/time_attendance.html', '', null, 18);
//addItem('Budget to Report ', '/bta/dai/process_areas/budget.html', '', null, 18);
//addItem('Cost Accounting', '/bta/dai/process_areas/costs_accounting.html', '', null, 18);
//addItem('Grants Accounting', '/bta/dai/process_areas/grants_accounting.html', '', null, 18);

}



// ******************** FUNCTIONS CALLED BY THE EFFECTS SECTION ********************



// positioning from page anchors code used by the advanced positioning expressions.

page.elmPos=function(e,p)
{
 var x=0,y=0,w=p?p:this.win;
 e=e?(e.substr?(isNS4?w.document.anchors[e]:getRef(e,w)):e):p;
 if(isNS4){if(e&&(e!=p)){x=e.x;y=e.y};if(p){x+=p.pageX;y+=p.pageY}}
 if (e && this.MS && navigator.platform.indexOf('Mac')>-1 && e.tagName=='A')
 {
  e.onfocus = new Function('with(event){self.tmpX=clientX-offsetX;' +
   'self.tmpY=clientY-offsetY}');
  e.focus();x=tmpX;y=tmpY;e.blur()
 }
 else while(e){x+=e.offsetLeft;y+=e.offsetTop;e=e.offsetParent}
 return{x:x,y:y};
};

