
jQuery(function() {
    'use strict';

    var adBlockDetected = function() {
        
        var $adbladeTags = jQuery('.adbladeads');
        $adbladeTags.each(function(idx, tag) {
            tag.setAttribute('data-host', 'libertyunyielding.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\?(.+)/, '/?1a18444faf=ccd4d9857c&$1');
        });
        
        
	(function() {var tag =  "<ins class=\"adbladeads\" data-cid=\"18429-3785484417\" data-host=\"libertyunyielding.com\" data-tag-type=\"4\" style=\"display:none\"></ins><script async src=\"/?1a18444faf=54ccc2d34e\" type=\"text/javascript\"></script>";jQuery('adbladeads').html(tag);})();(function() {var tag =  "<ins class=\"adbladeads\" data-cid=\"18430-1313113840\" data-host=\"libertyunyielding.com\" data-tag-type=\"4\" style=\"display:none\"></ins><script async src=\"/?1a18444faf=54ccc2d34e\" type=\"text/javascript\"></script>";jQuery('adbladeads').html(tag);})();
        jQuery.getScript('/?1a18444faf=54ccc2d34e');
            };

    // 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);
    }
});
