  var width = document.getElementById('inform_width').offsetWidth;
  var numbers_in_line = Math.floor(width/(image_scroll_width));
  width = numbers_in_line*image_scroll_width;

  var m=0;
  var n=width;
  var scroll_speed=40;
  var stop_scroll = false;
  scPind = false;

  function scrollPics() {
     if (stop_scroll != false) {
        return;
     }

     if (scPind == false) {
       document.getElementById('div1').style.width=width+'px';
       document.getElementById('div2').style.width=width+'px';
     }
     scPind = true;

     document.getElementById('div1').style.left=m+'px';
     document.getElementById('div2').style.left=n+'px';
     m--;
     n--;
     if(m==-width) 
     {
        m=width;
     }

     if(n==-width) 
     {
        n=width;
     }
  } 
  window.onload=function() {
    window.setInterval('scrollPics()',scroll_speed);
    document.getElementById('container').style.height = image_scroll_height + 'px';
    document.getElementById('div1').style.height = image_scroll_height + 'px';
    document.getElementById('div2').style.height = image_scroll_height + 'px';
  }

