var width = 750;
var position_l=750;
function show_ticker() {
	document.getElementById("ticker").style.left = position_l + "px";
	position_r=position_l+document.getElementById("ticker").offsetWidth;
	if (position_r > 0) {
		position_l--;
	}
	else {
		position_l=width;
	}
	window.setTimeout("show_ticker()",20);
}

function init_ticker() {
	if (self.name==parseInt(self.name)) position_l=parseInt(self.name);
	position_r=position_l+document.getElementById("ticker").offsetWidth;
	if (position_l>width) {
		position_l=width;
	}
	if (position_r<=0) {
		position_l=width;
	}
	show_ticker();
}

function save_ticker() {
	self.name=position_l;
}

