google_ad_client = 'pub-9389313828784985';
google_ad_output = 'js';
google_max_num_ads = '8';
google_safe = 'high';
google_feedback = "on";
google_ad_type  = "text_image";
google_kw_type = "broad";
google_ad_channel ="6358526200";
google_alternate_ad_url = "http://kevinlee.net/adsense/results.html";

google_ads_formatted = Array();

function google_ad_request_done(google_ads) {

  var i = 0;
  var google_ad_html = '';
 
  if (!google_ads.length) 
	return;

  for (i=0; i<google_ads.length; i++) {
      google_ad_html = '';
      google_ad_html += '<div class="resbox"><a class="restitle" href="' + google_ads[i].url + '">' + google_ads[i].line1 + '</a>' + "\n";
      google_ad_html += '<span style="font-size: 9pt; color: #A0A0A0">(ads by google)</span>';
      google_ad_html += '<div class="resdescription">' + google_ads[i].line2 + " " + google_ads[i].line3 + '</div>';
      google_ad_html += '<a class="reslink" href="' + google_ads[i].url + '">http://' + google_ads[i].visible_url + '</a></div><br>' + "\n";
      google_ads_formatted.push(google_ad_html);
  }

}
