var googletag     = googletag || {};
    googletag.cmd = googletag.cmd || [];
 
var PB        = PB || {};
    PB.gptAds = PB.gptAds || {};

var footer = null; 
 
/*
  ====================================================================================
  Init: before DOM is loaded
  ====================================================================================
*/
(function(callable) {
 
    // Load GPT library
    (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);
    })();
 
    // Disable initial load
    
    // Define Ad slots
                                                (function(){
            googletag.cmd.push(function() {
                /*Initialization for slot: 728x90 / BB+*/
                                        adSlot = googletag.defineSlot('/4403/cr/sherdog/forums', [[970, 250],[970, 90],[728, 90]], 'forums_9877').addService(googletag.pubads()).setTargeting("pos", "a").setTargeting("site", "cr/sherdog").setTargeting("sect", "forums");

                    scriptObj = document.getElementById('evolveUniversal');
                    if (scriptObj) {
                        var customTargets = Array.prototype.filter.call(scriptObj.attributes, function(at) { return /^data-targeting-/.test(at.name); });
                        for (i = 0; i < customTargets.length; i++) {
                            adSlot.setTargeting(customTargets[i].name.substr("data-targeting-".length), customTargets[i].value);
                        }

                        var sizemap = scriptObj.attributes.getNamedItem('data-sizemap-9877');
                        if (sizemap) {
                            var mapping = googletag.sizeMapping();
                            var sizemaps = sizemap.value.split('|')
                            for (i = 0; i < sizemaps.length; i++) {
                                eval("mapping.addSize(" + sizemaps[i] + ");");
                            }
                            mapping = mapping.build();
                            adSlot.defineSizeMapping(mapping);
                        }
                    }

                    PB.gptAds['forums_9877'] = adSlot;

                    googletag.pubads().enableSingleRequest();
                    googletag.pubads().disableInitialLoad();
                    googletag.pubads().collapseEmptyDivs(true);
                    googletag.enableServices();
            });
        })();
                                                    (function(){
            googletag.cmd.push(function() {
                /*Initialization for slot: 728x90*/
                                        adSlot = googletag.defineSlot('/4403/cr/sherdog/forums', [[728, 90]], 'forums_9875').addService(googletag.pubads()).setTargeting("pos", "a").setTargeting("site", "cr/sherdog").setTargeting("sect", "forums");

                    scriptObj = document.getElementById('evolveUniversal');
                    if (scriptObj) {
                        var customTargets = Array.prototype.filter.call(scriptObj.attributes, function(at) { return /^data-targeting-/.test(at.name); });
                        for (i = 0; i < customTargets.length; i++) {
                            adSlot.setTargeting(customTargets[i].name.substr("data-targeting-".length), customTargets[i].value);
                        }

                        var sizemap = scriptObj.attributes.getNamedItem('data-sizemap-9875');
                        if (sizemap) {
                            var mapping = googletag.sizeMapping();
                            var sizemaps = sizemap.value.split('|')
                            for (i = 0; i < sizemaps.length; i++) {
                                eval("mapping.addSize(" + sizemaps[i] + ");");
                            }
                            mapping = mapping.build();
                            adSlot.defineSizeMapping(mapping);
                        }
                    }

                    PB.gptAds['forums_9875'] = adSlot;

                    googletag.pubads().enableSingleRequest();
                    googletag.pubads().disableInitialLoad();
                    googletag.pubads().collapseEmptyDivs(true);
                    googletag.enableServices();
            });
        })();
                                                    (function(){
            googletag.cmd.push(function() {
                /*Initialization for slot: 600x300*/
                                        adSlot = googletag.defineSlot('/4403/cr/sherdog/forums', [[600, 300]], 'forums_25645').addService(googletag.pubads()).setTargeting("pos", "a").setTargeting("site", "cr/sherdog").setTargeting("sect", "forums");

                    scriptObj = document.getElementById('evolveUniversal');
                    if (scriptObj) {
                        var customTargets = Array.prototype.filter.call(scriptObj.attributes, function(at) { return /^data-targeting-/.test(at.name); });
                        for (i = 0; i < customTargets.length; i++) {
                            adSlot.setTargeting(customTargets[i].name.substr("data-targeting-".length), customTargets[i].value);
                        }

                        var sizemap = scriptObj.attributes.getNamedItem('data-sizemap-25645');
                        if (sizemap) {
                            var mapping = googletag.sizeMapping();
                            var sizemaps = sizemap.value.split('|')
                            for (i = 0; i < sizemaps.length; i++) {
                                eval("mapping.addSize(" + sizemaps[i] + ");");
                            }
                            mapping = mapping.build();
                            adSlot.defineSizeMapping(mapping);
                        }
                    }

                    PB.gptAds['forums_25645'] = adSlot;

                    googletag.pubads().enableSingleRequest();
                    googletag.pubads().disableInitialLoad();
                    googletag.pubads().collapseEmptyDivs(true);
                    googletag.enableServices();
            });
        })();
                                                    (function(){
            googletag.cmd.push(function() {
                /*Initialization for slot: Mobile*/
                                        adSlot = googletag.defineSlot('/4403/cr/sherdog/forums', [[320, 150],[320, 100],[320, 50]], 'forums_9867').addService(googletag.pubads()).setTargeting("pos", "a").setTargeting("site", "cr/sherdog").setTargeting("sect", "forums");

                    scriptObj = document.getElementById('evolveUniversal');
                    if (scriptObj) {
                        var customTargets = Array.prototype.filter.call(scriptObj.attributes, function(at) { return /^data-targeting-/.test(at.name); });
                        for (i = 0; i < customTargets.length; i++) {
                            adSlot.setTargeting(customTargets[i].name.substr("data-targeting-".length), customTargets[i].value);
                        }

                        var sizemap = scriptObj.attributes.getNamedItem('data-sizemap-9867');
                        if (sizemap) {
                            var mapping = googletag.sizeMapping();
                            var sizemaps = sizemap.value.split('|')
                            for (i = 0; i < sizemaps.length; i++) {
                                eval("mapping.addSize(" + sizemaps[i] + ");");
                            }
                            mapping = mapping.build();
                            adSlot.defineSizeMapping(mapping);
                        }
                    }

                    PB.gptAds['forums_9867'] = adSlot;

                    googletag.pubads().enableSingleRequest();
                    googletag.pubads().disableInitialLoad();
                    googletag.pubads().collapseEmptyDivs(true);
                    googletag.enableServices();
            });
        })();
                                                    (function(){
            googletag.cmd.push(function() {
                /*Initialization for slot: 300x250 / 300x600 / 300x1050*/
                                        adSlot = googletag.defineSlot('/4403/cr/sherdog/forums', [[300, 1050],[300, 600],[300, 250]], 'forums_9881').addService(googletag.pubads()).setTargeting("pos", "a").setTargeting("site", "cr/sherdog").setTargeting("sect", "forums");

                    scriptObj = document.getElementById('evolveUniversal');
                    if (scriptObj) {
                        var customTargets = Array.prototype.filter.call(scriptObj.attributes, function(at) { return /^data-targeting-/.test(at.name); });
                        for (i = 0; i < customTargets.length; i++) {
                            adSlot.setTargeting(customTargets[i].name.substr("data-targeting-".length), customTargets[i].value);
                        }

                        var sizemap = scriptObj.attributes.getNamedItem('data-sizemap-9881');
                        if (sizemap) {
                            var mapping = googletag.sizeMapping();
                            var sizemaps = sizemap.value.split('|')
                            for (i = 0; i < sizemaps.length; i++) {
                                eval("mapping.addSize(" + sizemaps[i] + ");");
                            }
                            mapping = mapping.build();
                            adSlot.defineSizeMapping(mapping);
                        }
                    }

                    PB.gptAds['forums_9881'] = adSlot;

                    googletag.pubads().enableSingleRequest();
                    googletag.pubads().disableInitialLoad();
                    googletag.pubads().collapseEmptyDivs(true);
                    googletag.enableServices();
            });
        })();
                                                    (function(){
            googletag.cmd.push(function() {
                /*Initialization for slot: 300x250*/
                                        adSlot = googletag.defineSlot('/4403/cr/sherdog/forums', [[300, 250]], 'forums_12385').addService(googletag.pubads()).setTargeting("pos", "a").setTargeting("site", "cr/sherdog").setTargeting("sect", "forums");

                    scriptObj = document.getElementById('evolveUniversal');
                    if (scriptObj) {
                        var customTargets = Array.prototype.filter.call(scriptObj.attributes, function(at) { return /^data-targeting-/.test(at.name); });
                        for (i = 0; i < customTargets.length; i++) {
                            adSlot.setTargeting(customTargets[i].name.substr("data-targeting-".length), customTargets[i].value);
                        }

                        var sizemap = scriptObj.attributes.getNamedItem('data-sizemap-12385');
                        if (sizemap) {
                            var mapping = googletag.sizeMapping();
                            var sizemaps = sizemap.value.split('|')
                            for (i = 0; i < sizemaps.length; i++) {
                                eval("mapping.addSize(" + sizemaps[i] + ");");
                            }
                            mapping = mapping.build();
                            adSlot.defineSizeMapping(mapping);
                        }
                    }

                    PB.gptAds['forums_12385'] = adSlot;

                    googletag.pubads().enableSingleRequest();
                    googletag.pubads().disableInitialLoad();
                    googletag.pubads().collapseEmptyDivs(true);
                    googletag.enableServices();
            });
        })();
                                                    (function(){
            googletag.cmd.push(function() {
                /*Initialization for slot: 300x250 B*/
                                        adSlot = googletag.defineSlot('/4403/cr/sherdog/forums', [[300, 250]], 'forums_14017').addService(googletag.pubads()).setTargeting("pos", "b").setTargeting("site", "cr/sherdog").setTargeting("sect", "forums");

                    scriptObj = document.getElementById('evolveUniversal');
                    if (scriptObj) {
                        var customTargets = Array.prototype.filter.call(scriptObj.attributes, function(at) { return /^data-targeting-/.test(at.name); });
                        for (i = 0; i < customTargets.length; i++) {
                            adSlot.setTargeting(customTargets[i].name.substr("data-targeting-".length), customTargets[i].value);
                        }

                        var sizemap = scriptObj.attributes.getNamedItem('data-sizemap-14017');
                        if (sizemap) {
                            var mapping = googletag.sizeMapping();
                            var sizemaps = sizemap.value.split('|')
                            for (i = 0; i < sizemaps.length; i++) {
                                eval("mapping.addSize(" + sizemaps[i] + ");");
                            }
                            mapping = mapping.build();
                            adSlot.defineSizeMapping(mapping);
                        }
                    }

                    PB.gptAds['forums_14017'] = adSlot;

                    googletag.pubads().enableSingleRequest();
                    googletag.pubads().disableInitialLoad();
                    googletag.pubads().collapseEmptyDivs(true);
                    googletag.enableServices();
            });
        })();
                                                    (function(){
            googletag.cmd.push(function() {
                /*Initialization for slot: 160x600*/
                                        adSlot = googletag.defineSlot('/4403/cr/sherdog/forums', [[160, 600]], 'forums_9885').addService(googletag.pubads()).setTargeting("pos", "a").setTargeting("site", "cr/sherdog").setTargeting("sect", "forums");

                    scriptObj = document.getElementById('evolveUniversal');
                    if (scriptObj) {
                        var customTargets = Array.prototype.filter.call(scriptObj.attributes, function(at) { return /^data-targeting-/.test(at.name); });
                        for (i = 0; i < customTargets.length; i++) {
                            adSlot.setTargeting(customTargets[i].name.substr("data-targeting-".length), customTargets[i].value);
                        }

                        var sizemap = scriptObj.attributes.getNamedItem('data-sizemap-9885');
                        if (sizemap) {
                            var mapping = googletag.sizeMapping();
                            var sizemaps = sizemap.value.split('|')
                            for (i = 0; i < sizemaps.length; i++) {
                                eval("mapping.addSize(" + sizemaps[i] + ");");
                            }
                            mapping = mapping.build();
                            adSlot.defineSizeMapping(mapping);
                        }
                    }

                    PB.gptAds['forums_9885'] = adSlot;

                    googletag.pubads().enableSingleRequest();
                    googletag.pubads().disableInitialLoad();
                    googletag.pubads().collapseEmptyDivs(true);
                    googletag.enableServices();
            });
        })();
                                                    (function(){
                googletag.cmd.push(function() {
                    /*Initialization for forums out of page slot*/ 
                                        adSlot = googletag.defineOutOfPageSlot('/4403/cr/sherdog/forums', 'forums_adoop').addService(googletag.pubads()).setTargeting("site", "cr/sherdog").setTargeting("sect", "forums");
                    scriptObj = document.getElementById('evolveUniversal');
                    if (scriptObj) {
                        var customTargets = Array.prototype.filter.call(scriptObj.attributes, function(at) { return /^data-targeting-/.test(at.name); });
                        for (i = 0; i < customTargets.length; i++) {
                            adSlot.setTargeting(customTargets[i].name.substr("data-targeting-".length), customTargets[i].value);
                        }

                        var sizemap = scriptObj.attributes.getNamedItem('data-sizemap-9857');
                        if (sizemap) {
                            var mapping = googletag.sizeMapping();
                            var sizemaps = sizemap.value.split('|')
                            for (i = 0; i < sizemaps.length; i++) {
                                eval("mapping.addSize(" + sizemaps[i] + ");");
                            }
                            mapping = mapping.build();
                            adSlot.defineSizeMapping(mapping);
                        }
                    }

                    PB.gptAds['forums_adoop'] = adSlot;

                    googletag.pubads().enableSingleRequest();
                    googletag.pubads().disableInitialLoad();
                    googletag.pubads().collapseEmptyDivs(true);
                    googletag.enableServices();
                });
        })();
                                                                        (function(){
            googletag.cmd.push(function() {
                /*Initialization for slot: 728x90*/
                                        adSlot = googletag.defineSlot('/4403/cr/sherdog/home', [[728, 90]], 'home_9887').addService(googletag.pubads()).setTargeting("pos", "a").setTargeting("site", "cr/sherdog").setTargeting("sect", "home");

                    scriptObj = document.getElementById('evolveUniversal');
                    if (scriptObj) {
                        var customTargets = Array.prototype.filter.call(scriptObj.attributes, function(at) { return /^data-targeting-/.test(at.name); });
                        for (i = 0; i < customTargets.length; i++) {
                            adSlot.setTargeting(customTargets[i].name.substr("data-targeting-".length), customTargets[i].value);
                        }

                        var sizemap = scriptObj.attributes.getNamedItem('data-sizemap-9887');
                        if (sizemap) {
                            var mapping = googletag.sizeMapping();
                            var sizemaps = sizemap.value.split('|')
                            for (i = 0; i < sizemaps.length; i++) {
                                eval("mapping.addSize(" + sizemaps[i] + ");");
                            }
                            mapping = mapping.build();
                            adSlot.defineSizeMapping(mapping);
                        }
                    }

                    PB.gptAds['home_9887'] = adSlot;

                    googletag.pubads().enableSingleRequest();
                    googletag.pubads().disableInitialLoad();
                    googletag.pubads().collapseEmptyDivs(true);
                    googletag.enableServices();
            });
        })();
                                                    (function(){
                googletag.cmd.push(function() {
                    /*Initialization for home out of page slot*/ 
                                        adSlot = googletag.defineOutOfPageSlot('/4403/cr/sherdog/home', 'home_adoop').addService(googletag.pubads()).setTargeting("site", "cr/sherdog").setTargeting("sect", "home");
                    scriptObj = document.getElementById('evolveUniversal');
                    if (scriptObj) {
                        var customTargets = Array.prototype.filter.call(scriptObj.attributes, function(at) { return /^data-targeting-/.test(at.name); });
                        for (i = 0; i < customTargets.length; i++) {
                            adSlot.setTargeting(customTargets[i].name.substr("data-targeting-".length), customTargets[i].value);
                        }

                        var sizemap = scriptObj.attributes.getNamedItem('data-sizemap-9859');
                        if (sizemap) {
                            var mapping = googletag.sizeMapping();
                            var sizemaps = sizemap.value.split('|')
                            for (i = 0; i < sizemaps.length; i++) {
                                eval("mapping.addSize(" + sizemaps[i] + ");");
                            }
                            mapping = mapping.build();
                            adSlot.defineSizeMapping(mapping);
                        }
                    }

                    PB.gptAds['home_adoop'] = adSlot;

                    googletag.pubads().enableSingleRequest();
                    googletag.pubads().disableInitialLoad();
                    googletag.pubads().collapseEmptyDivs(true);
                    googletag.enableServices();
                });
        })();
                                                                        (function(){
            googletag.cmd.push(function() {
                /*Initialization for slot: 728x90*/
                                        adSlot = googletag.defineSlot('/4403/cr/sherdog/news', [[728, 90]], 'news_9889').addService(googletag.pubads()).setTargeting("pos", "a").setTargeting("site", "cr/sherdog").setTargeting("sect", "news");

                    scriptObj = document.getElementById('evolveUniversal');
                    if (scriptObj) {
                        var customTargets = Array.prototype.filter.call(scriptObj.attributes, function(at) { return /^data-targeting-/.test(at.name); });
                        for (i = 0; i < customTargets.length; i++) {
                            adSlot.setTargeting(customTargets[i].name.substr("data-targeting-".length), customTargets[i].value);
                        }

                        var sizemap = scriptObj.attributes.getNamedItem('data-sizemap-9889');
                        if (sizemap) {
                            var mapping = googletag.sizeMapping();
                            var sizemaps = sizemap.value.split('|')
                            for (i = 0; i < sizemaps.length; i++) {
                                eval("mapping.addSize(" + sizemaps[i] + ");");
                            }
                            mapping = mapping.build();
                            adSlot.defineSizeMapping(mapping);
                        }
                    }

                    PB.gptAds['news_9889'] = adSlot;

                    googletag.pubads().enableSingleRequest();
                    googletag.pubads().disableInitialLoad();
                    googletag.pubads().collapseEmptyDivs(true);
                    googletag.enableServices();
            });
        })();
                                                    (function(){
            googletag.cmd.push(function() {
                /*Initialization for slot: 600x300*/
                                        adSlot = googletag.defineSlot('/4403/cr/sherdog/news', [[600, 300]], 'news_25649').addService(googletag.pubads()).setTargeting("pos", "a").setTargeting("site", "cr/sherdog").setTargeting("sect", "news");

                    scriptObj = document.getElementById('evolveUniversal');
                    if (scriptObj) {
                        var customTargets = Array.prototype.filter.call(scriptObj.attributes, function(at) { return /^data-targeting-/.test(at.name); });
                        for (i = 0; i < customTargets.length; i++) {
                            adSlot.setTargeting(customTargets[i].name.substr("data-targeting-".length), customTargets[i].value);
                        }

                        var sizemap = scriptObj.attributes.getNamedItem('data-sizemap-25649');
                        if (sizemap) {
                            var mapping = googletag.sizeMapping();
                            var sizemaps = sizemap.value.split('|')
                            for (i = 0; i < sizemaps.length; i++) {
                                eval("mapping.addSize(" + sizemaps[i] + ");");
                            }
                            mapping = mapping.build();
                            adSlot.defineSizeMapping(mapping);
                        }
                    }

                    PB.gptAds['news_25649'] = adSlot;

                    googletag.pubads().enableSingleRequest();
                    googletag.pubads().disableInitialLoad();
                    googletag.pubads().collapseEmptyDivs(true);
                    googletag.enableServices();
            });
        })();
                                                    (function(){
                googletag.cmd.push(function() {
                    /*Initialization for news out of page slot*/ 
                                        adSlot = googletag.defineOutOfPageSlot('/4403/cr/sherdog/news', 'news_adoop').addService(googletag.pubads()).setTargeting("site", "cr/sherdog").setTargeting("sect", "news");
                    scriptObj = document.getElementById('evolveUniversal');
                    if (scriptObj) {
                        var customTargets = Array.prototype.filter.call(scriptObj.attributes, function(at) { return /^data-targeting-/.test(at.name); });
                        for (i = 0; i < customTargets.length; i++) {
                            adSlot.setTargeting(customTargets[i].name.substr("data-targeting-".length), customTargets[i].value);
                        }

                        var sizemap = scriptObj.attributes.getNamedItem('data-sizemap-9861');
                        if (sizemap) {
                            var mapping = googletag.sizeMapping();
                            var sizemaps = sizemap.value.split('|')
                            for (i = 0; i < sizemaps.length; i++) {
                                eval("mapping.addSize(" + sizemaps[i] + ");");
                            }
                            mapping = mapping.build();
                            adSlot.defineSizeMapping(mapping);
                        }
                    }

                    PB.gptAds['news_adoop'] = adSlot;

                    googletag.pubads().enableSingleRequest();
                    googletag.pubads().disableInitialLoad();
                    googletag.pubads().collapseEmptyDivs(true);
                    googletag.enableServices();
                });
        })();
                                                                        (function(){
            googletag.cmd.push(function() {
                /*Initialization for slot: 728x90*/
                                        adSlot = googletag.defineSlot('/4403/cr/sherdog/ros', [[728, 90]], 'ros_9893').addService(googletag.pubads()).setTargeting("pos", "a").setTargeting("site", "cr/sherdog").setTargeting("sect", "ros");

                    scriptObj = document.getElementById('evolveUniversal');
                    if (scriptObj) {
                        var customTargets = Array.prototype.filter.call(scriptObj.attributes, function(at) { return /^data-targeting-/.test(at.name); });
                        for (i = 0; i < customTargets.length; i++) {
                            adSlot.setTargeting(customTargets[i].name.substr("data-targeting-".length), customTargets[i].value);
                        }

                        var sizemap = scriptObj.attributes.getNamedItem('data-sizemap-9893');
                        if (sizemap) {
                            var mapping = googletag.sizeMapping();
                            var sizemaps = sizemap.value.split('|')
                            for (i = 0; i < sizemaps.length; i++) {
                                eval("mapping.addSize(" + sizemaps[i] + ");");
                            }
                            mapping = mapping.build();
                            adSlot.defineSizeMapping(mapping);
                        }
                    }

                    PB.gptAds['ros_9893'] = adSlot;

                    googletag.pubads().enableSingleRequest();
                    googletag.pubads().disableInitialLoad();
                    googletag.pubads().collapseEmptyDivs(true);
                    googletag.enableServices();
            });
        })();
                                                    (function(){
            googletag.cmd.push(function() {
                /*Initialization for slot: 600x300*/
                                        adSlot = googletag.defineSlot('/4403/cr/sherdog/ros', [[600, 300]], 'ros_25653').addService(googletag.pubads()).setTargeting("pos", "a").setTargeting("site", "cr/sherdog").setTargeting("sect", "ros");

                    scriptObj = document.getElementById('evolveUniversal');
                    if (scriptObj) {
                        var customTargets = Array.prototype.filter.call(scriptObj.attributes, function(at) { return /^data-targeting-/.test(at.name); });
                        for (i = 0; i < customTargets.length; i++) {
                            adSlot.setTargeting(customTargets[i].name.substr("data-targeting-".length), customTargets[i].value);
                        }

                        var sizemap = scriptObj.attributes.getNamedItem('data-sizemap-25653');
                        if (sizemap) {
                            var mapping = googletag.sizeMapping();
                            var sizemaps = sizemap.value.split('|')
                            for (i = 0; i < sizemaps.length; i++) {
                                eval("mapping.addSize(" + sizemaps[i] + ");");
                            }
                            mapping = mapping.build();
                            adSlot.defineSizeMapping(mapping);
                        }
                    }

                    PB.gptAds['ros_25653'] = adSlot;

                    googletag.pubads().enableSingleRequest();
                    googletag.pubads().disableInitialLoad();
                    googletag.pubads().collapseEmptyDivs(true);
                    googletag.enableServices();
            });
        })();
                                                    (function(){
                googletag.cmd.push(function() {
                    /*Initialization for ros out of page slot*/ 
                                        adSlot = googletag.defineOutOfPageSlot('/4403/cr/sherdog/ros', 'ros_adoop').addService(googletag.pubads()).setTargeting("site", "cr/sherdog").setTargeting("sect", "ros");
                    scriptObj = document.getElementById('evolveUniversal');
                    if (scriptObj) {
                        var customTargets = Array.prototype.filter.call(scriptObj.attributes, function(at) { return /^data-targeting-/.test(at.name); });
                        for (i = 0; i < customTargets.length; i++) {
                            adSlot.setTargeting(customTargets[i].name.substr("data-targeting-".length), customTargets[i].value);
                        }

                        var sizemap = scriptObj.attributes.getNamedItem('data-sizemap-9863');
                        if (sizemap) {
                            var mapping = googletag.sizeMapping();
                            var sizemaps = sizemap.value.split('|')
                            for (i = 0; i < sizemaps.length; i++) {
                                eval("mapping.addSize(" + sizemaps[i] + ");");
                            }
                            mapping = mapping.build();
                            adSlot.defineSizeMapping(mapping);
                        }
                    }

                    PB.gptAds['ros_adoop'] = adSlot;

                    googletag.pubads().enableSingleRequest();
                    googletag.pubads().disableInitialLoad();
                    googletag.pubads().collapseEmptyDivs(true);
                    googletag.enableServices();
                });
        })();
                                                                        (function(){
            googletag.cmd.push(function() {
                /*Initialization for slot: 728x90*/
                                        adSlot = googletag.defineSlot('/4403/cr/sherdog/techniques', [[728, 90]], 'techniques_9895').addService(googletag.pubads()).setTargeting("pos", "a").setTargeting("site", "cr/sherdog").setTargeting("sect", "techniques");

                    scriptObj = document.getElementById('evolveUniversal');
                    if (scriptObj) {
                        var customTargets = Array.prototype.filter.call(scriptObj.attributes, function(at) { return /^data-targeting-/.test(at.name); });
                        for (i = 0; i < customTargets.length; i++) {
                            adSlot.setTargeting(customTargets[i].name.substr("data-targeting-".length), customTargets[i].value);
                        }

                        var sizemap = scriptObj.attributes.getNamedItem('data-sizemap-9895');
                        if (sizemap) {
                            var mapping = googletag.sizeMapping();
                            var sizemaps = sizemap.value.split('|')
                            for (i = 0; i < sizemaps.length; i++) {
                                eval("mapping.addSize(" + sizemaps[i] + ");");
                            }
                            mapping = mapping.build();
                            adSlot.defineSizeMapping(mapping);
                        }
                    }

                    PB.gptAds['techniques_9895'] = adSlot;

                    googletag.pubads().enableSingleRequest();
                    googletag.pubads().disableInitialLoad();
                    googletag.pubads().collapseEmptyDivs(true);
                    googletag.enableServices();
            });
        })();
                                                    (function(){
            googletag.cmd.push(function() {
                /*Initialization for slot: 600x300*/
                                        adSlot = googletag.defineSlot('/4403/cr/sherdog/techniques', [[600, 300]], 'techniques_25657').addService(googletag.pubads()).setTargeting("pos", "a").setTargeting("site", "cr/sherdog").setTargeting("sect", "techniques");

                    scriptObj = document.getElementById('evolveUniversal');
                    if (scriptObj) {
                        var customTargets = Array.prototype.filter.call(scriptObj.attributes, function(at) { return /^data-targeting-/.test(at.name); });
                        for (i = 0; i < customTargets.length; i++) {
                            adSlot.setTargeting(customTargets[i].name.substr("data-targeting-".length), customTargets[i].value);
                        }

                        var sizemap = scriptObj.attributes.getNamedItem('data-sizemap-25657');
                        if (sizemap) {
                            var mapping = googletag.sizeMapping();
                            var sizemaps = sizemap.value.split('|')
                            for (i = 0; i < sizemaps.length; i++) {
                                eval("mapping.addSize(" + sizemaps[i] + ");");
                            }
                            mapping = mapping.build();
                            adSlot.defineSizeMapping(mapping);
                        }
                    }

                    PB.gptAds['techniques_25657'] = adSlot;

                    googletag.pubads().enableSingleRequest();
                    googletag.pubads().disableInitialLoad();
                    googletag.pubads().collapseEmptyDivs(true);
                    googletag.enableServices();
            });
        })();
                                                    (function(){
                googletag.cmd.push(function() {
                    /*Initialization for techniques out of page slot*/ 
                                        adSlot = googletag.defineOutOfPageSlot('/4403/cr/sherdog/techniques', 'techniques_adoop').addService(googletag.pubads()).setTargeting("site", "cr/sherdog").setTargeting("sect", "techniques");
                    scriptObj = document.getElementById('evolveUniversal');
                    if (scriptObj) {
                        var customTargets = Array.prototype.filter.call(scriptObj.attributes, function(at) { return /^data-targeting-/.test(at.name); });
                        for (i = 0; i < customTargets.length; i++) {
                            adSlot.setTargeting(customTargets[i].name.substr("data-targeting-".length), customTargets[i].value);
                        }

                        var sizemap = scriptObj.attributes.getNamedItem('data-sizemap-9865');
                        if (sizemap) {
                            var mapping = googletag.sizeMapping();
                            var sizemaps = sizemap.value.split('|')
                            for (i = 0; i < sizemaps.length; i++) {
                                eval("mapping.addSize(" + sizemaps[i] + ");");
                            }
                            mapping = mapping.build();
                            adSlot.defineSizeMapping(mapping);
                        }
                    }

                    PB.gptAds['techniques_adoop'] = adSlot;

                    googletag.pubads().enableSingleRequest();
                    googletag.pubads().disableInitialLoad();
                    googletag.pubads().collapseEmptyDivs(true);
                    googletag.enableServices();
                });
        })();
                                         
 
 
 
    // DOM preload function
    (function checkDOMStatus(callable){
        if (document.readyState=='complete')
            callable.call();
        else
            setTimeout(function(){checkDOMStatus(callable)}, 100);
    })(callable);
 
 
    /*
      ====================================================================================
      Trigger: after DOM is loaded
      ====================================================================================
    */
    })(function(){
        // Load Ad slots
        var adsPresent = [];
        for (key in PB.gptAds) {
            if (document.getElementById(key)) {
                // this line is needed for the refresh method to work correctly
                googletag.cmd.push(function() { googletag.display(key); });
                adsPresent.push(PB.gptAds[key]);
            }
        };

        // loading the ads in one single request
        googletag.pubads().refresh(adsPresent); 
        evolveFooter = document.getElementById('evolve_footer');
        if (evolveFooter) {
            evolveFooter.innerHTML = footer;
            evolveFooterScripts = evolveFooter.getElementsByTagName('script');
            for (i = 0; i < evolveFooterScripts.length; i++) {
                eval(evolveFooterScripts[i].innerHTML);
            }
        }
    });

