document.write('<div id="rollAD"><div id="rollHead">典型客户：</div>');
document.write('<div id="rollText"><ul>');
document.write('<li>成都市众诚农业减灾信息咨询中心 400-6141-400</li>');
document.write('<li>四川省盐业总公司 400-681-3520</li>');
document.write('<li>成都高科技术应用研究所 400-676-9632</li>');
document.write('<li>成都首座贸易有限公司 400-6600-410</li>');
document.write('<li>成都联帮氧气工程有限公司 400-666-5437</li>');
document.write('<li>绵阳市海天旅行社 400-601-3330</li>');
document.write('</ul></div>');
document.write('</div>');

var textDiv = document.getElementById("rollText");
var textList = textDiv.getElementsByTagName("li");
if(textList.length > 2){
	var textDat = textDiv.innerHTML;
	var br = textDat.toLowerCase().indexOf("<br",textDat.toLowerCase().indexOf("<br")+3);
	//var textUp2 = textDat.substr(0,br);
	textDiv.innerHTML = textDat+textDat+textDat.substr(0,br);
	textDiv.style.cssText = "position:absolute; top:0px;left:70px;";
	var textDatH = textDiv.offsetHeight;MaxRoll();
}
var minTime,maxTime,divTop,newTop=0;
function MinRoll(){
	newTop++;
	if(newTop<=divTop+24){
		textDiv.style.top = "-" + newTop + "px";
	}
	else{
		clearInterval(minTime);
		maxTime = setTimeout(MaxRoll,3000);
	}
}
function MaxRoll(){
	divTop = Math.abs(parseInt(textDiv.style.top));
	if(divTop>=0 && divTop<textDatH-24){
		minTime = setInterval(MinRoll,1);
	}
	else{
		textDiv.style.top = 0;divTop = 0;newTop=0;MaxRoll();
	}
}
