  <!--

  // 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) {
	
	var tcolors = ["000000","3E3B30","000000","696969"];
	var bcolors = ["d1d1d1","000000","768F5A","000000"];
	var headingcolors = ["ffffff","ffffff","ffffff","ffffff"];
	var fontcolors = ["d1d1d1","fffafa","AECCEB","ffffff"];
	var urlcolors = ["778899","9acd32","2F4F4F","ffffff"];
	var googlecolors = ["d1d1d1","ffffff","d1d1d1","000000"];

	var choice = Math.floor(Math.random()*4);
	
	choice = 0;
	
	// Proceed only if we have ads to display!
    if (google_ads.length < 1 )
      return;

    // Display ads in a table
    document.write("<table bgcolor=\"#"+bcolors[choice]+"\" cellpadding=\"1\" cellspacing=\"0\" width=\"100%\" align=\"center\"><tr><td><table cellpadding=\"3\" cellspacing=\"0\" width=\"100%\" align=\"center\" bgcolor=\"#"+tcolors[choice]+"\" border=\"0\" bordercolor=\"#ffffff\">");

     // 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 align=\"left\">" +
          "<a href=\"" +  google_ads[i].url + "\"><font size=\"-1\" color=\"#"+headingcolors[choice]+"\"><strong><u>" +
          google_ads[i].line1 + "</u></strong></font></a><br>" +
	    "<a href=\"" +  google_ads[i].url + "\"> <font size=\"-2\" color=\"#"+fontcolors[choice]+"\">" +
          google_ads[i].line2 + " " +
          google_ads[i].line3 + "</font></a><br>" + 
          "<a href=\"" + google_ads[i].url + "\">" + 
          "<font color=\"#"+urlcolors[choice]+"\" size=\"-2\">" +
          google_ads[i].visible_url +
          "</a></font></td></tr>"); 
		   document.write("<tr><td height=\"5\"></td></tr>");
      }
    }
	
	 // Print "Ads By Google" -- include link to Google feedback page if available
    document.write("<tr><td align=\"right\">");
    if (google_info.feedback_url) {
      document.write("<a href=\"" + google_info.feedback_url + 
        "\"><font color=\"#"+googlecolors[choice]+"\" size=\"-3\" face=\"tahoma\"><u>Ads by Google</u></font></a>");
    } else {
      document.write("<font color=\""+googlecolors[choice]+"\" size=\"-3\" face=\"tahoma\"><u>Ads By Google</u></font>");
    }
    document.write("</td></tr>");  

    // Finish up anything that needs finishing up
    document.write ("</table></td></tr></table>");
  }

  -->
