  // 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("<div class=\"googleadbox_453\">");
 
    // Print "Ads By Google" -- include link to Google feedback page if available
    document.write("<div class=\"adsbygoogle\">Kitchen &amp; Bath Design News Marketplace - ");
    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("</div>");  
  
    // 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("<div class=\"googleadtitle\">&raquo; " +
          "<a href=\"" +  google_ads[i].url + "\">" +
          google_ads[i].line1 + "</a></div>" +
		  "<div class=\"googleadteaser\">" +
          "<a href=\"" +  google_ads[i].url + "\">" +
          google_ads[i].line2 + " " +
          google_ads[i].line3 +
          "</a></div>"); 
      }
    }

    // For an image ad, display the image; there will be only one .
    if (google_ads[0].type == 'image') {
      document.write("<div class=\"googleimgad\">" +
        "<a href=\"" + google_ads[0].url + "\">" +
        "<img src=\"" + google_ads[0].image_url + 
        "\" height=\"" + google_ads[0].height + 
        "\" width=\"" + google_ads[0].width +
        "\" border=\"0\"></a></div>");
    }

    // Finish up anything that needs finishing up
    document.write ("</div>");
  }