﻿function google_ad_request_done(google_ads) {
	var s = '';
	var i;

	/*
	 * Verify that there are actually ads to display. 
	 */
	if (google_ads.length == 0) {
	  return;
	}

	s += '<div class="box box7"><div class="top"><div><div>&#xA0;</div></div></div><div class="content"><div style="height:205;width:348;overflow:hidden;" >'; 
	if (google_ads[0].type == "text") {
		s += '<div style="text-align:left;font-weight:bold;color:#9c998c;font-family:Arial;font-size:11px;line-height:13px">SPONSORED LINKS</div>' ; 
		if (google_ads.length == 1) {
			/*
			 * Partners should adjust text sizes
			 * so ads occupy the majority of ad space.
			 */
			s += '<br><a href="' + google_ads[0].url + '" ' + 
							'onmouseout="window.status=\'\';return true;" ' +
							'onmouseover="window.status=\'go to ' +
							google_ads[0].visible_url + '\';return true;" ' + 
							'style="text-decoration:none">' +
							'<span style="color:#084278;font-family:Arial;font-size:20px">' +
							'<b>' + google_ads[0].line1 + '</b><br></span>' + 
							'<span style="color:#464339;font-family:Arial;font-size:16px">' +
							google_ads[0].line2 + '&nbsp;' +
							google_ads[0].line3 + '<br></span>' + 
							'<span style="color:#2f77ba;font-family:Arial;font-size:14px">' +
							google_ads[0].visible_url + '</span></a><br>'; 
		} else if (google_ads.length > 1) {
			/*
			 * For text ads, append each ad to the string.
			 */
			for(i=0; i < google_ads.length; ++i) {
				s += '<span style="line-height:7px;font-size:7px">&nbsp;</span><br>' + 
								  '<a href="' + google_ads[i].url + '" ' +
								  'onmouseout="window.status=\'\';return true;" ' +
								  'onmouseover="window.status=\'go to ' +
								  google_ads[i].visible_url + '\';return true;" ' +
								  'style="text-decoration:none">' + 
								  '<span style="font-weight:bold;color:#084278;font-family:Arial;font-size:11px;line-height:13px"">' +
								  '<b>' + google_ads[i].line1 + '</b></span><br>' + 
								  '<span style="color:#464339;font-family:Arial;font-size:11px;line-height:13px">' +
								  google_ads[i].line2 + ' ' +
								  google_ads[i].line3 + '</span><br>' +
								  '<span style="color:#2f77ba;font-family:Arial;font-size:11px;line-height:13px">' + 
								  google_ads[i].visible_url + '</span></a><br>';
			}            
		}
	}

	s += '</div></div><div class="bot"><div><div>&#xA0;</div></div></div></div>';
	document.write (s);
	return;
}

google_ad_client = 'ca-newsweek_460x232'; 
google_ad_output = 'js';
google_max_num_ads = '3';
google_ad_type = 'text'; 
google_safe = 'high';
google_adtest = 'off';
