function category_fade(obj) {
	element_fade(obj, 1.5, 0.6, obj.id);
}

function category_appear(obj) {
	clearQueue(obj);
	element_appear(obj, 0.1, obj.id);
}

function element_fade(obj, duration, to, scope) {
	new Effect.Fade(obj, { to: to, duration: duration, queue: { position:'end', scope: scope }});
}

function element_appear(obj, duration, scope) {
	new Effect.Appear(obj, { duration: duration, queue: { position: 'front', scope: scope }});
}

function clearQueue(obj) {
	Effect.Queues.get(obj.id).each(function(e) { e.cancel() });
}

function error_news(t) {
}

var cur
function get_news(obj, group, feed) {
	if (cur != null) {
		cur.className = '';	
	}
	cur = obj;	
	cur.className = 'current';
	new Ajax.Updater('content', '/get_news.php?group=' + group + '&feed=' + feed, {asynchronous:true});
}
