

function gfp_set_targeting() {
	//googletag.pubads().setTargeting("ct_country", "USA");
	//googletag.pubads().setTargeting("ct_section", "frontpage");
} 

var gfp_tagging_async = true;
		if (gfp_tagging_async) {
				var googletag = googletag || {};
				googletag.cmd = googletag.cmd || [];
				(function() {
				var gads = document.createElement('script');
				gads.async = true;
				gads.type = 'text/javascript';
				var useSSL = 'https:' == document.location.protocol;
				gads.src = (useSSL ? 'https:' : 'http:') + 
				'//www.googletagservices.com/tag/js/gpt.js';
				var node = document.getElementsByTagName('script')[0];
				node.parentNode.insertBefore(gads, node);
				})();
		}
		else {//non async
				(function() {
						var useSSL = 'https:' == document.location.protocol;
						var src = (useSSL ? 'https:' : 'http:') +
								'//www.googletagservices.com/tag/js/gpt.js';
						document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>');
						'//www.googletagservices.com/tag/js/gpt.js';
				})();
		}

		function gfp_define_slots() {
			googletag.defineSlot('/1028362/worldgolf.com_top_728x90', [728, 90], 'worldgolf.com_top_728x90').addService(googletag.pubads());
googletag.defineSlot('/1028362/worldgolf.com_right_300x250', [300, 250], 'worldgolf.com_right_300x250').addService(googletag.pubads());
googletag.defineSlot('/1028362/worldgolf.com_right_300x100', [300, 100], 'worldgolf.com_right_300x100').addService(googletag.pubads());
googletag.defineSlot('/1028362/worldgolf.com_bottom_728x90', [728, 90], 'worldgolf.com_bottom_728x90').addService(googletag.pubads());
		}


		if (gfp_tagging_async) { //async
				googletag.cmd.push(function() {
						gfp_define_slots();
						gfp_set_targeting();
						googletag.pubads().enableSingleRequest();
						googletag.pubads().collapseEmptyDivs();
						googletag.enableServices();
				});
		}
		else  { //sync
				gfp_define_slots();
				gfp_set_targeting();
				googletag.pubads().enableSyncRendering();
				googletag.pubads().enableSingleRequest();
				googletag.pubads().collapseEmptyDivs();
				googletag.enableServices();
		}


	function gfp_show_ad(ad_name) {
		if (gfp_tagging_async) { googletag.cmd.push(function() { googletag.display(ad_name); }); }
		else { googletag.display(ad_name); }
	}

	function OAS_AD(where) {
			//adaptor from 24/7 slots to GFP slots
			if (where == 'Top') { 
				document.write("<div id='worldgolf.com_top_728x90' style='width:728px; height:90px;' class='gfp_banner2'>");
				gfp_show_ad("worldgolf.com_top_728x90"); 
				document.write("</div>");
				return ; 
			}
			if (where == 'Right') { 
				document.write("<div id='worldgolf.com_right_300x250' style='width:300px; height:250px;' class='gfp_banner2'>");
				gfp_show_ad("worldgolf.com_right_300x250"); 
				document.write("</div><br/>");
				document.write("<div id='worldgolf.com_right_300x100' style='width:300px; height:100px;' class='gfp_banner2'>");
				gfp_show_ad("worldgolf.com_right_300x100"); 
				document.write("</div>");
				return ; 
			}
			if (where == 'Bottom') { 
				document.write("<div id='worldgolf.com_bottom_728x90' style='width:728px; height:90px;' class='gfp_banner2'>");
				gfp_show_ad("worldgolf.com_bottom_728x90"); 
				document.write("</div>");
				return ; 
			}
	}

