<!--
var col   = 1; //每行几个链接

marqueesHeight=20;
delaytime     = 60;
scrollupRadio = 18;
stopscroll=false; 
var Cheight;

function set(obj){
	$(obj).scrollTop=0;
	with($(obj)){	
		noWrap= false //true; 
		onmouseover=new Function("stopscroll=true"); 
		onmouseout=new Function("stopscroll=false"); 
	}
	$(obj).innerHTML+=$(obj).innerHTML; 
}
/*
var aInfo = [];
*href  : 链接地址
*title : 链接的Title
*topic : 显示的链接文字
*color : 链接的颜色
*/

function init_srolltext(aInfo){
	var scrollText = '<DIV id="icefable1" style="height:25px;overflow:hidden;line-height:25px;">';
	for(var i = 0; i < aInfo.length ; i++){
		scrollText += '<a href="'+aInfo[i].href+'" target="_blank" style="'+aInfo[i].style+'" title="'+aInfo[i].title+'">"'+aInfo[i].topic+'"</a>';
		if(col > 1){
			if((i%col)==(col-1))
				scrollText += '<br>';
			else
				scrollText += ' &nbsp;  &nbsp;  &nbsp;  &nbsp; ';
		}else{
			scrollText += '<br>';
		}
	}
	if((i%col)!=1)
		scrollText += '<br>';
	scrollText = scrollText.replace(/(<br>)+$/ig,'<br>') + '</DIV>';
	document.write(scrollText);
	set("icefable1");
	//icefable1.scrollTop= 0; 
	setInterval("scrollUp('icefable1')",scrollupRadio); //滚动速度...100 
} 
// ; 当前top ,停留时间 
preTop=0;
currentTop=0;
stoptime=0;
function scrollUp(obj){
	if(stopscroll==true) return; 
	currentTop+=1;
	if(currentTop==25){  
		stoptime+=1; 
		currentTop-=1;
		$(obj).scrollTop = Math.ceil($(obj).scrollTop/25)*25;		
		if(stoptime==delaytime){  
			currentTop=0; 
			stoptime=0; 
		} 
	}else{
		if($(obj).scrollTop >= $(obj).scrollHeight-parseInt($(obj).style.height)){
			$(obj).scrollTop = $(obj).scrollHeight/2-parseInt($(obj).style.height);
		}
		$(obj).scrollTop += 1;	
	} 
}
//-->