//include the community tabs
document.write("<script language=\"javascript\" src=\"/common/scripts/communityTab.js\"></script>");
document.write("<script language=\"javascript\" src=\"/common/scripts/utils.js\"></script>");

fa=getQueryVariable("fa");
if(typeof(fa)!="undefined"){
	token=fa.split(".");
	
	if(token[0].toLowerCase()=="security" || token[0].toLowerCase()=="apparc" || token[0].toLowerCase()=="performance"){
		addTabURL( fa, "resourcesTab");
	}	
	else	{
		addTabURL( "", "resourcesTab");
	}
}
else {
	
	addTabURL( "", "resourcesTab");
}


addTabURL( "codeGallery", "communityTab");
// ======================================================================
//  MENUS
// addMainItem(description, URL, _target, tabName);

addMainItem("Resources Gateway", "/", "", "gatewayHomeTab");

addMainItem("Resources", "#", "", "resourcesTab");	
addSubmenuItem("Application Architectures", "/enterprisegis/index.cfm?fa=appArc.main", "");
addSubmenuItem("Security", "/enterprisegis/index.cfm?fa=security.main", "");
addSubmenuItem("Performance & Scalability", "/enterprisegis/index.cfm?fa=performance.main", "");
//addSubmenuItem("Interoperability & Standards", "http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Overview_of_interoperability", "");

//http://webhelpdev.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Overview_of_interoperability
addMainItem("Community", "index.cfm?fa=codeGallery", "", "communityTab");	
	
generateMenus();

