var CARETopicalLists = function(t){
	var NewsItems = new Array();
		NewsItems["CARE_CONNECTIONS_AFRICA_NEWS"]	= "Africa News";
//		NewsItems["CARE_CONNECTIONS_AMERICAS_NEWS"]	= "Americas News";
//		NewsItems["CARE_CONNECTIONS_ASIA_NEWS"]	= "Asia News";
		NewsItems["CARE_CONNECTIONS_CLIMATE_CHANGE_NEWS"]	= "Climate Change News";
//		NewsItems["CARE_CONNECTIONS_DEMOCRATIC_REPUBLIC_OF_CONGO"]	= "Democratic Republic of Congo News";
		NewsItems["CARE_CONNECTIONS_EDUCATION_NEWS"]	= "Education News";
		NewsItems["CARE_CONNECTIONS_HEALTH_NEWS"]	= "Health News";
		NewsItems["CARE_CONNECTIONS_PEPFAR"]	= "HIV/AIDS News";
		NewsItems["CARE_CONNECTIONS_HUMAN_RIGHTS_NEWS"]	= "Human Rights News";
		NewsItems["CARE_CONNECTIONS_POVERTY_ISSUES"]	= "Hunger & Food Security News";
//		NewsItems["CARE_CONNECTIONS_KENYA"]	= "Kenya News";
		NewsItems["CARE_CONNECTIONS_MICROFINANCE_NEWS"]	= "Microfinance & Economic Opportunity News";
//		NewsItems["CARE_CONNECTIONS_MIDDLE_EAST_NEWS"]	= "Middle East News";
		NewsItems["CARE_CONNECTIONS_MYANMAR"]	= "Myanmar News";
//		NewsItems["CARE_CONNECTIONS_REFUGEES_NEWS"]	= "Refugees News";
		NewsItems["CARE_CONNECTIONS_SUDAN"]	= "Sudan News";
//		NewsItems["CARE_CONNECTIONS_WATER"]	= "Water News";
//		NewsItems["CARE_CONNECTIONS_WOMENS_EMPOWERMENT_NEWS"]	= "Women's Empowerment News";




	var BlogItems = new Array();
		BlogItems["CARE_CONNECTIONS_FOOD_CRISIS_BLOGS"] = "Food Crisis Blogs";
		BlogItems["CARE_CONNECTIONS_AFRICA"] = "Africa Blogs";
		BlogItems["CARE_CONNECTIONS_DEMOCRATIC_REPUBLIC_OF_CONGO_BLOGS"] = "Democratic Republic of Congo Blogs";
		BlogItems["CARE_CONNECTIONS_HEALTH_BLOGS"] = "Health Blogs";
		BlogItems["CARE_CONNECTIONS_PEPFAR_BLOGS"] = "HIV/AIDS Blogs";
//		BlogItems["CARE_CONNECTIONS_KENYA_BLOGS"] = "Kenya Blogs";
		BlogItems["CARE_CONNECTIONS_POVERTY_ISSUES_BLOGS"] = "Poverty Issues Blogs";
		BlogItems["CARE_CONNECTIONS_SUDAN_BLOGS"] = "Sudan Blogs";
		BlogItems["CARE_CONNECTIONS_SOCIAL_ENTREPRENEURSHIP__ECONOMIC_DEVELOPMENT"] = "Social Entrepreneurship & Economic Development Blogs";
		BlogItems["CARE_CONNECTIONS_ZIMBABWE"] = "Zimbabwe Blogs";




	var TopicalARRAY = new Array();
	var TopicalBGColor = "#369"; //default to light blue
	var TopicalArrowIMG = "right_moreicon2.gif"; //default to light blue

	if(t == "Blog"){
		TopicalBGColor = "#030";
		TopicalArrowIMG = "right_moreicon_green.gif";
		TopicalARRAY = BlogItems;
	}
	else if(t == "News"){
		TopicalBGColor = "#369";
		TopicalArrowIMG = "right_moreicon2.gif";
		TopicalARRAY = NewsItems;
	}
	else{ TopicalARRAY = null; }



	var TopicalStyle = "background:"+TopicalBGColor+" url(http://we.care.org/custom/care7/images/"+ TopicalArrowIMG + ") no-repeat scroll left bottom;	background-color:"+TopicalBGColor;


	var BaseDestinationURL = "http://we.care.org/community/topicalFeeds.htm?tnid=";
	var Output = '<div class="tp_modhdrsmall" id="care_topicallist-'+t+'" style="'+TopicalStyle+'">Topical '+t+' Feeds</div>\n<div style="margin-top: 10px;">';

	if(TopicalARRAY == null){ Output = "<div><b>No Items Found</b></div>"; }
	else{
		for(var KEY in TopicalARRAY){
			if(typeof(TopicalARRAY[KEY]) == "string"){
				Output += '\t<div class="blogrollitem"><a href="'+BaseDestinationURL+KEY+'">'+TopicalARRAY[KEY]+'</a></div>\n';
			}
		}
	}

	Output += "</div>";
	var TopicalARRAY = null;
	return Output;
};

document.write('<link type="text/css" rel="stylesheet" href="http://www.care.org/modules/remote/ThePort/topicalitems.css" />');
