﻿google_ad_client = 'ca-penton_js'; // substitute your client_id
google_ad_channel = 'windows'; // This needs to be set
google_ad_output = 'js';
google_max_num_ads = '4'; // This needs to be set
google_page_url = 'sourceaviation.com';
google_language = '';
google_encoding = 'utf8';
google_safe = 'high';
google_adtest = 'off'; // This needs to be set...set to 'off' when going live
google_hints = '';
google_kw = '';
google_kw_type = '';
google_contents = '';
google_ad_section = 'default';
function google_ad_request_done(google_ads) {
    var s = '';
    var i;

    if (google_ads.length == 0) { return; }

    if (google_ads[0].type == "image") {
        s += '<a href="' + google_ads[0].url + '" target="_top" title="go to ' + google_ads[0].visible_url + '">';
        s += '<img border="0" src="' + google_ads[0].image_url + ' "width="' + google_ads[0].image_width + '" height="' + google_ads[0].image_height + '">';
        s += '</a>';
    } else {
        s += '<table class="google_base" cellpadding="0" cellspacing="5" >';
        s += '<tr><td class="google_header" colspan="' + google_ads.length + '">Ads by Google</td></tr>';        
        s += '<tr style="background-color: #cccccc;">';
        for(i=0; i < google_ads.length; ++i) {
            s += '<td class="google_item" width="' + 100/google_ads.length + '%" valign="top" style="width: 210px;">';
            s += '<a target="_blank" href="' + google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' + google_ads[i].visible_url + '\'" >';
            s += '<div class="google_line1">' + google_ads[i].line1 + '</div>';
            s += '<div class="google_line2">' + google_ads[i].line2 + google_ads[i].line3 + '</div>';
            s += '<div class="google_line3">' + google_ads[i].visible_url + '</div></a>';
            s += '</td>';
        }
        s += '</tr>';
        s += '</table>';
    }
    document.write(s);
    return;
}
document.write('<link href="~/CSS/google.css" rel="stylesheet" rev="text/css" />');
document.write('<script language="JavaScript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
