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 wideAds = "";   // wide ad unit html text
	var narrowAds = "";   // narrow ad unit html text
	
	/* random colors */
	a = 1 + 1*(Math.random());
	a = Math.round(a);
	if(a == 1){
		color = "color:#6E6E6E;";
	}
	else {
		color = "";
	}
	for(i = 0; i < google_num_ads; i++){
		if (google_ads[i].type=="text/wide"){
		  // render a wide ad
			wideAds += "<div class=\"box_hellblau\" onmouseover='this.style.backgroundColor=\"#F0CBA9\";return true;' onmouseout='this.style.backgroundColor=\"\";return true;'><div class=\"ro\"> <div class=\"lo\"><div class=\"ru\"> <div class=\"lu\"><div class=\"inhalt\"><div style=\"width: 50%; float: left; margin: 0 0 3px 3px; font-family: verdana; font-size:11px; display: block; font-weight: normal;\"><a style=\"font-size: 15px; text-decoration: underline;\" href=\"#\" onMouseOver='self.status=\"" + 
			google_ads[i].visible_url + "\";return true;' onMouseOut='self.status=\"\";return true;' onClick=\"javascript:new_window=window.open('" + 
			google_ads[i].url + "');new_window.focus();\" class=\"g_afs_headline\">" + 
			google_ads[i].line1 + "</a></div>" + 
			"<div style=\"display: block; width: 49%; float: right; text-align: right;\"><a href=\"#\" style=\"color:#595959; font-size:11px; font-weight:normal;\" onMouseOver='self.status=\"" + 
			google_ads[i].visible_url + "\";return true;' onMouseOut='self.status=\"\";return true;' onClick=\"javascript:new_window=window.open('" + 
			google_ads[i].url + "');new_window.focus();\">" + 
			google_ads[i].visible_url + "</a></div><br style=\"clear: both;\" /><span style=\"font-size: 1.1em; margin: 0 0 3px 3px;\">" +
			google_ads[i].line2 + "</span></div></div></div></div></div></div></div><img src='img/d.gif' width=1 height=5><br />";
		}
	}

	if (wideAds != ""){
		wideAdsPrefix = '<div class="noprint"><br></div>';
		/* google feedback */
		wideAdsPrefix += '<div align="left">';
		wideAdsPrefix += '<a href="https://www.google.com/adsense/support/bin/request.py?contact=afs_violation" target="_blank" class="google">Google-Anzeigen</a>';
		wideAdsPrefix += '</div>'; 
		wideAds = wideAdsPrefix + wideAds;
	}
  // Write HTML for wide and narrow ads to the proper <div> elements
  document.getElementById("wide_ad_unit").innerHTML = wideAds;
  //document.getElementById("narrow_ad_unit").innerHTML = narrowAds;
}
