function google_afs_request_done(google_ads) {
	/*
	 * Verify that there are actually ads to display.
	 */
	var google_num_ads = google_ads.length;
	if (google_num_ads <= 0) {
		return;
	}
	var bottomAds = ""; // bootm ad unit html text
	var adsenseBottomCount = 0;
	if (typeof (adsenseBottom) == "number") {
		adsenseBottomCount = adsenseBottom;
	}
	var wideArr = Array(); // google return value
	var w = 0;
	var n = 0;
	// result splitten
	for ( var i = 0; i < google_num_ads; i++) {
		wideArr[w++] = google_ads[i];		
	}

	// HTML bauen
	for (i = 0; i < wideArr.length; i++) {
		// Link bauen
		var href = '<a target="_blank" rel="nofollow" href="' + wideArr[i].url + '">'; // link
		// bauen
		var hrefAnker = wideArr[i].line1;
		var line1 = wideArr[i].line2;
		if(wideArr[i].line3){
			var line2 = wideArr[i].line3;
		} else {
			var line2 = "";
		}
		var line3 = wideArr[i].visible_url;
		bottomAds += '<table class="box" width="100%" cellspacing="0" cellpadding="0" border="0" style="margin: 0;"><tr><td class="box google_adsense_bigsize_row" style="padding: 0;">'; // eine
		// Row
		bottomAds += href; // link geoeffnet
		bottomAds += '<div class="ads">'; // base
		bottomAds += '<div class="head">' + hrefAnker + '</div>';
		bottomAds += '<div class="text">' + line1 + ' ' + line2 + ' </div>'; // IMPORTANT: leave the space - this will force th line break here
		bottomAds += '<div class="link">' + line3 + '</div>';
		bottomAds += '</div>'; // head schliessen
		bottomAds += '</div>'; // base span schliessen
		bottomAds += '</a>'; // link schliessen
		bottomAds += '</td></tr></table>'; // Row
		// schlie.en
	}
	// ** Write HTML for wide and narrow ads to the proper <div> elements
	// Footer
	if ((element = document.getElementById("googleAdsenseBottom"))
			&& bottomAds.length > 0) {
		element.innerHTML = bottomAds;
		if (element = document.getElementById("googleAdsenseBottomFrame"))
			element.style.display = 'block';
	}

} // end function

// GOOGLE AFC FUNCTION - START
function google_ad_request_done(google_ads) {
	google_afs_request_done(google_ads);
	return;
}

if (adsenseType == 'AFS') {
	var google_adtest = 'on'; // deactivate AFC
	google_afs_query = decodeURI(addKey);
	google_afs_qry_lnk = addKey;
	if(breadcrumbs != ""){
		google_afs_qry_ctxt = breadcrumbs;
	}
	
	// requesting
	google_afs_ad = 'w' + adsenseNumber; // specify the number of ads you are
	// requesting
	google_afs_client = 'unister-veturo-browse'; // substitute your client ID
	if (typeof (adsensePage) != 'undefined') {
		google_afs_adpage = adsensePage;
	}
	google_afs_channel = channel; // enter your comma-separated channel
	// IDs
	google_afs_adsafe = 'high'; // specify level for filtering non-family-safe
	// ads
	if (adTest == 1) {
		google_afs_adtest = 'on'; // ** production
	} else {
		google_afs_adtest = 'off'; // development
	}
	google_afs_hl = 'de'; // enter your interface language if not English
} else {
	google_afs_adtest = 'on'; // deactivate AFS
	var google_hints = decodeURI(addKey);
	var google_ad_client = 'ca-unister-veturo';
	var google_ad_output = 'js';
	var google_ad_type = 'text';
	var google_encoding = 'utf8';
	var google_language = 'de';
	var google_max_num_ads = adsenseNumber;
	if (adTest == 1) {
		var google_adtest = 'on';
	} else {
		var google_adtest = 'off';
	}
	// GOOGLE AFC FUNCTION - END
}
