var tickerAutoTimerId = -1;

jQuery(document).ready(function(jQuery) {       
   $("#ticker > div > ul").hover(function() {clearInterval(tickerAutoTimerId)}, function() {clearInterval(tickerAutoTimerId);tickerAutoTimerId = setInterval("scrollTicker()", 90)});
   tickerAutoTimerId = setInterval("scrollTicker()", 90)
});

function scrollTicker() {
    //if an item has fallen off the left the list, take it off the left end and reattach it to the right
    if($("#ticker > div > ul ").position().left < (-1* $("#ticker > div > ul > li:first").width())){       
        $("#ticker > div > ul > li:first").insertAfter("#ticker > div > ul > li:last");
        $("#ticker > div > ul").css({left: 10})
    }
    $("#ticker > div > ul").stop().animate({left: '-='+ 5}, 90, "linear")
}
