function Abd_Detector(e){var t=this;this.debugMsg=function(t,d){e.debugMessage&&("function"==typeof e.debugMessage?e.debugMessage(t,d):console.log("ABD Detector:: "+t)),Abd_Detector_Debug_Messages.push(t)},this.loadFakeAds=function(){t.iframeSecurityPresent()||t.debugMsg("Browser lacks necessary iframe security attributes. Omitting iframe checks!")},this.checkAdStatus=function(){var e=jQuery("#abd-ad-iframe"),d=document.getElementById("abd-ad-iframe"),i=jQuery("#abd-ad-div"),o=document.getElementById("abd-ad-div"),c={blockerDetected:!1,status:"noadblock",detectionMethod:"N/A"};if("yes"==ABDSettings.enableIframe||""==ABDSettings.enableIframe?t.iframeSecurityPresent()&&(c=t.checkAdStatusIframeHelper("#abd-ad-iframe",e,d,c)):t.debugMsg("iframe detection disabled"),"yes"==ABDSettings.enableDiv||""==ABDSettings.enableDiv?c=t.checkAdStatusDivHelper(i,o,c):t.debugMsg("div detection disabled"),"yes"==ABDSettings.enableJsFile||""==ABDSettings.enableJsFile?window.abd_script_load_flag!==!0?(mthd_text="js removal detected! (Detection Method: Bait javascript file prevented from loading and execution!)",c={blockerDetected:!0,status:"adblock",detectionMethod:mthd_text},t.debugMsg(mthd_text)):t.debugMsg("No js removal detected"):t.debugMsg("js detection disabled"),ABDSettings.cssSelectors)var n=ABDSettings.cssSelectors;else var n=[];return jQuery.each(n,function(e,d){if(!d||"string"!=typeof d)return!0;var i=d;try{i=jQuery.parseJSON(i)}catch(o){i=d}t.debugMsg("checking user defined selector: "+i);var n=jQuery(i);return n.length?(t.debugMsg("found "+n.length+" matches for the specified selector"),void jQuery(i).each(function(e,d){jQuery(d).height()<50&&(mthd_text="user defined wrapper removal detected! (Detection Method: wrapper height resized to near 0 - $(selector).height < 50",c={blockerDetected:!0,status:"adblock",detectionMethod:mthd_text},t.debugMsg(mthd_text)),""==jQuery.trim(jQuery(d).html())&&(mthd_text="user defined wrapper removal detected! (Detection Method: wrapper is empty - $.trim($(selector).html()) == ''",c={blockerDetected:!0,status:"adblock",detectionMethod:mthd_text},t.debugMsg(mthd_text)),jQuery(d).find("iframe").each(function(){c=t.checkAdStatusIframeHelper(i,jQuery(d),"skip",c)})})):void t.debugMsg("specified selector doesn't match any element on page")}),c},this.checkAdStatusIframeHelper=function(e,d,i,o){return 0===d.length?(mthd_text="iframe removal detected! (Detection Method: jQuery selector empty - $('"+e+"').length === 0)",o={blockerDetected:!0,status:"adblock",detectionMethod:mthd_text},t.debugMsg(mthd_text)):void 0==i?(mthd_text="iframe removal detected! (Detection Method: no element with id found - document.getElementById("+e+") == undefined",o={blockerDetected:!0,status:"adblock",detectionMethod:mthd_text},t.debugMsg(mthd_text)):d.height<50?(mthd_text="iframe removal detected! (Detection Method: iframe height resized to near 0 - $('"+e+"').height < 50",o={blockerDetected:!0,status:"adblock",detectionMethod:mthd_text},t.debugMsg(mthd_text)):d.is("hidden")?(mthd_text="iframe removal detected! (Detection Method: iframe hidden - $('"+e+"').is('hidden')",o={blockerDetected:!0,status:"adblock",detectionMethod:mthd_text},t.debugMsg(mthd_text)):0!==d.find(":hidden").length?(mthd_text="iframe removal detected! (Detection Method: iframe hidden - $('"+e+"').find(':hidden').length === 0",o={blockerDetected:!0,status:"adblock",detectionMethod:mthd_text},t.debugMsg(mthd_text)):"hidden"===d.css("visibility")||"none"===d.css("display")?(mthd_text="iframe removal detected! (Detection Method: iframe css changed to hidden - $('"+e+"').css('visibility') === 'hidden' || $('"+e+"').css('display') === 'none')",o={blockerDetected:!0,status:"adblock",detectionMethod:mthd_text},t.debugMsg(mthd_text)):t.debugMsg("No iframe removal detected."),o},this.checkAdStatusDivHelper=function(e,d,i){return 0===e.length?(mthd_text="div removal detected! (Detection Method: jQuery selector empty)",i={blockerDetected:!0,status:"adblock",detectionMethod:mthd_text},t.debugMsg(mthd_text)):void 0==d?(mthd_text="div removal detected! (Detection Method: no element with id found - document.getElementById == undefined",i={blockerDetected:!0,status:"adblock",detectionMethod:mthd_text},t.debugMsg(mthd_text)):0===e.height?(mthd_text="div removal detected! (Detection Method: height resized to 0",i={blockerDetected:!0,status:"adblock",detectionMethod:mthd_text},t.debugMsg(mthd_text)):e.is("hidden")?(mthd_text="div removal detected! (Detection Method: div hidden",i={blockerDetected:!0,status:"adblock",detectionMethod:mthd_text},t.debugMsg(mthd_text)):0!==e.find(":hidden").length?(mthd_text="iframe removal detected! (Detection Method: iframe hidden - $('$abd-ad-iframe').find(':hidden').length === 0",i={blockerDetected:!0,status:"adblock",detectionMethod:mthd_text},t.debugMsg(mthd_text)):"hidden"===e.css("visibility")||"none"===e.css("display")?(mthd_text="div removal detected! (Detection Method: CSS visibility or display altered!)",i={blockerDetected:!0,status:"adblock",detectionMethod:mthd_text},t.debugMsg(mthd_text)):t.debugMsg("No div removal detected"),i},this.executeFunc=function(e,t){var d=this;jQuery(document).ready(function(){d.loadFakeAds(),setTimeout(function(){var i=d.checkAdStatus();i.blockerDetected?t(i):e(i)},500)})},this.jQueryDefer=function(e,d,i){"undefined"==typeof d&&(d=100),"undefined"==typeof i&&(i=0);var o=25;return"undefined"!=typeof jQuery?(i>0&&t.debugMsg("Asynchronous jQuery detected. ABD waited "+i/1e3+" seconds for jQuery to load."),e(),i):d>0?void setTimeout(function(){t.jQueryDefer(e,--d,i+o)},o):(t.debugMsg("Cannot run! jQuery didn't load. Try adding an exception for jQuery in any asynchronous JavaScript plugins. Total wait time: "+i/1e3+" seconds."),-1)},this.iframeSecurityPresent=function(){var e=document.createElement("iframe");return"sandbox"in e||"security"in e?!0:!1},this.allonsy=function(){this.executeFunc(e.noBlockerFunc,e.blockerFunc)},this.jQueryDefer(this.allonsy)}window.Abd_Detector_Debug_Messages=[],Abd_Detector({noBlockerFunc:function(e){jQuery("div.ABD_display_noadblock").show(),jQuery("div.ABD_display_adblock").hide(),jQuery("body").addClass("ABD_noadblock"),jQuery(document).trigger("abd_status_change",e)},blockerFunc:function(e){jQuery("div.ABD_display_noadblock").hide(),jQuery("div.ABD_display_adblock").show(),jQuery("body").addClass("ABD_adblock"),jQuery(document).trigger("abd_status_change",e)},debugMessage:!0});