// 20110802(更新)

// 03.Top Center : tc
// 05.Left Side Top : lt
// 06.Left Side Bottom [1] : lb1
// 07.Left Side Bottom [2] : lb2
// 08.Right Side Top : rt
// 09.Right Side Middle : rm
// 10.Right Side Bottom : rb

// 11.End Footer : ef
function google_ad_request_done_11_ef (google_ads) {
	var s = '';
	var i;
	// 20110802(追加)
	var r = '';

	if (google_ads.length == 0) {
		// 20110802(追加)
		document.MAX_ct0 ='INSERT_CLICKURL_HERE';

		if (location.protocol=='https:') {
		} else {
			var m3_u = 'http://adf.send.microad.jp/ajs.php';
			var m3_r = Math.floor(Math.random()*99999999999);
			if (!document.MAX_used) document.MAX_used = ',';
			document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
			document.write ("?zoneid=2400");
			document.write ('&amp;snr=1&amp;cb=' + m3_r);
			if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
			document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
			document.write ("&amp;loc=" + escape(window.location));
			if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
			if (document.context) document.write ("&context=" + escape(document.context));
			if ((typeof(document.MAX_ct0) != 'undefined') && (document.MAX_ct0.substring(0,4) == 'http')) {
				document.write ("&amp;ct0=" + escape(document.MAX_ct0));
			}
			if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
			document.write ("'><\/scr"+"ipt>");
		}
		r += '<noscript><a href="http://adf.send.microad.jp/ck.php?n=a4658109&amp;cb=INSERT_RANDOM_NUMBER_HERE" target="_blank">' + 
		'<img src="http://adf.send.microad.jp/avw.php?zoneid=2400&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=a4658109&amp;ct0=INSERT_CLICKURL_HERE&amp;snr=1" border="0" alt="" />' + 
		'</a></noscript>';

		document.write(r);
		return;
	}

	if (google_ads[0].type == "flash") {
		s += '<span  style="font-size:12px;"><a href=\"' + 
		google_info.feedback_url + '\">Ads by Google</a></span><br>' + 
		'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' +
		' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="468" HEIGHT="60"> <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="468" HEIGHT="60" TYPE="application/x-shockwave-flash"' + 
		' AllowScriptAccess="never" ' + 
		' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>';

		if (google_ads[0].bidtype == "CPC") {
			google_adnum = google_adnum + google_ads.length;
		}

	} else if (google_ads[0].type == "image") {
		s += '<span style="font-size:12px;"><a href=\"' + 
		google_info.feedback_url + '\">Ads by Google</a><br> <a href="' + 
		google_ads[0].url + '" target="_top" title="go to ' + 
		google_ads[0].visible_url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
		google_ads[0].visible_url + '\';return true"><img border="0" src="' + 
		google_ads[0].image_url + '"width="336" height="280"></a></span>';

		if (google_ads[0].bidtype == "CPC") {
			google_adnum = google_adnum + google_ads.length;
		}

	} else {
		if (google_ads.length == 1) {
		s += '<div><a href=\"' + 
		google_info.feedback_url + '\">Ads by Google</a><br /><a style="text-decoration:none" href="' + 
		google_ads[0].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
		google_ads[0].visible_url + '\';return true"><span style="font-size:16px;"><b>' + 
		google_ads[0].line1 + '</b></span></a><br /><span style="color:#333333;font-size:14px;">' +
		google_ads[0].line2 + '&nbsp;' +
		google_ads[0].line3 + '</span><br /><span><a style="color:#008000;font-size:13px;text-decoration:none;" href="' + 
		google_ads[0].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
		google_ads[0].visible_url + '\';return true">' + 
		google_ads[0].visible_url + '</span></a></div>';

		if (google_ads[0].bidtype == "CPC") {
			google_adnum = google_adnum + google_ads.length;
		}

		} else if (google_ads.length > 1) {

			s += '<div id="adsdB"><p><a href=\"' + google_info.feedback_url + '\">Ads by Google</a></p><ul>';

			title_span = '<span style="font-size:14px; font-weight:bold;">';
			description_span = '<span style="font-size:14px; color:#333333; line-height:1.2em;"> ';
			url_span = '<span style="font-size:12px; color:#008000;">';

			for(i=0; i < google_ads.length; ++i) {

				s += '<li style="list-style-type:none; margin: 0; padding: 0 0 1.0em 0;">';
				s += '<a href="' + google_ads[i].url + '" ' + google_ads[i].visible_url + '\';return true;">';
				s +=  title_span + google_ads[i].line1 + '</span></a>　　'
				s += '<a href="' + google_ads[i].url + '" ' + google_ads[i].visible_url + '\';return true;">';
				s +=  url_span + google_ads[i].visible_url + '</span></a><br />';
				s +=  description_span + google_ads[i].line2 + google_ads[i].line3 + '</span>';
				s += '</li>';

			}

			s += '</ul></div>';

			if (google_ads[0].bidtype == "CPC") {
				google_adnum = google_adnum + google_ads.length;
			}

		}
	}
	document.write(s);
	return;
}

// 12.Under Footer : uf

