function google_ad_request_done(google_ads) {
/*
* This function is required and is used to display
* the ads that are returned from the JavaScript
* request. You should modify the document.write
* commands so that the HTML they write out fits
* with your desired ad layout.
*/
var s = '';
var i;
/*
* Verify that there are actually ads to display.
*/
if (google_ads.length == 0) {
return;
}
/*
* If an image or Flash ad is returned, display that ad.
* Otherwise, build a string containing all of the ads and
* then use a document.write() command to print that string.
*/
if (google_ads[0].type == "image") {
s += '';
} else if (google_ads[0].type == "flash") {
s += '';
} else if (google_ads[0].type == "text") {
s += '
' +
google_ads[0].line2 + '
' +
google_ads[0].line3 + '
' + google_ads[0].visible_url + '
' +
google_ads[i].line2 + '
' +
google_ads[i].line3 + '
' + google_ads[i].visible_url + '