// ランダム広告
function randomAdv495dti() {
  m = 0, x = 0, y = 0;
  ad  = new Array();
  adv = new Array();
  hit = new Array();

  // hitには相対確率を入れる
  // 完全にランダムにするなら全部"1"にする
  // advには、広告のタグを入れる。改行はしないようにする
  // 広告を増やしたりする場合は、"[ ]"の数字が0から順になるようにする
  hit[0] = 1; adv[0] = '<a href="http://click.dtiserv2.com/Click/1290005-290-104928" target="_blank"><img src="http://affiliate.dtiserv.com/image/carib_ppv/290-490-01.jpg" border="0"></a>';
  hit[1] = 1; adv[1] = '<iframe src="http://www.mmaaxx.com/fla/10musu/index01.html?affid=104928" width="495" height="210" frameborder="no" scrolling="no"></iframe>';
  hit[2] = 1; adv[2] = '<iframe src="http://www.mmaaxx.com/fla/maniacmax1/index01.html?affid=104928" width="495" height="210" frameborder="no" scrolling="no"></iframe>';
  hit[3] = 1; adv[3] = '<a href="http://click.dtiserv2.com/Click10/1006001-6-104928" target="_blank"><img src="http://affiliate.dtiserv.com/image/carib/newmovie.jpg" border="0"></a>';
  hit[4] = 1; adv[4] = '<iframe src="http://www.mmaaxx.com/table/ecsite/index01.html?affid=104928" width="495" height="210" frameborder="no" scrolling="no"></iframe>';
  hit[5] = 1; adv[5] = '<iframe src="http://www.mmaaxx.com/table/carib/index28.html?affid=104928" width="495" height="210" frameborder="no" scrolling="no"></iframe>';
  hit[6] = 1; adv[6] = '<iframe src="http://www.mmaaxx.com/table/carib/index05.html?affid=104928" width="495" height="210" frameborder="no" scrolling="no"></iframe>';
  hit[7] = 1; adv[7] = '<a href="http://click.dtiserv2.com/Click2/1103001-103-104928" target="_blank"><img src="http://affiliate.dtiserv.com/image/dxlive/dxauto1.jpg" border="0"></a>';
  hit[8] = 1; adv[8] = '<a href="http://click.dtiserv2.com/Click2/1320009-320-104928" target="_blank"><img src="http://affiliate.dtiserv.com/image/paco/1320009_b.jpg" border="0"></a>';
  hit[9] = 1; adv[9] = '<iframe src="http://www.mmaaxx.com/table/1pondo/index08.html?affid=104928" width="495" height="210" frameborder="no" scrolling="no"></iframe>';
  hit[10] = 1; adv[10] = '<a href="http://click.dtiserv2.com/Click77/1132002-132-104928" target="_blank"><img src="http://affiliate.dtiserv.com/image/exshot/auto/1132002_b.jpg" border="0"></a>';
  hit[11] = 1; adv[11] = '<a href="http://click.dtiserv2.com/Click10/1044006-44-104928" target="_blank"><img src="http://affiliate.dtiserv.com/auto/xxxjg/auto03.jpg" border="0"></a>';
  hit[12] = 1; adv[12] = '<iframe src="http://www.mmaaxx.com/table/weekly/index01.html?affid=104928" width="495" height="210" frameborder="no" scrolling="no"></iframe>';
  hit[13] = 1; adv[13] = '<iframe src="http://www.mmaaxx.com/fla/xray/index03.html?affid=104928" width="495" height="210" frameborder="no" scrolling="no"></iframe>';
  hit[14] = 1; adv[14] = '<a href="http://click.dtiserv2.com/Click800/2292001-292-104928" target="_blank"><img src="http://affiliate.dtiserv.com/image/10musume/newmovie.gif" border="0"></a>';
  hit[15] = 1; adv[15] = '<iframe src="http://mmaaxx.com/fla/gachinco/index01.html?affid=104928" width="490" height="210" frameborder="no" scrolling="no"></iframe>';
  hit[16] = 1; adv[16] = '<iframe src="http://click.dtiserv2.com/Click263/3290009-23-104928" width="495" height="210" frameborder="no" scrolling="no"></iframe>';
  hit[17] = 1; adv[17] = '<iframe src="http://mmaaxx.com/fla/heydouga/index01.html?affid=104928" width="490" height="200" frameborder="no" scrolling="no"></iframe>';
  hit[18] = 1; adv[18] = '<iframe src="http://www.mmaaxx.com/fla/carib/index05.html?affid=104928" width="490" height="225" frameborder="no" scrolling="no"></iframe>';
  hit[19] = 1; adv[19] = '<a href="http://click.dtiserv2.com/Click/1138005-138-104928" target="_blank"><img src="http://affiliate.dtiserv.com/auto/55eros/auto.jpg" border="0"></a>';
  hit[20] = 1; adv[20] = '<a href="http://click.dtiserv2.com/Click2/1324010-324-104928" target="_blank"><img src="http://affiliate.dtiserv.com/auto/oriental/auto.jpg" border="0"></a>';
  hit[21] = 1; adv[21] = '<iframe src="http://www.mmaaxx.com/fla/mesubuta/index02.html?affid=104928" width="495" height="210" frameborder="no" scrolling="no"></iframe>';
  hit[22] = 1; adv[22] = '<iframe src="http://click.dtiserv2.com/Click894/3317001-23-104928" width="495" height="210" frameborder="no" scrolling="no"></iframe>';
  hit[23] = 1; adv[23] = '<iframe src="http://www.mmaaxx.com/fla/mondo64/index01.html?affid=104928" width="495" height="210" frameborder="no" scrolling="no"></iframe>';
  hit[24] = 1; adv[24] = '<iframe src="http://www.mmaaxx.com/fla/h0930/index01.html?affid=104928" width="495" height="210" frameborder="no" scrolling="no"></iframe>';
  hit[25] = 1; adv[25] = '<iframe src="http://www.mmaaxx.com/fla/h4610/index01.html?affid=104928" width="495" height="210" frameborder="no" scrolling="no"></iframe>';
  hit[26] = 1; adv[26] = '<iframe src="http://www.mmaaxx.com/fla/c0930/index03.html?affid=104928" width="495" height="210" frameborder="no" scrolling="no"></iframe>';
  hit[27] = 1; adv[27] = '<a href="http://click.dtiserv2.com/Click/1325002-325-104928" target="_blank"><img src="http://affiliate.dtiserv.com/auto/1000giri/auto.jpg" border="0"></a>';
  hit[28] = 1; adv[28] = '<iframe src="http://www.mmaaxx.com/table/ecsite/index02.html?affid=104928" width="495" height="210" frameborder="no" scrolling="no"></iframe>';
  hit[29] = 1; adv[29] = '<a href="http://click.dtiserv2.com/Click/2047001-47-104928" target="_blank"><img src="http://affiliate.dtiserv.com/auto/jpeeex/newtitle.gif" border="0"></a>';
  hit[30] = 1; adv[30] = '<a href="http://click.dtiserv2.com/Click/1317001-317-104928" target="_blank"><img src="http://affiliate.dtiserv.com/auto/mesubuta/auto.jpg" border="0"></a>';
  hit[31] = 1; adv[31] = '<iframe src="http://www.mmaaxx.com/fla/aquarium/index01.html?affid=104928" width="495" height="210" frameborder="no" scrolling="no"></iframe>';
  hit[32] = 1; adv[32] = '<a href="http://click.dtiserv2.com/Click5/1021001-21-104928" target="_blank"><img src="http://affiliate.dtiserv.com/auto/xgallery/newmovie.jpg" border="0"></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);
}