//******************************************************
//   4 ANNUNCI IN COLONNA SENZA BORDO
//******************************************************
function google_ad_request_done(google_ads) {
	if (google_ads.length < 1 )
  		return;

    var firstAdUnit = '';
    var secondAdUnit = '';
	var s = '';
	s += '<table width="99%" height="100%">';
    firstAdUnit = secondAdUnit = s;
	
	if (google_ads[0].type == 'text') { 
		firstAdUnit += '<tr><td valign="top">';
		secondAdUnit += '<tr><td valign="top">';
		for(i = 0; i < google_ads.length; ++i) {
			s = '<a style="cursor:pointer;cursor:hand;text-decoration:none;color:#990000;font-size=15px" onclick="javascript:top.location.href=\'' + google_ads[i].url + '\'" onmouseover="window.status=\'vai a ' + google_ads[i].visible_url + '\'; this.style.textDecoration=\'underline\';" onmouseout="window.status=\'\'; this.style.textDecoration=\'none\';"><b>' + google_ads[i].line1 + ' »</b></a><br>';
			s += '<a style="cursor:pointer;cursor:hand;text-decoration:none" onclick="javascript:top.location.href=\'' + google_ads[i].url + '\'" onmouseover="window.status=\'vai a ' + google_ads[i].visible_url + '\'" onmouseout="window.status=\'\'">' + google_ads[i].line2 + ' ' + google_ads[i].line3 + '</a><br>';
			if (i < (google_ads.length-1)) {
				s += '<br>';
			}
       		if(i < 4) {
         		firstAdUnit += s;
       		} else {
         		secondAdUnit += s;
       		}
		}
		firstAdUnit += '</td></tr>';
		secondAdUnit += '</td></tr>';
	}

	firstAdUnit += '<tr><td height="15" valign="bottom" align="right">';
	secondAdUnit += '<tr><td height="15" valign="bottom" align="right">';
	if (google_info.feedback_url) {
		s = '<a href="' + google_info.feedback_url + '" onmouseover="window.status=\'Google Feedback\'" onmouseout="window.status=\'\'" class="home">Annunci Google</a>';
	} else {
		s = 'Annunci Google';
	}
	s += '</td></tr></table>';

    firstAdUnit += s;
    secondAdUnit += s;

    document.getElementById("firstAdUnit").innerHTML += firstAdUnit;
    if (google_ads[0].type != 'image')
      document.getElementById("secondAdUnit").innerHTML += secondAdUnit;
	  
//	document.write(s);
	return;
}

