window._site.forumUser = "1kgcoffee"; if ( window._kmq ) { window._kmq.push( ['identify', window._site.forumUser] ); } $(document).ready( function () { window._site.dynamicLoaded(); } ); window._site.csrfToken = '7eef33c8e5092653177ee1f16cf8e5c612c5cee4fcea5f0a'; function dtAds() { var loaded = false; var headerAd = true; if (window.ethicalads) { ethicalads.wait.then(function (placements) { if (headerAd) { $('div.fw-header').addClass('ad'); } if (! placements.length) { $('div.ad').html('
'); } }); } else { $('div.ad').html(''); } var run = function () { if (! loaded && $(window).width() >= 860) { if (window.ethicalads) { ethicalads.load(); loaded = true; } } } if ($('div.page-nav').length && $('div.page-nav').is(':visible')) { $('div.nav-ad').children() .attr('id', 'ad-fixed-nav') .prependTo('div.page-nav'); headerAd = false; } else if ($('div.fw-sidebar').length) { $('div.nav-ad').children() .attr('id', 'ad-forum-nav') .prependTo('div.fw-sidebar div.sidebar'); headerAd = false; return; // disable } else { $('div.nav-ad').children() .attr('id', 'ad-header'); } $(window).on('resize', function (){ run(); }); // Will run immediately if already loaded $(document).ready(function() { run(); }); }