var speed_slider=1;
if (iens6){
	var crossobj=document.getElementById? document.getElementById("news_content_id") : document.all.content
	var contentheight=crossobj.offsetHeight
	var contentheight=crossobj.clip.height
}
 

function movedown()  {
	if (window.moveupvar) clearTimeout(moveupvar)
	if (parseInt(crossobj.style.top)>=(contentheight*(-1)+50)) crossobj.style.top=parseInt(crossobj.style.top)-speed+"px";
	
	movedownvar=setTimeout("movedown()",120)
}

function moveup(){
	if (window.movedownvar) clearTimeout(movedownvar)
	if (iens6&&parseInt(crossobj.style.top)<0) crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
	 
	moveupvar=setTimeout("moveup()",120)
}

function stopscroll(){
	if (window.moveupvar) clearTimeout(moveupvar)
	if (window.movedownvar) clearTimeout(movedownvar)
}
	
function movetop(){
	stopscroll()
	if (iens6) crossobj.style.top=0+"px"
}

function getcontent_height(){
	if (iens6) contentheight=crossobj.offsetHeight
}
window.onload=getcontent_height


//auto start rolling news
//setTimeout("speed=speed_slider;movedown();",2000)