function readRSS(URI, display_limit, text_limit, tab_width, display_replies, display_GMT)
{
	var div_id;
	do
		div_id = 'rss_' + Math.round(Math.random() * 10000);
	while ($('body').is('#' + div_id));
	document.write('<div id="' + div_id + '"></div>');

	$.get(URI, '', function(xml){
		var items_count = $('item', xml).length;
		if (items_count == 0)
			return false;
		var title, link, creator, pubDate, description;
		var forum_title = $('title:first', xml).text();
		var forum_url = URI.substr(0, URI.indexOf('/', 7) + 1) + 'viewforum.forum?f=' + URI.substr(URI.indexOf('f=') + 2, URI.length);
		var display_html = '<table cellspacing="0" width="' + tab_width + '" class="fa_table"><tr class="fa_tr"><td class="fa_td_header"><center><span class="fa_title"><a href="' + forum_url + '" target="_blank" class="fa_a">' + forum_title + '</a></span></center></td></tr><tr class="fa_tr"><td class="fa_td_main">';
		if (display_limit == -1)
			display_limit = items_count;

		$('item', xml).each(function(i){
			title = $('title', this).text();
			link = $('link', this).text();
			display_html += '<span class="fa_num">' + (i + 1) + '.</span> ' + (title == '' ? '' : '<span class="fa_topic"><a href="' + link + '" class="fa_a">' + title + '</a></span>');
			creator = $('creator', this).text();
			display_html += '<br /><span class="fa_text">' + (creator == '' ? '<i>Undefined author</i>' : creator) + '</span>';
			pubDate = $('pubDate', this).text();
			display_html += '<br /><span class="fa_text">' + (pubDate == '' ? '<i>Undefined date</i>' : (display_GMT ? pubDate : pubDate.substring(0, pubDate.indexOf(' GMT')))) + '</span>';
			/*if (display_replies)
				display_html += '<br /><span class="fa_text"><i>Unknown</i></span>';*/
			if (text_limit == 0)
				description = '';
			else
			{
				description = $('description', this).text();
				if (text_limit != -1 && description.length > text_limit)
					description = description.substring(0, text_limit - 3) + '...';
			}
			display_html += '<br />' + (description == '' ? description : '<span class="fa_post">' + description + '</span>');
			if (i < display_limit - 1)
				display_html += '<hr class="fa_hr />';
			else
				return false;
		});

		$('#' + div_id).html(display_html + '</td></tr></table>');
	}, 'xml');

}

if (typeof($) == 'undefined')
	document.write('<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script>');