function insertWBR(str) { var output = '' ; for ( var i=0; i 0 ) { // Debugging output // document.write (google_ads.length + " ad(s) returned.
"); } else { // document.write( "0 ads returned.
"); return; } 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 += '' + '' '' '' ''; } else if (google_ads[0].type == "image") { s += ''; } else { s += (''); s += ('
') ; s += ('
') ; s += ('
') ; s += ('

Ads by Google

') ; s += ('
') ; s += ('
') ; if (google_ads.length == 1) { /* * Partners should adjust text sizes * so ads occupy the majority of ad space. */ var i = 0 ; s += '

' + '' + '' + google_ads[i].line1 + '
' + '' + google_ads[i].line2 + ' ' + google_ads[i].line3 + '
' + '' + insertWBR(google_ads[i].visible_url) + '

'; } 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 + '
' + '' + insertWBR(google_ads[i].visible_url) + '

'; } } s += ('
') ; } document.write(s); return; } // google_page_url = 'http://www.washingtonpost.com/'; // comment out after testing. // google_ad_client = 'ca-washingtonpost_js'; // move to advertisingLinks_v2.js (will change with each node (or ancestor) google_ad_output = 'js'; google_max_num_ads = '3'; google_safe = 'high'; google_adtest = 'off'; // change to 'off' for launch document.write('') ;