﻿window.onload=function(){   
var o=document.getElementById('gundong');   
window.setInterval(function(){scrollup(o,24,0);},1800);   
}   
function scrollup(o,d,c){   
if(d==c){   
var t=getFirstChild(o.firstChild).cloneNode(true);   
o.removeChild(getFirstChild(o.firstChild));   
o.appendChild(t);   
t.style.marginTop="0px";   
}else{   
c+=2;   
getFirstChild(o.firstChild).style.marginTop=-c+"px";   
window.setTimeout(function(){scrollup(o,d,c)},20);   
}   
}   
function getFirstChild(node){   
while (node.nodeType!=1)   
{   
nodenode=node.nextSibling;   
}   
return node;   
}   

