var google_adnum = 0; /* only insert this line for your first ad unit */
function google_ad_request_done(google_ads) {
var s = '';
var i;
var afccode='';
if (google_ads.length == 0) {
return;
}
if (google_ads.length == 1) {
s = '<a href=\"' + google_info.feedback_url + '\" style="text-decoration: none; color: #333333;;margin-left:5px"  class="googleanz">'+google_heading+'</a>';
afccode = '<a style="text-decoration:none" href="' +
google_ads[0].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
google_ads[0].visible_url + '\';return true"> <span style="text-decoration:underline;font-size:20pt"> <b class="google_searchresults">' +
google_ads[0].line1 + '</b><br></span></a> <span>' +
google_ads[0].line2 + '&nbsp;' +
google_ads[0].line3 + '</span> <a  href="' +
google_ads[0].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
google_ads[0].visible_url + '\';return true"><span>' +
google_ads[0].visible_url + '</span></a>';
document.getElementById('google_afc_headline_top').style.display="block";
document.getElementById('google_afc_headline_top').innerHTML=s;
document.getElementById('afc_block_0').innerHTML=afccode;
}
if (google_ads.length > 1) {
s = '<a href=\"' + google_info.feedback_url + '\" style="text-decoration: none; color: #333333;margin-left:5px"  class="googleanz">'+google_heading+'</a><br>'
for(i = 0; i < google_ads.length; i++) {
afccode = '<a  href="' +
google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
google_ads[i].visible_url + '\';return true" class="afc_url"> <span> <b class="google_searchresults">' +
google_ads[i].line1 + '</b><br></span></a> <span style="color:#000000">' +
google_ads[i].line2 + ' '+
google_ads[i].line3 + '</span> <a  href="' +
google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
google_ads[i].visible_url + '\';return true"><span>' +
google_ads[i].visible_url + '</span></a>';
if (google_ads[0].bidtype == "CPC") {  /* insert this snippet for each ad call */
google_adnum = google_adnum + google_ads.length;
}
document.getElementById('afc_block_'+i).style.display="block";
var obj = document.getElementById('afc_block_'+i);
  if (obj) {
       obj.innerHTML =afccode;
    }
}
$('#afc-cover').show();
document.getElementById('google_afc_headline_top').style.display="block";
document.getElementById('google_afc_headline_top').innerHTML=s;
document.getElementById('google_afc_headline_bottom').style.display="block";
document.getElementById('google_afc_headline_bottom').innerHTML=s;
}
    return;
  }
