// aaacafe hedaer adselector 2008.09.02.d //
a3_select_footer();
function a3_select_footer() {
  var a3_ld_sales_ad =
    '<iframe src="http://click.adv.livedoor.com/A-affiliate2/distribute?keyword=hs9001026" width="728" height="90"'
      + 'frameborder=0 border=0 marginwidth=0 marginheight=0 scrolling=no></iframe>';
  var a3_google_ad =
    '<iframe src="http://www.aaacafe.ne.jp/ad/google_ad.html" width="728" height="90"'
      + 'frameborder=0 border=0 marginwidth=0 marginheight=0 scrolling=no></iframe>';
  var a3_google_text_ad =
    '<iframe src="http://www.aaacafe.ne.jp/ad/google_text_ad.html" width="728" height="120"'
      + 'frameborder=0 border=0 marginwidth=0 marginheight=0 scrolling=no></iframe>';
  var a3_become_ad =
    '<iframe src="http://www.aaacafe.ne.jp/ad/become_ad.html" width="728" height="120"'
      + 'frameborder=0 border=0 marginwidth=0 marginheight=0 scrolling=no></iframe>';
  var a3_trustclick_ad =
    '<iframe src="http://www.aaacafe.ne.jp/ad/trustclick_ad.html" width="728" height="90"'
      + 'frameborder=0 border=0 marginwidth=0 marginheight=0 scrolling=no></iframe>';
  var a3_rakuten_ad =
    '<iframe src="http://www.aaacafe.ne.jp/ad/rakuten_ad.html" width="728" height="90"'
      + 'frameborder=0 border=0 marginwidth=0 marginheight=0 scrolling=no></iframe>';
  var a3_rakuten_js_ad =
    '<script type="text/javascript" src="http://www.aaacafe.ne.jp/js/rakuten_ad.js">'
      + '</script>';
  var a3_rakuten_tag_ad =
    '<script type="text/javascript">'
      + 'ad_client = 97247;'
      + 'ad_start_count = 1;'
      + 'ad_end_count = 4;'
      + 'ad_total = 4;'
      + 'ad_format = "h182x74";'
      + 'ad_width = 728;'
      + 'ad_height = 74;'
      + 'color_border = "C0C0C0";'
      + 'color_bg = "FFFFFF";'
      + 'color_link = "0000CD";'
      + 'color_text = "666666";'
      + 'color_url = "1E90FF";'
      + '</script>'
      + '<script type="text/javascript" src="http://grp04.ias.rakuten.co.jp/js/advertise.js">'
      + '</script>';

  var a3_google_text_and_sales_ad = a3_google_text_ad + '<br><br>' + a3_ld_sales_ad;

  if(a3_narrowflame_check()){ return }
  //var a3_adsf = a3_ld_sales_ad;
  var a3_adsf = a3_google_text_and_sales_ad;
  if(!a3_pathbl_check()){ a3_adsf = a3_rakuten_tag_ad }
  if(!a3_hrefbl_check()){ a3_adsf = a3_trustclick_ad }
document.write('<div align="center" style="margin-bottom:7px">' + a3_adsf + '</div>');
}

function a3_narrowflame_check() {
  if(parent.frames.length > 0 &&
     document.body.clientWidth < 200) { return true; }
  return false;
}

function a3_pathbl_check() {
  var path = location.pathname;
    if(/board/.test(path)) return false;
    if(/bbs/.test(path)) return false;
    if(/\/clrea\//.test(path)) return false;
    if(/\/tree\//.test(path)) return false;
    if(/\/fstyle\//.test(path)) return false;
    if(/\/minimoni\//.test(path)) return false;
    if(/petit\.cgi/.test(path)) return false;
    if(/aska\.cgi/.test(path)) return false;
    if(/light\.cgi/.test(path)) return false;
    if(/honey\.cgi/.test(path)) return false;
    if(/stylish\.cgi/.test(path)) return false;
    if(/wforum\.cgi/.test(path)) return false;
    if(/patio\.cgi/.test(path)) return false;
    if(/clip\.cgi/.test(path)) return false;
    if(/joyful\.cgi/.test(path)) return false;
    if(/epad\.cgi/.test(path)) return false;
    if(/ipad\.cgi/.test(path)) return false;
    if(/ipad2\.cgi/.test(path)) return false;
  return true; // safe
}

function a3_hrefbl_check() {
  var href = location.href;
    if(/^http:\/\/f(.+)\.aaa(.+)\/~(.+)\/xxx\//.test(href)) return false;

    if(/^http:\/\/f1\.aaa(.+)\/~saike\//.test(href)) return false;
    if(/^http:\/\/f1\.aaa(.+)\/~azcom\//.test(href)) return false;
    if(/^http:\/\/f1\.aaa(.+)\/~noise\//.test(href)) return false;
    if(/^http:\/\/f3\.aaa(.+)\/~pochac\//.test(href)) return false;
    if(/^http:\/\/f4\.aaa(.+)\/~lovehp\//.test(href)) return false;
    if(/^http:\/\/f4\.aaa(.+)\/~prots\//.test(href)) return false;
    if(/^http:\/\/f8\.aaa(.+)\/~slav\//.test(href)) return false;
    if(/^http:\/\/f8\.aaa(.+)\/~hakumura\//.test(href)) return false;
    if(/^http:\/\/f9\.aaa(.+)\/~razirou\//.test(href)) return false;

    if(/^http:\/\/f10\.aaa(.+)\/~onani\//.test(href)) return false;
    if(/^http:\/\/f11\.aaa(.+)\/~trump\//.test(href)) return false;
    if(/^http:\/\/f11\.aaa(.+)\/~kichiguy\//.test(href)) return false;
    if(/^http:\/\/f11\.aaa(.+)\/~kichiguy\//.test(href)) return false;
    if(/^http:\/\/f13\.aaa(.+)\/~gogokoba\//.test(href)) return false;
    if(/^http:\/\/f13\.aaa(.+)\/~loveho\//.test(href)) return false;
    if(/^http:\/\/f13\.aaa(.+)\/~charmy\//.test(href)) return false;
    if(/^http:\/\/f15\.aaa(.+)\/~adult\//.test(href)) return false;
    if(/^http:\/\/f16\.aaa(.+)\/~bqken\//.test(href)) return false;
    if(/^http:\/\/f16\.aaa(.+)\/~waizan\//.test(href)) return false;
    if(/^http:\/\/f19\.aaa(.+)\/~nagets\//.test(href)) return false;
    if(/^http:\/\/f19\.aaa(.+)\/~towapu\//.test(href)) return false;

    if(/^http:\/\/f20\.aaa(.+)\/~genius\//.test(href)) return false;
    if(/^http:\/\/f21\.aaa(.+)\/~tamami\//.test(href)) return false;
    if(/^http:\/\/f21\.aaa(.+)\/~tanamach\//.test(href)) return false;
    if(/^http:\/\/f25\.aaa(.+)\/~candy\//.test(href)) return false;
    if(/^http:\/\/f25\.aaa(.+)\/~rall\//.test(href)) return false;
    if(/^http:\/\/f25\.aaa(.+)\/~himegoto\//.test(href)) return false;
    if(/^http:\/\/f25\.aaa(.+)\/~sumomo\//.test(href)) return false;
    if(/^http:\/\/f26\.aaa(.+)\/~wkselect\//.test(href)) return false;
    if(/^http:\/\/f27\.aaa(.+)\/~ryuryu\//.test(href)) return false;
    if(/^http:\/\/f28\.aaa(.+)\/~keiiji\//.test(href)) return false;
    if(/^http:\/\/f29\.aaa(.+)\/~yamakan\//.test(href)) return false;

    if(/^http:\/\/f30\.aaa(.+)\/~bartoh\//.test(href)) return false;
    if(/^http:\/\/f31\.aaa(.+)\/~harurunn\//.test(href)) return false;
    if(/^http:\/\/f31\.aaa(.+)\/~aiju\//.test(href)) return false;
    if(/^http:\/\/f32\.aaa(.+)\/~mmland\//.test(href)) return false;
    if(/^http:\/\/f32\.aaa(.+)\/~nycustom\//.test(href)) return false;
    if(/^http:\/\/f32\.aaa(.+)\/~never\//.test(href)) return false;
    if(/^http:\/\/f32\.aaa(.+)\/~kanzume\//.test(href)) return false;
    if(/^http:\/\/f32\.aaa(.+)\/~aikochan\//.test(href)) return false;
    if(/^http:\/\/f33\.aaa(.+)\/~happyb\//.test(href)) return false;
    if(/^http:\/\/f33\.aaa(.+)\/~happyc\//.test(href)) return false;
    if(/^http:\/\/f34\.aaa(.+)\/~betiko\//.test(href)) return false;
    if(/^http:\/\/f35\.aaa(.+)\/~kaigi\//.test(href)) return false;
    if(/^http:\/\/f35\.aaa(.+)\/~ainori\//.test(href)) return false;
    if(/^http:\/\/f37\.aaa(.+)\/~chanko\//.test(href)) return false;
    if(/^http:\/\/f38\.aaa(.+)\/~buruma\//.test(href)) return false;
    if(/^http:\/\/f39\.aaa(.+)\/~yaritai\//.test(href)) return false;
    if(/^http:\/\/f39\.aaa(.+)\/~mapleafo\//.test(href)) return false;
    if(/^http:\/\/f39\.aaa(.+)\/~meisei\//.test(href)) return false;

    if(/^http:\/\/f41\.aaa(.+)\/~tori\//.test(href)) return false;
    if(/^http:\/\/f41\.aaa(.+)\/~fluegel\//.test(href)) return false;
    if(/^http:\/\/f42\.aaa(.+)\/~sanba\//.test(href)) return false;
    if(/^http:\/\/f43\.aaa(.+)\/~barutan\//.test(href)) return false;
    if(/^http:\/\/f44\.aaa(.+)\/~smarma\//.test(href)) return false;
    if(/^http:\/\/f45\.aaa(.+)\/~somhaya\//.test(href)) return false;
    if(/^http:\/\/f45\.aaa(.+)\/~devnull\//.test(href)) return false;
    if(/^http:\/\/f46\.aaa(.+)\/~dansen\//.test(href)) return false;
    if(/^http:\/\/f46\.aaa(.+)\/~danwa\//.test(href)) return false;
    if(/^http:\/\/f47\.aaa(.+)\/~sunmon\//.test(href)) return false;
    if(/^http:\/\/f47\.aaa(.+)\/~usamimi\//.test(href)) return false;
    if(/^http:\/\/f47\.aaa(.+)\/~koishi\//.test(href)) return false;
    if(/^http:\/\/f48\.aaa(.+)\/~amato\//.test(href)) return false;
    if(/^http:\/\/f48\.aaa(.+)\/~locokit\//.test(href)) return false;
    if(/^http:\/\/f48\.aaa(.+)\/~goya\//.test(href)) return false;
    if(/^http:\/\/f49\.aaa(.+)\/~musashi\//.test(href)) return false;
    if(/^http:\/\/f49\.aaa(.+)\/~ymazaki\//.test(href)) return false;

    if(/^http:\/\/f50\.aaa(.+)\/~hhhhh\//.test(href)) return false;
    if(/^http:\/\/f52\.aaa(.+)\/~apara\//.test(href)) return false;
    if(/^http:\/\/f53\.aaa(.+)\/~ranko\//.test(href)) return false;
    if(/^http:\/\/f53\.aaa(.+)\/~matukaze\//.test(href)) return false;
    if(/^http:\/\/f54\.aaa(.+)\/~advance\//.test(href)) return false;
    if(/^http:\/\/f55\.aaa(.+)\/~sevens\//.test(href)) return false;
    if(/^http:\/\/f55\.aaa(.+)\/~otakara\//.test(href)) return false;
    if(/^http:\/\/f55\.aaa(.+)\/~hfactory\//.test(href)) return false;
    if(/^http:\/\/f56\.aaa(.+)\/~kakuma\//.test(href)) return false;
    if(/^http:\/\/f56\.aaa(.+)\/~vvvv\//.test(href)) return false;
    if(/^http:\/\/f56\.aaa(.+)\/~square\//.test(href)) return false;
    if(/^http:\/\/f57\.aaa(.+)\/~pailand\//.test(href)) return false;
    if(/^http:\/\/f57\.aaa(.+)\/~mamisbar\//.test(href)) return false;
    if(/^http:\/\/f58\.aaa(.+)\/~puri\//.test(href)) return false;
    if(/^http:\/\/f58\.aaa(.+)\/~pure\//.test(href)) return false;
    if(/^http:\/\/f58\.aaa(.+)\/~gram\//.test(href)) return false;
    if(/^http:\/\/f58\.aaa(.+)\/~corohosi\//.test(href)) return false;
    if(/^http:\/\/f59\.aaa(.+)\/~sarusaru\//.test(href)) return false;

    if(/^http:\/\/f61\.aaa(.+)\/~aoiboy\//.test(href)) return false;

  return true; // safe
}
// end //
