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 += '<div class="gAdsDT cf"><a class="toG" href=\"' +
				google_info.feedback_url + '\">' + 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></div>';
			break;

		case 'image':

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

			s += '<div class="gAdsDT cf"><a class="toG" target="_blank" href="' +
				google_info.feedback_url + '\">' + gAdsHead + '</a><br /> <a target="_blank" href="' +
				google_ads[0].url + '" target="_top" title="' + gAdsGoto + ' ' +
				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></div>';
			break;

		case 'html':

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

		default:

			s += '<div class="gAdsDT cf"><a class="toG" target="_blank" href="' + google_info.feedback_url + '">' + gAdsHead + '</a>'
			s += '<ul>';
			for( i = 0; i < google_ads.length; i++ )
			{
				if( google_ads[i].bidtype == 'CPC' )
				{
					afcDeliveredAds++;
				}

				s += '<li><a class="bL" target="_blank" href="'+
					google_ads[i].url + '" title="' + gAdsGoto + ' ' +
					google_ads[i].visible_url + '">' +
					google_ads[i].line1 + '</a>' + '<a class="sL" target="_blank" href="' +
					google_ads[i].url + '" title="' + gAdsGoto + ' ' +
					google_ads[i].visible_url + '">' +
					google_ads[i].visible_url + '</a><span>' +
					google_ads[i].line2 +
					( google_ads[i].line3 ? google_ads[i].line3 : '' ) + '</span>' + '</li>';
			}
			s += '</ul></div>';
			break;
	}

	document.write(s);
	return;
}
