function marquee(id, content, speed, step) {
	
	var cnt = document.getElementById(id);
	var mq = document.createElement("div");
	
	if(!speed) speed = 100; // 100ms
	if(!step) step = 3; // 3px
	
	var position = cnt.style.position;
	
	if(position != 'absolute' && position != 'relative')
		cnt.style.position = 'relative';
		
	if(cnt.style.height == '0px')
		cnt.style.height = '18px';
	
	with(cnt.style) {
		whiteSpace = 'nowrap';
		overflow = 'hidden';
	}
	
	with(mq.style) {
		position = 'absolute';
		left = cnt.clientWidth + 'px';
		top = 0;	
	}

	mq.innerHTML = content;
	cnt.appendChild(mq);	
	
	setInterval(
		scroll,
		speed
	);

	function scroll() {	
		var l = parseInt(mq.style.left);
		var w = mq.clientWidth;
		mq.style.left =  ((l + w < 0) ? cnt.clientWidth : l - step) + 'px';
	}	
}