// Start Google

function google_ad_request_done(google_ads) {  

	if (google_ads.length > 0) {

          var wideAds = "";   // wide ad unit html text
          var wideAds1 = "";   // wide ad unit html text

	  for(var i = 0; i < google_ads.length; ++i) {

		if (i <= 1) {
 	         // render a wide ad
                  wideAds+='<a onmouseover="javascript:window.status=\'' +
                          google_ads[i].url + '\';return true;" ' +
                          'onmouseout="javascript:window.status=\'\';return true;" ' +
                          'href="' + google_ads[i].url + '"><u>' +

                          '<span class="ad_line1">' + google_ads[i].line1 + '</span></u></a><br>' +
                          
                          '' + google_ads[i].line2 + ' ' + google_ads[i].line3 + '<br>' +
                          
                          '<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><br><br>';
             }

// new

               if (i > 1 && i < 7)
                {   
 	         // render a wide ad
                  wideAds1+='<a onmouseover="javascript:window.status=\'' +
                          google_ads[i].url + '\';return true;" ' +
                          'onmouseout="javascript:window.status=\'\';return true;" ' +
                          'href="' + google_ads[i].url + '"><u>' +

                          '<span class="ad_line1">' + google_ads[i].line1 + '</span></u></a><br>' +
                          
                          '' + google_ads[i].line2 + ' ' + google_ads[i].line3 + '<br>' +
                          
                          '<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><br><br>';
              }

// new

	 }

    }

          if (wideAds != "")
          {
              wideAds = '<span style="text-align:left"><a class="ad_header" href=\"' + google_info.feedback_url + '\">Ads by Google</a></span><hr size="1">' + wideAds;
          }

          if (wideAds1 != "") { 
              wideAds1 = '<span style="text-align:left"><a class="ad_header" href=\"' + google_info.feedback_url + '\">Ads by Google</a></span><hr size="1">' + wideAds1;
          }

          // Write HTML for wide and narrow ads to the proper <div> elements
          document.getElementById("wide_ad_unit1").innerHTML = wideAds;
          document.getElementById("wide_ad_unit").innerHTML = wideAds1;

}

// END Google
