function google_ad_request_done( google_ads )
{
	var s = '';
	var i;
	var gAdsHead = this.gAdsHead ? this.gAdsHead : 'Google Ads';
	var gAdsGoto = this.gAdsGoto ? this.gAdsGoto : 'go to';

	if ( google_ads.length == 0 ) {
		return;
	}

	switch( google_ads[0].type )
	{
		case 'flash':

			if( google_ads[0].bidtype == 'CPC' )
			{
				afcDeliveredAds++;
			}

			s += '<a target="_blank" href=\"' +
				google_info.feedback_url + '\" style="color:#888; font-size:10px;">' + gAdsHead + '</a><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="' +
				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>';
			break;

		case 'image':

			if( google_ads[0].bidtype == 'CPC' )
			{
				afcDeliveredAds++;
			}

			s += '<a target="_blank" href=\"' +
				google_info.feedback_url + '\" style="color:#888; font-size:10px;">' + gAdsHead + '</a><br /> <a target="_blank" href="' +
				google_ads[0].url + '" target="_top" title="' + gAdsGoto + ' ' +
				google_ads[0].visible_url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'' + gAdsGoto + ' ' +
				google_ads[0].visible_url + '\';return true"><img border="0" src="' +
				google_ads[0].image_url + '"width="' +
				google_ads[0].image_width + '"height="' +
				google_ads[0].image_height + '"></a>';
			break;

		case 'html':

			s += google_ads[0].snippet;
			break;

		default:

			s += '<div style="margin-left: 4px;"><a target="_blank" href=\"' + google_info.feedback_url + '\" style="color:#888; font-size:10px; text-align:right; text-decoration:none;">' + gAdsHead + '</a><br />'
			s += '<ul style="float:none; width:100%; margin: 0 0 5px 0; padding: 0px;">';
			for( i = 0; i < google_ads.length; i++ )
			{
				if( google_ads[i].bidtype == 'CPC' )
				{
					afcDeliveredAds++;
				}

				s += '<li style="padding-bottom:0px; padding-top:5px; height: 29px;" onmouseover="this.style.backgroundColor=\'#eee\'" onmouseout="this.style.backgroundColor=\'\'"><a target="_blank" style="font-size:14px; font-weight: bold; text-decoration: underline;" href="'+
					google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'' + gAdsGoto + ' ' +
					google_ads[i].visible_url + '\';return true">' +
					google_ads[i].line1 + '</span></a> <span style="color:#000000;font-size:11px;">' +
					google_ads[i].line2 + ' ' +
					google_ads[i].line3 + '</span> <span><a target="_blank" style="color:#009900;text-decoration:none; " href="' +
					google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'' + gAdsGoto + ' ' +
					google_ads[i].visible_url + '\';return true" align="right">' +
					google_ads[i].visible_url + '</a></span></li>';
			}
			s += '</ul></div>';
			break;
	}

	document.write(s);
	return;
}
