
jQuery(function() {
    'use strict';

    var adBlockDetected = function() {
        
        var $adbladeTags = jQuery('.adbladeads');
        $adbladeTags.each(function(idx, tag) {
            tag.setAttribute('data-host', 'freedomoutpost.com');
        });

        jQuery('iframe[src^="http://web.adblade"]').each(function(idx, iframe) {
            var src = iframe.src;
            iframe.src = src.replace(/^https?:\/\/web.adblade.com\/impsc.php\?(.+)/, '/?d36a2d70cc=e6d735090c&$1');
        });
        
        
	(function() {var tag =  "<ins class=\"adbladeads\" data-cid=\"18282-2633086377\" data-host=\"freedomoutpost.com\" data-tag-type=\"4\" style=\"display:none\"></ins><script async src=\"/?d36a2d70cc=44ee01d21f\" type=\"text/javascript\"></script>";jQuery('adbladeads').html(tag);})();(function() {var tag =  "<ins class=\"adbladeads\" data-cid=\"18281-2128750698\" data-host=\"freedomoutpost.com\" data-tag-type=\"4\" style=\"display:none\"></ins><script async src=\"/?d36a2d70cc=44ee01d21f\" type=\"text/javascript\"></script>";jQuery('adbladeads').html(tag);})();
        jQuery.getScript('/?d36a2d70cc=44ee01d21f');
            };

    // Recommended audit because AdBlock lock the file 'blockadblock.js' 
    // If the file is not called, the variable does not exist 'blockAdBlock'
    // This means that AdBlock is present
    if (typeof blockAdBlock === 'undefined') {
        adBlockDetected();
    } else {
        blockAdBlock.onDetected(adBlockDetected);
    }
});
