google_afs_client = 'pub-2510281681734270';
//google_afs_adtest = 'on';
google_afs_gl = 'us';
googleHeader = '<div class="googleLinkGrey"><a href="https://www.google.com/adsense/support/bin/request.py?contact=afs_violation" target="_blank">Ads by Google</a></div>';

function google_afs_request_done(google_ads) {  	
	var topCurCount = 0;
	var midCurCount = 0;
	var botCurCount = 0;		

	if (google_ads.length > 0) {
		for (var googleAd = 0; googleAd < google_ads.length; googleAd++) {
			if (google_ads[googleAd].type=="text/wide"){
				if(topCurCount < topCount){
					document.getElementById("googleAds_top_1").innerHTML += '<div style="padding-top:5px;"><a href="' + google_ads[googleAd].url + '" target="_blank">' + google_ads[googleAd].line1 + '</a> - <a style="color:#008000;font-size:13px;text-decoration:none;" href="' + google_ads[googleAd].url + '" target="_blank">' + google_ads[googleAd].visible_url + '</a><br /><font style="font-size:90%">' + google_ads[googleAd].line2 + '</font></div>';
					topCurCount++;
				} else if(botCurCount < botCount) {
					document.getElementById("googleAds_bot_1").innerHTML += '<div style="padding-top:5px;"><a href="' + google_ads[googleAd].url + '" target="_blank">' + google_ads[googleAd].line1 + '</a> - <a style="color:#008000;font-size:13px;text-decoration:none;" href="' + google_ads[googleAd].url + '" target="_blank">' + google_ads[googleAd].visible_url + '</a><br /><font style="font-size:90%">' + google_ads[googleAd].line2 + '</font><div>';
					botCurCount++;
				}
			}
			else{
				if(midCurCount < midCount) {
					document.getElementById("googleAds_mid_1").innerHTML += '<div class="google_ad_horiz" style="margin-top: 5px;"><a href="' + google_ads[googleAd].url + '" target="_blank">' + google_ads[googleAd].line1 + '</a><br/><span class="google_ad_line">' + google_ads[googleAd].line2 + '</span><br/><span class="google_ad_line">' + google_ads[googleAd].line3 + '</span><br/><a href="' + google_ads[googleAd].url + '" style="color: rgb(0, 128, 0); font-size: 13px; text-decoration: none;" target="_blank">' + google_ads[googleAd].visible_url + '</a></div>';
					midCurCount++;
				}
			}
		}
		if(document.getElementById("googleAds_bot_1") && topCurCount > 0)
			document.getElementById("googleAds_bot_1").innerHTML = googleHeader + document.getElementById("googleAds_bot_1").innerHTML;
		else
			document.getElementById("googleAds_bot_1").style.display = "none";
		if(document.getElementById("googleAds_top_1") && botCurCount > 0)
			document.getElementById("googleAds_top_1").innerHTML = googleHeader + document.getElementById("googleAds_top_1").innerHTML;
		else
			document.getElementById("googleAds_top_1").style.display = "none";
		if(document.getElementById("googleAds_mid_1") && midCurCount > 0)
			document.getElementById("googleAds_mid_1").innerHTML = googleHeader + document.getElementById("googleAds_mid_1").innerHTML;
		else if (document.getElementById("googleAds_mid_1")) {
			document.getElementById("googleMidBreak").style.display = "none";
			document.getElementById("googleMidAd").style.display = "none";
		}
	}
}

//'<div class="googleLinkGrey" style="padding-left: 5px;"><a href="https://www.google.com/adsense/support/bin/request.py?contact=afs_violation">Ads by Google</a></div>'