
// This function displays the ad results.
// It must be defined above the script that calls show_ads.js
// to guarantee that it is defined when show_ads.js makes the call-back.

  function google_ad_request_done(google_ads) {

    // Proceed only if we have ads to display!
    if (google_ads.length < 1 )
      return;

    // Display ads in a table
       document.write("<table cellpadding=\"3\" width=\"5%\" align=\"right\" bgcolor=\"#eeeeff\">");
 
    // Print "Ads By Google" -- include link to Google feedback page if available
    document.write("<tr><td align=\"center\"><font color=\"#6f6f6f\" size=\"-2\">");
    if (google_info.feedback_url) {
      document.write("<a href=\"" + google_info.feedback_url + 
        "\">Ads by Google</a>");
    } else {
      document.write("Ads By Google");
    }
    document.write("</font></td></tr>");  
  
    // For text ads, display each ad in turn.
    // In this example, each ad goes in a new row in the table.
    if (google_ads[0].type == 'text') {
      for(i = 0; i < google_ads.length; ++i) {
        document.write("<tr><td nowrap><font size=\"-1\">" +
          "<a href=\"" +  google_ads[i].url + "\">" +
          google_ads[i].line1 + "</a><br>" +
	    "<a href=\"" +  google_ads[i].url + "\">" +
          google_ads[i].line2 + "<br>" +
          google_ads[i].line3 + "</a><br>" + 
          "<a href=\"" + google_ads[i].url + "\">" + 
          "<font color=\"green\" size=\"-2\">" +
          google_ads[i].visible_url +
          "</a></font></td></tr>"); 
      }
    }

    // For an image ad, display the image; there will be only one .
    if (google_ads[0].type == 'image') {
      document.write("<tr><td align=\"center\">" +
        "<a href=\"" + google_ads[0].url + "\"style=\"text-decoration: none\">" +
        "<img src=\"" + google_ads[0].image_url + 
        "\" height=\"" + google_ads[0].height + 
        "\" width=\"" + google_ads[0].width +
        "\" border=\"0\"></a></td></tr>");
    }

    // Finish up anything that needs finishing up
    document.write ("</table>");
  }



// This script sets the attributes for requesting ads.
google_ad_client = "pub-7447756575732232";         
google_ad_output = "js";  
google_feedback = "on";       
google_max_num_ads = 4;         
google_ad_type  = "text_image";  
google_ad_channel ="9714865370";   

