//
// This file is placed in the top level of a directory hierarchy
// to automatically generate a menu array and process it for
// display in the Northrop Grumman IT site. The Array is used in the
// left hand nav and controls the Javascript based menus.
//
var origAssetPath = "/IT_Web2/pressroom/" ;
var absAssetPath = "" ;
var fixedABSURL = "" ;
//
// Identify the menu this group applies to: /IT_Web2/IT_Web2.xml
//
var TopicPageAssetId = 2078 ;
var tmpArray = new Array() ;
var MainMenu = new Array() ;
if (TopicPageAssetId == 2264){
// The Active Element
MainMenu[MainMenu.length] = new Array("Who We Are",1) ;
}
else {
MainMenu[MainMenu.length] = new Array("Who We Are",0) ;
}
if (TopicPageAssetId == 1750){
// The Active Element
MainMenu[MainMenu.length] = new Array("What We Offer",1) ;
}
else {
MainMenu[MainMenu.length] = new Array("What We Offer",0) ;
}
if (TopicPageAssetId == 2203){
// The Active Element
MainMenu[MainMenu.length] = new Array("Who We Serve",1) ;
}
else {
MainMenu[MainMenu.length] = new Array("Who We Serve",0) ;
}
if (TopicPageAssetId == 6076){
// The Active Element
MainMenu[MainMenu.length] = new Array("Contracts",1) ;
}
else {
MainMenu[MainMenu.length] = new Array("Contracts",0) ;
}
if (TopicPageAssetId == 44){
// The Active Element
MainMenu[MainMenu.length] = new Array("Careers",1) ;
}
else {
MainMenu[MainMenu.length] = new Array("Careers",0) ;
}
if (TopicPageAssetId == 2078){
// The Active Element
MainMenu[MainMenu.length] = new Array("Press Room",1) ;
}
else {
MainMenu[MainMenu.length] = new Array("Press Room",0) ;
}
if (TopicPageAssetId == 6106){
// The Active Element
MainMenu[MainMenu.length] = new Array("Search",1) ;
}
else {
MainMenu[MainMenu.length] = new Array("Search",0) ;
}
var uListMenu = "
" ;
var uListMenuNumber = 0 ;
var uListMenuId = "" ;
var DQM_array = new Array() ;
// DEBUG : Assettype = SitePage
if( (currentPath == "/IT_Web2/pressroom/" && currentName == "contacts") ||
(String(currentPath + currentName).indexOf("/IT_Web2/pressroom/contacts") >= 0 )) uListMenuId += " class='active' " ;
uListMenu += "- Media Contacts
" ;
uListMenuId= "" ;
// DEBUG : Assettype = Asset Link
// DEBUG : Link Asset
tmpArray = new Array ("","News Archive") ;
if(tmpArray[1].length > 1) {
uListMenu += "- " + tmpArray[1] + "
" ;
}
else {
uListMenu += "- Press Release Archive
" ;
}
// DEBUG : Assettype = SitePage
if( (currentPath == "/IT_Web2/pressroom/" && currentName == "gallery") ||
(String(currentPath + currentName).indexOf("/IT_Web2/pressroom/gallery") >= 0 )) uListMenuId += " class='active' " ;
uListMenu += "- Image Gallery
" ;
uListMenuId= "" ;
// DEBUG : Assettype = Asset Link
// DEBUG : Link Asset
tmpArray = new Array ("","Management Team") ;
if(tmpArray[1].length > 1) {
uListMenu += "- " + tmpArray[1] + "
" ;
}
else {
uListMenu += "- Management Team
" ;
}
// DEBUG : Assettype = SitePage
if( (currentPath == "/IT_Web2/pressroom/" && currentName == "whitepapers") ||
(String(currentPath + currentName).indexOf("/IT_Web2/pressroom/whitepapers") >= 0 )) uListMenuId += " class='active' " ;
uListMenu += "- White Papers
" ;
uListMenuId= "" ;
// DEBUG : Assettype = SitePage
DQM_array[DQM_array.length] = get_empty_array() ;
DQM_array[DQM_array.length - 1][sub_id] = DQM_array.length - 1 ;
DQM_array[DQM_array.length - 1][sub_width] = 210 ;
uListMenuId = "id=\"menu" + uListMenuNumber + "\" " ;
uListMenuId += "onmouseover=\"showMenu(event," + uListMenuNumber + ")\" " ;
uListMenuId += "onmouseout=\"hideMenu(event," + uListMenuNumber + ")\" " ;
uListMenuNumber++ ;
// Begin First Level
if( (currentPath == "/IT_Web2/pressroom/" && currentName == "speeches") ||
(String(currentPath + currentName).indexOf("/IT_Web2/pressroom/speeches") >= 0 )) uListMenuId += " class='active' " ;
uListMenu += "- Speeches
" ;
uListMenuId= "" ;
// DEBUG : Assettype = SitePageHTML
if( (currentPath == "/IT_Web2/pressroom/" && currentName == "press") ||
(String(currentPath + currentName).indexOf("/IT_Web2/pressroom/press") >= 0 )) uListMenuId += " class='active' " ;
uListMenu += "- Press Releases
" ;
uListMenuId= "" ;
// DEBUG : Assettype = SitePage
if( (currentPath == "/IT_Web2/pressroom/" && currentName == "articles") ||
(String(currentPath + currentName).indexOf("/IT_Web2/pressroom/articles") >= 0 )) uListMenuId += " class='active' " ;
uListMenu += "- Articles
" ;
uListMenuId= "" ;
// DEBUG : Assettype = Asset Link
// DEBUG : Link Asset
tmpArray = new Array ("","Awards & Honors") ;
if(tmpArray[1].length > 1) {
uListMenu += "- " + tmpArray[1] + "
" ;
}
else {
uListMenu += "- Awards & Honors
" ;
}
// DEBUG : Assettype = SitePage
if( (currentPath == "/IT_Web2/pressroom/" && currentName == "interviews") ||
(String(currentPath + currentName).indexOf("/IT_Web2/pressroom/interviews") >= 0 )) uListMenuId += " class='active' " ;
uListMenu += "- Interview Requests
" ;
uListMenuId= "" ;
// DEBUG : Assettype = SitePage
if( (currentPath == "/IT_Web2/pressroom/" && currentName == "books") ||
(String(currentPath + currentName).indexOf("/IT_Web2/pressroom/books") >= 0 )) uListMenuId += " class='active' " ;
uListMenu += "- Books
" ;
uListMenuId= "" ;
uListMenu += "
" ;
//
// Locate the active menu and insert the flyouts
//
for( x = 0 ; x < MainMenu.length ; x++) {
if(MainMenu[x][1] == 1) {
MainMenu.splice(x+1,0, new Array(uListMenu,0));
}
}
for( x = 0 ; x < DQM_array.length ; x++) {
DQM_array[x][sub_id] = x ;
build_id(DQM_array[x][sub_menu], DQM_array[x][sub_id] + "_" );
}
eval_array(DQM_array);