// JavaScript Document

function slideIt() {
  if (!pause) { 
    if (position <= -(scroll.offsetWidth/2)) {
      position = 0;
    }
    position -= speed;
    scroll.style.marginLeft = position+'px';
  }
  setTimeout("slideIt()",timeout);
}
 
function pauseIt() {
  pause = true;
}
 
function resumeIt() {
  pause = false;
}
 
 
//var cont 
var scroll = document.getElementById('slider');
var object = document.getElementById('container');
var inner = document.getElementById('part1');
var cont_width = object.offsetWidth;

var width = object.offsetWidth;
var height = 55;
var position = 0;
var speed = 1;
var timeout = 20;
var pause = false;
//initLine();

scroll.style.width = (inner.offsetWidth * 2)+'px'; 
scroll.innerHTML += '<ul class="partners" id="part2">'+inner.innerHTML+'</ul>'; 
 
slideIt();
