function google_ad_request_done(google_ads) {
	
	/*
	* Cette fonction est requise et est utilisée pour afficher
	* les annonces qui sont renvoyées à partir de la requête
	* JavaScript. Vous devez modifier les commandes
	* document.write en veillant à ce que le code HTML qu'elles copient soit adapté
	* au format d'annonce de votre choix. 
	*/
	var pub_art1 = '';	//ad displayed at the end of the first article
	var pub_art2 = '';	//ad displayed at the end of the second article
	var pub_art3 = '';	//ad displayed at the end of the third article
	var pub_top = '';	//ad displayed in the top bar
	var pub_recom = '';	//ad displayed in the recommended articles
	var i;
	
	/*
	* Vérifiez qu'il existe bien des annonces à afficher. 
	*/
	if (google_ads.length == 0) {
	return;
	}
	
	/*
	* Si une annonce Flash ou illustrée est renvoyée, affichez cette annonce. 
	* Sinon, créez une chaîne contenant toutes les annonces, puis
	* utilisez une commande document.write() pour imprimer cette chaîne. 
	*/
	
	if (google_ads[0].type == "text") {
	
		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) {
				
				switch(i) {
					/*case 0:
						//top ad
						pub_top = '<a rel="adsenses" href="' + google_ads[i].url + '" style="text-decoration: none; color:#FFF; "><b style="margin-right:10px; color:#FFC701">' + google_ads[i].line1 + '</b> ' + google_ads[i].line2 + ' ' + google_ads[i].line3;
					break;*/
				
					case 0:
						//ads displayed at the end of the first article
						pub_art1 += '<div style="padding: 0 0 10px; margin: 0;">';
						if(i == 0) {
							pub_art1 += '<a href="' +	google_info.feedback_url + '" class="adsense_title" style="text-decoration: none; line-height: 2em; font-size: 11px;" rel="adsenses" target="_blank">Annonce Google</a><br />';
						}
						
						pub_art1 += '<a rel="adsenses" style="font-size:16px; text-decoration:underline; line-height:24px" href="' + 
							google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'afficher la page ' +
							google_ads[i].visible_url + '\';return true" target="_blank">' + 
							google_ads[i].line1 + '</a> &nbsp; <a rel="adsenses" style="text-decoration:none;" href="' + 
							google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'afficher la page ' +
							google_ads[i].visible_url + '\';return true" target="_blank">' + 
							google_ads[i].visible_url + '</a><br /><span>' +
							google_ads[i].line2 + ' ' +
							google_ads[i].line3 + '</span></div>';
					break;
					
					case 2: 
						//ads displayed at the end of the second article
						pub_art2 += '<div style="padding: 0 0 10px; margin: 0;">';
						if(i == 2) {
							pub_art2 += '<a href="' +	google_info.feedback_url + '" class="adsense_title" style="text-decoration: none; line-height: 2em; font-size: 11px;" rel="adsenses" target="_blank">Annonce Google</a><br />';
						}
						pub_art2 += '<a rel="adsenses" style="font-size:16px; text-decoration:underline; line-height:24px" href="' + 
							google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'afficher la page ' +
							google_ads[i].visible_url + '\';return true" target="_blank">' + 
							google_ads[i].line1 + '</a> &nbsp; <a rel="adsenses" style="text-decoration:none;" href="' + 
							google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'afficher la page ' +
							google_ads[i].visible_url + '\';return true" target="_blank">' + 
							google_ads[i].visible_url + '</a><br /><span>' +
							google_ads[i].line2 + ' ' +
							google_ads[i].line3 + '</span></div>';
					break;
					
					case 4: 
						//ads displayed at the end of the third article
						pub_art3 += '<div style="padding: 0 0 10px; margin: 0;">';
						if(i == 4) {
							pub_art3 += '<a href="' +	google_info.feedback_url + '" class="adsense_title" style="text-decoration: none; line-height: 2em; font-size: 11px;" rel="adsenses" target="_blank">Annonce Google</a><br />';
						}
						pub_art3 += '<a rel="adsenses" style="font-size:16px; text-decoration:underline; line-height:24px" href="' + 
							google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'afficher la page ' +
							google_ads[i].visible_url + '\';return true" target="_blank">' + 
							google_ads[i].line1 + '</a> &nbsp; <a rel="adsenses" style="text-decoration:none;" href="' + 
							google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'afficher la page ' +
							google_ads[i].visible_url + '\';return true" target="_blank">' + 
							google_ads[i].visible_url + '</a><br /><span>' +
							google_ads[i].line2 + ' ' +
							google_ads[i].line3 + '</span></div>';
					break;
					
					case 6: case 7:
						//ads displayed with the recommended articles
						if(i == 6) {
							pub_recom += '<a href="' +	google_info.feedback_url + '" class="adsense_title sponsored_article" style="display: block; padding-top: 10px; text-decoration: none; line-height: 1.5em;" rel="adsenses" target="_blank">Annonce Google</a>';
						
							pub_recom += '<div style="display: block; height: 50px;">';
						}
						else {
							pub_recom += '<div style="display: block; height: 50px; padding: 0;">';
						}
						//pub_recom += '<img title="Accueil" alt="Accueil" src="websites/imgs/vignette-none.gif" style="float:left;">';
						pub_recom += '<a rel="adsenses" href="' + google_ads[i].url + '" style="line-height: 25px; font-size: 16px; text-decoration: underline;" target="_blank">' + google_ads[i].line1 +'</a> &nbsp; <a rel="adsenses" style="text-decoration:none" href="' + 
							google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'afficher la page ' +
							google_ads[i].visible_url + '\';return true" style="line-height: 1.5em;" target="_blank">' + 
							google_ads[i].visible_url + '</a><br />';
						pub_recom += google_ads[i].line2 + google_ads[i].line3;
						pub_recom += '</div>';
					break;
				}
			}
		}
}
	
	if(document.getElementById('art_sponsor1') && pub_art1 != '') {
		if(document.getElementById('art_sponsor1').innerHTML == '') {
			document.getElementById('art_sponsor1').innerHTML = pub_art1;
		}
	}
	
	if(document.getElementById('art_sponsor2') && pub_art2 != '') {
		if(document.getElementById('art_sponsor2').innerHTML == '') {
			document.getElementById('art_sponsor2').innerHTML = pub_art2;
		}
	}
	
	if(document.getElementById('art_sponsor3') && pub_art3 != '') {
		if(document.getElementById('art_sponsor3').innerHTML == '') {
			document.getElementById('art_sponsor3').innerHTML = pub_art3;
		}
	}
	
	if(document.getElementById('adlink_top') && pub_top != '') {
		if(document.getElementById('adlink_top').innerHTML == '') {
			document.getElementById('adlink_top').innerHTML = pub_top;
		}
	}
	
	if(document.getElementById('article_sponso') && pub_recom != '') {
		if(document.getElementById('article_sponso').innerHTML == '') {
			document.getElementById('article_sponso').innerHTML = pub_recom;
		}
	}
	
	return;
}
