
function google_ad_request_done(google_ads) {
var s = '';
var i;

if (google_ads.length == 0)
return;
if (google_ads[0].type == "text") {
	
	if (g_ad_format == "tall"){
		s += '<ul>';
		for(i=0; i < google_ads.length; ++i) {
		   if (g_ad_bullets == "yes"){ s += '<li>';}
			s += '<a href="' + google_ads[i].url + '" ' + 'onmouseout="window.status=\'\'" ' + 'onmouseover="window.status=\'go to ' + google_ads[i].visible_url + '\';return true;" ' + ' class="g_link_title_' + g_ad_style + '">' +
			'<span class=g_link_txt_' + g_ad_style + '">' + '<b>' + google_ads[i].line1 + '</b><br></span>' +
			'<span class="g_link_txt_' + g_ad_style + '">' + google_ads[i].line2 + '<br>' + google_ads[i].line3 + '<br></span>' +
			'<span class="g_link_url_' + g_ad_style + '">' + google_ads[i].visible_url + '</span></a>';
   		   if (g_ad_bullets == "yes"){ s += '</li>';} else { s += '<br>';} 
			}
	}
	if (g_ad_format == "wide"){
		s += '<table width="100%"> <tr>';
		for(i=0; i < google_ads.length; ++i) {
			s += '<td><a href="' + google_ads[i].url + '" ' + 'onmouseout="window.status=\'\'" ' + 'onmouseover="window.status=\'go to ' + google_ads[i].visible_url + '\';return true;" ' + ' class="g_link_title_' + g_ad_style + '">' +
			'<span class=g_link_txt_' + g_ad_style + '">' + '<b>' + google_ads[i].line1 + '</b><br></span>' +
			'<span class="g_link_txt_' + g_ad_style + '">' + google_ads[i].line2 + '<br>' + google_ads[i].line3 + '<br></span>' +
			'<span class="g_link_url_' + g_ad_style + '">' + google_ads[i].visible_url + '</span></a></td>';
			}
			s += '</tr></table>';
	}
}

s += '<br><div class="g_ads_footer_' + g_ad_style + '" >Ads by Google</div>';
document.write(s);
return;
}