$.fn.ABQrss = function(url, options) {
  options = jQuery.extend({
		items: 5,
		}, options);
		
return this.each(function() {
var $this = $(this);
  $.ajax({
   url: url,
   dataType: ($.browser.msie) ? "text" : "xml",
   success: function(data){
     var xml;
     if (typeof data == "string") {
       xml = new ActiveXObject("Microsoft.XMLDOM");
       xml.async = false;
       xml.loadXML(data);
     } else {
       xml = data;
     }
     
	$('item',xml).each(function(i){
		
		var title = $(this).find('title').text();
		var link = $(this).find('link').text();
		var description = $(this).find('description').text();
		var pubdate = $(this).find('pubDate').text();


						 		var html = '';
		 						html += '<ul>'; 
						    if ( i == options.items ) return false;        
                html += '<li>' + '<a href="' + link + '">' + title + '</a>';               
                html += '<div class="summary">' + description + ' <span class="pubdate">Published: ' + pubdate + '</span></div>' + '</li>';
								html += '</ul>';
								$this.append(html);
            	

	}); // close each

  } // close success					
  
 }); //close ajax
 
}); // close return this 

} // close fn
