function PutThat(url) {
	window.open(url,"_blank","location=yes, toolbar=yes,directories=yes,status=yes, menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes");
}
var google_adnum = 0;
// Belles Annonces Google : www.FluxTrade.com
function google_ad_request_done(google_ads) {
	
	var s = '';
	var i;
	
	// Vérifiez qu'il existe bien des annonces à afficher.
	if (google_ads.length == 0) {
		return;
	}


	mystyle='';

	if (google_my_style=='') 		mystyle= '<h1><a href="' + google_info.feedback_url + '" class="gh1" target="_blank">Annonces Google</a></h1><hr style="background-color: #440000; color:#440000" /><br/>';
	if (google_my_style=='right')	mystyle='<div align="right" style="padding:3px ; border-bottom:1px solid #d0d0d0"><a href="' + google_info.feedback_url + '" class="gg1" target="_blank">Ads by Google</a></div><br/>';
	if (google_my_style=='nostyle') mystyle= '';

	s += mystyle;

	s += '<div align="left">';
	
	if (google_ads[0].type == "image") {
	
		s += '<div align="center">';
		s += 	'<a href="' + google_ads[0].url + '" target="_blank" title="go to ' + google_ads[0].visible_url + '">';
		s += 	'<img alt="" style="border:none;" src="' + google_ads[0].image_url + '"width="' + google_ads[0].image_width + '"height="' + google_ads[0].image_height + '"/></a>';
		s += '</div>';
	
	} else {
	
		if (google_ads.length == 1) {
	
			// Ajuster la taille de caractère
			// de sorte que les annonces occupent de manière optimale l'espace alloué.
			s += '<div class="gaBlock" onclick="PutThat(\'' + google_ads[0].url + '\');" onmouseover="window.status=\'Visiter ' + google_ads[0].visible_url + '\'" onmouseout="window.status=\'\'">';
			s += 	'<span class="gaBigTitle">' + google_ads[0].line1 + '</span><br/>';
			s += 	'<span class="gaBigText">'  + google_ads[0].line2 + '&nbsp;' + google_ads[0].line3 + '</span><br/>';
			s += 	'<span class="gaBigUrl">' + google_ads[0].visible_url + '</span>';
			s += '</div><br/>';
		
		} else if (google_ads.length > 1) {
	
			// Dans le cadre des annonces textuelles, ajoutez chaque annonce à la chaîne.
			for(i=0; i < google_ads.length; ++i) {
				s += '<div class="gaBlock" onclick="PutThat(\'' + google_ads[i].url + '\');return false;" onmouseover="window.status=\'Visiter ' + google_ads[i].visible_url + '\'" onmouseout="window.status=\'\'">';
				s += 	'<span class="gaTitle">' + google_ads[i].line1 + '</span><br/>';
				s += 	'<span class="gaText">'  + google_ads[i].line2 + '&nbsp;' + google_ads[i].line3 + '</span><br>';
				s += 	'<span class="gaUrl">' + google_ads[i].visible_url + '</span><br/>';
				s += '</div>';
			}
	
		}

		if (google_ads[0].bidtype == "CPC") google_adnum += google_ads.length;

	}

	s += '</div>';
	
	document.write(s);
	return;
}

