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 = '';
    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")
	{
		tmpcols = 100 / google_ads.length + '%';
		if (google_ads.length < 1 ) return;

		switch(indiatimes_adtype)
		{
			case 0:
			{	
				document.write("<table cellpadding=\"0\" cellspacing=\"0\" width=\""+ indiatimes_width + "\" border=\"0\" height=\""+ indiatimes_height + "\" style=\"border-style: solid; border-width: "+brdr+"px; border-color: #"+indiatimes_outer_border+"\"  >");
				document.write("<tr><td align=\"left\" height=\"20\" bgcolor=\"#"+indiatimes_ads0_google+"\" style=\"padding-left:5px; padding-bottom:1px;\"><span style=\"font-size: 12px; font-family:arial; font-weight: bold; color:#"+indiatimes_link0_ads_google+";\">");
				if (google_info.feedback_url)
				{
					document.write("<a href=\"" + google_info.feedback_url + "\" target=\"_blank\" style=\"text-decoration:none; color:#"+indiatimes_link0_ads_google+";\">Ads by Google</a>");
				}
				else
				{
					document.write("Ads By Google");
				}
				document.write("</span></td></tr>");

				if (google_ads[0].type == 'text')
				{
					for(i = 0; i < google_ads.length; ++i)
					{
						document.write("<tr><td bgcolor=#" + indiatimes_bg_color + " style=\"padding-left:5px;padding-right:5px;padding-top:8px;padding-bottom:5px;\"><font size=\"-1\">" +
						"<a href=\"" +  google_ads[i].url + "\" target=\"_blank\" style=\"font-size: 13px; color:#" +indiatimes_link_color+"; font-weight: bold;font-family:arial\" onmouseover=\"window.status='"+ google_ads[i].visible_url + "';return true\" onmouseout=\"window.status='';return true\"><b>" +
						google_ads[i].line1 + "</b></a><br><a href=\"" + google_ads[i].url + "\" target=\"_blank\" onmouseover=\"window.status='"+ google_ads[i].visible_url +"';return true\" onmouseout=\"window.status='';return true\" style=\"text-decoration:none\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 12px; color:#"+indiatimes_text_color+";text-decoration:none;\">" + google_ads[i].line2 + " " + google_ads[i].line3 + "<br>" + "</span></a><a href=\"" + google_ads[i].url + "\" target=\"_blank\" style=\"font-size: 11px; font-family: helvetica, arial, sans-serif; color: #"+indiatimes_dlink_color+"; font-weight: normal; \" onmouseover=\"window.status='"+ google_ads[i].visible_url +"';return true\" onmouseout=\"window.status='';return true\">" + "" + google_ads[i].visible_url + "</a></td></tr>");
					}
				}
				document.write ("</table>");
				break;
			}
			case 1:
			{	
				
				document.write("<table cellpadding=\"0\" cellspacing=\"1\" width=\""+ indiatimes_width + "\" border=\"0\" height=\""+ indiatimes_height + "\" style=\"border-style: solid; border-width: "+brdr+"px; border-color: #"+indiatimes_outer_border+"\"  >");
				document.write("<tr><td colspan=\""+ google_ads.length + 1 + "\" height=\"20\" bgcolor=\"#"+indiatimes_ads12_google+"\" style=\"padding-left:5px; padding-bottom:1px;\"><span style=\"font-size: 10px; font-family:arial; color:#"+indiatimes_link12_ads_google+";\">");
				if (google_info.feedback_url)
				{
					document.write("<a href=\"" + google_info.feedback_url +
										"\" target=\"_blank\" style=\"text-decoration:none; color:#"+indiatimes_link12_ads_google+";\">Ads by Google</a>");
				}
				else
				{
					document.write("Ads By Google");
				}
				document.write("</span></td></tr>");

				if (google_ads[0].type == 'text')
				{
					for(i = 0; i < google_ads.length; ++i)
					{
						document.write("<td width=\"" + tmpcols + "\"  bgcolor=\"e9e9e9\" style=\"cursor:pointer; cursor:hand; background-color:#"+indiatimes_bg_color+"; border-bottom: 1px solid; border-top: 1px solid; border-left: 1px solid; border-right: 1px solid; border-color: #"+indiatimes_inner_border+"; padding-top:4px; padding-left:4px; padding-right:3px; overflow:hidden;}\"><font size=\"-1\">" + "<a href=\"" +  google_ads[i].url + "\" target=\"_blank\" style=\";font-size: 12px; color:#"+indiatimes_link_color+"; font-weight: bold; font-family:arial\" onmouseover=\"window.status='"+ google_ads[i].visible_url +"';return true\" onmouseout=\"window.status='';return true\"><b>" + google_ads[i].line1 + "</b></a><br><a href=\"" +google_ads[i].url+ "\" target=\"_blank\" style=\"text-decoration:none\"  onmouseover=\"window.status='"+ google_ads[i].visible_url +"';return true\" onmouseout=\"window.status='';return true\"><span style=\";font-family: helvetica, arial, sans-serif; font-size: 11px; color:#"+indiatimes_text_color+";text-decoration:none;\">" + google_ads[i].line2 + " " +
						google_ads[i].line3 + "<br>" + "</span></a><a href=\"" + google_ads[i].url + "\" target=\"_blank\" style=\";font-size: 9px; font-family: helvetica, arial, sans-serif; color: #"+indiatimes_dlink_color+"; font-weight: normal;text-decoration:none;\" onmouseover=\"window.status='"+ google_ads[i].visible_url +"';return true\" onmouseout=\"window.status='';return true\">" + "" + google_ads[i].visible_url + "</a></td>");
					}
				}
				document.write ("</table>");
				break;
			}
			case 2:
			{
				document.write("<table cellpadding=\"0\" cellspacing=\"1\" width=\""+ indiatimes_width + "\" border=\"0\" height=\""+ indiatimes_height + "\" style=\"border-style: solid; border-width: "+brdr+"px; border-color: #"+indiatimes_outer_border+"\"  >");
				document.write("<tr><td colspan=\""+ google_ads.length + 1 + "\" height=\"20\" bgcolor=\"#"+indiatimes_ads12_google+"\" style=\"padding-left:5px; padding-bottom:1px;\"><span style=\"font-size: 10px; font-family:arial; color:#"+indiatimes_link12_ads_google+";\">");
				if (google_info.feedback_url)
				{
					document.write("<a href=\"" + google_info.feedback_url + "\" target=\"_blank\" style=\"text-decoration:none; color:#"+indiatimes_link12_ads_google+";\">Ads by Google</a>");
				}
				else
				{
					document.write("Ads By Google");
				}
				document.write("</span></td></tr>");

				if (google_ads[0].type == 'text')
				{
					for(i = 0; i < google_ads.length; ++i)
					{
						document.write("<tr><td  height =\"" + tmpcols + "\" width=\"100%\" bgcolor=\"e9e9e9\" style=\"cursor:pointer; cursor:hand; background-color:#"+indiatimes_bg_color+"; border-bottom: 1px solid; border-top: 1px solid; border-left: 1px solid; border-right: 1px solid; border-color: #"+indiatimes_inner_border+"; padding-top:4px; padding-left:4px; padding-right:3px; overflow:hidden;}\"><font size=\"-1\">" + "<a href=\"" +  google_ads[i].url + "\" target=\"_blank\" style=\";font-size: 12px; color:#"+indiatimes_link_color+"; font-weight: bold; font-family:arial\" onmouseover=\"window.status='"+ google_ads[i].visible_url +"';return true\" onmouseout=\"window.status='';return true\"><b>" + google_ads[i].line1 + "</b></a><br><a href=\"" +google_ads[i].url+ "\" target=\"_blank\" style=\"text-decoration:none;\"  onmouseover=\"window.status='"+ google_ads[i].visible_url +"';return true\" onmouseout=\"window.status='';return true\"><span style=\";font-family: helvetica, arial, sans-serif; font-size: 11px; color:#"+indiatimes_text_color+";text-decoration:none;\">" + google_ads[i].line2 + " " + google_ads[i].line3 + "<br>" + "</span></a><a href=\"" + google_ads[i].url + "\" target=\"_blank\" style=\";font-size: 9px; font-family: helvetica, arial, sans-serif; color: #"+indiatimes_dlink_color+"; font-weight: normal;text-decoration:none;\" onmouseover=\"window.status='"+ google_ads[i].visible_url +"';return true\" onmouseout=\"window.status='';return true\">" + "" + google_ads[i].visible_url + "</a></td></tr>");
					}
				}
				document.write ("</table>");
				break;
			}
		}
	}
    document.write(s);
    return;
  }
