function randomAdv() {
  m = 0, x = 0, y = 0;
  ad  = new Array();
  adv = new Array();
  hit = new Array();

  hit[0] = 3; adv[0] = '<IFRAME SRC="http://www.mmaaxx.com/table/carib/index05.html?affid=49359" width=490 height=210 frameborder="no" scrolling="no"></IFRAME>';
  hit[1] = 2; adv[1] = '<IFRAME src="http://sma-trade.net/usr/eroen/html/saisoku.html" width="490" height="1000" scrolling="NO" frameborder="0"></IFRAME>';
  hit[2] = 1; adv[2] = '<iframe src="http://www.mmaaxx.com/fla/h0930/index01.html?affid=49359" width="490" height="210" scrolling="no" frameborder="0"></iframe>';
  hit[3] = 1; adv[3] = '<iframe src="http://www.mmaaxx.com/fla/h4610/index01.html?affid=49359" width="495" height="210" scrolling="no" frameborder="0"></iframe>';
  hit[4] = 1; adv[4] = '<a href="http://click.dtiserv2.com/Click10/10-292-49359" target="_blank"><img src="http://affiliate.dtiserv.com/image/10musume/newmovie.gif" border="0"></a>';
  hit[5] = 1; adv[5] = '<a href="http://www.af-board.com/new/track/traffic.php?10412-10200-102-4" target="_blank"><img src="http://www.af-board.com/new/sozai/3b/350x200_text.jpg" border="0"></a>';
  hit[6] = 1; adv[6] = '<script src="http://pink.clicktx.jp/ads/?u=10244&type=468x200&border=ffffff&bgcolor=FFFFFF&LINK=990000&TEXT=333333&URL=666666"></script>';
  hit[7] = 2; adv[7] = '<IFRAME src="http://sma-trade.net/usr/eroen/html/rank1019.html" width="490" height="605" scrolling="NO" frameborder="0"></IFRAME>';
  hit[8] = 1; adv[8] = '<IFRAME SRC="http://www.mmaaxx.com/table/1pondo/index04.html?affid=49359" width=410 height=300 frameborder="no" scrolling="no"></IFRAME>';
  hit[9] = 1; adv[9] = '<a href="http://click.dtiserv2.com/Click2/1-138-49359" target="_blank"><img src="http://affiliate.dtiserv.com/auto/55eros/newmovie.jpg" border=0></a>';
  hit[10] = 1; adv[10] = '<a href="http://click.dtiserv2.com/Click5/1-21-49359" target="_blank"><img src="http://affiliate.dtiserv.com/auto/xgallery/newmovie.jpg" border=0></a>';
  hit[11] = 1; adv[11] = '<a href="http://click.dtiserv2.com/Click2/1-55-49359" target="_blank"><img src="http://affiliate.dtiserv.com/auto/eroika/higawari450x250.jpg" border=0></a>';
  hit[12] = 1; adv[12] = '<a href="http://click.dtiserv2.com/Click2/1-86-49359" target="_blank"><img src="http://affiliate.dtiserv.com/auto/uraya/480x265.jpg" border=0></a>';
  hit[13] = 1; adv[13] = '<iframe src="http://www.mmaaxx.com/fla/califcom/index01.html?affid=49359" width="320" height="240" scrolling="no" frameborder="0"></iframe>';
  hit[14] = 1; adv[14] = '<a href="http://click.dtiserv2.com/Click2/1-143-49359" target="_blank"><img src="http://affiliate.dtiserv.com/auto/sumusume/autoupdate.jpg" border=0></a>';
  hit[15] = 1; adv[15] = '<a href="http://www.ittele.tv/?a_aid=856&a_bid=1734" target="_blank" title="無修正アダルトビデオ　イッテル"><img src="http://www.gl-cash.com/affiliate/bn/ittele_460_250_01.jpg" alt="無修正アダルトビデオ　イッテル" border="0"></a>';
  hit[16] = 1; adv[16] = '<a href="http://www.omany.tv/?a_aid=856&a_bid=1870" target="_blank" title="無修正動画 Omany.tv"><img src="http://www.gl-cash.com/affiliate/bn/omazon_468_60_01.gif" alt="無修正動画 Omany.tv" border="0"></a>';
  hit[17] = 1; adv[17] = '<a href="http://www.af-board.com/new/track/traffic.php?10412-10102-101-2" target="_blank"><img src="http://www.af-board.com/new/sozai/1b/proud490-256.jpg" border="0"></a>';
  hit[18] = 1; adv[18] = '<a href="http://sbs.nsk-sys.com/track/traffic.php?c=10007-1-107&b=10700008&u=http%3A%2F%2Fwww.ademusume.com%2Fhome%2Fhome.html" target="_blank"><img src="http://sbs.nsk-sys.com/sozai/107/1/468x80_3.gif" border="0"/></a>';
  hit[19] = 1; adv[19] = '<a href="http://sbs.nsk-sys.com/track/traffic.php?c=10007-1-110&b=11000028&u=http%3A%2F%2Fsex-machine.tv%2Fhome%2Fhome.html" target="_blank"><img src="http://sbs.nsk-sys.com/sozai/110/1/banner34.gif" border="0"/></a>';
  hit[20] = 1; adv[20] = '<a href="http://sbs.nsk-sys.com/track/traffic.php?c=10007-1-101&b=10100017&u=http%3A%2F%2Fwww.newplay-st.com%2Fhome%2Fhome.html" target="_blank"><img src="http://sbs.nsk-sys.com/sozai/101/1/390x445.gif" border="0"/></a>';
  hit[21] = 1; adv[21] = '<a href="http://click.dtiserv2.com/Click2/1-6-49359" target="_blank"><img src="http://affiliate.dtiserv.com/image/carib/06-468-03.gif" border=0></a>';
  hit[22] = 1; adv[22] = '<a href="http://click.dtiserv2.com/Click2/1-6-49359" target="_blank"><img src="http://affiliate.dtiserv.com/image/carib/06-460-03.gif" border=0></a>';
  hit[23] = 1; adv[23] = '<iframe src="http://click.dtiserv2.com/Click72/1-23-49359" width=490 height=385 frameborder="no" scrolling="no"></iframe>';
  hit[24] = 1; adv[24] = '<IFRAME src="http://www.tora-tora-tora.com/affiliate/release.php?user=1209&ch=monthly&cnt=7" name="ppv_release" title="虎虎虎 AV女優無修正動画サイト" frameborder="0" scrolling="NO" width="468" height="670"></IFRAME>';
  hit[25] = 1; adv[25] = '<IFRAME src="http://ads.b10f.jp/s/h/ran-9.html?http://www.atype.jp/track/click.php?aid=281&linkid=P24" width="490" height="1300" frameborder="0" scrolling="NO"></IFRAME>';

  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);
}