<!--
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 = '';
	s = '<table width="100%" height="3"  border="0" cellpadding="0" cellspacing="0" class="frame_gray_1px">';
		
	var i;

	/*
	 * Verify that there are actually ads to display.
	 */
	if (google_ads.length == 0) {
		return;
	}

	/*
	 * If an image or Flash ad is returned, display that ad.
	 * Otherwise, build a string containing all of the ads and
	 * then use a document.write() command to print that string.
	 */

	if (google_ads[0].type == "image") {
		s += '<a href="' + google_ads[0].url +
		'" target="_top" title="go to ' + google_ads[0].visible_url +
		'"><img border="0" src="' + google_ads[0].image_url +
		'"width="' + google_ads[0].image_width +
		'"height="' + google_ads[0].image_height + '"></a>';
		
	} else if (google_ads[0].type == "flash") {
		s += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' +
		' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"' +
		' WIDTH="' + google_ad.image_width +
		'" HEIGHT="' + google_ad.image_height + '">' +
		'<PARAM NAME="movie" VALUE="' + google_ad.image_url + '">' +
		'<PARAM NAME="quality" VALUE="high">' +
		'<PARAM NAME="AllowScriptAccess" VALUE="never">' +
		'<EMBED src="' + google_ad.image_url +
		'" WIDTH="' + google_ad.image_width +
		'" HEIGHT="' + google_ad.image_height +
		'" TYPE="application/x-shockwave-flash"' +
		' AllowScriptAccess="never" ' +
		' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>';
		
	} else if (google_ads[0].type="text") {
		s += '<tr><td bgcolor="#dedede" ><div align="right"><a  ' +
		'href="https://adwords.google.com/select/OnsiteSignupLandingPage?client=ca-sina-us_js&referringUrl=' +
		escape(window.location.hostname)+ '&hl=zh-TW"><font class="text_gray_12B">Ads by Google&nbsp;&nbsp;&nbsp;</font></a></div></td></tr>';
		
		if (google_ads.length == 1) {
			/*
			 * Partners should adjust text sizes
			 * so ads occupy the majority of ad space.
			 */
			s += '<tr><td><table width="90%" border="0" align="center" cellpadding="0" cellspacing="8"><tr><td><a class="link_blue_15B" href="' + google_ads[0].url + '" ' +
			'onmouseout="window.status=\'\'" ' +
			'onmouseover="window.status=\'go to ' +
			google_ads[0].visible_url + '\'" ' +
			'>' +
			'<span class="link_blue_15B">' +
			'' + google_ads[0].line1 + '<br></span></a>' +
			'<span class="text_gray_12">' +
			google_ads[0].line2 + '&nbsp;' +
			google_ads[0].line3 + '<br></span>' +
			'<span class="text_green_11">' +
			google_ads[0].visible_url + '</span><br>';
			
		} else if (google_ads.length > 1) {
			/*
			 * For text ads, append each ad to the string.
			 */
			s += '<tr><td><table width="90%" border="0" align="center" cellpadding="0" cellspacing="8">';

			for(i=0; i < google_ads.length; ++i) {
				s += '<tr><td><div " ' +
				'onclick="window.open(\'' + google_ads[i].url + '\')" ' +
				'onmouseout="window.status=\'\';return true;" ' +
				'onmouseover="window.status=\'' +
				google_ads[i].visible_url + '\';return true;">' +
				'<a href="#" class="link_blue_15B" onclick="return false">' + '' +
				google_ads[i].line1 + '<br></a><span class="text_gray_12">' +
				google_ads[i].line2 + "&nbsp;" + google_ads[i].line3 + '<br></span>' +
				'<span class="text_green_11">' + google_ads[i].visible_url + '</span></div></td></tr>';
			}
		}
		s += '</table></td></td></table>';
	}

	document.write(s);
	return;
}
	 
var str1='/bg/news/';
var str2='/gb/news/';
var str3='/bg/fin/';
var str4='/gb/fin/';
var str5='/bg/chn/';
var str6='/gb/chn/';
var this_url=window.location.href;

if( this_url.indexOf(str1)!=-1 || this_url.indexOf(str3)!=-1 || this_url.indexOf(str5)!=-1 ) {
	if( this_url.indexOf(str1)!=-1 ){
		google_ad_channel = 'news-big5';
	}else if( this_url.indexOf(str3)!=-1 ){
		google_ad_channel = 'financenews-big5';
	}else if( this_url.indexOf(str5)!=-1 ){
		google_ad_channel = 'chinanews-big5';
	}
	google_language = 'zh-TW';
	google_encoding = 'big5';
	
}else if(this_url.indexOf(str2)!=-1 || this_url.indexOf(str4)!=-1 || this_url.indexOf(str6)!=-1 ) {
	if( this_url.indexOf(str2)!=-1 ){
		google_ad_channel = 'news-gb2312';
	}else if( this_url.indexOf(str4)!=-1 ){
		google_ad_channel = 'financenews-gb';
	}else if( this_url.indexOf(str6)!=-1 ){
		google_ad_channel = 'chinanews-gb';
	}
	google_language = 'zh-cn';
	google_encoding = 'gb2312';
}

google_ad_client = 'ca-sina-us_js';
google_ad_output = 'js';
google_max_num_ads = '3';
google_ad_type = 'text';
google_safe = 'high';
google_ad_section = 'default';

// -->