<!--
$(document).ready(function() {
	$("li.rss-item").each(function() {

		var homeurl = window.location.pathname;
		var date = $(this).find("span.rss-date").text();
		var datetrim = date.substring(4,16);
		$(this).find("span.rss-date").text(datetrim);
		var itemtxt = $(this).find("p").text();
		var itemtxttrim = itemtxt.substring(0,170);
		$(this).find("p").html(itemtxttrim);
		$(this).find("p").remove();
		$(this).append('<p>'+itemtxttrim+'...</p>');
		var linkurl = $(this).find("a.rss-item").attr("href");
		if(homeurl == "/index.php") {
			$(this).append('<a href="'+linkurl+'" style="margin-bottom:10px;"><img src="img/read.jpg" border="0" /></a>');
		} else {
			$(this).append('<a href="'+linkurl+'" class="readmore">Read More</a>');
		}
		$(this).find("a.rss-item").next().remove();
		$(this).find("a.rss-item").remove();
		
		//alert(itemtxt);
	});
	$("li.rss-item").last().css('background', 'none');
	
	
});
//-->
/*
$(document).ready(function() {
	$("li.rss-item").each(function() {
		var homeurl = window.location.pathname;
		alert(homeurl);
		var date = $(this).find("span.rss-date").text();
		var datetrim = date.substring(0,16);
		$(this).find("span.rss-date").text(datetrim);
		var linkurl = $(this).find("a.rss-item").attr("href");
		$(this).append('<a href="'+linkurl+'">Read More</a>');
		$(this).find("a.rss-item").next().remove();
		$(this).find("a.rss-item").remove();
	});
	$("li.rss-item").last().css('background', 'none');
});
*/
