function get_obj(id){
    return document.getElementById(id);
}
var min_step = .5;
var max_step = 2;
var step = 2;
var dstep = 0.1;
var step_time = 15;
var orig_left = 700;
var clone_left = dwidth + 700;
var orig = get_obj("content_sc");
var clone = get_obj("content_clone_sc");
var master_timeout = 0;
function init_scroller(){
    orig.style.left = (orig_left + "px");
    clone.innerHTML = orig.innerHTML;
    clone.style.left = (clone_left + "px");
}
function move_it(){
    orig.style.left = Math.round((orig_left-=step)) + "px";
    if (orig_left <= (-1 * dwidth)){
        orig_left = dwidth;
    }
    clone.style.left = Math.round((clone_left-=step)) + "px";
    if (clone_left <= (-1 * dwidth)){
        clone_left = dwidth;
    }
    master_timeout = setTimeout("move_it();", step_time);
}
var speed_timeout = 0;
function slowdown(){
    if (speed_timeout){
        clearTimeout(speed_timeout);
    }
    if (step > min_step){
        step-=dstep;
        speed_timeout = setTimeout("slowdown();", 100);
    }
}
function speedup(){
    if (speed_timeout){
        clearTimeout(speed_timeout);
    }
    if (step < max_step){
        step+=dstep;
        speed_timeout = setTimeout("speedup();", 100);
    }
}

