/************ * Google AFC *************/ /* * Define required globals */ // Content for site targeted ads var gafcOniAd; var gafcOasuText = "Advertise through Google AdWords on this Site."; // Google params var google_ad_client = 'ca-ottaway-medford_js'; var google_ad_output = 'js'; var google_ad_type = 'text,image,flash'; var google_max_num_ads = '3'; var google_image_size='300x250'; var google_encoding = 'latin1'; var google_language = 'en'; var google_safe = 'high'; // Query string object var gQs = new Querystring(); function google_ad_request_done(google_ads) { if(typeof(google_ads) != "undefined" && google_ads.length > 0) { gafcOniAd = new Object(); gafcOniAd.type = google_ads[0].bidtype; if (google_ads[0].type == "flash") { // we have to remove the .swf extension from the URL for use in theAC_FL_RUNContent method var flashUrlNoExt = google_ad.image_url.replace(/\.swf\?/i,"?"); gafcOniAd.content = '
'; } else if (google_ads[0].type == "image") { gafcOniAd.content = ''; } else { if (google_ads.length == 1) { var adBeginLink = ''; var adEndLink = ""; //Adjust text sizes when 1 ad is returned. gafcOniAd.content= '