google_ad_output = 'js';
function google_ad_request_done(google_ads) {
	// Proceed only if we have ads to display!
	if (google_ads.length < 1 )
	return;

	var s = '';

	// Display ads in a table
	s += '<table cellpadding="0" style="margin: 0px auto;">';
   
// Print "Ads By Google" 
    s += '<tr><td align="left">';

    
      if (google_ads.length > 1 )  {
	  
	   if (google_info.feedback_url) {
      s += '<a style=\'text-decoration:none\' href="' + google_info.feedback_url + '"><span style="text-decoration:none;color:#999999;font-family:verdana;font-size:8pt">Annonces Google</span></a><br/>';
    } else {
      s += '<font color = "#999999" face="verdana" size ="-2">Annonces Google</font>';
    }
	}
      s += '</td></tr>';
	// 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') {
		if(google_ads.length == 1){
			s += '<tr>'
				+ '<td style="background-color: #F5FDFF; text-align:center;" onmouseover="this.style.backgroundColor=\'#E8F0FD\';" onmouseout="this.style.backgroundColor=\'#F5FDFF\';">'
					+ '<a style="cursor:pointer;cursor:hand" onclick="javascript:top.location.href=\'' + google_ads[0].url + '\'" onmouseover="window.status=\'voir la page ' + google_ads[0].visible_url + '\'" onmouseout="window.status=\'\'">'
						+ '<span style="text-decoration:underline;font-weight: bold;font-family: Arial,Sans-serif;color:#004080;font-size:18pt">' + google_ads[0].line1 + '</span></a><br/>'
						+ '<span style="text-decoration:none;color:#000000;font-size:14pt">' + google_ads[0].line2 + '&nbsp;' + google_ads[0].line3 + '&nbsp;&nbsp;&nbsp;</span><br/>'
						+ '<a style="cursor:pointer;cursor:hand" onclick="javascript:top.location.href=\'' + google_ads[0].url + '\'" onmouseover="window.status=\'voir la page ' + google_ads[0].visible_url + '\'" onmouseout="window.status=\'\'">'
						+ '<span style="text-decoration:underline;color:#999999;font-size:12pt">' + google_ads[0].visible_url + '</span>'
					+ '</a>'
				+ '</td>'
			+ '</tr>';
		} else {
			for(i = 0; i < google_ads.length; ++i) {
				s += '<tr>'
					+ '<td style="background-color: #FFFFFF; text-align:left;" onmouseover="this.style.backgroundColor=\'#FFFFFF\';" onmouseout="this.style.backgroundColor=\'#FFFFFF\';">'
						+ '<a style="cursor:pointer;cursor:hand" onclick="javascript:top.location.href=\'' + google_ads[i].url + '\'" onmouseover="window.status=\'voir la page ' + google_ads[i].visible_url + '\'" onmouseout="window.status=\'\'">'
							+ '<span style="text-decoration:underline;font-weight: bold;font-family: Arial,Sans-serif;color:#004080;font-size:9pt">' + google_ads[i].line1 + '</span></a>'
							+ '<br/><span style="text-decoration:none;color:#000000;font-size:9pt">' + google_ads[i].line2 + '<br/>' + google_ads[i].line3 + '<br/></span>'
									+ '<a style="cursor:pointer;cursor:hand" onclick="javascript:top.location.href=\'' + google_ads[i].url + '\'" onmouseover="window.status=\'voir la page ' + google_ads[i].visible_url + '\'" onmouseout="window.status=\'\'">'
							+ '<span style="text-decoration:none;color:#999999;font-size:8pt">' + google_ads[i].visible_url + '</span>'
						+ '</a><br/><br/>'
					+ '</td>'
				+ '</tr>';
			}
		}
	}


	// For an image ad, display the image; there will be only one .
	if (google_ads[0].type == 'image') {
		s += '<tr>'
			+ '<td style="text-align:center">'
				+ '<a href="' + google_ads[0].url + '"style="text-decoration: none">'
					+ '<img src="' + google_ads[0].image_url + '" style="height:' + google_ads[0].height + 'px; width:' + google_ads[0].width + 'px; border: none">'
				+ '</a>'
			+ '</td>'
		+ '</tr>';
	}

	// Finish up anything that needs finishing up
	s += '</table>';

	document.write(s);
	return;
}