function google_ad_request_done(google_ads) {
	var s = '';
	var i;
	var container= "";
	var template = new Array(3);

	// Template cifra
	template[0]  = "<div class='ad1'>";
	template[0] += "<span class='title'><a href='[URL]' onmouseout=\"window.status=''\" onmouseover=\"window.status='[VISIBLE_URL]';return true\">[TITLE]</a></span>";
	template[0] += "&nbsp;&nbsp;<span class='url'><a href='[URL]' onmouseout=\"window.status=''\" onmouseover=\"window.status='[VISIBLE_URL]';return true\">([VISIBLE_URL])</a>";
	template[0] += "<br />[LINE]</span>";
	template[0] += "</div>";

	// Template resultado busca
	template[1] = "<div class='ad2'>";
	template[1] += "<div class='title'><a href='[URL]' onmouseout=\"window.status=''\" onmouseover=\"window.status='[VISIBLE_URL]';return true\">[TITLE]</a></div>";
	template[1] += "<span>[LINE]</span><br />";
	template[1] += "<span class='url'>(<a href='[URL]' onmouseout=\"window.status=''\" onmouseover=\"window.status='[VISIBLE_URL]';return true\">[VISIBLE_URL]</a>)</span>";
	template[1] += "</div>";

	// Template home	
	template[2]  = "<div class='ad3'>";
	template[2] += "<span class='title'><a href='[URL]' onmouseout=\"window.status=''\" onmouseover=\"window.status='[VISIBLE_URL]';return true\">[TITLE]</a></span>";
	template[2] += "&nbsp;&nbsp;<span class='url'>(<a href='[URL]' onmouseout=\"window.status=''\" onmouseover=\"window.status='[VISIBLE_URL]';return true\">[VISIBLE_URL]</a>)</span>";
	template[2] += "<br /><span><a href='[URL]' onmouseout=\"window.status=''\" onmouseover=\"window.status='[VISIBLE_URL]';return true\">[LINE]</a></span>";
	template[2] += "</div>";

	// Template home2	
	template[3] = "<div class='ad4'>";
	template[3] += "<div class='title' style='background:url(../imagens/bg2_h1.gif) repeat-y'><a href='[URL]' onmouseout=\"window.status=''\" onmouseover=\"window.status='[VISIBLE_URL]';return true\">[TITLE]</a></div>";
	template[3] += "<span>[LINE]</span><br />";
	template[3] += "<span class='url'><a href='[URL]' onmouseout=\"window.status=''\" onmouseover=\"window.status='[VISIBLE_URL]';return true\">[VISIBLE_URL]</a></span>";
	template[3] += "</div>";


	if (google_ads.length == 0){return}
	else{
//		if (google_tipo_template==2){
//			s += '<h1><img src="imagens/ico_ads.gif" class="icone" alt="Anúncios" />Anúncios</h1><div class="adsgoogle" style="position:absolute;margin-left:390px;margin-top:-17px;_margin-top:-21px"><a href="' + google_info.feedback_url + '">Anúncios Google</a></div>';
//		}
//		else{
		if (google_tipo_template<2){
		
			s += '<div ' + (google_tipo_template !=0? 'align=right' : '') + ' class="adsgoogle">&nbsp;&nbsp;<a href="' + google_info.feedback_url + '">Anúncios Google</a></div>'
		}
		if (google_tipo_template==4){
		
			s += '<div ' + (google_tipo_template !=0? 'align=left' : '') + ' class="adsgoogle"><a href="' + google_info.feedback_url + '">Anúncios Google</a></div>'
		}
		for(i = 0; i < google_ads.length; ++i) {
			ad = template[google_tipo_template];
			ad = ad.replace(/\[URL\]/g, google_ads[i].url);
			ad = ad.replace(/\[TITLE\]/g, google_ads[i].line1);
			ad = ad.replace(/\[LINE\]/g, google_ads[i].line2 + ' ' + google_ads[i].line3);
			ad = ad.replace(/\[VISIBLE_URL\]/g, google_ads[i].visible_url);
			s += ad;
		}
		if (google_tipo_template==2){
		
			s += '<div style="padding-left:5px" class="adsgoogle"><a href="' + google_info.feedback_url + '">Anúncios Google</a></div>'
		}
		if (google_tipo_template==3){
		
			s += '<div style="padding-right:5px;text-align:right" class="adsgoogle"><a href="' + google_info.feedback_url + '">Anúncios Google</a></div>'
		}		
	}
	document.write(s);
	return;
}