<!--

      /*
       * This function is required. It processes the google_ads JavaScript object,
       * which contains AFS ads relevant to the user's search query. The name of
       * this function <i>must</i> be <b>google_afs_request_done</b>. If this
       * function is not named correctly, your page will not display AFS ads.
       */

      function google_afs_request_done(google_ads)
      {
          /*
           * Verify that there are actually ads to display.
           */
          var google_num_ads = google_ads.length;
          if (google_num_ads <= 0)
          {
              return;
          }

          var wideAds = "";   // wide ad unit html text
          var narrowAds = "";   // narrow ad unit html text

          for(i = 0; i < google_num_ads; i++)
          {
              if (google_ads[i].type=="text/wide")
              {
                  // render a wide ad
                  wideAds+='<a style="text-decoration:none" onmouseover="javascript:window.status=\'' +
                          google_ads[i].url + '\';return true;" ' +
                          'onmouseout="javascript:window.status=\'\';return true;" ' +
                          'href="' + google_ads[i].url + '">' +

                          '<span class="ad_line1">' + google_ads[i].line1 + '</span></a><br>' +
                          
                          '<span class="ad_text">' + google_ads[i].line2 + '</span><br>' +
                          
                          '<div class="ad_url"><a style="text-decoration:none" onmouseover="javascript:window.status=\'' +
                          google_ads[i].url + '\';return true;" ' +
                          'onmouseout="javascript:window.status=\'\';return true;" ' +
                          'href="' + google_ads[i].url + '">' +                          
                          '' + google_ads[i].visible_url + '</a></div>';
              }

              else
              {
                  // ignore narrow ads
              }
          }

          if (narrowAds != "")
          {
              // ignore narrow ads
          }

          if (wideAds != "")
          {
              wideAds = '<div class="ad_header"><a style="text-decoration:none" ' +
                        'href="http://services.google.com/feedback/online_hws_feedback">' +
                        'Ads by Google</a></div>' + wideAds + '<br/>';
          }

          /* Write HTML for wide and narrow ads to the proper <div> elements          
          document.getElementById("narrow_ad_unit").innerHTML = narrowAds;
          */
          document.getElementById("wide_ad_unit").innerHTML = wideAds;          
      }


      google_afs_query = GetParam();
      google_afs_ad = 'w3'; // specify the number of ads that you are requesting
      google_afs_client = 'pub-1303991290747972'; // substitute your client ID
      google_afs_channel = '8995562472'; // enter your custom channel ID
      google_afs_hl = 'en'; // enter your interface language if not English
      // google_afs_ie = 'utf8'; // select input encoding scheme
      // google_afs_oe = 'utf8'; // select output encoding scheme

    -->