$(function(){
	function newsTicker(){

		if($("li","div#ticker ul").length<=1) return false;

		$("li","div#ticker ul").each(function(i){  
			$(this).attr("id","news-"+i);  
			if(i!=0) $(this).hide();  
		});

		var start = count = 0,  
		end = $("li","div#ticker ul").length-1,  
		interval = 10000,  
		fadeTimer = setInterval(function(){  
			$("li#news-"+(start==1 ? count==0 ? end : count-1 : count)).fadeOut("normal",function(){
				if($.browser.msie){
					this.style.removeAttribute('filter');
				}
				$("li#news-"+(start==1 ? (++count)-1 : ++count)).show();
				if(start==0 && count>=end){  
					count = 0;  
					start = 1;  
				}else if(start==1 && count>end){  
					count = 0;  
				}  
			});


		},interval);

	}
	newsTicker();
});
function  complete(){
	if($.browser.msie){
		this.style.removeAttribute('filter');
	}
}