﻿<!--
// ランダムテキスト
function randomAdv2() {
  m = 0, x = 0, y = 0;
  ad  = new Array();
  adv = new Array();
  hit = new Array();

  hit[0] = 4; adv[0] = '<a href="http://www.abc-group.jp/apple/" target="_blank"><img src="img/banner/apple_banner.gif" width="468" height="60" alt="アップルパーキング"/></a>';
  hit[1] = 2; adv[1] = '<a href="http://www.abc-group.jp/family/" target="_blank"><img src="img/banner/banner_family.gif" width="468" height="60" alt="ファミリーパーキング"/></a>';
  hit[2] = 2; adv[2] = '<a href="http://www.orange-parking.jp/" target="_blank"><img src="img/banner/banner_orange.gif" width="468" height="60" alt="オレンジパーキング"/></a>';
  hit[3] = 3; adv[3] = '<a href="http://www.abc-group.jp/pokkiri/" target="_blank"><img src="img/banner/banner_pokkiri.gif" width="468" height="60" alt="ポッキリパーキング"/></a>';
  hit[4] = 5; adv[4] = '<a href="http://www.konan-s.jp/park/" target="_blank"><img src="img/banner/banner_yellow.gif" width="468" height="60" alt="イエローパーキング"/></a>';

  for(i=0; i<=hit.length - 1; i++) {
    m += hit[i];
  }
  n = Math.floor(Math.random() * m);
  n++;
  for(i=0; i<=hit.length - 1; i++) {
    x = y;
    y += hit[i];
    if(x<n && n<=y) ad = adv[i];
  }
  document.write(ad);
}
//-->
