﻿//<![CDATA[

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 an image ad is returned, display that ad.
	* Otherwise, build a string containing all of the ads and
	* then use a document.write() command to print that string.
	*/

	if (google_ads[0].type != "image") {
		var objTitle = document.getElementById("googleAdsTitle");
		objTitle.onclick = Function("window.open(\"" + google_info.feedback_url + "\")");
		
		var obj = document.getElementById("googleAds");
		var oDt, oDd, oStrong, oSpan, oA;

		if (google_ads.length == 0)
			document.getElementById("googleAdsTitle").style.visibility = "hidden";
		else
			for (i = 0; i < google_ads.length; ++i) {
				oDt = obj.appendChild(document.createElement("dt"));

				oA = oDt.appendChild(document.createElement("a"));
				oA.href = google_ads[i].url.replace(/&amp;/g, "&");
				oA.target = "_blank";
				
				oStrong = oA.appendChild(document.createElement("strong"));
				oStrong.innerHTML = google_ads[i].line1;
				
				oSpan = oA.appendChild(document.createElement("span"));
				oSpan.innerHTML = google_ads[i].visible_url;
				
				oDd = obj.appendChild(document.createElement("dd"));
				oDd.innerHTML = google_ads[i].line2 + google_ads[i].line3
			}
    }
	return;
}

google_ad_client = "pub-3385994974258586";  // substitute your client_id (pub-#)
google_ad_channel = "0288656060";

google_ad_output = "js";
google_ad_channel = "";
//google_ad_type = "text";
google_ad_type = "text_image";
google_max_num_ads = '3';

google_image_size = "468x60";
google_feedback = "on";

//]]>