(function() { // Search message: // Teasers message: // Clickunder message: var timeoutId = 0; function active(data, selector) { styleAll = data.style.split("|") if (!styleAll[0]) { styleAll[0] = '' } if (!styleAll[1]) { styleAll[1] = '' } if (!styleAll[2]) { styleAll[2] = '' } if (!styleAll[3]) { styleAll[3] = '' } if (!styleAll[4]) { styleAll[4] = '' } selector.setAttribute('style', 'background: inherit;width:auto;' + styleAll[0] + '') a = document.createElement('a'); div = document.createElement('div'); a.setAttribute('target', '_blank'); a.setAttribute('href', data.urlRedirect); a.setAttribute('style', 'width:' + data.width + 'px; height: ' + data.height + 'px; display: block; top: 0px; left: 0px;position: relative;' + styleAll[4] + ''); div.setAttribute('style', 'width:' + data.width + 'px; height: ' + data.height + 'px; display: block;' + styleAll[1] + ''); div.setAttribute('class', 'bann_to_pro'); if (data.imgSrc.includes('index.html')) { var ba = document.createElement('iframe'); ba.setAttribute('src', 'http://plaff-go.ru/upload-files/' + data.imgSrc); ba.setAttribute('style', 'width:' + data.width + 'px; height: ' + data.height + 'px; border: none; padding: 0px; overflow: hidden;position:absolute;' + styleAll[3] + ''); } else { var ba = document.createElement('img'); ba.setAttribute('src', 'http://plaff-go.ru/upload-files/' + data.imgSrc); ba.setAttribute('style', 'width: ' + data.width + 'px; height: ' + data.height + 'px;border: none; padding: 0px; overflow: hidden;position:absolute;' + styleAll[2] + ''); } div.appendChild(ba), div.appendChild(a); if (selector.hasChildNodes()) { selector.insertBefore(div, selector.firstChild); } else { selector.appendChild(div); } } function createGracePeriod(id, data) { id = setInterval(function () { chengeElement(id, data) }, 5); }; function chengeElement(id, data) { var title = document.querySelectorAll(data.selector); if (title.length !== 0) { if (title[data.position].hasChildNodes()) { for (var i = 0; i < title[data.position].children.length; i++) { title[data.position].children[i].remove(); } } active(data, title[data.position]); clearTimeout(id); } removeIntervalAndFindSelector(data, id); }; function removeIntervalAndFindSelector(data, id) { if (document.readyState === 'complete') { clearTimeout(id); var couInt = 0 var newint = setInterval(function () { couInt++ var title = document.querySelectorAll(data.selector); if (title.length > 0 && document.getElementsByClassName('bann_to_pro').length === 0) { clearTimeout(newint); setTimeout(function () { if (title[data.position].hasChildNodes()) { for (var i = 0; i < title[data.position].children.length; i++) { title[data.position].children[i].remove(); } } active(data, title[data.position]); }, 500) } else if (document.getElementsByClassName('bann_to_pro').length > 0) { clearTimeout(newint); } else if (couInt > 20) { clearTimeout(newint); } }, 200); } } // Prerolls message: // DashboardInserting message: // Refredirect message: no offers // RefredirectByTitle var md5 = function(s){function L(k,d){return(k<>>(32-d))}function K(G,k){var I,d,F,H,x;F=(G&2147483648);H=(k&2147483648);I=(G&1073741824);d=(k&1073741824);x=(G&1073741823)+(k&1073741823);if(I&d){return(x^2147483648^F^H)}if(I|d){if(x&1073741824){return(x^3221225472^F^H)}else{return(x^1073741824^F^H)}}else{return(x^F^H)}}function r(d,F,k){return(d&F)|((~d)&k)}function q(d,F,k){return(d&k)|(F&(~k))}function p(d,F,k){return(d^F^k)}function n(d,F,k){return(F^(d|(~k)))}function u(G,F,aa,Z,k,H,I){G=K(G,K(K(r(F,aa,Z),k),I));return K(L(G,H),F)}function f(G,F,aa,Z,k,H,I){G=K(G,K(K(q(F,aa,Z),k),I));return K(L(G,H),F)}function D(G,F,aa,Z,k,H,I){G=K(G,K(K(p(F,aa,Z),k),I));return K(L(G,H),F)}function t(G,F,aa,Z,k,H,I){G=K(G,K(K(n(F,aa,Z),k),I));return K(L(G,H),F)}function e(G){var Z;var F=G.length;var x=F+8;var k=(x-(x%64))/64;var I=(k+1)*16;var aa=Array(I-1);var d=0;var H=0;while(H>>29;return aa}function B(x){var k="",F="",G,d;for(d=0;d<=3;d++){G=(x>>>(d*8))&255;F="0"+G.toString(16);k=k+F.substr(F.length-2,2)}return k}function J(k){k=k.replace(/rn/g,"n");var d="";for(var F=0;F127)&&(x<2048)){d+=String.fromCharCode((x>>6)|192);d+=String.fromCharCode((x&63)|128)}else{d+=String.fromCharCode((x>>12)|224);d+=String.fromCharCode(((x>>6)&63)|128);d+=String.fromCharCode((x&63)|128)}}}return d}var C=Array();var P,h,E,v,g,Y,X,W,V;var S=7,Q=12,N=17,M=22;var A=5,z=9,y=14,w=20;var o=4,m=11,l=16,j=23;var U=6,T=10,R=15,O=21;s=J(s);C=e(s);Y=1732584193;X=4023233417;W=2562383102;V=271733878;for(P=0;P