<!--
function start() {
    if(newsArray.length > 0) {
	    writeText();
        try {
            document.getElementById("newsTick").addEventListener("mouseup",dispNews, false);
        } catch(err) {
            document.getElementById("newsTick").attachEvent("onclick",dispNews); 
        }
	}	
}

function writeText() {
	currNews++;
	if (currNews >= newsArray.length) currNews = 0;
	window.clearTimeout(word);
	currLength = 0;
	playWord(newsArray[currNews], idArray[currNews]);
}
function playWord(str, id) {
	if(currLength > (str.length + 50) && currLength !=0) {
			writeText();
			return;			
	}
	
	if(document.getElementById) {
		if(currLength % 2 == 0)
			document.getElementById("newsTick").innerHTML = str.substr(0,currLength) + "<span style='color: #ffffff'>_</span>";
		else
			document.getElementById("newsTick").innerHTML = str.substr(0,currLength) + "_";
	}
	document.getElementById("newsTick").href = "/news/default.aspx#news"+idArray[currNews];
	
	currLength++;
	word = setTimeout('playWord("' + str + '",' + id + ')', 100);
}
function dispNews(e) {
	window.clearTimeout(word);
	window.location.href = "/news/default.aspx#news"+idArray[currNews];
}

if(newsArray.length > 0) {
    if(document.getElementById) {
	    document.writeln('<a id="newsTick" href="javascript:;" style="color:' + cColor + '; font-weight: bold; padding: 3px;"></a>');
   }
}
//-->