function show_news(move)
{
	var count = 0;
	var found_count = 0;
	var li = $$('#featNews li');
	li.pop();
	li.shift();
	li.each(function(el){
		count++;
		if(el.hasClassName('show'))
		{
			el.removeClassName('show');
			el.addClassName('hide');
			found_count = count-1;
		}
	});

	var new_count = found_count+move;
	
	if(new_count>-1 && new_count<li.length)
		li[new_count].addClassName('show');
	else
		li[found_count].addClassName('show');	
}

document.observe('dom:loaded',function(){
	$$('.previousLink a').first().observe('click',function(event){
		Event.stop(event);
		show_news(-1);
	});

	$$('.nextLink a').first().observe('click',function(event){
		Event.stop(event);
		show_news(1);
	});
});