var WidthLS='300px';
var HeightLS='25px';
var SpeedLS=3;
var ColourLS='#ffccff';
var FontFamily = 'arial,sans-serif';
var TextLS='Unser Atelier ist am 31.12. geschlossen.';

var aw, mq;
var FontSize = parseInt(HeightLS) - 4;

function startticker(){
	if (document.getElementById) {
		var tick = '';
		tick +='<div style="position:relative;width:'+WidthLS+';height:'+HeightLS+';overflow:hidden;background-color:'+ColourLS+'">';
		tick +='	<div id="mq" style="position:absolute;left:0px;top:0px;font-family:'+FontFamily+';font-size:'+FontSize+'px;white-space:nowrap;">';
		tick +='	<\/div>';
		tick +='<\/div>';
		document.getElementById('ticker').innerHTML = tick;
		mq = document.getElementById("mq");
		mq.style.left=(parseInt(WidthLS)+10)+"px";
		mq.innerHTML='<span id="tx">'+TextLS+'<\/span>';
		aw = document.getElementById("tx").offsetWidth;
		lefttime=setInterval("scrollticker()",50);
	}
}

function scrollticker(){
	mq.style.left = (parseInt(mq.style.left)>(-10 - aw)) ?parseInt(mq.style.left)-SpeedLS+"px" : parseInt(WidthLS)+10+"px";
}

window.onload=startticker;
