﻿  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 (google_ads[0].type == "text") {
      s += '<h4><a href="http://www.hir24.hu/info/felhasznalasi-feltetelek/" title="Szponzor&aacute;lt hirdet&eacute;sek">Szponzor&aacute;lt hirdet&eacute;sek</a></h4>';

      if (google_ads.length == 1) {
    
         /*
         * Partners should adjust text sizes
         * so ads occupy the majority of ad space.
         */
     
         s += 
           '<h5><a href="' + google_ads[0].url + '" ' +
         'onmouseout="window.status=\'\'" ' +
          'onmouseover="window.status=\'go to ' +
          google_ads[0].visible_url + '\';return true;" ' +
           '><span>' + google_ads[0].line1 + '</span> &raquo;</a></h5>' + 
           '<span>' +
           google_ads[0].line2 + ' ' +
           google_ads[0].line3 + '</span>' +
           '<a href="' + google_ads[0].url + '" ' +
         'onmouseout="window.status=\'\'" ' +
          'onmouseover="window.status=\'go to ' +
          google_ads[0].visible_url + '\';return true;" ' +
           '><b>' + google_ads[0].visible_url + '</b></a><br />';
        } 
        else if (google_ads.length > 1) {
         /*
         * For text ads, append each ad to the string.
         */
            for (i = 0; i < google_ads.length; ++i) {
                s += '<br />' +
             '<h5><a href="' + google_ads[i].url + '" ' +
           'onmouseout="window.status=\'\'" ' +
            'onmouseover="window.status=\'go to ' +
            google_ads[i].visible_url + '\';return true;" ' +
             '><span>' + google_ads[i].line1 + '</span> &raquo;</a></h5>' +
             '<span>' +
             google_ads[i].line2 + ' ' +
             google_ads[i].line3 + '</span>' +
             '<a href="' + google_ads[i].url + '" ' +
           'onmouseout="window.status=\'\'" ' +
            'onmouseover="window.status=\'go to ' +
            google_ads[i].visible_url + '\';return true;" ' +
             '><b>' + google_ads[i].visible_url + '</b></a><br/>';
            }
        }
       }
    document.write(s);
    return;
  }
