google_ad_client = 'ca-pub-3650636866190647'; 
google_ad_output = 'js';
google_feedback = 'on';
google_language = 'de';
google_encoding = 'latin1';
google_ad_section = 'default';
if (typeof google_adnum == 'undefined') {
	var google_adnum = 0;
}
google_skip = google_adnum;
//will be called by adsense after ads have been genereated
//google_ads contains all ads
function google_ad_request_done(google_ads) {
    var i;

    if (google_ads.length == 0) {
      return;
    }
	
	//---image ads----
	if (google_ads[0].type == "image") {
      return  printAds('<a href="' + google_ads[0].url + '" target="_top" title="gehe zu ' + google_ads[0].visible_url + '">\
      						<img style="border:none;" src="' + google_ads[0].image_url + '"width="' + google_ads[0].image_width + '"height="' + google_ads[0].image_height + '"/>\
      					</a>');
    }
      
    //text ads
    var strAds = '';
    for(i=0; i < google_ads.length; ++i) {
     	if ( typeof textAdsLayoutFunction == 'undefined')
     		strAds += textAdsLayoutDefault( google_ads[i].url, google_ads[i].visible_url, google_ads[i].line1, google_ads[i].line2, google_ads[i].line3);
    	else
    		strAds += textAdsLayoutFunction( google_ads[i].url, google_ads[i].visible_url, google_ads[i].line1, google_ads[i].line2, google_ads[i].line3);
    }
    
   // if (google_ads[0].bidtype == "CPC") {
		google_adnum = google_adnum + google_ads.length;
	//}
    
    return printAds(strAds);
  }

function printAds( strAds ) {

	var html = '<table width="100%" cellpadding="0" cellpadding="3">\
					<tr>\
						<td>\
							<div style="text-align:left;font-size:10pt"> \
							<a href="' + google_info.feedback_url + '" class="gaFeedbackURL">Ads by Google</a>\
							</div>\
						</td>\
					</tr>\
					<tr><td style="padding-top:20px">' + strAds + '</td></tr>\
				</table>';
    document.write(html);
    return;
}  


//TEXTLAYOUT - FUNCTIONS
function textAdsLayoutDefault(url, visible_url, line1, line2, line3) {
	return '<a class="gaHref" href="' + url + '" onmouseover="window.status=\'gehe zu ' + visible_url + '\'" onmouseout="window.status=\'\'">\
         				<span class="gaHeading">' + line1 + '</span></a><br>\
        				<span class="gaText">'  + line2 + '&nbsp;' + line3 + '</span><br>\
         				<a class="gaHref" href="' + url + '" onmouseover="window.status=\'gehe zu ' + visible_url + '\'" onmouseout="window.status=\'\'"><span class="gaURL">' + visible_url + '</span><br>\
         			</a><br>';
}

//print url after heading
function textAdsLayout2(url, visible_url, line1, line2, line3) {
	return '<a class="gaHref" href="' + url + '" onmouseover="window.status=\'gehe zu ' + visible_url + '\'" onmouseout="window.status=\'\'">\
         				<span class="gaHeading">' + line1 + '</span><br>\
         				<span class="gaURL">' + visible_url + '</span></a><br>\
        				<span class="gaText">'  + line2 + '&nbsp;' + line3 + '</span><br>\
         			<br>';
}

//immo ansicht oben
function textAdsLayout3(url, visible_url, line1, line2, line3) {
	return '<a class="gaHref" href="' + url + '" onmouseover="window.status=\'gehe zu ' + visible_url + '\'" onmouseout="window.status=\'\'">\
         				<span class="gaHeading" style="font-weight:normal; color:cc0033">' + line1 + '</span><br>\
         				<span class="gaURL" style="color:#000">' + visible_url + '</span></a><br>\
        				<span class="gaText">'  + line2 + '&nbsp;' + line3 + '</span><br>\
         			<br>';
}