// JavaScript Document
time=0;
speed=1;
selected=0;
//ntTimer = window.setInterval("timeLine()", 20);

function goto(times){
		selected=times;
		document.getElementById("newsCont").style.top=times*parseInt(-150) + "px";
		time=0;
}

function timeLine(){
	document.getElementById("timeLineIn").style.width=time*parseInt(1) + "px";
	time+=speed;
	if(time>395){
		time=0;
		selected++;
		if(selected>4){selected=0;}
		goto(selected);
		
		return;
	} 
}

function ntPause(){
	speed=0;	
}

function ntPauseStop(){
	speed=1;	
}