var scrollNewsCt=Math.round(Math.random()*0)+1 
var pauseTime=10*100000;
var timer1;

function hideAllClips() {
	for (i=1; i<4; i++){
		var allClips="topNews_"+i;
		//var allClips2="News_"+i;
		var clipNum="clipNum"+i;
		document.getElementById(allClips).style.display="none";
		//document.getElementById(allClips2).style.display="";
		document.getElementById(clipNum).className="topNewsClip_OFF";
		}
	}
	
function clip_Switch(n) {
	var curClip="topNews_"+n;
	//var curClip2="News_"+n;
	var curClipNum="clipNum"+n;
	hideAllClips();
	document.getElementById(curClip).style.display="block";
	//document.getElementById(curClip2).style.display="block";
	document.getElementById(curClipNum).className="topNewsClip_ON";
	scrollNewsCt=n; 
	}

function play() {	
//clip_Switch(scrollNewsCt);
//document.getElementById("load").style.display="none";
//document.getElementById("topNews_0").style.display="block";
fwdScroll();
}	

function fwdScroll() {
	stopScroll();
	clip_Switch(scrollNewsCt);
	scrollNewsCt+=1;
	if (scrollNewsCt==4) {
		scrollNewsCt=1;
		}
		timer1=setTimeout("fwdScroll()",pauseTime);
	}
	
function stopScroll() {
	clearTimeout(timer1);
	}

function autoSwitch(v)
{
    if (v > 0)
        timer1=setTimeout("fwdScroll()",100000);
    else
       clearTimeout(timer1);
}