function newsFader(){var first=0;var speed=1500;var pause=9000;$('#mainslide-1').css('height',330);function removeFirst(){first=$('ul#listticker li:first').html();$('ul#listticker li:first').animate({opacity:0},speed).fadeOut('slow',function(){$(this).remove()});addLast(first)}function addLast(first){last='<li style="display:none">'+first+'</li>';$('ul#listticker').append(last);$('ul#listticker li:last').animate({opacity:1},speed).fadeIn('slow')}interval=setInterval(removeFirst,pause)}function headline_top(){var headline_count;var headline_interval;var old_headline=0;var current_headline=0;headline_count=$("div.headline").size();$("div.headline:eq("+current_headline+")").css('top','5px');headline_interval=setInterval(headline_rotate,6000);$('#scrollup').hover(function(){clearInterval(headline_interval)},function(){headline_interval=setInterval(headline_rotate,6000);headline_rotate()});function headline_rotate(){current_headline=(old_headline+1)%headline_count;$("div.headline:eq("+old_headline+")").animate({top:-205},"slow",function(){$(this).css('top','210px')});$("div.headline:eq("+current_headline+")").show().animate({top:5},"slow");old_headline=current_headline}}function tsugitsuginews(){var tsugitsuginews_count;var tsugitsuginews_interval;var old_tsugitsuginews=0;var current_tsugitsuginews=0;tsugitsuginews_count=$("div.tsugitsuginews").size();$("div.tsugitsuginews:eq("+current_tsugitsuginews+")").css('left','0px');tsugitsuginews_interval=setInterval(tsugitsuginews_rotate,6000);$('#tsuginext').hover(function(){clearInterval(tsugitsuginews_interval)},function(){tsugitsuginews_interval=setInterval(tsugitsuginews_rotate,6000);tsugitsuginews_rotate()});function tsugitsuginews_rotate(){current_tsugitsuginews=(old_tsugitsuginews+1)%tsugitsuginews_count;$("div.tsugitsuginews:eq("+old_tsugitsuginews+")").css('opacity',0);$("div.tsugitsuginews:eq("+old_tsugitsuginews+")").animate({left:0},"show",function(){$(this).css('left','450px')});$("div.tsugitsuginews:eq("+current_tsugitsuginews+")").show().animate({left:0},"slow");$("div.tsugitsuginews:eq("+current_tsugitsuginews+")").css('opacity',1);old_tsugitsuginews=current_tsugitsuginews}}