// ランダム広告
function randomAdv() {
  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 class="info" href="http://www.chiryohi.com/cnt/cnt_fd.html" target="_BLANK">fd クリニック VARNISH【東京】</A>　審美、矯正、歯科世界初ヒアルロン酸認定医により口元のトータルビューティ―を提供します。';


  hit[1] = 1; adv[1] = '<A class="info" href="http://www.chiryohi.com/cnt/cnt_nishiazabu.html" target="_BLANK">西麻布デンタルクリニック【東京】</A>　アロマの個室で音楽を聴きながらゆったりと！しかも低料金！！';


  hit[2] = 1; adv[2] = '<A class="info" href="http://www.chiryohi.com/shika/intro/yamadashika.html" target="_blank">山田歯科医院【東京】</A>　最高級セラミックスと、歯のホワイトニングで、白く美しい歯を手に入れましょう。';


  hit[4] = 1; adv[4] = '<A class="info" href="http://www.chiryohi.com/cnt/cnt_hanadc.html" target="_BLANK">HANAデンタルクリニック【福岡】</A>　最新の治療・設備を導入し、痛みの少ない治療をおこなっております。';


  hit[3] = 1; adv[3] = '<A class="info" href="http://www.chiryohi.com/cnt/cnt_ito.html" target="_BLANK">伊藤デンタルオフィス【東京】</A>　審美的、医療的な面から総合的なアドバイス・ケアを心がけております。';


  hit[5] = 1; adv[5] = '<A class="info" href="http://www.osakashika.com/" target="_BLANK">大阪梅田デンタルクリニック【大阪】</A>　インプラント1本136,500円〜（セラミック冠、諸経費全て込みです。）';


  hit[6] = 1; adv[6] = '<A class="info" href="http://www.chiryohi.com/cnt/cnt_puro.html" target="_BLANK">プロ矯正歯科【東京】</A>　女性誌などで掲載中の都内有名ホワイトニングサロンと同じ薬剤を使用しています。';


  hit[7] = 1; adv[7] = '<A class="info" href="http://www.chiryohi.com/cnt/cnt_yamauchi1.html" target="_BLANK">東池袋山内歯科室【東京】</A>　池袋にあるインプラントセンターです。安全が最優先です。';


  hit[8] = 1; adv[8] = '<A class="info" href="http://www.chiryohi.com/cnt/cnt_tdc.html" target="_BLANK">東京デンタルクリニック【東京】</A>　オフィスホワイトニングは、最新のズーム2を使用しています。';


  hit[9] = 1; adv[9] = '<A class="info" href="http://www.chiryohi.com/cnt/cnt_yuzuho.html" target="_BLANK">ゆずほ歯科医院【東京】</A>　高額治療にお悩みの方々へ！みんなのインプラントとしてインプラント普及化計画を立ち上げます。';


  hit[10] = 1; adv[10] = '<A class="info" href="http://www.chiryohi.com/cnt/cnt_akita.html" target="_BLANK">秋田歯科クリニック【大阪】</A>　安心・低料金の審美歯科・インプラント。無料相談受付中です。';


  hit[11] = 1; adv[11] = '<A class="info" href="http://www.chiryohi.com/cnt/cnt_matsumoto.html" target="_BLANK">まつもと歯科医院【大阪】</A>　インフォームドコンセントと無痛治療を重要視し、患者様の人生のプラスを目指してます。';


  hit[12] = 1; adv[12] = '<A class="info" href="http://www.chiryohi.com/cnt/count.html" target="_BLANK">てらもとファミリー歯科【愛知】</A>　従来のホームホワイトニングの 4分の1の期間で、より効果的に白くします。このホワイトニングができるのは、当医院を含め、日本ではわずかです！ ';


  hit[13] = 1; adv[13] = '<A class="info" href="http://www.chiryohi.com/cnt/cnt_fuda.html" target="_BLANK">布田歯科医院【東京】</A>　皆様のデンタルパートナーとして、スタッフ一同笑顔でお迎え致します。';


  hit[14] = 1; adv[14] = '<A class="info" href="http://www.chiryohi.com/cnt/cnt_miyabi.html" target="_BLANK">雅デンタルクリニック【東京】</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);
}




