function scrollContent(cont,speed) {
    if ($(cont+" .scrolledText").length < 1) {return;}
    
    $(cont+" .scrolledText").bind("marquee",function() {                    
        var ob = $(this);
        var tw = ob.width();
        var ww = ob.parent().width();
        var cpos = ob.css("right");        
        if (cpos == "auto") {cpos = -tw}
        cpos = parseFloat(cpos);
        if ((-tw >= cpos) || (cpos >= ww)) {
            ob.css({ right: -tw });
            cpos = -tw;
        }
        var maxt = ww+tw;
        var dur = parseInt(((ww-cpos)/maxt)*speed);                    
        ob.animate({ right: ww }, dur, 'linear', function() {
            ob.trigger('marquee');
        });
    })
    .trigger("marquee")
    .parent().hover(
        function() {
            $(this).children(".scrolledText").stop();
        },
        function() {
            $(this).children(".scrolledText").trigger("marquee")
        }
    );
}

