	function fbs_click(u,t) { 
		url = 'http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t);
		window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
		return false;
	}
	function doGetStories(){
		stories = makeRequest("inc/successStories.xml?" + Math.random(), "listStories", "xmlfunc");
	}

	function listStories(xmlx){
		xmlx = removeWhiteSpace(xmlx);
		
		storiesCnt = "";
		storiesCnt += "<table cellpadding='0' cellspacing='0'><tr>";
		
		for (var k = 0; k <= 2; k++){

			row = xmlx.childNodes[0].childNodes[k];
			// ss_txt_bg.jpg
			if (k==0){
				varWidth = "210";
				padding = "0";
			} else {
				varWidth = "209";
				padding = "1";
			}
			if (k!=2){
				float = "left";
			} else {
				float = "right";
			}
			storiesCnt += "<td style='padding-left:" + padding + "px;'>";
			storiesCnt += "<div id='storie_0"+k+"' style=''>";
			storiesCnt += "<div style='height:115px;'><a href='successStorie_more.html?storieId="+k+"'><img src='img/content/"+row.childNodes[1].childNodes[0].nodeValue+"' border='0' style='width:" + varWidth + "px; height:110px; display:block' alt='"+row.childNodes[2].childNodes[0].nodeValue+"' /></a></div>";
			storiesCnt += "<div style='background-image:url(img/system/ss_txt_bg.jpg); height:125px; background-repeat:repeat-x; background-position:bottom; padding-top:0px; padding-bottom:0px; padding-right:10px; padding-left:10px;'>";
			storiesCnt += "<div style='height:35px;'><a href='successStorie_more.html?storieId="+k+"' class='titleOne_blue'>"+row.childNodes[2].childNodes[0].nodeValue+"</a></div>";
			storiesCnt += "<div style='height:70px; width:189px; overflow:hidden;'><span class='dateSmall_lightBlue' style='font-size:10px;'>"+row.childNodes[0].childNodes[0].nodeValue+ "</span><br />";
			storiesCnt += "<span style='color:#333333; font-size:11px;'>" + row.childNodes[3].childNodes[0].nodeValue + "</span></div>";
			storiesCnt += "<div class='linkMore2_blue' style='height:15px;'><a href='successStorie_more.html?storieId="+k+"' class='linkMore2_blue'> Read more</a> &nbsp; | ";
			titleStriped = titleToUrl(row.childNodes[2].childNodes[0].nodeValue);
			
			fburl = "http://www.usaid.gov/kosovo/eng/fb/" + titleStriped + ".html";
			storiesCnt += "<a title='This link will take you to www.facebook.com. You will exit the USAID Web Server. Note: References obtained from this server do not constitute an endorsement or warranty.' rel='nofollow' class='linkMore2_fb' href='http://www.facebook.com/sharer.php?u=" + fburl + "' onclick=\"return fbs_click('" + fburl + "','" + row.childNodes[2].childNodes[0].nodeValue + "')\" target='_blank'><img style='border:none; margin-left:-10px; margin-bottom:-3px;' src='img/system/connect_favicon.png' alt='This link will take you to www.facebook.com. You will exit the USAID Web Server. Note: References obtained from this server do not constitute an endorsement or warranty.' \>&nbsp;Share</a>";
			storiesCnt += "</div>";
			storiesCnt += "</div>";			
			storiesCnt += "</div>";
			storiesCnt += "</td>";
			//if (k<2){
			//	storiesCnt += "<div style='width:1px; float:left;'><img src='img/system/spacer.gif' width='1' alt='Image spacer' /></div>";
			//}			
		}
		storiesCnt += "</tr></table>";
		document.getElementById('usaidKosovo_successStories').innerHTML = storiesCnt;
	}
