num_of_ads = 4;
mleft = 0;
mcount2 = 0;
function vend_scroll() {
  if (document.getElementById('bannerads') != null) {
    if (mleft > -180 * num_of_ads) {
      mleft = mleft - 45;
      mcount2 = mcount2 + 45;
    }
    else {
      mleft = 0;
      mcount2 = 0;
    }
    document.getElementById('bannerads').style.left=mleft+"px";
    if (mcount2 == 180) {
      mcount2 = 0;
      setTimeout("vend_scroll()",5000);
    }
    else {
      setTimeout("vend_scroll()",30);
    }
  }
  else {
    setTimeout("vend_scroll()",5000);
  }
}

vend_scroll();
