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;
    }

  
    if (google_ads[0].type="text") 
    {
        s += "<table cellpadding=0 cellspacing=0 border=0 width=500><tr><td bgcolor=\"#E6E6E6\" height=1></td></tr></table>";
		s += "<img src=\"http://www.yonhapnews.co.kr/images/05_images/t_s_tra_dot.gif\" border=\"0\" width=1 height=10><br>";
		s += "<table width=500 border=0><tr><td class=g2 align=center><table width=500 border=0 cellpadding=2 cellspacing=0 border=0><td class=g4 bgcolor=\"#F5F5F5\">";
		s += "<a href=\"http://www.google.co.kr/ads?\" target=_blank><font color=\"#FF8000\">스폰서 링크</font></a></td></tr><tr><td class=g4 height=15></td></tr><tr><td class=g2>";
		
		if (google_ads.length == 1) 
        {
            /*
             * Partners should adjust text sizes
             * so ads occupy the majority of ad space.
             */
            s += '<a href="' + google_ads[0].url + '" ' +

			   '<font color="#400000"><b>' + 	
			   google_ads[0].line1 + '</b></font></a>' +
			   '<a href="' + google_ads[0].url + '" ' +
			   google_ads[0].visible_url + '</font></a><br>' +
			   '<font color="#6E6E6E">' + 	
			   google_ads[0].line2 + '<br>' +
			   google_ads[0].line3 + '</font><p>';
		}
		else if (google_ads.length > 1) 
        {
            /*
             * For text ads, append each ad to the string.
             */

            for(i=0; i < google_ads.length; ++i) 
            {
                s += '<a href="' + google_ads[i].url + '"  target=_blank>' +
			   '<font color="#400000"><b>' + 	
			   google_ads[i].line1 + '</b></font></a>' +
			   '&nbsp;&nbsp;<a href="' + google_ads[i].url + '" target=_blank>' +
			   '<font color="#804000">' +
			   google_ads[i].visible_url + '</font></a><br>' +
			   '<font color="#6E6E6E">' + 	
			   '<a href="' + google_ads[i].url + '" target=_blank>' +
			   google_ads[i].line2 + '&nbsp;' +
			   google_ads[i].line3 + '</font></a><p>';
            }
        }
		s += "</td></tr></table></td></tr></table><table cellpadding=0 cellspacing=0 border=0 width=500><tr><td bgcolor=\"#E6E6E6\" height=1></td></tr></table>";
    }

//    document.write(s);
    return;
}

google_ad_client = 'ca-yonhap_js'; // substitute your client_id
google_ad_output = 'js';
google_max_num_ads = '4';
google_ad_type = 'text';
google_language = 'ko';
google_encoding = 'utf8';
google_safe = '';
google_adtest = 'off';
google_hints = 'euc-kr';
google_contents = '';
google_ad_section = 'default';
google_country = 'kr';


