﻿document.getElementById("scr2").innerHTML = document.getElementById("scr1").innerHTML;
var speed = 1;
var time = 40;
function scrol() {
    document.getElementById("scro").scrollLeft = document.getElementById("scro").scrollLeft + speed;
    if (document.getElementById("scro").scrollLeft >= document.getElementById("scr1").offsetWidth) {
        document.getElementById("scro").scrollLeft = 0;
    }
}
var stimeout = setInterval("scrol()", time);
document.getElementById("mainscroll").onmouseover = function() { clearInterval(stimeout) };
document.getElementById("mainscroll").onmouseout = function() { stimeout = setInterval("scrol()", time) }; 
