function autoScroller(contentDiv, speed) 
{
    contentDiv = "#"+contentDiv;
    var scrollSpeed = (speed==null) ? 5 : parseInt(speed);
    contentDivWidth = 1300;
    
   $(contentDiv).everyTime(50, function(i){
        if (parseInt($(this).css('margin-left'))<-contentDivWidth)
        {
           // offset = parseInt($(this).css('margin-left'))-scrollSpeed+"px";
            $(this).css({'margin-left':0+'px'});
        }
        else
        {
            offset = parseInt($(this).css('margin-left'))-scrollSpeed+"px";
            $(this).css({'margin-left':offset});
        }
    });
    
    $(contentDiv).mouseover(function ()
    {
        speed = scrollSpeed;
        scrollSpeed = 0;       
    });
    
    $(contentDiv).mouseout(function ()
    {
        scrollSpeed = speed;
    });
}
