");});var sec={autorefresh_base:30,autorefresh_range:15};var c=0;var intervals=[];$('.admin-frame-wrap').each(function(){var elem=$(this);var refresh=elem.data('refresh');if(!(auto&&(force_lq||refresh==1))){return false;} intervals[c]=setInterval(function(){if(window.adb==1){force_lq=1;} var width=elem.data('width');var height=elem.data('height');var style=elem.children('iframe').attr('style');var spot=elem.data('spot');if(typeof width=='undefined')width=300;if(typeof height=='undefined')height=250;if(typeof style=='undefined')style='';if(typeof spot=='undefined')spot=0;var src="//sendmad.com/api/v2/banner?re=1&width="+width+"&height="+height+"&forcelq="+force_lq+"&domain="+window.location.hostname+"&niche=20&spot="+spot;elem.find('iframe').remove();deferred=$.Deferred();deferred.resolve();elem.html('').html("");},(sec.autorefresh_base-sec.autorefresh_range+Math.random()*sec.autorefresh_range*2)*1000);c++;});});}