var speed = 175 ;

var container_id = 'ticker' ;

var text = '' ;
var pos = 0 ;

function init_ticker() {

    text = document.getElementById(container_id).innerHTML ;

    set_ticker_text(text + text) ;

}

function start_ticker() {

    init_ticker() ;

    window.setInterval('tick()', speed) ;

}

function tick() {

    pos += 1 ;

    if (pos > text.length) {
        pos = 0 ;
    }

    new_text = text.substring(pos, text.length) + text + text.substring(0, pos) ;

    set_ticker_text(new_text) ;

}

function set_ticker_text(text) {

    document.getElementById(container_id).innerHTML = text ;

}

