// Cascading Popup Menus 



var hBar = new ItemStyle(100, 0, '', 0, 0, '', '#07304c', 'highText', 'highTextHoverH', '', '',
 null, null, 'hand', 'default');
 
 var hFooter = new ItemStyle(100, 0, '', 0, 0, '', '#ffffff', 'footer', 'footerH', '', '',
 null, null, 'hand', 'default');
 
 var hBarNoLink = new ItemStyle(4, 0, '', 10, 0, '#07304c', '#003A63', 'highText', 'highText', '', '',
null, null, 'hand', 'default');
 
 // The sub Menu items

var subM = new ItemStyle(18, 0, '&gt;', -10, 0, '#FFFFFF', '#6699CC', 'menulist', 'menulistJ',
 'itemBorder', 'itemBorder', null, null, 'hand', 'default');

// subBlank 

var subBlank = new ItemStyle(18, 0, '&gt;', -10, 0, '#FFFFFF', '#6699CC', 'menulist', 'menulistJ',
 'itemBorderBlank', 'itemBorder', null, null, 'hand', 'default');



var vBar = new ItemStyle(18, 0, '', 0, 0, '', '', 'menulist', 'menulistH', '', '', null, null, 'hand', 'default');
 
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');
 
var subW = new ItemStyle(18, 0, '', 0, 0, '#FFFFFF', '#6699CC', 'whsMenulist', 'whsMenulistH', '', '', null, null, 'hand', 'default');



// PopupMenu() object

var hMenu = new PopupMenu('hMenu');
with (hMenu)
{


//  'root': the name of this menu.
//   false: orientated as a horizontal menu (true creates a vertical 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('root', false, 'page.elmPos("topnav").x+26', 'page.elmPos("topnav").y+105', 26, hBar, '', false);
addItem('Directorates', 'mDivs', 'sm:', null, 99);
addItem('Leadership', 'mLdrs', 'sm:', null, 92);
addItem('Products &amp; Services', 'mProds', 'sm:', null, 130);
addItem('Business', 'mBusi', 'sm:', null, 80);
addItem('About Us', 'mAbout', 'sm:', null, 70);
addItem('Contact Us', '/contact.html', '', null, 90);


startMenu('mDivs', true, 0, 26, 270, subM, '', false);
addItem('Chief of Staff', '/directorates/chief/index.html', '');
addItem('Defense Business Systems Acquisition Executive', '/directorates/dbsae/index.html', '');
addItem('Enterprise Integration', '/directorates/ei/index.html', '');
addItem('Enterprise Planning and Investment', '/directorates/im/index.html', '');
//addItem('Transformation Planning and Performance', '/directorates/tpp/index.html', '');
addItem('Transformation Priorities and Requirements - FM', '/directorates/prfm/index.html', '');
addItem('Transformation Priorities and Requirements - HRM', '/directorates/prhrm/index.html', '');
addItem('Transformation Priorities and Requirements - SCM', '/directorates/prscm/index.html', '');
addItem('Warfighter Requirements', '/directorates/wso/index.html', '');



startMenu('mLdrs', true, 0, 26, 125, subM, '', false);
addItem('BTA Leadership', '/leadership/bta_leadership.html', '');
addItem('David M. Fisher', '/leadership/fisher.html', '');
addItem('Douglas W. Webster', '/leadership/webster.html', '');
addItem('Lyndi Balven', '/leadership/balven.html', '');
addItem('Michael L. Boller', '/leadership/boller.html', '');
addItem('Kenneth Carroll', '/leadership/carroll.html', '');
addItem('Prashant Gaur', '/leadership/gaur.html', '');
addItem('Andrew S. Haeuptle', '/leadership/haeuptle.html', '');
//addItem('MG Carlos Pair', '/leadership/pair.html', '');
addItem('Kimberly Pisall', '/leadership/pisall.html', '');
addItem('Keith E. Seaman', '/leadership/seaman.html', '');
addItem('William P. Stormer', '/leadership/stormer.html', '');
//addItem('Robert E. Love', '/leadership/love.html', '');
//addItem('Maj. Gen. Darryl Scott', '/leadership/scott.html', '');
//addItem('Paul A. Brinkley', '/leadership/brinkley.html', '');



startMenu('mProds', true, 0, 26, 115, subM, '', false);
addItem('BCL', '/products/bcl.html', '');
addItem('BEA', '/products/bea.html', '');
addItem('Congressional Report', '/products/congressional.html', '');
addItem('DBSAE Portfolio', '/products/dbsae_programs.html', '');
addItem('Enterprise Standards', '/products/enterprise_standards.html', '');
addItem('ERAM', '/products/eram.html', '');
addItem('ETP', '/products/etp.html', '');
addItem('IMIE', '/products/imie.html', '');
addItem('IRB', '/products/irb.html', '');
addItem('LRP', '/products/lrp.html', '');
addItem('SFIS', '/products/sfis.html', '');
addItem('Training', '/products/training/index.html', '');



startMenu('mBusi', true, 0, 26, 115, subM, '', false);
//addItem('CASS Information', '/business/cass.html', '');
addItem('Contracting', '/business/contracting.html', '');
addItem('VIPS Industry Day', 'https://www.fbo.gov/index?s=opportunity&mode=form&id=cbe371249d671e3c823ab39d703c6fe9&tab=core&_cview=0', '');
//addItem('Earmarks', '/business/earmarks/index.html', '');
//addItem('2007 Industry Day', '/business/indday.html', '');

//startMenu('mCass', true, 0, 26, 115, subM, '', false);
//addItem('CASS Information', '../cass.html', '');
//addItem('2007 Industry Day', '../indday.html', '');

//startMenu('mPols', true, 0, 22, 115, subM, '', false);//
//addItem('Announcements', '../policies/announce.html', '');//
//addItem('IRB', '../policies/irb/index.html', '');//


startMenu('mAbout', true, 0, 26, 100, subM, '', false);
addItem('BTA Logo', '/about/logo.html', '');
addItem('Employment', '/about/employment.html', '');
addItem('FAQs', '/about/faqs.html', '');
//addItem('BTA Fellows', '/fellows/index.html', '');
addItem('Links', '/about/links.html', '');
addItem('Mission', '/about/mission.html', '');
addItem('News Archive', '/about/news.html', '');


}
var hMenu2 = new PopupMenu('hMenu2');
with (hMenu2)
{


//  'root': the name of this menu.
//   false: orientated as a horizontal menu (true creates a vertical 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('root2', false, 'page.elmPos("footernav").x+60', 'page.elmPos("footernav").y+15', 33, hFooter, '', false);
addItem('Accessibility', '/accessibility.html', '', null, 80);
addItem('No Fear Act Data', 'http://www.whs.mil/P-E/EEO/NoFearAct.cfm', '', null, 110);
addItem('DoD Web Policy', 'http://www.dod.gov/webmasters/', '', null, 100);
addItem('Privacy & Security', '/privacy.html', '', null, 114);
addItem('Site Map', '/site_map.html', '', null, 60);
addItem('DefenseLink', 'http://www.defenselink.mil', '', null, 90);
addItem('USA.Gov', 'http://www.usa.gov', '', null, 64);
addItem('DCMO', 'http://www.defenselink.mil/dcmo', '', null, 55);




}



// ******************** 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};
};

