function setNewsContent(content){
	info=[
		  [content],
		  [content]
	]
}

step=1
nextMessage=1
ctimer=""
btimer=""
function initTSV1(isScroll){
	tsvDisplay=document.getElementById("tsvcont")
	
	for(var i=0;i<2;i++){
		newDiv=document.createElement("DIV")
		newDiv.setAttribute("id","tsvdiv"+i)
		if(isScroll == 1){
			newDiv.onmouseover=function(){clearTimeout(ctimer)}
			newDiv.onmouseout=function(){scrollTSV1()}
		}
		newDiv.style.position="absolute"
		newDiv.style.padding="0 5 5 5" // top right bottom left
		tsvDisplay.appendChild(newDiv)
	}

	tsvDv0=document.getElementById("tsvdiv0")
	tsvDv1=document.getElementById("tsvdiv1")
	//tsvDv0.innerHTML=info[0]
	tsvDv1.innerHTML=info[1]
	
	tsvDv0.style.top=tsvDisplay.offsetHeight
	tsvDv1.style.top=tsvDisplay.offsetHeight+tsvDv0.offsetHeight+"px"
	
	if(isScroll == 1){
		scrollTSV1();	
	}else{
		tsvDv1.style.top = "0px";
	}
	//btimer = setTimeout("scrollTSV1()", 3000)
	//clearTimeout(btimer);
}

function scrollTSV1(){

	tsvDv0Pos=parseInt(tsvDv0.style.top)
	tsvDv1Pos=parseInt(tsvDv1.style.top)
	
	tsvDv0Pos-=step
	tsvDv1Pos-=step
	
	tsvDv0.style.top=tsvDv0Pos+"px"
	tsvDv1.style.top=tsvDv1Pos+"px"
	
	if(tsvDv0Pos< -tsvDv0.offsetHeight){		
		nextMessage++
		if(nextMessage==info.length){nextMessage=0}
		tsvDv0.innerHTML=info[nextMessage]

		if(tsvDv1.offsetHeight<tsvDisplay.offsetHeight){
		
			if(tsvDv1.offsetTop<tsvDisplay.offsetHeight-tsvDv1.offsetHeight){
				tsvDv0.style.top=tsvDisplay.offsetHeight+"px"
			}
			else{
				tsvDv0.style.top=tsvDv1.offsetTop+tsvDv1.offsetHeight+"px"
			}
	
		}else{
			tsvDv0.style.top=tsvDv1.offsetTop+tsvDv1.offsetHeight+"px"
		}
	}
	
	if(tsvDv1Pos< -tsvDv1.offsetHeight){
		nextMessage++
		if(nextMessage==info.length){nextMessage=0}{
			tsvDv1.innerHTML=info[nextMessage]
		}
		
		if(tsvDv0.offsetHeight<tsvDisplay.offsetHeight){
			if(tsvDv0.offsetTop<tsvDisplay.offsetHeight-tsvDv0.offsetHeight){
				tsvDv1.style.top=tsvDisplay.offsetHeight+"px"
			}
			else{
				tsvDv1.style.top=tsvDv0.offsetTop+tsvDv0.offsetHeight +"px"
			}
		}
		else{
			tsvDv1.style.top= tsvDv0.offsetTop+tsvDv0.offsetHeight+"px"
		}
	}
	
	ctimer=setTimeout("scrollTSV1()",40)
	
}

// add onload="initTSV1()" to the opening BODY tag
