(function($) {

// RSS WALL
	jQuery.fn.rsswall=function (arr){this.html("<img src='script/arrows bw.gif' style='border:0'/>");
		  	var $this=this;
			
			var arr = $.extend({limit:100,head: 'strong',lead: 'em',line:'#666'}, arr);
var iCount=1;
		$.getJSON("http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20xml%20where%20url%3D%22"+encodeURIComponent(arr.rss)+"%22&format=json&callback=?", function(d) {
		$this.html("");
		$(d.query.results.rss.channel.item).each(function() {
			if(iCount>arr.limit){return false;}
			iCount++;
			var spl=this.description.split("<br />");
			var rest=spl.length>1 ? this.description.substr(spl[0].length+spl[1].length+6) :"";
			var subs=spl.length>1 ? "<"+arr.lead+">"+spl[1]+"</"+arr.lead+">" :"";
			var head="<"+arr.head+">"+spl[0]+"</"+arr.head+">";
	 		 $this.append("<br/>"+head+"<br/>"+subs+""+rest+"<br/><br style='clear:both'/><div style='width:auto;height:3px;border-bottom: 1px solid "+arr.line+";'></div>");
			});
		});
	}






})(jQuery);
