function winstat(w) {window.status = w; return true;}
function clearstat(){window.status='';}
  
function google_ad_request_done(google_ads) {  
	var first_ad_unit = '';
	if (google_ads.length > 0) {

			first_ad_unit += '<div style="border: 1px GRAY solid">';
			first_ad_unit += '<div class="postcontent">';

			if (google_info.feedback_url) {
						first_ad_unit += '<div class="posttopbar"><a  style="font-size: 10pt; color: black; font-weight: bold" href=\"' + google_info.feedback_url + 
									'\">Ads by Google</a> </div>';
			} else {
						  first_ad_unit += '<div class="posttopbar">Ads by Google</a></div>';
								 }	
								 
			first_ad_unit += '<br />';
			for(var i = 0; i < google_ads.length; ++i) {
				// For text ads, display each ad in turn.		
				if (google_ads[i].type == 'text') {
							  first_ad_unit += '<div style=\"margin: 0px 0px 10px 10px; padding: 4px\">' +
							  '<a style=\"font-weight: bold\" onMouseOver=\"return winstat(\'go to ' + google_ads[i].visible_url +' \')\" onMouseOut=\"clearstat()\" href=\"' +  google_ads[i].url + '\">' +
							  google_ads[i].line1 + "</a> - " +
							  '<a style="text-decoration: none; color: BLACK; font-size: 90%"  onMouseOver=\"return winstat(\'go to ' + google_ads[i].visible_url +' \')\" onMouseOut=\"clearstat()\" href=\"' +  google_ads[i].url + '\">' +
							  google_ads[i].line2 + ' ' + google_ads[i].line3 + 
							  '</a>'+
							  '</div>';
				} // end if 'text' ad
			} // end for
			

			first_ad_unit += '</div>';			// end 	class="postcontent"				 
			first_ad_unit += '</div>';	
			
 } // end google_ads.length > 0
	document.getElementById("first_ad_unit").innerHTML += first_ad_unit;

}