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) {

		if (google_info.feedback_url) {
			 first_ad_unit += '<div style="color: GRAY; font-size: 11px;"> ' +
			  'Sponsored links (<a  style="font-size: 11px;" href=\"' + google_info.feedback_url + '\">Ads by Google</a>)</div>';
		 } else {
			  first_ad_unit += '<div style="color:GRAY; font-weight: bold"> ' +
			  'Sponsored links (Ads by Google)</div>';
		 }

		for(var i = 0; i < google_ads.length; ++i) {
			if (google_ads[i].type == 'text') {
				first_ad_unit += '<div style=\"margin: 10px 0px 10px 10px;\ font-size: 13px;">'+
				'<a class=\"headline\" onMouseOver=\"return winstat(\'go to ' + google_ads[i].visible_url +' \')\" onMouseOut=\"clearstat()\" href=\"' + google_ads[i].url + '\">' +
				google_ads[i].line1 + '</a> - ' + 
				'<a style="font-weight: normal; color: black; text-decoration: none; " 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 + 
				'</span> <br />' +
				'<span style="color: GRAY;">' + google_ads[i].visible_url + '</span>' +
				'</a></div>';
			} // end if text
		}     // end for

		first_ad_unit += '<hr size="1" color="DCDCDC">';
	}// end length > 0

	
	if (first_ad_unit == ''){
		first_ad_unit +=	' '+
							' ';
	}

	document.getElementById('first_ad_unit').innerHTML += first_ad_unit;
}
