//var someText = "我们将致力于我们国家的税收优惠政策宣传，努力帮助纳税人用好税收优惠政策；为发挥税收、促进经济的作用得到最大的发挥，作出卓越的贡献。";	
// the text
var aChar;
var aSentence;
var i=0;					// a counter

var colors = new Array("FF0000","993366","FF3399","CC9966","FF9900","6699CC"); // the colors
var aColor;					// the chosen color

function loadText()
{
	// randomly choose color
	aColor = colors[Math.floor(Math.random()*colors.length)];

	aChar = someText.charAt(i);
	if (i == 0)
		aSentence = aChar;
	else
		aSentence += aChar;	

	// 50 iterations max.
	if (i < 80)	i++;
	
	if (document.getElementById)
	{
		document.getElementById("flashFont").innerHTML = "<font color='#"+aColor+"' >"+aSentence+"</font>";
		setTimeout("loadText()",200);
	}
}
