var total = 0;
var num = 0;

$(function(){
	$('dd.newswin', this.group).each(function(){
		var BODY = $('dd.newswin > a > span.body').filter(':eq('+total+')').html();
		if(BODY.length > 34){
			BODY = BODY.slice(0,34) + '...';
			$('dd.newswin > a > span.body').filter(':eq('+total+')').html(BODY);
		}
		$(this).hide();
		total++;
		
	}).filter(':eq(0)').fadeIn("slow");
	
	if(total > 1){
		setInterval(newsF,4500);
	}
});

function newsF(){
	
	if( num < (total - 1)){
		num++;
	} else {
		num = 0;
	}
	
	$('dd.newswin', this.group).each(function(){
		$(this).hide();
	}).filter(':eq('+num+')').fadeIn("slow");
	
}
