/**
 * Feed Reader
 * @author rskumar@xavient.com
 */
 var feedURL = "/bp/rss.do";
 var feedContainer = null;
 $(document).ready(function(){
 		feedContainer = $('#feed-container ul');
 		//FeedReader(feedURL);
 });
 function FeedReader(furl)
 {
 	$.ajax(
 			{
 			dataType: "text",
 			url : furl,
 			type: 'GET',
 			cache: false,
 			error:function(_a, _b, _c){
 				alert("Req : " + _a + "\nStatus : " + _b + "\nError :" +_c);
 				//TODO
 			},		
 			success:function(_dt){
// 				$(_dt).find('item').each(function(){
// 					var item = $(this);
// 					var title = item.find('title').text();
// 					var link = item.find('link').text();
// 					var description = item.find('description').text();
// 					var pubDate = item.find('pubDate').text();
// 					//var tempHtml = "<li class='items'><a href='"+link+"'><h1>"+title+"</h1></a><p class='description'>"+description+"</p></li>";
// 					var tempHtml = "<li class='items'><a href='link'><h1>title</h1></a><p class='description'>description</p></li>";
// 					feedContainer.append(tempHtml);
// 				});
 				}, // ends success
 			complete: function(){
 				}
 			}
 		);
 }
