      var ad1 ='';
var ad2 = '';


 function google_ad_request_done(google_ads) 
{
	if (google_ads.length < 1 )
		return;
		
	var ads = '<table border="0" style="margin-bottom:15px;width:100%;" ><tr>';
	ads += '<td colspan="2" style="text-align:left;">';
	if (google_info.feedback_url)
	    ads+= '<a target="_blank" style="color:#999;font-weight: normal;" href="' + google_info.feedback_url + '">Google-Anzeigen</a>';
	else 
		ads+= 'Google-Anzeigen';
	ads += '</td></tr>';
	
	 var s = '';
	/*var ads = '<h4>';
	if (google_info.feedback_url)
	    ads += '<a target="_blank" href="' + google_info.feedback_url + '">Google-Anzeigen</a>';
	else 
		ads+= 'Google-Anzeigen';	
	ads += '</h4>';
	*/
	
	if(google_ads.length >2)
		var ads2 = ads;
	
//the ads
	 
	if (google_ads[0].type == 'text') 
	{
		for(i = 0; i < google_ads.length; ++i) 
		{
			if(i<3) {
			
					     s= '<tr onmouseover="style.backgroundColor=\'#eeff97\'" onmouseout="style.backgroundColor=\'#B6CF84\'" bgcolor="#B6CF84">' +
				'<td style="text-align:left;padding-top: 3px;padding-bottom: 3px;padding-left:3px;width:auto"><b><a target="_blank" style="color:#536433;cursor:pointer;cursor:hand;text-decoration:underline;text-align:left;font-size:16px;margin:0 0 5px 0;" href="' + google_ads[i].url + '" onmouseover="window.status=\'gehe zu ' + google_ads[i].visible_url + '\'" onmouseout="window.status=\'\'">' +
				'' + google_ads[i].line1 + '</a>:</b> </td><td style="text-align:left;font-size:14px;padding-left:3px;width:auto">' +
				google_ads[i].line2 + '&nbsp;' + google_ads[i].line3 + 
				'<br/><a target="_blank" style="color:#536433;cursor:pointer;cursor:hand;text-decoration: underline;font-weight: normal;" href="' + google_ads[i].url + '" onmouseover="window.status=\'http:\/\/' + google_ads[i].visible_url + '\'" onmouseout="window.status=\'\'">' + google_ads[i].visible_url +
				'</a></td></tr>'+
				'<tr><td colspan="2" height="10px">&nbsp;</td></tr>';

			       ads += s;
				   
			/*
		    ads += '<div style="background-color:#B6CF84;padding-top:5px;padding-bottom:5px;">' +
				'<h5><a target="_blank" style="cursor:pointer;cursor:hand;text-decoration:underline;" href="' + google_ads[i].url + '" onmouseover="window.status=\'gehe zu ' + google_ads[i].visible_url + '\'" onmouseout="window.status=\'\'">' +
				'' + google_ads[i].line1 + '</a></h5> ' +
				'<p>' + google_ads[i].line2 + ' ' + google_ads[i].line3 + 
				' <a target="_blank" style="cursor:pointer;cursor:hand;text-decoration: underline;" href="' + google_ads[i].url + '" onmouseover="window.status=\'http:\/\/' + google_ads[i].visible_url + '\'" onmouseout="window.status=\'\'">' + google_ads[i].visible_url +
				'</a></p></div>';*/
			} else {
			
			 s= '<tr onmouseover="style.backgroundColor=\'#eeff97\'" onmouseout="style.backgroundColor=\'#B6CF84\'" bgcolor="#B6CF84">' +
				'<td style="text-align:left;padding-top: 3px;padding-bottom: 3px;padding-left:3px;"><b><a target="_blank" style="color:#536433;cursor:pointer;cursor:hand;text-decoration:underline;text-align:left;font-size:16px;margin:0 0 5px 0;" href="' + google_ads[i].url + '" onmouseover="window.status=\'gehe zu ' + google_ads[i].visible_url + '\'" onmouseout="window.status=\'\'">' +
				'' + google_ads[i].line1 + '</a>:</b> </td><td style="text-align:left;font-size:14px;padding-left:3px;">' +
				google_ads[i].line2 + '&nbsp;' + google_ads[i].line3 + 
				'<br/><a target="_blank" style="color:#536433;cursor:pointer;cursor:hand;text-decoration: underline;font-weight: normal;" href="' + google_ads[i].url + '" onmouseover="window.status=\'http:\/\/' + google_ads[i].visible_url + '\'" onmouseout="window.status=\'\'">' + google_ads[i].visible_url +
				'</a></td></tr><tr><td colspan="2" height="10px">&nbsp;</td></tr>';

			       ads2 += s;
				   /*
				 ads2 += '<div style="background-color:#B6CF84;padding-top:5px;padding-bottom:5px;">' +
				'<h5><a target="_blank" style="cursor:pointer;cursor:hand;text-decoration:underline;" href="' + google_ads[i].url + '" onmouseover="window.status=\'gehe zu ' + google_ads[i].visible_url + '\'" onmouseout="window.status=\'\'">' +
				'' + google_ads[i].line1 + '</a></h5> ' +
				'<p>' + google_ads[i].line2 + ' ' + google_ads[i].line3 + 
				' <a target="_blank" style="cursor:pointer;cursor:hand;text-decoration: underline;" href="' + google_ads[i].url + '" onmouseover="window.status=\'http:\/\/' + google_ads[i].visible_url + '\'" onmouseout="window.status=\'\'">' + google_ads[i].visible_url +
				'</a></p></div>';*/
			}
		}
	}
	
		//table bottom
	 ads +='</table>';
	 ads2 +='</table>';
	 
	 
	ele1 = document.getElementById("gTop");
	ele2 = document.getElementById("gBottom")
	if(typeof(ele1) !='undefined')
	
		ele1.innerHTML += ads;
    if(typeof(ele2) !='undefined' && typeof(ads2) !='undefined')
		ele2.innerHTML += ads2;
    
   return;
 }