//<![CDATA[ 
 function google_ad_request_done(google_ads) {
    // Proceed only if we have ads to display!
    if (google_ads.length < 1 )
      return;

    var firstAdUnit = '';
    var secondAdUnit = '';

    // Display ads in a table
    var firstAdUnit = '<div style="border-top:1px solid #ddd; padding-top:5px; border-bottom:1px solid #ddd; padding-bottom:5px;"><div style="text-align:center; font-size:11px; color:#666;">Pubblicit&agrave;</div><table>';

    if (google_ads[0].type == 'text') {
      for(i = 0; i < google_ads.length; ++i) {
       s = '<tr><td nowrap style="text-align:left;">' +'<div style="padding-bottom:7px;"><a class="aadsense" style="cursor:pointer;cursor:hand;text-decoration:none" onclick="javascript:top.location.href=\'' + google_ads[i].url + '\'" onmouseover="window.status=\'vai su ' + google_ads[i].visible_url + '\'; " onmouseout="window.status=\'\';">' + '<span style="text-decoration:none;font-size:1.5em;font-weight:bold;">' + google_ads[i].line1 + '</span></a><br />' + '<span style="color:#000000;font-size:1.3em;">'  + google_ads[i].line2 + '&nbsp;' + google_ads[i].line3 + '<br /></span>' + '<a class="aadsense" style="cursor:pointer;cursor:hand;text-decoration:none" onclick="javascript:top.location.href=\'' + google_ads[i].url + '\'" onmouseover="window.status=\'vai su ' + google_ads[i].visible_url + '\'; " onmouseout="window.status=\'\';"><span style="font-size:12px; color:#008000;">' + google_ads[i].visible_url + '</span></a><br /></div></td></tr>';
        if(i < 2) {
         firstAdUnit += s;
       } else {
         secondAdUnit += s;
       }
      }
     }

    s = '<tr><td align="left">';
    s += '<div style="text-align:right;font-size:11px; width:480px;">';
    if (google_info.feedback_url) {
      s += '<a style="color:#666666;" href="' + google_info.feedback_url + '">Annunci Google</a>';
    } else {
      s += 'Annunci Google';
    }

    s += '</td></tr>';
    firstAdUnit +=  s;
    secondAdUnit +=  s;

    if (google_ads[0].type == 'image') {
      s = '<tr><td align="center">' + '<a href="' + google_ads[0].url + '"style="text-decoration: none">' +     '<img src="' + google_ads[0].image_url + '" height="' + google_ads[0].height + '" width="' + google_ads[0].width + '" border="0"></a></td></tr>';
      firstAdUnit = s;
    }

    firstAdUnit += '</table></div>';

	if (google_ads.length == 1 && google_ads[0].type != 'image') {
        s +=  '<a style="cursor:pointer;cursor:hand;text-decoration:none" onclick="javascript:top.location.href=\'' + google_ads[0].url +
         '\'" onmouseover="window.status=\'vai a ' + google_ads[0].visible_url + '\'" onmouseout="window.status=\'\'">' +
         '<span style="text-decoration:underline;font-size:20pt">' + google_ads[0].line1 + '<br /></span></a>' +
         '<span style="color:#000000;font-size:16pt">'  + google_ads[0].line2 + '&nbsp;' + google_ads[0].line3 + '<br /></span>' +
         '<a style="cursor:pointer;cursor:hand;text-decoration:none" onclick="javascript:top.location.href=\'' + google_ads[0].url +
         '\'" onmouseover="window.status=\'vai a ' + google_ads[0].visible_url + '\'" onmouseout="window.status=\'\'"><span style="font-size:14pt: color:#008000;">' + google_ads[0].visible_url +
         '</span></a><br />';
    }
    //firstAdUnit += s;
    secondAdUnit += s;

   if(document.getElementById('firstAdUnit')) document.getElementById("firstAdUnit").innerHTML += '<!-- </EdIndex> -->'+firstAdUnit+'<!-- <EdIndex> -->';
    if (google_ads.length > 1)
      //document.getElementById("secondAdUnit").innerHTML += secondAdUnit;
    return;
  }
//]]>
