 function google_ad_request_done(google_ads) {
	// Proceed only if we have ads to display!

	//window.alert('Suche wird durchgefuert.');

	var AdUnit = new Array();
	var i=0;
	var j=0;
	var block_name='';
	var debug_message='';

	if(google_max_num_ads)
		reserved_places=google_max_num_ads;
		
	if (google_ads.length < 1 )
		return;
	
	//debug_message+="\n" + 'ads_length:' + google_ads.length ;
	//window.alert(debug_message);	

	// Display ads in a table
	
			// For text ads, display each ad in turn.
			// In this example, each ad goes in a new row in the table.
		   if (google_ads[0].type == 'text') { 
		     for(i = 0; i < google_ads.length; ++i) {
		      	
		      	 AdUnit[i] = (type_ads=='products_lv')
		      	 	?
		      	 '<a style="cursor:pointer;cursor:hand;text-decoration:none" href="' + google_ads[i].url + '" onclick="window.status=\'gehe zu ' + google_ads[i].visible_url + '\'" onmouseout="window.status=\'\'">' +
		         '<font style="color:#000000; text-decoration:underline;font-size:11px;"><b>' + google_ads[i].line1 + '</b></font><font  style="color:#000000;font-size:11px;"> - ' + google_ads[i].line2 + '&nbsp;' + google_ads[i].line3 + '</font><font  style="color:brown;font-size:11px;">&nbsp;&nbsp;(' + 
		         google_ads[i].visible_url + ') </font></a>'
		         	:
		         '<a  style="color:black; cursor:pointer;cursor:hand;text-decoration:none" href="' + 
		      	google_ads[i].url + '" onclick="window.status=\'gehe zu ' + google_ads[i].visible_url + 
		      	'\'" onmouseout="window.status=\'\'">' +
		        '<font style="color:#000000; text-decoration:underline;font-size:12px;"><b>' + 
		        google_ads[i].line1 + 
		        '</b></font><br><font style="font-size:5px;">&nbsp;</font><div  style="color:#000000;font-size:11px;white-space:nowrap;border: #C0C0C0 1px  solid; padding:1px; width:85%;">' 
		        + google_ads[i].line2 + ' &nbsp;' + google_ads[i].line3 + '<br><font style="font-size:5px;">&nbsp;</font></a><div style="color:brown;font-size:11px;">' + 
		        google_ads[i].visible_url + '</div>';
				
				
				block_name="tr" + i;
				if(document.getElementById(block_name) || document.getElementById(block_name).style)
		        {	
		        	//alert(document.getElementById(block_name).nodeName);
		        	var strPropretyType = (navigator.userAgent.indexOf('MSIE')==-1) && (document.getElementById(block_name).nodeName.toUpperCase()=='TR') ? "table-row": "block";//
		        	//alert(strPropretyType);
		        	document.getElementById(block_name).style.display=strPropretyType;
					if((google_ads.length%2==1) && (i+1==google_ads.length) && document.getElementById("td" + i))
					{
						document.getElementById("td" + i).style.borderBottom='2px solid #C0C0C0';
					}
		        }
		        if(document.getElementById("AdUnit" + i))
		         document.getElementById("AdUnit" + i).innerHTML = AdUnit[i];

		        if(document.getElementById("AdUnitHead" + i) )//&& location.href.match(/search_value=Kreative&/i)
		        {
					var el_head=document.getElementById("AdUnitHead" + i);
					var new_head_content= '<a style="cursor:hand;color:' + (type_ads=='firms_lv'?'#101010':'brown') + ';" href="' + google_info.feedback_url + '">' + el_head.innerHTML + '</a>';
					//alert(new_head_content);
		         	el_head.innerHTML = new_head_content;
		        }

		     }
		   	}
	debug_message+="\n";	
   
   return;
 } 
