imageWidth = 100;
imagesLeft = 0;
lefts = new Array();

function animation()
{
  container = dImages;
  children = container.children;
  for (i = 0; i < children.length; i++) {
    lefts[i] -= 1;
    if (lefts[i] + imageWidth < imagesLeft) {
      prev = i - 1;
      if (prev < 0)
        prev = lefts.length - 1;
      lefts[i] = lefts[prev] + imageWidth;
    }
    children(i).style.left = lefts[i];
  }
}

function initAnimation()
{
  container = dImages;
  imagesRight = dLayout.getBoundingClientRect().right - 2;
  imagesLeft = tLogo.getBoundingClientRect().right;
  container.style.clip="rect(0px " + (imagesRight-1) + "px 100px " + imagesLeft + "px)";
  left = imagesRight;
  i = 0;
  children = container.children;
  while (left > imagesLeft) {
    if (i++ > children.length)
      break;
    left -= imageWidth;
  }
  left += imageWidth;
  for (i = 0; i < children.length; i++) {
    children(i).style.visibility = "visible";
    children(i).style.left = left;
    lefts[i] = left;
    left += imageWidth;
  }
  if (left > imagesRight)
    window.setInterval("animation()", 20);
}
