
jQuery(function() {
    'use strict';

    var adBlockDetected = function() {
        
        var $adbladeTags = jQuery('.adbladeads');
        $adbladeTags.each(function(idx, tag) {
            tag.setAttribute('data-host', 'www.oddee.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\?(.+)/, '/?87ea3cef4f=470cafcd99&$1');
        });
        
        
	
        jQuery.getScript('/?87ea3cef4f=b73f59ab0b');
            };

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