﻿function google_ad_request_done(google_ads) {
    /*
     * This function is required and is used to display
     * the ads that are returned from the JavaScript
     * request. You should modify the document.write
     * commands so that the HTML they write out fits
     * with your desired ad layout.
     */
    var s = '<div id=\"GoogleAD\">';
    var i;
    /*
     * Verify that there are actually ads to display.
     */
    if (google_ads.length == 0) {
      return;
    }
	s += '<a style="color: rgb(136, 136, 136); font-size: 10px;line-height:200%;" href="' + google_info.feedback_url +'" target="_blank">ads by Google</a>';
             for(i=0; i < google_ads.length; ++i) {
            	s += '<div class="google">';
                s += '<a target="_blank" href="' + google_ads[i].url + '" ' +
								  'onmouseout="window.status=\'\';return true;" ' +
				                  'onmouseover="window.status=\'' +
				                   google_ads[i].visible_url + '\';return true;"  class=""news"">' +
                                  '<div class=googletilte>' + google_ads[i].line1 + '</div>' + //title
                                  '<div class=googleabs>' + google_ads[i].line2 + google_ads[i].line3  + //text
                                  '<span class=googleurl>' + google_ads[i].visible_url + '</span></div></a>';// url
		s += '</div>';
    }
	s += '<div class=\"clear\"></div></div>';
    document.write(s);
    return;
  }
     google_ad_client = 'pub-0246916887946697'; //  your client_id
     google_ad_channel = '0548873689'; //  your channel
     google_ad_slot = "1270342842"; //  your slot
     google_ad_output = 'js';
     google_max_num_ads = '2';
     google_ad_width = 245;
     google_ad_height = 200;
     google_ad_format = "245x200_as"; 
     google_ad_type = 'text';
     google_language = 'zh-TW';
     google_encoding = 'utf-8';
     google_safe = 'high';
     google_adtest = 'off';
     google_feedback = 'on';
     google_hints = '';
     google_country = 'TW';
     google_ad_section = 'default';

     document.write('<scr' + 'ipt language="javascript" type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></scr' + 'ipt>');
