function google_ad_request_done(google_ads) {
	var googleAdsOben =  "";


    // Proceed only if we have ads to display!
    if (google_ads.length < 1 ){
    	googleAdsDiv.style.display = 'none';
    	return;
	}

	// Print "Ads By Google" -- include link to Google feedback page if available
	var googleAdsPrefix = "";
	if (google_info.feedback_url) {googleAdsPrefix += "<small><a href=\"" + google_info.feedback_url + "\" target=\"_blank\" class=\"google\">Google-Anzeigen</a></small>";
	} else {googleAdsPrefix += "<small>Google-Anzeigen</small>";}


	// build ads
	// For text ads, display each ad in turn.
	if (google_ads[0].type == "flash") {
		/* alles in ein zentriertes div packen*/
		googleAdsOben += '<div style="text-align: center;"><span style="text-align: left; display: inline-block;">';
		googleAdsOben += googleAdsPrefix + '<br />';
		googleAdsOben += '<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>';
		googleAdsOben += '</span></div>';

	}
	else if (google_ads[0].type == "image") {
		googleAdsOben += '<div style="text-align: center;"><span style="text-align: left; display: inline-block;">';
		googleAdsOben += googleAdsPrefix + '<br />';
		googleAdsOben += '<a href="' +
		google_ads[0].url + '" target="_blank" title="go to ' +
		google_ads[0].visible_url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
		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>';
		googleAdsOben += '</span></div>';
	}
	else if (google_ads[0].type == "html") {
		googleAdsOben += '<div align="left">' + googleAdsPrefix + '</div>';
		googleAdsOben += google_ads[0].snippet;
	}
    else {
		googleAdsOben += '<div align="left">' + googleAdsPrefix + '</div>';
		for(i = 0; i < google_ads.length; ++i) {
			googleAdsOben += "<div class=\"box_hellblau\" onmouseover=\"this.style.backgroundColor='#F0CBA9';return true;\" onmouseout=\"this.style.backgroundColor='';return true;\"><div class=\"corners ro\"></div><div class=\"corners lo\"></div><div class=\"corners ru\"></div><div class=\"corners lu\"></div><div class=\"inhalt\"><span><a style=\"font-size: 14px;text-decoration: underline; color: #2200CC; \" onmouseover=\"window.status='go to "
			+ google_ads[i].visible_url + "';return true;\" onMouseOut=\"window.status='';return true;\" href=\""
			+ google_ads[i].url + "\" target=\"_blank\" rel=\"nofollow\">"
			+ google_ads[i].line1 + "</a></span> <br> <span>"
			+ google_ads[i].line2 + "&nbsp;"
			+ google_ads[i].line3 + "&nbsp; <a style=\"color:#595959; font-size:11px; font-weight:normal;\" onMouseOver=\"window.status='"
			+ google_ads[i].visible_url + "';return true;\" onMouseOut=\"window.status='';return true;\" href=\""
			+ google_ads[i].url + "\" target=\"_blank\" rel=\"nofollow\">"
			+ google_ads[i].visible_url + "</a></span></div></div>";
		}
	}
	// fill container
	document.write("<div id=\"googleadsoben\">" + googleAdsOben + "</div>");
}

