$(function() {

    $('.jhtscroller div').bind('marquee', function() {
        var ob = $(this);
        var tw = ob.width();
        var ww = ob.parent().width();
        var speedindex = tw/ww;
        if (speedindex<1) {speedindex=1;}
        var speed = speedindex * 20000; 
        ob.css({ left: ww+30 });
        ob.animate({ left: -tw }, speed, 'linear', function() {
            ob.trigger('marquee');
        });
    }).trigger('marquee');
});
