// banner_roll("div태그 id", 배너1개높이, 딜레이, 1칸이동속도, 0);
function banner_roll(div_id, banner_height, banner_delay, banner_speed, this_height)
{
    var div_tag = document.getElementById(div_id);
    var childs, i;
    
    this_height ++;
    if(this_height < banner_height) {
        div_tag.style.top = -this_height;
        setTimeout("banner_roll('" + div_id + "', " + banner_height + ", " + banner_delay + ", " + banner_speed + ", " + this_height + ");", banner_speed);
    } else {
        childs = div_tag.getElementsByTagName(div_tag.firstChild.tagName);
        div_tag.appendChild(childs[0]);
        div_tag.style.top = 0;
        setTimeout("banner_roll('" + div_id + "', " + banner_height + ", " + banner_delay + ", " + banner_speed + ", 0);", banner_delay);
    }

    return true;
}

function banner_belt(div_id, banner_width, banner_delay, banner_speed, this_width)
{
    var div_tag = document.getElementById(div_id);
    var childs, i;
    
    this_width ++;
    if(this_width < banner_width) {
        div_tag.style.left = -this_width;
        setTimeout("banner_belt('" + div_id + "', " + banner_width + ", " + banner_delay + ", " + banner_speed + ", " + this_width + ");", banner_speed);
    } else {
        childs = div_tag.getElementsByTagName(div_tag.firstChild.tagName);
        div_tag.appendChild(childs[0]);
        div_tag.style.left = 0;
        setTimeout("banner_belt('" + div_id + "', " + banner_width + ", " + banner_delay + ", " + banner_speed + ", 0);", banner_delay);
    }

    return true;
}
