function goState(id, time){
	var o=document.getElementById(id);
	window.setInterval(function(){scrollup(o,23,0);}, time);
}

function scrollup(o,d,c){
	if(d==c){
		var t=o.firstChild.cloneNode(true);
		o.removeChild(o.firstChild);
		o.appendChild(t);
		t.style.marginTop=o.firstChild.style.marginTop='0px';
	}
	else{
		var s=3,c=c+s,l=(c>=d?c-d:0);
		o.firstChild.style.marginTop=(-c+l)+'px';
		window.setTimeout(function(){scrollup(o,d,c-l)},100);
	}
}

