var ezrtries={};var ezd=false;var ezdct;function ezbanger(e){var slot_name=e.slot.getName();if(slot_name.indexOf("interstitial")>0){return;}if(ezrtries.hasOwnProperty(slot_name)===false){ezrtries[slot_name]=0;}var cb=e.slot.getTargeting('br1')[0];var r=(typeof cb!='undefined'&&e.creativeId==null&&e.lineItemId==null&&e.isEmpty===true)?true:false;if(r===true){ezrtries[slot_name]++;if(ezrtries[slot_name]>2){ezrefad(e,0);}else{var nb=cb*(1-(ezrtries[slot_name]*.3));var nfb=ezfb(nb);if(nfb==cb){nb=cb*0.60;nfb=ezfb(nb);}ezrefad(e,nfb);}}else{ezct(e);clearTimeout(ezdct);ezdct=setTimeout(ezdc,5000);if(typeof e.slot.getSlotElementId=="function"){document.getElementById(e.slot.getSlotElementId()).style.minHeight="initial";document.getElementById(e.slot.getSlotElementId()).style.minWidth="initial";}}}function ezfb(v){v=v/100;if(v<=0){v=0;}else if(v<=2){v=Math.round(v*10)*10;}else if(v<=4){v=Math.round((v*100)/20)*20;}else{v=Math.round((v*100)/50)*50;}return v;}function ezrefad(e,b){if(b==0){e.slot.setTargeting('at','bf');e.slot.setTargeting('ss38','1');e.slot.setTargeting('ss9','1');var bra=e.slot.getTargeting('bra')[0];if(typeof bra!='undefined'&&bra.length>0){e.slot.setTargeting('bra',bra+'-2');}b='0';}e.slot.setTargeting('br1',b);var ic=parseInt(e.slot.getTargeting('ic'));if(Number.isInteger((ic))){ic++;e.slot.setTargeting('ic',ic);}googletag.pubads().refresh([e.slot]);}function ezct(e){if(e.creativeId!=null&&typeof _ezim_d=='object'){var au=e.slot.getName().split('/').pop();if(typeof _ezim_d[au]!='undefined'){_ezim_d[au].creative_id=e.creativeId;}}}function ezdc(){slots=googletag.pubads().getSlots();for(i=0;i<10;i++){if(typeof slots[i]!='undefined'&&typeof ezrtries[slots[i].getName()]=='undefined'){googletag.pubads().refresh([slots[i]]);}}}