function DoConfirm(message, url) {if(confirm(message)){location.href = url;}}

window.addEvent('domready',function() {
/* settings */
	var list = $('news-feed').getFirst('ul');
	var items = list.getElements('li');
	var showDuration = 5000;
	var scrollDuration = 500;
	var index = 0;
	var height = items[0].getSize().y;

/* action func */
	var move = function() {
		list.set('tween',{
			duration: scrollDuration,
			onComplete: function() {
			if(index == items.length - 1) {
				index = 0 - 1;
				list.scrollTo(0,0);
			}
		}
		}).tween('top',0 - (++index * height));
	};

/* go! */
	window.addEvent('load',function() {    
		move.periodical(showDuration);
	});
});
