function rightContact() {
	var myHtml = '';
	
	myHtml += '<div class="SubRightCol_Story" style="margin-top: 15px; padding-bottom: 15px;">'+
		'<span class="header">Contact Information:</span><br /><br style="line-height: 5px;"/><img src="/citi/microfinance/images/email.gif" alt="Email" style="padding-right: 5px; vertical-align: middle;" />' + contact("microfinance","citi.com") + '</div><div class="SubRightCol_Story" style="margin-top: 15px; background: none;"><span class="header">News &amp; Features:</span><br /><br /><ul class="RightColList">';
		myHtml += returnNewsFeatures();
		myHtml += '</ul></div>';

      document.getElementById('rightContacts_Pres').innerHTML = myHtml;
}

function returnNewsFeatures() {
	var myHtml = '';
	
	

	







	
	
	
	
	
	myHtml +='<li><a href="http://new.citi.com/2012/01/inclusive-innovation-is-the-financial-sectors-opportunity-to-grow-and-re-engage-society.shtml" target="_blank">Citi Blog: Inclusive Innovation is the Financial Sector\'s Opportunity to Grow and Re-engage Society </a>'+
	'<li><a href="http://np.netpublicator.com/netpublication/n39150548" target="_blank">Making Nothing into Something</a>'+		
	'<li><a href="http://www.guardian.co.uk/sustainable-business/blog/inclusive-innovation-occupy-economy-finance?INTCMP=SRCH" target="_blank">Inclusive Innovation: A Solution for the Future of Finance?</a>'+		
	'<li><a href="http://www.microfinancefocus.com/mffnews/social-impact-integral-part-investors%E2%80%99-agenda-%E2%80%93-citi-microfinance" target="_blank">Social Impact is an Integral Part of Investors\' Agenda &#150; Citi Microfinance</a>'+
	'<li><a href="data/111221BobAnnibaleMicrofinanceFocus.pdf" target="_blank">Microfinance Focus Interview with Bob Annibale</a>'+
	'<li><a href="http://www.cgap.org/p/site/c/template.rc/1.9.53183" target="_blank">Video: Financial Inclusion in Our Lifetime</a>'+
	'<li><a href="http://www.marketwatch.com/story/st-louis-microfinance-conference-showcases-positive-impact-of-providing-financial-services-to-low-income-families-communities-2011-10-13 " target="_blank">St. Louis Microfinance Conference Showcases Positive Impact of Providing Financial Services to Low-Income Families, Communities</a>'+
	'<li><a href="http://www.stlbeacon.org/voices/in-the-news/113530-micro-lending-from-mongu-to-st-louis- " target="_blank">Micro-Lending: From Mongu to St. Louis</a>'+
	'<li><a href="http://www.bradenton.com/2011/10/11/3563430/financial-inclusion-experts-discuss.html " target="_blank">Financial Inclusion Experts Discuss Industry Trends During Citi\'s \"Financial Inclusion Week\"</a>'+
	'<li><a href="http://www.marketwatch.com/story/finanta-and-entrepreneur-works-partner-with-citi-to-build-credit-and-grow-small-businesses-in-philadelphia-2011-09-29" target="_blank">Finanta and Entrepreneur Works Join Citi to Fund Lower Income Entrepreneurs</a>'+
	'<li><a href="http://abcnews.go.com/blogs/business/2011/09/international-micro-lender-grameen-bank-opens-new-york-branch/ " target="_blank"> International Micro-lender Grameen Bank Opens New York Branch</a>'+
	'<li><a href="http://www.microfinancefocus.com/grameen-america-opens-branch-office-bronx-ny" target="_blank">Grameen America Opens Branch Office in the Bronx, N.Y.</a>'+
	'<li><a href="http://www.economist.com/node/21530164 " target="_blank">Economist: Financial Services For The Poor</a>'+
	'<li><a href="http://www.microfinancefocus.com/financial-services-access-still-limited-latin-america" target="_blank">Financial Services Access Still Limited in Latin America</a>'+
	'<li><a href="http://www.microfinancefocus.com/citi%E2%80%99s-us1-million-funds-microsavings-and-financial-education-asia" target="_blank">Citi\'s US$1 Million Funds Microsavings and Financial Education in Asia</a>'+
	'<li><a href="http://www.microfinancefocus.com/citi-partners-banking-poor-network " target="_blank">Citi partners with Banking With The Poor Network</a>'+
	'<li><a href="http://doc.mediaplanet.com/all_projects/8119.pdf" target="_blank">USA Today Financial Literacy: Citi Partners with K2C to Offer Milk Monday, Crayons and Bank Accounts </a>'+
	'<li><a href="http://www.m-cril.com/BackEnd/ModulesFiles/Publication/CRILEX-India-2011_revised.pdf" target="_blank"> M-CRIL India Indices of Microfinance 2011 </a>'+
	'<li><a href="http://microrate.com/wp-content/uploads/2011/08/Press-release-MicroRate_State-of-Microfinance-Investment-20111.pdf" target="_blank">Citi-Supported Microrate Survey on the State of Microfinance Investment 2011 </a> | <a href="http://microrate.com/wp-content/uploads/2011/08/The_State_of_Microfinance_Investment_2011.pdf" target="_blank">Report</a>'+
	'<li><a href="http://markets.on.nytimes.com/research/stocks/news/press_release.asp?docTag=201108151035BIZWIRE_USPRX____BW5979&feedID=600&press_symbol=68598" target="_blank">Citi and Self-Help Expand Micro Branch Model to Move People Away from Alternative and Often Costly Financial Services</a>'+
	'<li><a href="http://pakobserver.net/detailnews.asp?id=104308" target="_blank">PMN, Citibank Conducts Three-Day Risk Management Workshop</a>'+
	'<li><a href="data/dsn_stories081611a.pdf" target="_blank">How Citi is Building Stronger Communities Nationwide </a>'+
	'<li><a href="http://thekojonnamdishow.org/shows/2011-08-11/muhammad-yunus-microcredits-turning-tide/transcript" target="_blank">Muhammad Yunus: Microcredit\'s Turning Tide</a>'+
	'<li><a href="http://www.e-mfp.eu/sites/default/files/MFI interest rate study 2011.pdf" target="_blank">Throwing light on the RBI\'s policy on microfinance</a>'+
	'<li><a href="http://www.citigroup.com/citi/press/2011/110803a.htm">Citi, OPIC lend $20 million to Bank Danamon\'s Microfinance program</a>'+
	'<li><a href="http://www.bradenton.com/2011/07/29/3384055/philanthropist-author-philip-smith.html" target="_blank">Philanthropist author Philip Smith to headline at Canada\'s premier international event on microfinance and financial inclusion Sept 16 & 17</a>'+
	'<li><a href="http://www.marketwatch.com/story/moneystar-appoints-citir-prepaid-services-in-south-africa-2011-07-25?reflink=MW_news_stmp" target="_blank">Moneystar Appoints Citi(R) Prepaid Services in South Africa</a>'+	
	'<li><a href="http://www.citigroup.com/citi/press/2011/110722a.htm">Chicago Credit Building Coalition to Provide Innovative, Credit-Building Financial Products along with Financial Education and Coaching</a>'+
	'<li><a href="http://pakobserver.net/detailnews.asp?id=104308" target="_blank">PMN, Citibank conducts three-day risk management workshop</a>'+
	'<li><a href="http://diverseeducation.com/article/16050/new-college-completion-initiative-targets-college-success-of-kipp-charter-school-alumni.html" target="_blank">New College Completion Initiative Targets College Success of KIPP Charter School Alumni</a>'+
	'<li><a href="http://www.citigroup.com/citi/press/2011/110224a.htm">San Francisco Opens Kindergarten to College Savings Accounts</a>'+
	'<li><a href="http://www.techzone360.com/news/2011/06/08/5559583.htm " target="_blank">Mayor Edwin M. Lee and City Officials Announce the Opening of Kindergarten to College Savings Accounts</a>'+
	'<li><a href="http://www.techzone360.com/news/2011/06/08/5559583.htm" target="_blank">United Way of Dallas Honors Debbie Taylor</a>'+
	'<li><a href="http://business.inquirer.net/2740/bsp-calls-for-increased-lending-to-micro-enterprises " target="_blank">BSP Calls for Increased Lending to Micro Enterprises</a>'+
	'<li><a href="http://www.stlamerican.com/business/local_business/article_cba38e8a-8722-11e0-a35f-001cc4c002e0.html" target="_blank">Banking and Social Inequity in St. Louis</a> | <a href="http://www.youtube.com/watch?v=xm3B6Bz-rSk&feature=youtube_gdata_player" target="_blank">Video'+
	'<li><a href="http://www.microfinancefocus.com/study-understand-financial-diaries-low-income-americans" target="_blank" >Study to Understand Financial Diaries of Low-Income Americans</a>'+
	'<li><a href="http://www.businesswire.com/news/home/20110524007049/en/Microfinance-Practitioners-Asked-Endorse-Industry-Wide-Consumer-Protection " target="_blank">Microfinance Practitioners Asked to Endorse Industry-Wide Consumer Protection Standards</a>'+
	'<li><a href="http://www.entrepreneur.com/blog/219689" target="_blank">Microfinance Hits Small Businesses Right Where It Helps</a>'+
	'<li><a href="http://www.microfinancefocus.com/citi-community-development-gdhcc-launch-small-business-center-excellence" target="_blank">Citi Community Development, GDHCC to Launch Small Business Center of Excellence</a>'+
	'<li><a href="http://www.microdinero.com/nota_eng.php?subseccion=0&ssubseccion=0&notId=3505" target="_blank">Citi, US$246 million for 29 MFIs in 16 countries</a>'+
	'<li><a href="http://www.cgdev.org/section/initiatives/_active/cdi/" target="_blank">Commitment to Development Index 2010</a>'+
	'<li><a href="http://www.cgdev.org/content/article/detail/1424970/" target="_blank">2011 Sabot Lecture by Esther Duflo: Can Evidence Play a Role in the Fight against Poverty?</a>'+
	'<li><a href="http://www.citi.com/citi/microfinance/data/news110412a.pdf">The $65BN Micro-finance Industry Comes Under the Spotlight</a>'+
	'<li><a href="http://www.hurriyetdailynews.com/n.php?n=a-mother-of-12-gets-business-going-with-microfinance-2011-04-01" target="_blank">Turkish mother of 12 looking to expand with microcredit success</a>'+
	'<li><a href="http://www.citigroup.com/citi/citizen/community/index.html" target="_blank">Citi Community Development Launches New and Redesigned Website</a>'+
	'<li><a href="data/news110412a.pdf">The $65 Billion Microfinance Industry Comes Under the Spotlight</a>'+
	'<li><a href="http://www.citigroup.com/citi/press/2011/110224a.htm" target="_blank">Citi Tops Affordable Housing Finance Magazine\'s Ranking of Top Affordable Housing Lenders in 2010</a>'+
	'<li><a href="http://www.marketwire.com/press-release/MIX-Brings-Social-Performance-to-the-Forefront-of-Microfinance-1401000.htm" target="_blank">MIX Brings Social Performance to the Forefront of Microfinance</a>'+
	
		  '<li style="padding-bottom: 0px;"><a href="/citi/microfinance/news.htm" style="text-decoration: none;"><b>View Archives</b></a></li>';
	
	return myHtml;
}

function homeNewsFeat() {
	var myHtml = '';
	
	myHtml += '<ul>';
		myHtml += returnNewsFeatures();
		myHtml += '</ul></div>';

      document.getElementById('tabheader-2').innerHTML = myHtml;
}

buildLinks = function(linkType){
	var getArticles = $.ajax({
		type: "GET",
		url: 'xml/links.xml',
		dataType: "xml",
		success: function(xml){
			
			if (linkType == 'left') {
				buildLinks.displayLeft(xml);
			}
		}
	});
}
buildLinks.prototype.displayLeft = function(xml){
	$('#leftLogos').empty();
	
	var thisHtml = '';
	
	thisHtml += '';
	var randomLogo = $(xml).find('approved').length;
	
	var randomNum = Math.floor(Math.random() * randomLogo);
	
	var logoCt = 0;
	
	var logoTest = new Array();
	
	$(xml).find('Links').each(function(){
		if ($(this).find('approved').text() == 'yes') {
			logoTest[logoCt] = [$(this).find('url').text(), $(this).find('img').text(), $(this).find('name').text()];
			
			logoCt++;
		}
	});

	var testCount = '';
	var divFlag = 0;
	testCount = randomNum;
	
	for (var i = 0; i < 6; i++) {
		
		if (testCount == logoCt) {
			testCount = 0;
		}
		
		if (divFlag == 0) {
			thisHtml += '<div>';
		}
		
		thisHtml += '<a href="' + logoTest[testCount][0] + '" target="_blank"><img src="images/logos/' + logoTest[testCount][1] + '" alt="' + logoTest[testCount][2] + '" /></a>';
		
		//testCount = '';
		testCount++;
		divFlag++;
		
		if (divFlag == 2) {
			thisHtml += '</div>';
			divFlag = 0;
		}
		
	}
	
	$('#leftLogos').append(thisHtml);
	
	$('#leftLogos').cycle({
		fx: 'fade',
		timeout: 5000
	});
}
