<script async='async' src='https://www.googletagservices.com/tag/js/gpt.js'></script>
<script>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
</script>
<script type='text/javascript'>
googletag.cmd.push(function() {
var mappingRCheader = googletag.sizeMapping().
addSize([1100, 0 ], [728, 90]).
addSize([750, 0 ], [[468, 60], [320, 50], [300, 50]]).
addSize([0, 0 ], [[320, 50], [300, 50]]).
build();
var mappingRCfooter = googletag.sizeMapping().
addSize([1100, 0 ], [[728, 90], [970, 90], [970, 250]]).
addSize([850, 0 ], [[468, 60], [300, 100], [320, 100], [320,50], [300, 50]]).
addSize([0, 0 ], [[300, 100], [320, 100], [320,50], [300, 50]]).
build();
var mappingRCsidebarbottom = googletag.sizeMapping().
addSize([1100, 0 ], [[300, 600], [160, 600], [300, 250], [120, 600]]).
addSize([850, 0 ], [300, 250]).
addSize([0, 0 ], []).
build();
var mappingRCsidebartop = googletag.sizeMapping().
addSize([850, 0 ], [300, 250]).
addSize([0, 0 ], [[300, 250], [300, 100]]).
build();
var mappingRCinline = googletag.sizeMapping().
addSize([1100, 0 ], [728, 90]).
addSize([850, 0 ], [[468, 60], [320, 50], [300, 50]]).
addSize([0, 0 ], [[320, 50], [300, 50]]).
build();
googletag.defineSlot('/100xxxx/RC-Footer', [[320, 100], [300, 100], [320,50], [300, 50], [468, 60], [970, 250], [970,50], [728, 90]], 'div-gpt-ad-12345678-0').defineSizeMapping(mappingRCfooter).addService(googletag.pubads());
googletag.defineSlot('/100xxxx/RC_160-T1', [[300, 600], [160, 600], [300, 250], [120, 600]], 'div-gpt-ad-12345678-1').defineSizeMapping(mappingRCsidebarbottom).addService(googletag.pubads());
googletag.defineSlot('/100xxxx/RC_300-T1', [[300, 250], [300, 100]], 'div-gpt-ad-12345678-2').addService(googletag.pubads());
<xen:if is="{$contentTemplate} == 'member_view'">googletag.defineSlot('/1004256/RC_ad_member_view_below_avatar_180x150', [180, 150], 'div-gpt-ad-12345678-3').addService(googletag.pubads());</xen:if>
googletag.defineSlot('/100xxxx/RC_header728-T1', [[320, 50],[300, 50], [468, 60], [728, 90]], 'div-gpt-ad-12345678-4').defineSizeMapping(mappingRCheader).addService(googletag.pubads());
<xen:if is="in_array({$contentTemplate}, array('thread_view', 'forum_view'))">googletag.defineSlot('/100xxxx/RC_Inline', [[300, 50], [320, 50], [468, 60], [728, 90]], 'div-gpt-ad-12345678-0').defineSizeMapping(mappingRCinline).addService(googletag.pubads());</xen:if>
googletag.pubads().setTargeting("VisitorID", "{$visitor.user_id}");
googletag.pubads().setTargeting("Template", "{$contentTemplate}");
googletag.pubads().setTargeting("ForumID", "{$forum.node_id}");
googletag.pubads().setTargeting("ParentID", "{$forum.parent_node_id}");
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>