/* Setup variables for Google Ads */
/*google_ad_client = "partner_js"; // substitute your client_id (pub-#)
google_ad_channel = "12345678";*/
google_ad_client = "pub-6534286805760700";
google_ad_channel = "3422392804";
google_ad_output = "js";
google_ad_type = "text";
google_feedback = "on";
google_max_num_ads = "4";



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 = '<table class="adBlock"><tr>';
var i;

/*
* Verify that there are actually ads to display.
*/
if (google_ads.length == 0) {
return;
}


if (google_ads.length == 1) {
/*
* Partners should adjust text sizes
* so ads occupy the majority of ad space.
*/
s += '<td><a class="title" href="' + 
google_ads[0].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'http://' +
google_ads[0].visible_url + '\';return true">' + 
google_ads[0].line1 + '</a><br><span class="text">' +
google_ads[0].line2 + ' ' +
google_ads[0].line3 + '<br></span> <a class="url" href="' + 
google_ads[0].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'http://' +
google_ads[0].visible_url + '\';return true">' + 
google_ads[0].visible_url + '</a></td';



} else if (google_ads.length > 1) {

   s += '<a href=\"' + google_info.feedback_url + '\" class="adsBy">Ads by Google</a><br>' 

  /*
  * For text ads, append each ad to the string.
  */

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


s += '<td><a class="title" href="' + 
google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'http://' +
google_ads[i].visible_url + '\';return true">' + 
google_ads[i].line1 + '</a><br><span class="text">' +
google_ads[i].line2 + ' ' +
google_ads[i].line3 + '<br></span> <a class="url" href="' + 
google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'http://' +
google_ads[i].visible_url + '\';return true">' + 
google_ads[i].visible_url + '</a></td>';
}
    }

s += '</tr></table>'

    document.write(s);
    return;
  }
