	var wordArray = keywords.split(" ");
	var _c = document.getElementById('googleAd');
	var _x = '';
	_x = keywords;

    google_afs_query = _x;
    google_afs_ad = "w10";
    google_afs_client = "pub-5664019590241836"; google_afs_channel = gg_top_channel;
    google_afs_hl = "zh-CN";
    google_afs_ie = "utf8";
    google_afs_oe = "utf8";
	var count = 3;
	
	//if(ggcount>=2)count = 2;

    var google_afs_request_done = function(google_ads) {
    	if(google_ads.length==0){
    		document.getElementById('google_guanggao').style.display='none';
    		return;
    	}
  	   if(google_ads.length>3){
  	   		//ggstart = rand(google_ads.length-3);
  	   		ggstart = 0;
  	   		ggend = ggstart+count;
  	   }
  	   else{
  	    	ggstart = 0;
  	    	ggend = google_ads.length;
  	   }
       for (var i = ggstart ; i < ggend ; i++ )
       {
			show_afs(google_ads[i]);
       }
    }

	function show_afs(ad)
	{
		var gg_title = ad.line1;
		var gg_intro = ad.line2;
		for(i=0;i<wordArray.length;i++){
			gg_title = gg_title.replace(wordArray[i],'<span class=\'key\'>'+wordArray[i]+'</span>');
			gg_intro = gg_intro.replace(wordArray[i],'<span class=\'key\'>'+wordArray[i]+'</span>');
			
		}
		var s = '';
		s += "<div class=googleAdList>";
		s += "<dl><dt><a href='" + ad.url + "' target=_blank>" + gg_title + "</a></dt><dd><span class='ggAddress'><a href='" + ad.url + "' target=_blank>" + ad.visible_url + "</a></span>" + gg_intro + "</dd></dl>";
		s += "</div>";
		_c.innerHTML += s;
	}