var speed = 20;
var x = 0;
var intervalId = setInterval("moveTicker()", speed);

var mT = document.getElementById("movieTic");
var mTc = mT.cloneNode(true);
document.getElementById("ticker").appendChild(mTc);
mTc.setAttribute("id", "movieTicClon");
mTc.style.position = "absolute";
mTc.style.height = 35 + "px";
mT.style.width = widthTic + "px";
mTc.style.width = widthTic + "px";

function moveTicker() {
	var mT = document.getElementById("movieTic");
	var mTc = document.getElementById("movieTicClon");
	
	x = x - 1;
	var end = widthTic + x;
	if (end <= 0)
		x = 0;
	
	mT.style.left = x + "px";
	mTc.style.left = x + widthTic + "px";
}

function stopTicker() {
	clearInterval(intervalId);
}

function startTicker() {
	intervalId = setInterval("moveTicker()", speed);
}
