ZolderZooiEnzo = {
	initTicker: function() {
		var el = document.getElementById("ticker");
		el.x = 0;
		el.scroll = function() {
			if (this.x <= -Math.round(this.offsetWidth / 2) ) this.x += Math.round(this.offsetWidth / 2);
			this.style.left = this.x-- + "px";
			setTimeout(function() { el.scroll(); }, 50);
		};
		el.scroll();


		var el2 = document.getElementById("info_left");
		el2.x = 0;
		el2.scroll = function() {
			if (this.x <= -Math.round(this.offsetWidth) ) this.x += 300 + Math.round(this.offsetWidth) ;
			this.style.left = this.x-- + "px";
			setTimeout(function() { el2.scroll(); }, 25);
		};
		el2.scroll();
	}
	
};



function queryElementById(id, fn) {
	var el = document.getElementById(id);
	if (!el && !window.loaded) setTimeout(function() { queryElementById(id, fn); }, 200);
	else if (el && fn) fn();
}

window.loaded = false;
window.onload = window.onstop = function() {
	this.loaded = true;
};


queryElementById("ticker", ZolderZooiEnzo.initTicker);