function activateflyFAAMenu(menuLayerRef, offset) {
	if (vg_PageLoaded) {
		openPositionedMenu(menuLayerRef, offset);
	}
}

// These pixel offsets are designed to handle one choice of
// font size: 12 for variable width fonts, and 10 for fixed width fonts
// openPositionedMenu positions the menus properly for flyFAA pages 
// which have the FAA banner on them 
function openPositionedMenu(menuLayerRef, offset) {
	var styleObject = null;
	var objectStyle = null;

	if (isDynamic && activeMenu != menuLayerRef) {
		if (activeMenu) hideMenu("menu" + activeMenu);
		menuID = "menu" + menuLayerRef;
		activeMenu = menuLayerRef;
		if (isNav4 && !isNSHP) {
			document[menuID].top = 102;
			document[menuID].left = offset;
			document[menuID].zIndex = 41;
			showMenu(menuID);
		}
		if ( isNSHP ) {
			document[menuID].top = 99;
			document[menuID].left = offset;
			document[menuID].zIndex = 41;
			showMenu(menuID);
		}
		if ( isIE4 || isIE40 ) {
			document.all[menuID].style.pixelTop = 102;
			document.all[menuID].style.pixelLeft = offset;
			document.all[menuID].style.zIndex = 41;
			showMenu(menuID);
		}
		if ( isNav6 ) {
			styleObject = document.getElementById( menuID );
			if (styleObject != null)
			{
				objectStyle = styleObject.style;
				objectStyle[ 'top' ] = '99px';
				objectStyle[ 'left' ] = offset.toString()+'px';
				objectStyle[ 'zIndex' ] = '41';
				objectStyle[ 'visibility' ] = 'visible';
			}

//			setIdProperty( menuID, 'top', '99px' );
//			setIdProperty( menuID, 'left', offset.toString()+'px' );
//			setIdProperty( menuID, 'zIndex', '41' );
//			setIdProperty( menuID, 'visibility', 'visible' );

			/*
			if (activeMenu == 1) {
				var content='<A href=\"/what_s_new.html\">What\'s New at the ATCSCC</A><HR><A href=\"/estmp/index.html\">09/18/2000 - Special Event Reservations</A><BR><A href=\"/Operations/Strategic_Planning/playbook_html/index.htm\">08/10/2000 - National Playbook</A><BR><A href=\"/Glossary_of_Terms/glossary_of_terms.html\">05/09/2000 - Glossary of Terms</A>';
			}
			if (activeMenu == 2) {
				var content='<A href=\"/products.html\">Products</A><HR><A href=\"/Information/information.html\">General Overview of the ATCSCC</A><BR><A href=\"/estmp/index.html\">Special Event Reservations (e-STMP)</A><BR><A href=\"/ois/\">Operational Information System</A><BR><A href=\"/advisories/\">Advisories Database</A><BR><A href=\"/AADC/aadc.html\">Airport Arrival Demand Chart</A><BR><A href=\"/Coded_Departure_Routes/coded_departure_routes.html\">Coded Departure Routes</A><BR><A href=\"/Operations/Weather/CCFP/CCFP_Images/ccfp_dmz.html\">Collaborative Forecast Product</A><BR><A href=\"/carf/\">Central Altitude Reservation Function</A><BR><A href=\"/FSM/fsm.html\">Airline FSM Training Sign-up</A>';
			}
			dynamiccontentNS6(menuID,content);
			*/
		}
//		showMenu(menuID);
	}
	if (isDynamic && !isNS) window.event.cancelBubble = true;
//	if (is.ie4up) window.event.cancelBubble = true;
}

// These pixel offsets are designed to handle one choice of
// font size: 12 for variable width fonts, and 10 for fixed width fonts
// activateMenu positions the menus properly for the ATCSCC internet site with
// the image-based header (Home/What's New/Products/Feedback)...
function activateMenu(menuLayerRef, offset) {
	if (isDynamic && activeMenu != menuLayerRef) {
		if (activeMenu) hideMenu("menu" + activeMenu);
		menuID = "menu" + menuLayerRef;
		activeMenu = menuLayerRef;
		if (isNav4 && !isNSHP) {
			document[menuID].top = 122;
			document[menuID].left = offset;
			document[menuID].zIndex = 41;
			showMenu(menuID);
		}
		if ( isNSHP ) {
			document[menuID].top = 119;
			document[menuID].left = offset;
			document[menuID].zIndex = 41;
			showMenu(menuID);
		}
		if ( isIE4 || isIE40 ) {
			document.all[menuID].style.pixelTop = 126;
			document.all[menuID].style.pixelLeft = offset;
			document.all[menuID].style.zIndex = 41;
			showMenu(menuID);
		}
		if ( isNav6 ) {
			setIdProperty( menuID, 'top', '119px' );
			setIdProperty( menuID, 'left', offset.toString()+'px' );
			setIdProperty( menuID, 'zIndex', '41' );
			setIdProperty( menuID, 'visibility', 'visible' );
			/*
			if (activeMenu == 1) {
				var content='<A href=\"/what_s_new.html\">What\'s New at the ATCSCC</A><HR><A href=\"/estmp/index.html\">09/18/2000 - Special Event Reservations</A><BR><A href=\"/Operations/Strategic_Planning/playbook_html/index.htm\">08/10/2000 - National Playbook</A><BR><A href=\"/Glossary_of_Terms/glossary_of_terms.html\">05/09/2000 - Glossary of Terms</A>';
			}
			if (activeMenu == 2) {
				var content='<A href=\"/products.html\">Products</A><HR><A href=\"/Information/information.html\">General Overview of the ATCSCC</A><BR><A href=\"/estmp/index.html\">Special Event Reservations (e-STMP)</A><BR><A href=\"/ois/\">Operational Information System</A><BR><A href=\"/advisories/\">Advisories Database</A><BR><A href=\"/AADC/aadc.html\">Airport Arrival Demand Chart</A><BR><A href=\"/Coded_Departure_Routes/coded_departure_routes.html\">Coded Departure Routes</A><BR><A href=\"/Operations/Weather/CCFP/CCFP_Images/ccfp_dmz.html\">Collaborative Forecast Product</A><BR><A href=\"/carf/\">Central Altitude Reservation Function</A><BR><A href=\"/FSM/fsm.html\">Airline FSM Training Sign-up</A>';
			}
			dynamiccontentNS6(menuID,content);
			*/
		}
//		showMenu(menuID);
	}
	if (isDynamic && !isNS) window.event.cancelBubble = true;
}

function showMenu(layerID) {
	if ( isNav6 ) {
		setIdProperty( layerID, 'visibility', 'visible' );
	}
	else {
		eval(layerRef + '["' + layerID + '"]' + styleRef + '.visibility = "visible"');
	}
}

function hideMenu(layerID) {
	if ( isNav6 ) {
		setIdProperty( layerID, 'visibility', 'hidden' );
	}
	else {
		eval(layerRef + '["' + layerID + '"]' + styleRef + '.visibility = "hidden"');
	}
}

function hideActiveMenus() {
	for (var i=1;i<3;i++) {
		hideMenu("menu"+i);
	}
}

function killMenu(e) {
// Check to see if there is a menu active
	if (activeMenu) {
		menuID = "menu" + activeMenu;
		if (isNav4) {
			menuX1 = document[menuID].left;
			menuX2 = menuX1 + document[menuID].clip.right;
			menuY1 = document[menuID].top;
			menuY2 = menuY1 + document[menuID].clip.bottom;
			if (e.pageX < menuX1 || e.pageX > menuX2 || e.pageY > menuY2 || e.pageY < (menuY1-15)) {
				hideMenu(menuID);
				activeMenu = 0;
			}
		} else {
			hideMenu(menuID);
			activeMenu = 0;
		}
	}  
}
