// JScript source code

/***************************************************************
	BEGIN TC/TAC/Member Content Display code
****************************************************************/

iNO_ACCESS		= 5;
iTC_ACCESS		= 4;
iTAC_ACCESS		= 3;
iMEMBER_ACCESS	= 2;
iRMEMBER_ACCESS = 1;
iPUBLIC_ACCESS  = 0;
iPUBLIC_ACCESS_ONLY = -1;


////////////////////////////////////////////////////////////////
function bIsValidBrowser()
{
	if( location != null )
		return true;
	else
		return false;
}


////////////////////////////////////////////////////////////////
function iGetAccessLevel()
{
	// if the page is not loaded within the frameset
	if(parent.frAuthz == null)
		return 0;
		
	var sLevel = parent.frAuthz.sAccessLevel;
	if(sLevel == "TC")
		return iTC_ACCESS;
	else if(sLevel == "TAC")		
		return iTAC_ACCESS;
	else if(sLevel == "RMember")		
		return iRMEMBER_ACCESS;
	else if(sLevel == "Member")		
		return iMEMBER_ACCESS;
	return 0;
	
	var sURL = parent.location.href.toLowerCase();
		
	if(sURL.indexOf("tc.fri") != -1)
		return iTC_ACCESS;
		
	else if(sURL.indexOf("tac.fri") != -1 )
		return iTAC_ACCESS;

	else if(sURL.indexOf("rmember.fri") != -1 )
		return iRMEMBER_ACCESS;

	else if(sURL.indexOf("member.fri") != -1 )
		return iMEMBER_ACCESS;

	return 0;
}

////////////////////////////////////////////////////////////////
function bIsTC() { return ( iTC_ACCESS <= iGetAccessLevel() ); }
function bIsTAC() { return ( iTAC_ACCESS <= iGetAccessLevel() ); }
function bIsMember() { return ( iMEMBER_ACCESS <= iGetAccessLevel() ); }
function bIsRMember() { return ( iRMEMBER_ACCESS <= iGetAccessLevel() ); }
function bHasLevel( iLevel ){ return ( iLevel <= iGetAccessLevel() ); }


/***************************************************************
	END TC/TAC/Member Content Display code
****************************************************************/


/***************************************************************
	BEGIN Menu code
****************************************************************/

sCURRENT_MENU_ID = "";
aCURRENT_MENU = null;

bKILL_SUBMENU = false;
iSUBMENU_IDX = -1;
iMENU_ACTIVE_IDX = -1;

sMENU_ID = "";
sMENU_LINK_ID	= null;

sMENU_NORMAL	= 'MenuItem';
sMENU_OVER		= 'MenuItem';
sMENU_CLICK		= 'MenuItem';

sSUBMENU_NORMAL		= 'SubMenuItem';
sSUBMENU_OVER		= 'SubMenuItem';
sSUBMENU_CLICK		= 'SubMenuItem';


var aMAIN_MENUS	= new Array();
/*
aMenuExample = new Array(
	new DefineMenuItem( "Home", "/index.htm", iMEMBER_ACCESS ),
	new DefineMenuItem( "TC Agenda", "/tc/agenda.htm", iTC_ACCESS ),
	new DefineMenuItem( "TAC Data", "/tac/data.htm", iTAC_ACCESS )
);
*/
function aGetInputElements(){ return null; }

////////////////////////////////////////////////////////////////
function DefineMenuItem( sId, sLabel, sURL, iAccess, aSubMenu, sToolTip )
{
	this.id = sId;
	this.label	= sLabel;

	this.sub	= aSubMenu;
	this.subvisible = false;	
	
	this.url	= sURL;
	this.access = iAccess;
	this.tooltip = sToolTip;	
}

////////////////////////////////////////////////////////////////
function DefineMenu( sId, aMenu )
{
	this.id = sId;
	this.menu = aMenu;
}

////////////////////////////////////////////////////////////////
function RegisterMenu( oMenu )
{ 
	var idx = aMAIN_MENUS.length;
	aMAIN_MENUS[idx] = oMenu;
}

////////////////////////////////////////////////////////////////
function GetSubMenuPosition( iIdx )
{
	var numItems = aCURRENT_MENU.length;
	var obj = null;
	var elmt = null;
	var pos = 0;
	
	for( ii=0; ii<numItems; ii++ )
	{
		obj = aCURRENT_MENU[ii];
		if( obj.access > iGetAccessLevel() )
			continue;
			
		elmt = document.getElementById( obj.id + "_ROW" );
		if( elmt == null )
			continue;
		
		if( ii < iIdx )
			pos += elmt.clientHeight + 1;
		else
		{
			pos += -1;//5;
			break;
		}
	}
	
	return pos;
}

////////////////////////////////////////////////////////////////
function GetMenu( sMenuId )
{
	for( ii=0; ii<aMAIN_MENUS.length; ii++ )
	{
		obj = aMAIN_MENUS[ii];
		if( obj.id == sMenuId )
			return obj.menu;
	}		
	return null;
}

////////////////////////////////////////////////////////////////
function CreateMenu( sMenuId, bIsSubMenu )
{
	var aMenu = null;
	if( bIsSubMenu )
		aMenu = sMenuId;
	else
	{
		aMenu = GetMenu( sMenuId );
		if( aMenu == null )
			return "";
	}

	var idx = 0;
	var numItems = aMenu.length;
	var dispTxt = "";
	var toolTxt = "";
	
	if( bIsSubMenu == true )
		var retVal = '<table cellpadding="0" cellspacing="0" width="150" border="1" style="border-width:1px; border-bottom-width:0px; border-color:#001a7c;">';
	else
		var retVal = '<table cellpadding="0" cellspacing="0" width="150" border="1" style="border-width:0px;">';
	//var retVal = "<table cellspacing='0' cellpadding='0' border='0' width='150'>";
	
	for( idx = 0; idx < numItems; idx++ )
	{
		subMenu = aMenu[idx].sub;
		
		if( aMenu[idx].access == iPUBLIC_ACCESS_ONLY )
		{
		    if( bHasLevel( iRMEMBER_ACCESS ) ) // Logged in
				dispTxt = " style='display:none'";
		}
		else if( !bHasLevel( aMenu[idx].access ) )
			dispTxt = " style='display:none'";
		else
			dispTxt = "";
			
		if( aMenu[idx].tooltip != null )
			toolTxt = aMenu[idx].tooltip;
		else
			toolTxt = "";
			
		if( bIsSubMenu == true )
			retVal += "<tr" + dispTxt + " title='" + toolTxt + "'><td class='SubMenuItem' onclick='OnMenuClick(this, \"" + aMenu[idx].url + "\")' onmouseover='OnSubMenuOver(this)' onmouseout='OnSubMenuOut(this)'>" + aMenu[idx].label + "</td></tr>"; 
			
		else
		{
			// there is a sub menu
			if( subMenu != null )
			{
				retVal += "<tr" + dispTxt + "><td id='" + aMenu[idx].id + "_ROW' class='MenuItem' style='padding:0px 0px 0px 0px;' onclick='OnMenuToggle(this, \"" + idx + "\")' onmouseover='OnMenuOver(this, \"" + idx + "\")' onmouseout='OnMenuOut(this, \"" + idx + "\",true)'>" 
				retVal += '<table cellpadding="0" cellspacing="0" width="100%" border="0"><tr valign="bottom"><td width="138"  style="padding:5px 8px 5px 8px;">' + aMenu[idx].label + '</td>';
				retVal += "<td width='12'><img id='" + aMenu[idx].id + "_IMG' src='../images/arrow_rt.gif' align='bottom' vspace='4'></td></tr></table>";
			}
			// simple menu item (no sub menu)
			else
				retVal += "<tr" + dispTxt + " title='" + toolTxt + "'><td id='" + aMenu[idx].id + "_ROW' class='MenuItem' onclick='OnMenuClick(this, \"" + aMenu[idx].url + "\")' onmouseover='OnMenuOver(this, \"" + idx + "\")' onmouseout='OnMenuOut(this, \"" + idx + "\",false)'>" + aMenu[idx].label;
								
			retVal += "</td>"; 

			if( subMenu != null )		
				retVal += "<td class='SubMenuColumn' style='border-width:0px' id='" + aMenu[idx].id + "_SUB'>" + CreateMenu( subMenu, true ) + "</td></tr>"
			else
				retVal += "<td class='SubMenuColumn'></td></tr>"		
		}
			
	}
		
	retVal += "</table>";
	
	if( bIsSubMenu )
		return retVal;
		
	sCURRENT_MENU_ID = sMenuId;
	aCURRENT_MENU = aMenu;

	var obj = document.getElementById( "FRI_MENU_DIV" );
	if( obj == null )
		return;
	
	obj.innerHTML = retVal;
	//return retVal;
}

////////////////////////////////////////////////////////////////
function HideAllSubs()
{ 
	for( ii=0; ii < aCURRENT_MENU.length; ii++ )
	{
		if( aCURRENT_MENU[ii].sub != null )
			HideSub( ii ); 
	}
}

////////////////////////////////////////////////////////////////
function HideSub( iIdx )
{ 
	var obj = document.getElementById( aCURRENT_MENU[iIdx].id + '_SUB' );
	if( obj == null )
		return;
	obj.style.display='none';
	
//	obj = document.getElementById( aCURRENT_MENU[iIdx].id + '_IMG' );	
//	obj.src = "/htdocs/images/arrow_dn.gif";
	aCURRENT_MENU[iIdx].subvisible=false;

	var aInputs = aGetInputElements();
	var ii = 0;
	var obj = null;
	
	if( aInputs != null )
	{
		for( ii=0; ii<aInputs.length; ii++ )
		{
			obj = document.getElementById( aInputs[ii] );
			if( obj != null )
				obj.style.display = "inline";
		}
	}
}

////////////////////////////////////////////////////////////////
function ShowSub( iIdx )
{ 
	if( aCURRENT_MENU[iIdx].sub == null )
		return;
		
	var aInputs = aGetInputElements();
	var ii = 0;
	var obj = null;
	
	if( aInputs != null )
	{
		for( ii=0; ii<aInputs.length; ii++ )
		{
			obj = document.getElementById( aInputs[ii] );
			if( obj != null )
				obj.style.display = "none";
		}
	}
	
	var obj = document.getElementById( aCURRENT_MENU[iIdx].id + '_SUB' );
	obj.style.display='inline';
	obj.style.zIndex=20;
	obj.style.top = GetSubMenuPosition( iIdx );

//	obj = document.getElementById( aCURRENT_MENU[iIdx].id + '_IMG' );	
//	obj.src = "/htdocs/images/arrow_up.gif";
	aCURRENT_MENU[iIdx].subvisible=true;
}

////////////////////////////////////////////////////////////////
function DelayHideSub( sIdx )
{
	var iIdx = sIdx * 1;
	// If the sub menu hasn't kept it open
	if( bKILL_SUBMENU )
	{
		if( iSUBMENU_IDX == iIdx )
		{
			iSUBMENU_IDX = -1;
			bKILL_SUBMENU = false;			
			
			HideSub( iIdx );
		}		
	}
}

////////////////////////////////////////////////////////////////
function OnMenuToggle( oRow, sIdx )
{
	var iIdx = sIdx * 1;
	var sUrl = aCURRENT_MENU[iIdx].url;

	if( aCURRENT_MENU[iIdx].subvisible )
		HideSub( iIdx );
	else
	{
		HideAllSubs();
		ShowSub( iIdx );
	}
	
	if( sUrl != "" )
		OnMenuClick( null, sUrl );
}

function OnMenuClick( oRow, sURL )
{ 
	if( sURL == "signin" )
		parent.location.assign( "/member/signin.php" );
	else
		location.assign( sURL ); 
}

////////////////////////////////////////////////////////////////
function OnMenuOver( oRow, sIdx )
{ 
	iSUBMENU_IDX = -1;
	bKILL_SUBMENU = false;			
	HideAllSubs();
	
	oRow.className = sMENU_OVER; 
	if( sIdx == null )
		return;

	var iIdx = sIdx * 1;		
	ShowSub( iIdx );
	iSUBMENU_IDX = iIdx;
}

////////////////////////////////////////////////////////////////
function OnMenuOut( oRow, sIdx, bHasSub )
{ 
	var iIdx = sIdx * 1; 
	if( iIdx != iMENU_ACTIVE_IDX )
		oRow.className = sMENU_NORMAL; 
		
	if( !bHasSub )
		return;
	bKILL_SUBMENU = true;
	setTimeout( "DelayHideSub(\"" + sIdx + "\")", 100 );
}

////////////////////////////////////////////////////////////////
function OnSubMenuOver( oRow )
{ 
	bKILL_SUBMENU = false;
	oRow.className = sSUBMENU_OVER; 
}

////////////////////////////////////////////////////////////////
function OnSubMenuOut( oRow )
{ 
	oRow.className = sSUBMENU_NORMAL; 
	bKILL_SUBMENU = true;
	setTimeout( "DelayHideSub(\"" + iSUBMENU_IDX + "\")", 100 );	
}

////////////////////////////////////////////////////////////////
function SetMenu( sMenuId )
{
	if( sMenuId == sCURRENT_MENU_ID )
		return;
	else
		CreateMenu( sMenuId );		
}

////////////////////////////////////////////////////////////////
function SetMenuPlace( sId )
{
	if( aCURRENT_MENU == null )
		return;
		
	var iIdx = -1;
	for( ii=0; ii < aCURRENT_MENU.length; ii++ )
	{
		if( aCURRENT_MENU[ii].id == sId )
		{
			iIdx = ii;
			break;
		}	
	}
	
	if( iIdx == -1 )
		return;
		
	if( 0 )//aCURRENT_MENU[iIdx].subvisible == true )
		return;

	iMENU_ACTIVE_IDX = iIdx;

	var obj = document.getElementById( aCURRENT_MENU[iIdx].id + '_ROW' );
	obj.className = sMENU_OVER;
	
	HideAllSubs();
	//ShowSub( iIdx );
}

/***************************************************************
	END Menu code
****************************************************************/

function bIsContentFrame(){ return ( window.name == "frContent" ); }
function bIsTopFrame(){ return ( window.name == "frTop" ); }

function OnRadio()
{
	return;
}

function OnOk()
{
	var sURL = "";
	divSignIn.style.display="none";
		
	if( access[0].checked )
		sURL = "http://member.fri.org";
	else if( access[1].checked )
		sURL = "http://tac.fri.org";
	else
		sURL = "http://tc.fri.org";

	parent.location.assign( sURL );	
}

function OnCancel()
{
	divSignIn.style.display="none";
}

function OnLinkClick( sURL )
{ 
	if( bIsContentFrame() )
		location.assign( sURL ); 
	else if( bIsTopFrame() )
	{
		var obj = parent.frContent;
		if( obj != null )
			parent.frContent.location.assign( sURL );
	}
}

function OnHomeClick()
{
	var sPage = "home.htm";
	var sDir = null;//"/public/";
	var level = iGetAccessLevel();
	
	if( iTC_ACCESS <= level )
		sDir = "/tc/";
	else if( iTAC_ACCESS <= level )
		sDir = "/tac/";	
	else if( iMEMBER_ACCESS <= level )
		sDir = "/member/";		

	if( sDir != null )
		sDir = "/member/";
	else
		sDir = "/public/";
		
	parent.frContent.location.assign( sDir + sPage );		
}

function OnWinLoad()
{
	if( !bIsContentFrame() )
		return;
		
	if( sMENU_ID != null )
	{
		SetMenu( sMENU_ID );
	}
	if( sMENU_LINK_ID != null )
	{
		SetMenuPlace( sMENU_LINK_ID );
	}	
}

function CheckDivs()
{
	var level = iGetAccessLevel();
	var aTC = document.getElementById('divTCAccess');
	var aTAC = document.getElementById('divTACAccess');
	var aMember = document.getElementById('divMemberAccess');
	var aRMember = document.getElementById('divRMemberAccess');	
	var ii=0;
	
	if( aTC != null )
	{
		if( aTC.length != null )
		{
			for( ii = 0; ii < aTC.length; ii++ )
			{
				if( iTC_ACCESS <= level )
					aTC[ii].style.display = "inline";	
			}
		}
		else
		{
			if( iTC_ACCESS <= level )
				aTC.style.display = "inline";
		}
	}

	if( aTAC != null )
	{
		if( aTAC.length != null )
		{
			for( ii = 0; ii < aTAC.length; ii++ )
			{
				if( iTAC_ACCESS <= level )
					aTAC[ii].style.display = "inline";	
			}
		}
		else
		{
			if( iTAC_ACCESS <= level )
				aTAC.style.display = "inline";
		}
	}

	if( aMember != null )
	{
		if( aMember.length != null )
		{
			for( ii = 0; ii < aMember.length; ii++ )
			{
				if( iMEMBER_ACCESS <= level )
					aMember[ii].style.display = "inline";	
			}
		}
		else
		{
			if( iMEMBER_ACCESS <= level )
				aMember.style.display = "inline";
		}
	}

	if( aRMember != null )
	{
		if( aRMember.length != null )
		{
			for( ii = 0; ii < aRMember.length; ii++ )
			{
				if( iRMEMBER_ACCESS <= level )
					aRMember[ii].style.display = "inline";	
			}
		}
		else
		{
			if( iRMEMBER_ACCESS <= level )
				aRMember.style.display = "inline";
		}
	}

	aTC = document.getElementById('divTCOnly');
	aTAC = document.getElementById('divTACOnly');
	aMember = document.getElementById('divMemberOnly');
	aRMember = document.getElementById('divRMemberOnly');			
	
	if( aTC != null )
	{
		if( aTC.length != null )
		{
			for( ii = 0; ii < aTC.length; ii++ )
			{
				if( iTC_ACCESS == level )
					aTC[ii].style.display = "inline";	
			}
		}
		else
		{
			if( iTC_ACCESS == level )
				aTC.style.display = "inline";
		}
	}

	if( aTAC != null )
	{
		if( aTAC.length != null )
		{
			for( ii = 0; ii < aTAC.length; ii++ )
			{
				if( iTAC_ACCESS == level )
					aTAC[ii].style.display = "inline";	
			}
		}
		else
		{
			if( iTAC_ACCESS == level )
				aTAC.style.display = "inline";
		}
	}
	if( aMember != null )
	{
		if( aMember.length != null )
		{
			for( ii = 0; ii < aMember.length; ii++ )
			{
				if( iMEMBER_ACCESS == level )
					aMember[ii].style.display = "inline";	
			}
		}
		else
		{
			if( iMEMBER_ACCESS == level )
				aMember.style.display = "inline";
		}
	}

	if( aRMember != null )
	{
		if( aRMember.length != null )
		{
			for( ii = 0; ii < aRMember.length; ii++ )
			{
				if( iRMEMBER_ACCESS == level )
					aRMember[ii].style.display = "inline";	
			}
		}
		else
		{
			if( iRMEMBER_ACCESS == level )
				aRMember.style.display = "inline";
		}
	}
}
window.onload = CheckDivs;

aGeneralSubMenu = new Array(
	new DefineMenuItem( "PUB14", "Sign In", "signin", iPUBLIC_ACCESS_ONLY ),							
	new DefineMenuItem( "PUB1", "About Us", "/public/about.htm", iPUBLIC_ACCESS ),
	new DefineMenuItem( "PUB2", "Member Companies", "/public/membercos.htm", iPUBLIC_ACCESS ),
	new DefineMenuItem( "PUB15", "Executive Committee", "/public/Execcomm.htm", iPUBLIC_ACCESS ),
	new DefineMenuItem( "PUB3", "Technical Committee", "/public/techcomm.htm", iPUBLIC_ACCESS ),
	new DefineMenuItem( "PUB4", "Design Practices Committee", "/public/designpract.htm", iPUBLIC_ACCESS ),
	new DefineMenuItem( "PUB11", "Research Projects", "/public/research.htm", iPUBLIC_ACCESS ),				
	new DefineMenuItem( "PUB5", "FAQ", "/public/faq.htm", iPUBLIC_ACCESS ),			
	new DefineMenuItem( "PUB6", "Experimental Facilities", "/public/expfacilities.htm", iPUBLIC_ACCESS ),
	new DefineMenuItem( "PUB16", "Publications", "/public/publication.htm", iPUBLIC_ACCESS ),				
	new DefineMenuItem( "PUB7", "Available Materials", "/public/avmaterials.htm", iPUBLIC_ACCESS ),
	new DefineMenuItem( "PUB10", "Staff", "/public/staff.htm", iPUBLIC_ACCESS ),				
	new DefineMenuItem( "PUB12", "Organization", "/public/organization.htm", iPUBLIC_ACCESS ),					
	new DefineMenuItem( "PUB13", "History", "/public/history.htm", iPUBLIC_ACCESS ),						
	new DefineMenuItem( "PUB8", "Contact Us", "/public/contact.htm", iPUBLIC_ACCESS ),
	new DefineMenuItem( "PUB9", "Location", "/public/location.htm", iPUBLIC_ACCESS )
);

aHandbookSubMenu = new Array(
	new DefineMenuItem( "", "Design Guidance", "/restricted/volume1.htm", iMEMBER_ACCESS, null, "Replaces Volume 1 & 2 of the handbook" ),
	new DefineMenuItem( "", "Design Practices", "/restricted/volume5.htm", iMEMBER_ACCESS, null, "Replaces Volume 5 of the handbook" ),
	new DefineMenuItem( "", "Database", "/restricted/volume4.htm", iMEMBER_ACCESS, null, "Replaces Volume 4 of the handbook" ),
	new DefineMenuItem( "", "Computer Programs", "/restricted/volume3.htm", iMEMBER_ACCESS, null, "Replaces Volume 3 of the handbook,currently under construction" )
/*	new DefineMenuItem( "", "Volume 5", "/tac/volume5.htm", iMEMBER_ACCESS ) */				
);

aDocumentsSubMenu = new Array(
	new DefineMenuItem( "", "FRI", "/member/documents.htm", iRMEMBER_ACCESS ),
	new DefineMenuItem( "", "Member Companies", "/member/memberdocs.htm", iRMEMBER_ACCESS )		
);
/*	new DefineMenuItem( "", "Progress", "/member/progress.htm", iRMEMBER_ACCESS ),
	The above line was edited below and progress was changed to prog2 in the below block */
aReportsSubMenu = new Array(
	new DefineMenuItem( "", "Annual", "/member/annual.htm", iRMEMBER_ACCESS ),
	new DefineMenuItem( "", "Progress", "/member/prog2.htm", iRMEMBER_ACCESS ),
	new DefineMenuItem( "", "Topical", "/member/topical.htm", iRMEMBER_ACCESS ),
	new DefineMenuItem( "", "Other", "/member/otherreps.htm", iRMEMBER_ACCESS ),			
	new DefineMenuItem( "", "Position Papers", "/member/pospapers.htm#TOC", iRMEMBER_ACCESS )
);
//	new DefineMenuItem( "", "Test Progress", "/member/prog2.htm", iTC_ACCESS )


aMinutesSubMenu = new Array(							
	new DefineMenuItem( "", "Board of Directors", "/member/annualmtgs.htm", iRMEMBER_ACCESS ),
	new DefineMenuItem( "", "TAC Meetings", "/member/tacmtgs.htm", iRMEMBER_ACCESS ),		
	new DefineMenuItem( "", "Special Meetings", "/member/specialmtgs.htm", iRMEMBER_ACCESS ),
	new DefineMenuItem( "", "TC Meetings", "/tc/meetings.htm", iTC_ACCESS )	
);

aMaterialsSubMenu = new Array(
	new DefineMenuItem( "", "Correspondence<br>TC", "/tc/correspondence.htm", iTC_ACCESS ),							  
	new DefineMenuItem( "", "Correspondence<div id='divTCOnly' class='HiddenDiv'><br>TAC</div>", "/tac/correspondence.htm", iTAC_ACCESS ),
	new DefineMenuItem( "", "Database", "/tac/db.htm", iTAC_ACCESS ),	
	new DefineMenuItem( "", "Db Data Updates", "/tac/dbdata.htm", iTAC_ACCESS ),	
	new DefineMenuItem( "", "Rating Program", "/tac/drp.htm", iTAC_ACCESS ),	
	new DefineMenuItem( "", "Meeting Videos and Training Films", "/tac/videos.htm", iTAC_ACCESS )			
);

aAccessMenu = new Array(
	new DefineMenuItem( "GENERAL", "General", "", iRMEMBER_ACCESS, aGeneralSubMenu ),
	new DefineMenuItem( "HANDBOOKS", "Handbooks", "", iMEMBER_ACCESS, aHandbookSubMenu ),	
	new DefineMenuItem( "MATERIALS", "Downloadable Materials", "", iTAC_ACCESS, aMaterialsSubMenu ),	
	new DefineMenuItem( "REPORTS", "Reports", "", iRMEMBER_ACCESS, aReportsSubMenu ),		
	new DefineMenuItem( "MEETING", "Meeting Minutes and Presentations", "", iRMEMBER_ACCESS, aMinutesSubMenu ),		
	new DefineMenuItem( "DESIGN", "Design Practices Forum", "/member/dpcqa.htm", iRMEMBER_ACCESS ),		
	new DefineMenuItem( "DOCUMENTS", "Documents", "", iRMEMBER_ACCESS, aDocumentsSubMenu ),			
	new DefineMenuItem( "PROBLEMS", "Known Problems and Concerns", "/member/known.htm", iRMEMBER_ACCESS ),		
	new DefineMenuItem( "DRP", "Rating Program Access", "/member/drpaccess.htm", iNO_ACCESS ),		
	new DefineMenuItem( "DB", "Database Access", "/member/dbaccess.htm", iNO_ACCESS ),		
	new DefineMenuItem( "QA", "Q & A", "/member/qa.htm", iNO_ACCESS ),		
	new DefineMenuItem( "SEARCH", "FRI Search Engine", "/member/search.htm", iRMEMBER_ACCESS ),			
	new DefineMenuItem( "CALEVT", "Calendar of Events", "/member/calendar.htm", iRMEMBER_ACCESS ),
    new DefineMenuItem( "EVALUATION", "Meeting Evaluation Form", "/tac/tac2009/Eval_10_09.htm", iTAC_ACCESS ),
	new DefineMenuItem( "BETA", "DRP 2.0", "/member/beta.php", iMEMBER_ACCESS )
);

mAccessMenu = new DefineMenu( "AccessMenu", aAccessMenu );
RegisterMenu( mAccessMenu );

mPublicMenu = new DefineMenu( "PublicMenu", aGeneralSubMenu );
RegisterMenu( mPublicMenu );


sMENU_NORMAL = 'MenuItem';
sMENU_OVER = 'MenuItemOver';
sMENU_CLICK = 'MenuItemClick';

sSUBMENU_NORMAL = 'SubMenuItem';
sSUBMENU_OVER = 'SubMenuItemOver';
sSUBMENU_CLICK = 'MenuItem';

