var txt = '';
// スタイルシート
txt += '<style type="text/css">';
txt += 'ul.ul_newsList{'+
       'margin:0 0 0 22px !important;'+
       'padding:0 !important;'+
       'font-size:14px;'+
       '}';
txt += 'ul.ul_newsList li{'+
       'position:relative;'+
       'line-height:150%;'+
       'list-style-image:url(http://img.47news.jp/images/dsicon.gif);'+
       'padding:0 !important;'+
       'margin:0 0 3px;'+
       '}';
txt += '</style>';
txt += '<link rel="stylesheet" type="text/css" href="http://www.47news.jp/news/image_list.css" />';
// リンクアイコン
//txt += '<div align="right">'+
//       '<span class="font12">'+
//       '<a href="http://www.47news.jp/"><img src="http://img.47news.jp/47icon/aicon_house.png" border="0" align="absmiddle" width="16" height="16" />&nbsp;ホーム</a>'+
//       '&nbsp;'+
//       '<a href="http://www.47news.jp/news/"><img src="http://img.47news.jp/47icon/aicon_journal.png" border="0" align="absmiddle" width="16" height="16" />&nbsp;共同ニュース</a>'+
//       '</span>'+
//       '</div>'+
txt += '<b><a href="https://www.google.com/adsense/support/bin/request.py?content=abg_afc" target="_blank">Ads by Google</a></b>';
txt += '<div id="googleAdsense"></div>';
// Google アドセンス(新バージョン)
function google_ad_request_done(google_ads)
{
  var s = '';
  var i;
  if (google_ads.length == 0) return;
  if (google_ads[0].type == "image") {
    s += '<a target="_blank" href="'+google_ads[0].url+
         '" target="_top" title="go to '+google_ads[0].visible_url+
         '"><img border="0" src="'+google_ads[0].image_url+
         '"width="'+google_ads[0].image_width+
         '"height="'+google_ads[0].image_height+'"></a>';
  } else if (google_ads[0].type == "flash") {
    s += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+
         ' codebase="http://download.macromedia.com/pub/shockwave/abs/flash/swflash.cab#version=6,0,0,0"'+
         ' width="'+google_ad.image_width+
         '" height="'+google_ad.image_height+'">'+
         '<param name="movie" value="'+google_ad.image_url+'">'+
         '<param name="quality" value="high">'+
         '<param name="AllowScriptAccess" value="never">'+
         '<embed src="'+google_ad.image_url+
         '" width="'+google_ad.image_width+
         '" height="'+google_ad.image_height+
         '" type="application/x-shockwave-flash"'+
         ' AllowScriptAccess="never" '+
         ' pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>';
  } else if (google_ads[0].type == "html") {
    s += google_ads[0].snippet;
  } else if (google_ads[0].type == "text") {
    if (google_ads.length == 1) {
      s += '<a target="_blank" href="'+google_ads[0].url+'" '+
           'onmouseout="window.status=\'\'" '+
           'onmouseover="window.status=\'go to '+
           google_ads[0].visible_url+'\';return true;" '+
           'style="text-decoration:none">'+
           '<span style="text-decoration:underline;font-size:20pt">'+
           '<b>'+google_ads[0].line1+'</b><br></span></a>'+
           '<span style="color:#000000;font-size:16pt">'+
           google_ads[0].line2+' '+
           google_ads[0].line3+'<br></span>'+
      '<a target="_blank" href="'+google_ads[0].url+'" '+
           'onmouseout="window.status=\'\'" '+
           'onmouseover="window.status=\'go to '+
           google_ads[0].visible_url+'\';return true;" '+
           'style="text-decoration:none">'+
           '<span style="color:#008000;font-size:14pt">'+
           google_ads[0].visible_url+'</span></a><br>';
    } else if (google_ads.length > 1) {
      s += '<div style="padding: 0px 0pt 0pt 0px;"><ul class="ul_newsList">';
      for (i=0;i<google_ads.length;++i) {
        s += '<li><a target="_blank" href="'+google_ads[i].url+'" '+
             'onmouseout="window.status=\'\'" '+
             'onmouseover="window.status=\'go to '+
             google_ads[i].visible_url+'\';return true;" '+
             'style="text-decoration:none">'+
             '<span style="text-decoration:underline">'+
             google_ads[i].line1+'</span>&nbsp;'+
             '<span style="color:#008000">'+
             google_ads[i].visible_url+'</span></a><br>'+
             '<span style="color:#000000">'+
             google_ads[i].line2+'&nbsp;'+
             google_ads[i].line3+'</span></li>';
      }
      s += '</ul></div>';
    }
  }
  document.getElementById('googleAdsense').innerHTML = s;
  return;
}
google_ad_client = 'ca-kyodo_js';
google_ad_channel = 'movie';
google_ad_output = 'js';
google_max_num_ads = '5';
google_ad_type = 'text,image,flash,html';
google_language = 'ja';
google_image_size = '336x280';
google_encoding = 'utf-8';
google_safe = 'high';
google_kw_type = 'broad';
google_kw = '動画,映像,ムービー';
txt += '<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>';
txt += '<br class="clearfloat" />';
document.write(txt);

