/*
FILE ARCHIVED ON 18:23:15 Jan 8, 2013 AND RETRIEVED FROM THE
AN OPENWAYBACK INSTANCE ON 4:53:32 Aug 22, 2024.
JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
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 == "flash") {
s += 'Ads by Google ';
} else if (google_ads[0].type == "image") {
s += 'Ads by Google ';
} else if (google_ads[0].type == "html") {
s += google_ads[0].snippet;
} else if (google_ads.length >= 1) {
/*
* For text ads, append each ad to the string.
*/
for(i = 0; i < google_ads.length; ++i) {
s += '' + google_ads[i].line1 + ' ' + google_ads[i].line2 + ' ' + google_ads[i].line3 + ' - ' + google_ads[i].visible_url + '