// スタイルシート
var txt = '<style type="text/css">' +
					'ul.ul_newsList { margin: 0 0 0 22px !important; padding: 0 !important; }' +
					'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; }' +
					'</style>';
txt += '<link rel="stylesheet" type="text/css" href="http://www.47news.jp/news/image_list.css" />';
txt += '<div class="newsPhoto">' +
			 '<b>' +
			 '<a href="https://www.google.com/adsense/support/bin/request.py?contact=abg_afc" target="_blank">Ads by Google</a>' +
			 '</b>' +
			 '</div>';

// Google アドセンス（新バージョン）
txt += '<div id="googleAdsense" style="width:510px;"></div>';
document.write(txt);
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; width: 510px;"><ul class="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 = 'olympics';
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_ad_test = 'on';
document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');

