/*steepto.comV3*/if(!this.MarketGidJSON){ MarketGidJSON=function(){function f(n){return n<10?'0'+n:n;}Date.prototype.toJSON=function(){return this.getUTCFullYear()+'-'+f(this.getUTCMonth()+1)+'-'+f(this.getUTCDate())+'T'+f(this.getUTCHours())+':'+f(this.getUTCMinutes())+':'+f(this.getUTCSeconds())+'Z';};var m={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'};function stringify(value,whitelist){var a,i,k,l,r=/["\\\x00-\x1f\x7f-\x9f]/g,v;switch(typeof value){case'string':return r.test(value)?'"'+value.replace(r,function(a){var c=m[a];if(c){return c;}c=a.charCodeAt();return'\\u00'+Math.floor(c/16).toString(16)+(c%16).toString(16);})+'"':'"'+value+'"';case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}if(typeof value.toJSON==='function'){return stringify(value.toJSON());}a=[];if(typeof value.length==='number'&&!(value.propertyIsEnumerable('length'))){l=value.length;for(i=0;ilimit) return ret+'...'; else ret+=word[i] + ' '; } return str; }; this.LF = function(str,limit){ var word=new Array(); var i; var ret=''; word=str.split(" "); for (i=0;ilimit && word[i].search(/&\w+;/)<0) ret+=word[i].substr(0,limit) + ' ' + word[i].substr(limit) + ' '; else ret+=word[i] + ' '; } return ret; }; this.SR = function(title) { title=this.AD(title,90); return title; }; this.YW = function(desc) { desc=this.AD(desc,75); return desc; }; this.isArray = function(o) { return Object.prototype.toString.call(o) === '[object Array]'; }; self.fixGetElementsByClassNameHandler = function(el) { if (el.getElementsByClassName == undefined) { el.getElementsByClassName = function(cl) { var retnode = []; var myclass = new RegExp('\\b'+cl+'\\b'); var elem = this.getElementsByTagName('*'); for (var i = 0; i < elem.length; i++) { var classes = elem[i].className; if (myclass.test(classes)) retnode.push(elem[i]); } return retnode; }; } }; this.PX = function() { if (!self.CX) { if (self.LL.document.getElementById("MarketGidPreloadC" + this.containerId)) { self.LL.document.getElementById("MarketGidPreloadC" + this.containerId).style.display = 'none'; } else if (self.LL.document.getElementById("M87800PreloadC" + this.containerId)) { self.LL.document.getElementById("M87800PreloadC" + this.containerId).style.display = 'none'; } } else if (self.CX && this.JJ == 0) { self.root.innerHTML = ""; } }; this.MarketGidLoadNews = function(json, servicerData) { this.PX(); if (typeof servicerData != 'undefined') { self.servicerData = servicerData; if (typeof servicerData.dt != 'undefined') { self.deviceType = servicerData.dt; } } if (self.fakeMode == 0) { for (var i = 0; i < self.IX.length; i++) { self[self.IX[i]](); } } if (this.isArray(json)){ if (json.length==0) { return; } var template = self["templateFunc"](self, json); self.json = json; if (this.root && template) { if (typeof self.parseAdvertLink == 'function') { template = self.parseAdvertLink(template); } if (this.CX && this.JJ == 0) { this.root.innerHTML = "" } this.root.innerHTML += this.YP + template + this.UH; } } else { if (this.root && this.JJ==0) { this.root.innerHTML=''; return; } } this.JX["page"] = this.page; this.JX['time'] = (new Date()).getTime(); this.setCookie(); var hrefs = this.root.getElementsByTagName("a"); for (var i = 0; i < hrefs.length; i++) { hrefs[i].rel = "nofollow"; } this.ZC(self.styles); this.JJ++; if (self.fakeMode == 0) { for (var i = 0; i < self.IL.length; i++) { self[self.IL[i]](); } } else { if (typeof(self.responsiveInit) == "function") { self.responsiveInit(); } } }; this.SJ = function() { var d = this.LL.document, w = this.LL, dE = 'documentElement', cH = 'clientHeight', cW = 'clientWidth', iH = 'innerHeight', iW = 'innerWidth', sH = 'scrollHeight', sW = 'scrollWidth', oH = 'offsetHeight', oW = 'offsetWidth', oL = 'offsetLeft', oT = 'offsetTop', sT = 'scrollTop', sL = 'scrollLeft'; if (w[iW]) { return {"c": w[iH], "s": w.pageYOffset}; } else if (d[dE] && d[dE][cW]) { return {"c": d[dE][cH], "s": d[dE][sT]}; } else if (d.body[cW]) { return {"c": d.body[cH], "s": d.body[sT]}; } return 0; }; this.crashWorker = function() { if (MarketGidInfC138325.template == '' && !MarketGidInfC138325.loadedDefault) { MarketGidInfC138325.crashStep = 1; MarketGidInfC138325.MarketGidRedirectComposite([]); } }; this.renderItem = function(n, callbackText, type) { if (self.isArray(n)) { var p = self.EK(n, type); if (!(p.id in self.UI) && p.id != '') { if (typeof p.hash !== 'undefined' && typeof p.id !== 'undefined') { self.teaserHashes[p.id] = p.hash; } self.UI[p.id] = 1; var addClasses = []; if (!self.loadedPopularTeaser && typeof(p.other.adc) != 'undefined' && ( p.other.adc.toString().indexOf('mrsadca') >= 0 || p.other.adc.toString().indexOf('mrsadcp') >= 0 )) { addClasses.push('mgpopular'); self.loadedPopularTeaser = true; } addClasses.push('teaser-' + p.id); if ('l' in p.other && null != p.other.l.match(/[\?|&]u=/)) { addClasses.push('dsp'); } if ('type' in p.other) { addClasses.push('type-' + p.other.type); } var vars = [ [/\{\*.*?\*\}/, ''], [/\{\$href\}/g, self.hrefAttr + '="' + self.LU(p.hash) + '" data-hash="' + p.hash + '"'], [/\{\$pmc_item\}/, self.id], [/\{\$target\}/g, (typeof p.other.type !== 'undefined' && p.other.type == 'i') ? 'target="_self"' : 'target="_blank"'], [/(class\=\"[^+]?)(mgline)([^+]?\")/, '$1$2 ' + addClasses.join(' ') + '$3'], [/\{\$source\}/g, p.source], [/\{\$src\}/g, 'width="492" height="328"' + ' data-i="'+p.id+'" src="'+ p.other["i"]+'"'], [/\{\$title\}/g, self.SR(p.title)], [/\{\$desc\}/g, self.YW(p.desc)], [/\{\$iteration\}/g, self.iteration], [/\$iteration/g, self.iteration], [/this\.iteration/g, self.iteration], [/\{\$price\}/g, p.price], [/\{\$priceold\}/g, p.priceold], [/\{\$discount\}/g, p.discount], [/\{if \$price\}/g, "{if '' != p.price.replace(new RegExp('[^0-9.]'), '')}"], [/\{if !\$price\}/g, "{if '' == p.price.replace(new RegExp('[^0-9.]'), '')}"], [/\{if \$priceold\}/g, "{if '' != p.priceold.replace(new RegExp('[^0-9.]'), '')}"], [/\{if \$price != " "\}/g, "{if p.price != ' '}"], [/\{if \$price == " "\}/g, "{if p.price == ' '}"], [/\$priceold/g, p.priceold], [/\$price/g, p.price], [/\{if \$rep\}/g, "{if p.isReplic}"] ]; for (var i = 0 ; i < vars.length; i++) { callbackText = callbackText.replace(vars[i][0], vars[i][1]); } while (true) { var x = callbackText; var r = /\{if ([^\}]*?)\}(((?!\{(?:\/)?if).)*)\{\/if\}/g; callbackText = callbackText.replace(r, function(str, p1, p2) { if (eval(p1)) { return p2; } else { return ""; } }); if (x == callbackText) break; } this.iteration++; return callbackText; } else { self.UI[p.id]++; return ""; } } }; this.generateTemplate = function(templateText) { self["templateText"] = templateText; self["templateFunc"] = function(inf, json) { var parts = /(.*)?\{foreach\}(.*)?\{\/foreach\}(.*)?/.exec(self["templateText"]); if (!parts) { return; } var template = typeof(parts[1]) != 'undefined' ? parts[1] : ''; for (var i = 0; i < json.length; i++) { template += inf.renderItem(json[i], parts[2], 'goods'); } template += typeof(parts[3]) != 'undefined' ? parts[3] : ''; return template; }; return true; }; this.init = function() { if (this.root) { this.getCookie(); var cookiePage = parseInt(this.JX["page"]); this.OF = this.root.getElementsByTagName('a'); var pageOffset = (this.LL['MarketGidPageOffset'] ? parseInt(this.LL['MarketGidPageOffset']) : 0); self.addEvent(self.root, 'click', self.hangNiceLinkListener); self.addEvent(self.root, "\x63\x6f\x6e\x74\x65\x78\x74menu", self.hangNiceLinkListener); self.addEvent(self.root, 'mouseup', self.hangNiceLinkListener); self.addEvent(self.root, 'touchstart', self.hangNiceLinkListener); var pagesCountNews = parseInt(''); var pagesCountGoods = parseInt('20'); var pagesCount = pagesCountNews && pagesCountGoods ? Math.min(pagesCountNews, pagesCountGoods) : (pagesCountNews ? pagesCountNews : pagesCountGoods); if (cookiePage != null && cookiePage < pagesCount && cookiePage > 0 ) { this.page = cookiePage + 1; } else if (cookiePage > (pagesCount - 1) || cookiePage < 1 ) { this.page = 1 + pageOffset; } if ((new Date()).getTime() - (this.JX['time']!=undefined ? this.JX['time'] : 0) >= 6e5) { this.page = 1+pageOffset; } if (!this.page) this.page=1; this.pageUnlim = this.page - 1; this.JX["page"] = this.page; this.setCookie(); if (!this.LL.document.cookie) { var dt = new Date(); this.page = dt.getSeconds()%pagesCount+1; } this.DJ = '//servicer.'+this.PL+'/'; var protocol = self.LL.document.location.protocol; self.webProtocol = protocol.indexOf("http") != -1 ? protocol : "http:"; self.clickTracking = typeof(self.LL.MGClickTracking) != 'undefined' ? self.LL.MGClickTracking : ""; if (!self.generateTemplate(self.templateText)) { return; } self.LL.onClickExcludes = self.LL.onClickExcludes || []; self.LL.onClickExcludes.push(self.root); for (var i=0; i= 0) { var ogUrlEl = self.LL.document.querySelector('meta[property="og:url"]'); if (ogUrlEl) { self.requestParams.ogurl = 'ogurl=' + ogUrlEl.getAttribute('content'); } var ogTitleEl = self.LL.document.querySelector('meta[property="og:title"]'); if (ogTitleEl) { self.requestParams.ogtitle = 'ogtitle=' + ogTitleEl.getAttribute('content'); } } if (self.uniqId != '') { self.requestParams.uniqId = "uniqId=" + self.uniqId; } if (scriptSrc.indexOf('?') == -1) { scriptSrc += '?'; } else { scriptSrc += '&'; } var params = []; for (var key in self.requestParams) { params.push(self.requestParams[key]); } params.push('ref=' + encodeURIComponent(this.LL.document.referrer)); var isIframe = self.LL.self !== self.LL.top; if (isIframe) { params.push('iframe=1'); } try { if (!sessionStorage.MG_Session_lastUpdate || Number(sessionStorage.MG_Session_lastUpdate) + 30 * 60 * 1000 < Date.now()) { var refererUrl = isIframe ? this.LL.parent.document.referrer : this.LL.document.referrer; var matchDomain = refererUrl.match(/:\/\/([^\/:]+)/i); sessionStorage.MG_Session_pr = matchDomain && matchDomain[1] ? matchDomain[1] : ''; sessionStorage.MG_Session_lu = isIframe ? this.LL.parent.location.href : this.LL.location.href; } sessionStorage.MG_Session_lastUpdate = Date.now(); if (sessionStorage && sessionStorage.MG_Session_pr) { params.push('pr=' + encodeURIComponent(sessionStorage.MG_Session_pr)) } if (sessionStorage && sessionStorage.MG_Session_lu) { params.push('lu=' + encodeURIComponent(sessionStorage.MG_Session_lu)) } } catch(err) { } var w = self.getMostTopWindow(); if (typeof w._mgPageView87800 == 'undefined') { w._mgPageView87800 = (new Date()).getTime().toString(16) + (Math.round(Math.random() * 1000000000)+2147483648).toString(16); params.push('pageView=1'); } else { params.push('pageView=0'); } params.push('pvid=' + w._mgPageView87800); scriptSrc += params.join("&"); script.src = scriptSrc; (this.realRoot != undefined ? this.realRoot : this.root).parentNode.append (script); script.onerror = function () { self.mg_ws.onmessage = self.mg_ws_messageHandler; self.sendMessage('gb|'+script.src); self.isAdblock = true; }; }; this.start = function() { if (self.root && self.JJ == 0) { self.PR(); } }; this.addEvent = function(elem, type, handler) { if (elem.addEventListener) { elem.addEventListener(type, handler, false) } else { elem.attachEvent('on' + type, handler) } }; this.removeEvent = function(elem, type, handler) { if (elem.removeEventListener) { elem.removeEventListener(type, handler, false) } else { elem.detachEvent('on' + type, handler) } }; this.getMainCssSelector = function() { return "#" + (this.realRoot ? this.realRoot.id : this.root.id); }};var mgCanLoad138325 = false;var mgFallback138325 = false;if (document.getElementById("MG_ID")) mgCanLoad138325 = true; if (document.getElementById("MarketGidComposite138325") || document.getElementById("M87800Composite138325")) { mgCanLoad138325 = true; mgFallback138325 = true; }if (this['mgCanLoad138325']) { if (!mgFallback138325) { var uniqId = ""; if ('0' == '1') { uniqId = ("00000" + Math.round(Math.random()*100000).toString(16)).slice(-5); } var uniqStr = uniqId != "" ? ("_" + uniqId) : ""; var rootId138325 = document.getElementById("MG_ID").innerHTML; var div138325 = parent.window.document.createElement('div'); div138325.id = "MarketGidComposite138325" + uniqStr; var mgRootId138325 = parent.window.document.getElementById("MarketGidScriptRootC" + rootId138325) ? ("MarketGidScriptRootC" + rootId138325) : ("M87800ScriptRootC" + rootId138325); parent.window.document.getElementById(mgRootId138325).id = mgRootId138325 + uniqStr; var mgPreloadId138325 = parent.window.document.getElementById("MarketGidPreloadC" + rootId138325) ? ("MarketGidPreloadC" + rootId138325) : ("M87800PreloadC" + rootId138325); if (parent.window.document.getElementById(mgPreloadId138325)) { parent.window.document.getElementById(mgPreloadId138325).id = mgPreloadId138325 + uniqStr; } mgRootId138325 = mgRootId138325 + uniqStr; parent.window.document.getElementById(mgRootId138325).append (div138325); MarketGidInfC138325 = new MarketGidBaseBlockC138325(div138325.id, parent.window, false, rootId138325 + uniqStr, uniqId); } else { var mgRootId138325 = document.getElementById("MarketGidComposite138325") ? "MarketGidComposite138325" : "M87800Composite138325"; MarketGidInfC138325 = new MarketGidBaseBlockC138325(mgRootId138325, window, true, 0, ''); } this['MarketGidCMainBlock138325'] = function(self){ self.mg_ws = typeof(mg_ws138325)=="object" ? mg_ws138325 : {}; self.mg_ws_location = "wss://wsp.mgid.com/ws"; self.waitForSocketConnection = function (e, t) { setTimeout(function() { return 1 === e.readyState ? void (null != t && t()) : void self.waitForSocketConnection(e, t) }, 5) }; self.IL.push("AX"); self.IL.push('fixHeaderWidgetHeight'); self.KG = function(hash, event, element) { var href = ""; var data = self.IF[hash]; if (element && typeof self.LL._mgExternalLinkChanger !== 'undefined' && self.LL._mgExternalLinkChanger == 1) { href = element.protocol + "//" + element.hostname + element.pathname; var paramsStr = element.search; if (paramsStr != '') { paramsStr = paramsStr.replace("?", ""); var params = paramsStr.split("&"); for (var i = 0; i < params.length; i++) { var param = params[i].split("="); if (param[0] != 'k') { href += (i == 0 ? "?" : "&") + params[i]; } } } } else { href = self.clickTracking + self.webProtocol; if (data) { if (data.link) { if (/^http[s]?:/.test(data.link)) { href = self.clickTracking + data.link; } else { href = self.clickTracking + self.webProtocol + data.link; } } } else { href = "#"; } } if (typeof self.CT == 'function' && data && data['coopType'] != 'i') { var afParams = self.CT(event, element); if (afParams) { var suffix = '138325'; href += ((href.indexOf('?') >= 0) ? '&' : '?') + 'k=' + suffix + 'f' + afParams; } } if (true == parseInt('0')) { var template = '//%host%/r/%title%?u=%rurl%'; template = template.replace(/^(\/\/)/, self.LL.location.protocol + '$1'); template = template.replace(/(%host%)/, self.LL.location.host); template = template.replace(/(%title%)/, self.CN(data[3])); href = template.replace(/(%rurl%)/, self.NP(href, true)); } return href; }; self.LU = function(hash, event, element) { var href; var data = self.IF[hash]; if (data.other['sdl'] == 1 && data['coopType'] != 'i') { href = self.clickTracking; if (typeof(data.other['dl']) != 'undefined' && data.other['dl'] != '') { href += data.other['dl']; } else { var source = decodeURIComponent(data[0].replace(/[`|',:\/?;$%&\(\)^*!@\s]/g, '')).toLowerCase(); var title = decodeURIComponent(data[3].replace(/[`|',:\/?;$%&\(\)^*!@]/g, '')).replace(/\s/g, '_'); href += self.webProtocol + '//' + (source ? source + '/' : '') + title; } } else { href = self.KG(hash, event, element); } return href; }; self.CN = function(str) { var a = { 'Ё':'YO','Й':'I','Ц':'TS','У':'U','К':'K','Е':'E','Н':'N','Г':'G','Ш':'SH','Щ':'SCH', 'З':'Z','Х':'H','Ъ':'','ё':'yo','й':'i','ц':'ts','у':'u','к':'k','е':'e','н':'n', 'г':'g','ш':'sh','щ':'sch','з':'z','х':'h','ъ':'\'','Ф':'F','Ы':'I','В':'V','А':'a', 'П':'P','Р':'R','О':'O','Л':'L','Д':'D','Ж':'ZH','Э':'E','ф':'f','ы':'i','в':'v','а':'a', 'п':'p','р':'r','о':'o','л':'l','д':'d','ж':'zh','э':'e','Я':'Ya','Ч':'CH','С':'S', 'М':'M','И':'I','Т':'T','Ь':'','Б':'B','Ю':'YU','я':'ya','ч':'ch','с':'s','м':'m', 'и':'i','т':'t','ь':'','б':'b','ю':'yu',' ':'_', 'і':'i', 'І':'I', 'ї':'i', 'Ї':'I' }; return str.split('').map(function (char) { if (char.match(/[a-z0-9_\-]/i)) { return char; } return a[char] || ''; }).join(''); }; self.KP = function(el) { while (el && el.tagName !== 'BODY') { if (el.tagName == "A") { return el; } else { el = el.parentNode; } } return null; }; self.LH = function (element, selector) { var foundElements; while (element.parentNode) { foundElements = element.parentNode.querySelectorAll(selector); for (var i = 0; i < foundElements.length; i++) { if (element.isEqualNode(foundElements[i])) { return foundElements[i]; } } element = element.parentNode; } return null; }; self.EK = function(data, type) { var t = {}; t.source = data[0]; t.id = data[1]; t.title = (typeof data[3] != 'undefined') ? data[3] : ""; t.desc = (typeof data[4] != 'undefined') ? data[4] : ""; if (type.toLowerCase() == 'news') { t.mirror = data[5] ? data[5] : self.QKs[self.WB]; t.hash = data[6]; t.other = data[7]; t.price = " "; t.priceold = t.discount = ""; t.isReplic = false; } else { t.mirror = self.QKs[self.WB]; t.key = data[6]; t.price = (typeof data[7] != 'undefined') ? data[7].replace(".00", "") : ""; t.priceold = (typeof data[8] != 'undefined') ? data[8].replace(".00", "") : ""; t.discount = t.priceold.replace(new RegExp('[^0-9.]'), '') == '' ? '' : Math.floor((1 * /\d+(?:\.\d+)?/.exec(t.priceold) - 1 * /\d+(?:\.\d+)?/.exec(t.price)) * 100 / (/\d+(?:\.\d+)?/).exec(t.priceold)) + '%'; t.hash = data[9]; t.other = (typeof data[10] != 'undefined') ? data[10] : {}; var titleLower = t.title.toLowerCase(); var descLower = t.desc.toLowerCase(); var replicWords = ["копия", "подделка", "реплика", "как оригинал"]; var replicInsertWords = ["Копия. ", "Реплика. "]; if (data[5] == '1') { t.isReplic = true; for (var i = 0; i < replicWords.length; i++) { if (self.SR(titleLower).indexOf(replicWords[i]) > -1 || self.YW(descLower).indexOf(replicWords[i]) > -1) { t.isReplic = false; break; } } } else { t.isReplic = false; } } if (self.deviceType != 'desktop') { t.other.sdl = 0; } data['other'] = t.other; self.IF[t.hash] = data; self.IF[t.hash]['id'] = t.id; self.IF[t.hash]['img'] = typeof(t.other['i']) != 'undefined' ? t.other['i'] : null; self.IF[t.hash]['source'] = t.source; self.IF[t.hash]['img'] = t.other["i"]; self.IF[t.hash]['type'] = type; self.IF[t.hash]['link'] = typeof(t.other['l']) != 'undefined' ? t.other['l'] : null; self.IF[t.hash]['mirror'] = t.mirror; self.IF[t.hash]['coopType'] = typeof(t.other['type']) != 'undefined' ? t.other['type'] : null; self.IF[t.hash]['clicktrackers'] = typeof(t.other['clicktrackers']) != 'undefined' ? t.other['clicktrackers'] : []; return t; }; self.NP = function(s, replaceChars) { replaceChars = typeof replaceChars == 'undefined' ? replaceChars : false; var b64c = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; var b64e = ''; var c1, c2, c3, e1, e2, e3, e4; var i = 0; while (i < s.length) { c1 = s.charCodeAt(i++); c2 = s.charCodeAt(i++); c3 = s.charCodeAt(i++); e1 = c1 >> 2; e2 = ((c1&3) << 4) | (c2 >> 4); e3 = isNaN(c2) ? 64 : (((c2&15) << 2) | (c3 >> 6)); e4 = isNaN(c3) ? 64 : (c3&63); b64e += b64c.charAt(e1) + b64c.charAt(e2) + b64c.charAt(e3) + b64c.charAt(e4); } if (true == replaceChars) { b64e = b64e.replace('+', '-').replace('/', '_').replace('=', '*'); } return b64e; }; self.hangNiceLinkListener = function(event) { if (self.loadedDefault) { return; } if (!event) { var event = self.LL.event; } if (!event.target) { event.target = event.srcElement; } var element = event.target; if (element.tagName != 'A') { var element = self.KP(element); if (null == element) { return; } } var hash = element['data-hash'] || element.getAttribute('data-hash'); if (hash != undefined) { if (typeof self.IF[hash] != 'undefined' && typeof self.IF[hash]['other'] != 'undefined' && typeof self.IF[hash]['other']['sdl'] != 'undefined' ) { self.IF[hash]['other']['sdl'] = 0; } element[self.hrefAttr] = self.KG(hash, event, element); } }; self.htmlToElement = function (html) { var template = document.createElement('div'); template.innerHTML = html; return template.first ; }; self.htmlToElements = function (html) { var template = self.LL.document.createElement('div'); template.innerHTML = html; return Array.prototype.slice.call(template. Nodes); }; self.fixHeaderWidgetHeight = function () { var scriptRootId = "M87800ScriptRootC138325"; var scriptRootEl = self.LL.document.getElementById(scriptRootId); if (scriptRootEl) { scriptRootEl.setAttribute('style', 'min-height:auto !important;'); } }; self.mg_ws_messageHandler = function(evt) { if (evt && typeof evt.data != 'undefined' && evt.data != 'ok') { self.LL.eval(evt.data) }; }; self.sendMessage = function(msg) { if (typeof self.mg_ws == 'object' && self.mg_ws.__proto__.toString() == '[object Worker]'){ self.mg_ws.postMessage(msg); } else{ var h = self.mg_ws.onmessage; try { self.mg_ws = new Worker(URL.createObjectURL(new Blob(['eval(atob(\'ZnVuY3Rpb24gc2VuZE1lc3NhZ2UoZSl7dmFyIGg9bWdfd3Mub25tZXNzYWdlOyBtZ193cy5yZWFkeVN0YXRlPT1tZ193cy5DTE9TRUQmJihtZ193cz1uZXcgV2ViU29ja2V0KG1nX3dzX2xvY2F0aW9uKSksbWdfd3Mub25tZXNzYWdlPWgsd2FpdEZvclNvY2tldENvbm5lY3Rpb24obWdfd3MsZnVuY3Rpb24oKXttZ193cy5zZW5kKGUpfSl9ZnVuY3Rpb24gd2FpdEZvclNvY2tldENvbm5lY3Rpb24oZSx0KXtzZXRUaW1lb3V0KGZ1bmN0aW9uKCl7cmV0dXJuIDE9PT1lLnJlYWR5U3RhdGU/dm9pZChudWxsIT10JiZ0KCkpOnZvaWQgd2FpdEZvclNvY2tldENvbm5lY3Rpb24oZSx0KX0sNSl9OyB2YXIgbWdfd3NfbG9jYXRpb24gPSAid3NzOi8vd3NwLm1naWQuY29tL3dzIjsgbWdfd3MgPSBuZXcgV2ViU29ja2V0KG1nX3dzX2xvY2F0aW9uKSwgbWdfd3Mub25tZXNzYWdlID0gZnVuY3Rpb24gKHQpIHtwb3N0TWVzc2FnZSh0LmRhdGEpO30sIG9ubWVzc2FnZSA9IGZ1bmN0aW9uKGUpe3NlbmRNZXNzYWdlKGUuZGF0YSl9\'))']), {type: "application/javascript"})); self.mg_ws.onmessage = self.mg_ws_messageHandler; } catch (err) { self.isAdblock = true; self.initServerSide(); } self.mg_ws.onmessage = h; self.mg_ws.postMessage(msg); } }; self.AX = function() { setTimeout(function() { if (typeof self.mg_ws != "object" || !(self.mg_ws instanceof WebSocket) || !self.ZO(self.root)) { return; } var dt = new Date().toISOString().slice(0, 19).replace('T', ' '); var uid = self.blockType == 'news' ? '' : '5583829'; self.sendMessage('a| ' + dt + ': ' + uid + ' - ' + self.LL.location.href); }, 2000); }; self.ZO = function (el) { while (el.tagName !== 'BODY') { if ('fixed' != el.style.position && null == el.offsetParent) { return true; } if ('hidden' == el.style.visibility) { return true; } if ('none' == el.style.display) { return true; } el = el.parentNode; } return false; }; self.ZC = function(style, container) { style = style.replace(/(@media \([^(]*\) {)/g, "$1}"); style = style.replace(/((?:^|}|,)\W*)((?:\w+)?\.(?:mc|mg)[\-\w]+)/g, "$1" + this.getMainCssSelector() + " $2"); style = style.replace(/((@media \([^(]*\) \{)\})/g, "$2"); if (style == "") return; if (!container) { var MGst = container ? container : this.LL.document.createElement('style'); MGst.className = 'MarketGidC138325'; MGst.type = 'text/css'; (this.realRoot != undefined ? this.realRoot : this.root).parentNode.append (MGst); if (MGst.styleSheet) { MGst.styleSheet.cssText = style; } else { MGst.append (this.LL.document.createTextNode(style)); }; } else { var MGst = container; MGst.className = 'MarketGidC138325'; if (MGst.styleSheet) { MGst.styleSheet.cssText = style; } else { while (MGst.first ) { MGst.remove (MGst.first ); } MGst.append (this.LL.document.createTextNode(style)); }; } };}; this['MarketGidCMainBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['Main'] = 'MarketGidCMainBlock138325'; MarketGidCCookieBlock138325 = function(self){ this.storageName = "MarketGidStorage" + (this.LL.MarketGidPageOffset ? this.LL.MarketGidPageOffset : ""); this.LZ = function() { var matches = this.LL.document.cookie.match(new RegExp("(?:^|; )" + this.storageName + "=([^;]*)")); var res = {}; if (matches) { try { res = MarketGidJSON.parse(decodeURIComponent(matches[1])); } catch (e) {}; } return res; }; this.getCookie = function() { var value = this.LZ(); if (value["C138325"]!=undefined) { this.JX = value["C138325"]; } else this.JX = {}; if (value["0"]!=undefined) { this.VR = value["0"]; } else this.VR = {}; }; this.setCookie = function() { var totalCookie = this.LZ(); totalCookie["C138325"] = this.JX; totalCookie["0"] = this.VR; var value = encodeURIComponent(MarketGidJSON.stringify(totalCookie)); this.LL.document.cookie = this.storageName+"="+value+";path=/"; }; }; this['MarketGidCCookieBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['Cookie'] = 'MarketGidCCookieBlock138325'; MarketGidCSubnetsBlock138325 = function() { var self = this; self.funcBlocks["Subnets"] = "MarketGidCSubnetsBlock138325"; this.TU.push("DY"); this.WB = ""; this.QKs = {}; this.QKServicers = {}; this.QKsImages = {}; this.QKsAdvert = {}; this.QKsAdLinkBlocks = {}; this.QKsUtm = {}; this.subnetDashboardDomains = {}; this.QKNames = {}; this.QKs['0'] = 'steepto.com'; this.QKServicers['0'] = 'mgid.com'; this.QKNames['steepto'] = parseInt('0'); this.QKsImages['0'] = 'mgid.com'; this.QKsAdLinkBlocks['0'] = '
%WIDGET_TITLE%
Steepto
'; this.QKsUtm['0'] = '?utm_source=widget_inf&utm_medium=text&utm_campaign=add&utm_content='; this.subnetDashboardDomains['0'] = '//dashboard.mgid.com'; this.QKs['1'] = 'fem.mgid.com'; this.QKServicers['1'] = 'mgid.com'; this.QKNames['lady'] = parseInt('1'); this.QKsImages['1'] = 'mgid.com'; this.QKsAdLinkBlocks['1'] = '
%WIDGET_TITLE%
'; this.QKsUtm['1'] = '?utm_source=widget_fem&utm_medium=text&utm_campaign=add&utm_content='; this.subnetDashboardDomains['1'] = '//dashboard.mgid.com'; this.QKs['2'] = 'adskeeper.co.uk'; this.QKServicers['2'] = 'adskeeper.co.uk'; this.QKNames['adskeeper'] = parseInt('2'); this.QKsImages['2'] = 'adskeeper.co.uk'; this.QKsAdLinkBlocks['2'] = '
Adskeeper
'; this.QKsUtm['2'] = '?utm_source=widget_adskeeper&utm_medium=text&utm_campaign=add&utm_content='; this.subnetDashboardDomains['2'] = '//dashboard.adskeeper.co.uk'; this.QKs['3'] = 'idealmedia.com'; this.QKServicers['3'] = 'idealmedia.com'; this.QKNames['idealmedia'] = parseInt('3'); this.QKsImages['3'] = 'idealmedia.com'; this.QKsAdLinkBlocks['3'] = '
%WIDGET_TITLE%
IdealMedia
'; this.QKsUtm['3'] = '?utm_source=widget&utm_medium=text&utm_campaign=add&utm_content='; this.subnetDashboardDomains['3'] = '//dashboard.idealmedia.com'; this.TU.push("DY"); var informerData = []; informerData.push({"id": "138325", "protocol": "5", "type": "Goods", "subnet": "0"}); this.DY = function() { for (var i = 0; i < informerData.length; i++) { var tickerId = informerData[i].id; if ((informerData[i].subnet !== '1') ^ ('0' === '1')) { (function(type) { self.LL["MarketGidLoad" + type + tickerId + (self.uniqId != '' ? ('_' + self.uniqId) : '')] = function(json, awd) { self.JQ = type.toLowerCase(); self.WB = '0'; self["MarketGidLoadNews"](json, awd); }; self.LL["MarketGidCReject138325"] = self['MarketGidReject']; })(informerData[i].type); } if ((informerData[i].subnet !== '1') ^ ('1' === '1')) { (function(type) { self.LL["MarketGidLoad" + type + tickerId + (self.uniqId != '' ? ('_' + self.uniqId) : '')] = function(json, awd) { self.JQ = type.toLowerCase(); self.WB = '1'; self["MarketGidLoadNews"](json, awd); }; self.LL["MarketGidCReject138325"] = self['MarketGidReject']; })(informerData[i].type); } if ((informerData[i].subnet !== '1') ^ ('2' === '1')) { (function(type) { self.LL["AdskeeperLoad" + type + tickerId + (self.uniqId != '' ? ('_' + self.uniqId) : '')] = function(json, awd) { self.JQ = type.toLowerCase(); self.WB = '2'; self["MarketGidLoadNews"](json, awd); }; self.LL["AdskeeperCReject138325"] = self['MarketGidReject']; })(informerData[i].type); } if ((informerData[i].subnet !== '1') ^ ('3' === '1')) { (function(type) { self.LL["IdealMediaLoad" + type + tickerId + (self.uniqId != '' ? ('_' + self.uniqId) : '')] = function(json, awd) { self.JQ = type.toLowerCase(); self.WB = '3'; self["MarketGidLoadNews"](json, awd); }; self.LL["IdealMediaCReject138325"] = self['MarketGidReject']; })(informerData[i].type); } } }; self.getSubnetByMirror = function(mirror) { var subnet = 0; if (typeof self.QKNames[mirror] != 'undefined') { subnet = self.QKNames[mirror]; } return subnet; }}; this['MarketGidCSubnetsBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['Subnets'] = 'MarketGidCSubnetsBlock138325'; MarketGidCInternalExchangeLoggerBlock138325 = function(self){ self.IL.push("iExchangeLoggerInit"); self.iExchangeLoggerInit = function () { self.addEvent(self.root, "click", function(event) { if (!event) var event = self.LL.event; if (!event.target) { event.target = event.srcElement; } self.FQ = true; var element = event.target; if (element.tagName != 'A') { var element = self.KP(element); if (null == element) { return; } } if (!element.hasAttribute('data-hash')) { return; } var hash = element.getAttribute('data-hash'); if (self.IF[hash] && self.IF[hash]['coopType'] == 'i') { var img = document.createElement('IMG'); var data = "cid=138325&tid=" + self.IF[hash]['id'] + "&h=" + hash; if (typeof self.servicerData['isBot'] !== 'undefined') { data += "&bot=" + self.servicerData['isBot']; } if (typeof self.servicerData['tt'] !== 'undefined') { data += "&tt=" + self.servicerData['tt']; } if (typeof self.servicerData['ts'] !== 'undefined') { data += "&ts=" + self.servicerData['ts']; } var scriptSrc = "//c." + (self.WB == 2 ? "adskeeper.co.uk" : "mgid.com") + "/clie?" + data; img.src = scriptSrc; img.onerror = function () { self.mg_ws.onmessage = self.mg_ws_messageHandler; self.sendMessage('c|'+scriptSrc); }; } }); };}; this['MarketGidCInternalExchangeLoggerBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['InternalExchangeLogger'] = 'MarketGidCInternalExchangeLoggerBlock138325'; MarketGidCInternalExchangeBlock138325 = function(self){ self.IL.push("YI"); function AO(LL) { var XA = []; var ZE = [LL]; while (ZE.length > 0) { var el = ZE.pop(); for (var i = 0; i < el. Nodes.length; i++) { var node = el. Nodes[i]; if (node.nodeType === Node.COMMENT_NODE) { XA.push(node); } else { ZE.push(node); } } } return XA; } self.YI = function () { if (self.KB.indexOf('int_exchange') == -1) { return; } var comments = AO(self.root); for (var i = 0; i < comments.length; i++) { var comment = comments[i]; var mgline = self.LH(comment, '.mgline'); if (!mgline) { continue; } if (mgline.className.indexOf('type-w') == -1) { continue; } var img = self.LL.document.createElement("IMG"); img.setAttribute('height', 20); if (comment.data == 'intExchangeWagesImagePlace') { img.className = 'mcimgad'; img.src = "//cdn.mirs.com/images/mgid/int_exchange_wages_ad.svg"; } var link = mgline.querySelector('a'); var hash = link['data-hash'] || link.getAttribute('data-hash'); if (hash && self.IF[hash] && !!self.IF[hash]['source']) { if (comment.data == 'intExhangeWagesSourcePlace') { img.className = 'mcimgsrc'; img.src = "//cdn.mirs.com/images/mgid/int_exchange_wages_src.svg"; } } if (!img.src) { continue; } comment.parentNode.replace (img, comment); } } }; this['MarketGidCInternalExchangeBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['InternalExchange'] = 'MarketGidCInternalExchangeBlock138325'; this['MarketGidCAntiAdblockBlock138325'] = function(self) { self.isAdblock = false; self.isServerSide = typeof loadServerSideAds5583829 == 'function'; self.TU.push('checkAdblock'); self.TU.push('initServerSide'); self.IL.push("initAntiAdblock"); self.initServerSide = function (){ if (self.isServerSide && self.isAdblock){ self.LL._mgq = self.LL._mgq || []; loadServerSideAds5583829(self.LL._mgq); } }; self.checkAdblock = function(){ if (typeof self.LL.getComputedStyle == "function"){ var a = self.LL.document.createElement("A"); a.href = "http://mgid.com/ghits/"; self.LL.document.body.append (a); var isAdblock = self.LL.getComputedStyle(a).display=='none'; self.LL.document.body.remove (a); self.isAdblock = isAdblock; } }; self.initAntiAdblock = function () { if (self.isAdblock){ var displayType = "block"; if (self.root.style.display != ""){ displayType = self.root.style.display; } self.root.style.setProperty("visibility", "visible", "important"); self.root.style.setProperty("display", displayType, "important"); self.appendVisibleRecursive(self.root); self.root.addEventListener("click", function (t) { t.preventDefault(); var e = t.target; var n = ''; if (e.tagName == 'A') { return window.location = e.href; } else { while ("A" != e.tagName) { e = e.parentNode; if (e == self.root) { return false; } } n = e.href; } return window.location = n; }); } }; self.appendVisibleRecursive = function (node) { for (var i = -1, l = node. Nodes.length; ++i < l;) { var el = node. Nodes[i]; var displayType = "block"; if (typeof el.style != 'object'){ continue; } if (el.style.display == 'none') { continue; } if (el.tagName=='STYLE' || el.tagName == 'SCRIPT'){ continue; } if (el.tagName=='TD'){ displayType = "table-cell"; } if (el.tagName=='TR'){ displayType = "table-row"; } if (el.className.length > 0 && el.className.split(' ').indexOf('mgbox') > -1){ displayType = "flex"; } if (el.className.length > 0 && el.className.split(' ').indexOf('mgline') > -1){ displayType = "inline-block"; } if (el.tagName == 'A' && el.parentNode.className.length > 0 && el.parentNode.className.split(' ').indexOf('submit') > -1){ if (parseInt('1') == 1) { displayType = "inline-block"; } else { continue; } } if (el.className.length > 0 && el.className.split(' ').indexOf('fake') > -1){ continue; } el.style.setProperty("visibility", "visible", "important"); el.style.setProperty("display", displayType, "important"); if (el. Nodes.length > 0){ self.appendVisibleRecursive(el); } } };}; this['MarketGidCAntiAdblockBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['AntiAdblock'] = 'MarketGidCAntiAdblockBlock138325'; MarketGidCUtilsBlock138325 = function(self){ self.utils = {}; self.utils.getScroll = function() { var w = self.utils.getWindow(); return { top: w.document.body.scrollTop || w.document.documentElement.scrollTop || 0, left: w.document.body.scrollLeft || w.document.documentElement.scrollLeft || 0 } }; self.utils.getRect = function(element, withScroll) { var rect = element.getBoundingClientRect(); var toReturn = { top: rect.top, bottom: rect.bottom, left: rect.left, right: rect.right, height: (rect.height ? rect.height : rect.bottom - rect.top), width: (rect.width ? rect.width : rect.right - rect.left) }; if (self.LL.self !== self.LL.top) { var frame = self.utils.getFrame(); if (frame) { var iframeRect = frame.getBoundingClientRect(); toReturn.top += iframeRect.top; toReturn.bottom += iframeRect.top; toReturn.left += iframeRect.left; toReturn.right += iframeRect.left; } } if (withScroll) { var scroll = self.utils.getScroll(); toReturn.top += scroll.top; toReturn.bottom += scroll.top; toReturn.left += scroll.left; toReturn.right += scroll.left; } return toReturn; }; self.utils.getViewportSize = function() { var w = self.utils.getWindow(); return { width: (w.innerWidth || w.document.documentElement.clientWidth), height: (w.innerHeight || w.document.documentElement.clientHeight) }; }; var currentWindow = undefined; self.utils.getWindow = function() { if (currentWindow === undefined) { var w = self.LL; if (self.LL.parent != self.LL.self) { try { if (self.LL.top.document != undefined) { w = self.LL.top; } } catch (err) { } } currentWindow = w; } return currentWindow; }; var topFrame = undefined; self.utils.getFrame = function() { if (topFrame === undefined) { try { for (var w = self.LL, frame = w.frameElement; w.frameElement; w = w.parent) { frame = w.frameElement; } topFrame = frame; } catch(err) { topFrame = null; } } return topFrame; }}; this['MarketGidCUtilsBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['Utils'] = 'MarketGidCUtilsBlock138325'; MarketGidCRtbBlock138325 = function(self){ this.IL.push("cmPixelLoad"); this.cmPixelLoad = function() { var script = MarketGidInfC138325.LL.document.createElement('script'); script.charset = 'utf-8'; var scriptSrc = '//cm.mgid.com/i.js'; script.src = scriptSrc; script.type = 'text/javascript'; script.async = true; script.onerror = function () { self.mg_ws.onmessage = self.mg_ws_messageHandler; self.sendMessage('js|'+script.src); }; var currentRoot = MarketGidInfC138325.realRoot != undefined ? MarketGidInfC138325.realRoot : MarketGidInfC138325.root; currentRoot.parentNode.append (script); };}; this['MarketGidCRtbBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['Rtb'] = 'MarketGidCRtbBlock138325'; MarketGidCMgqBlock138325 = function(self){ this.isLongCheck = false; this.TU.push("mgqInit"); this.mgqWorker = function() { var length = self.LL._mgq.length; var pool = self.LL._mgq.slice(0); for (var i = 0; i < length; i++) { var el = pool[i]; if (typeof(self.LL[el[0]]) == 'function') { self.LL[el[0]].apply(self.LL, el.slice(1)); self.LL._mgq.splice(i, 1); } } if (!self.LL._mgqi) { self.LL._mgqi = self.LL.setInterval(function() { self.mgqWorker(); }, 5); } if (!self.isLongCheck) { if ((new Date()).getTime() - self.LL._mgqt > 10000) { self.isLongCheck = true; self.LL.clearInterval(self.LL._mgqi); self.LL._mgqi = self.LL.setInterval(function() { self.mgqWorker(); }, 100); } } }; this.mgqInit = function() { self.LL._mgq = self.LL._mgq || []; if (typeof(self.LL._mgqp) == 'undefined') { self.LL._mgqp = self.mgqWorker; self.LL._mgqt = (new Date()).getTime(); self.mgqWorker(); } };}; this['MarketGidCMgqBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['Mgq'] = 'MarketGidCMgqBlock138325'; this['MarketGidCAntifraudBlock138325'] = function(self){ self.IL.push('WN'); self.TU.push('BU'); self.NO = null; self.PK = null; self.FQ = false; self.ET = ''; self.QY = ''; self.YU = ''; self.VI = ''; self.RD = ''; self.KZ = ''; self.GP = ''; self.ZP = ''; self.ZJ = ''; self.KD = 0; self.JG = 0; self.GU = ''; self.YH = ''; self.OS = ''; self.BU = function() { if (self.VR['svspr'] == undefined) { self.YU = self.ZB(self.LL.document.referrer, 500); self.VR['svspr'] = self.YU; self.setCookie(); } else { self.YU = self.VR['svspr']; } self.VI = self.LL.document.referrer; self.RD = self.LL.document.location.href; var r = []; r = self.NT(70, 50, 50); self.YU = self.x64String(r[0]); self.VI = self.x64String(r[1]); self.RD = self.x64String(r[2]); if (self.VR['svsds'] != undefined) { self.KZ = self.VR['svsds']; self.KZ++; } else { self.KZ = 1; } self.VR['svsds'] = self.KZ; self.setCookie(); var d = new Date(); self.ET = d.getTime() + '138325' + Math.floor(Math.random()*100) + '' + (2*Math.floor(Math.random()*4)); self.ET += 1; self.ET = self.TS(self.ZB(self.ET, 16, 1)); self.KD = self.TS(d.getTime()); if (self.VR['TejndEEDj'] == undefined) { self.VR['TejndEEDj'] = self.ET; self.setCookie(); } self.GU = self.IP(); self.YH = self.TS(153); self.OS = self.II(); }; self.x64String = function(s) { s = s.toString(); s = unescape(encodeURIComponent(s)); var b64c = '\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x24\x54\x55\x56\x57\x58\x59\x5a\x61\x62\x63\x64\x65\x2a\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d'; var b64e = ''; var c1, c2, c3, c4, e1, e2, e3, e4; for (var i = 0; i < s.length;) { c1 = s.charCodeAt(i++); c2 = 2 << 5; e1 = c1 >> (c2 / 32); c3 = s.charCodeAt(i++); e2 = ((c1 & 3) << (c2 / 16)) | (c3 >> (c2 / 16)); c4 = s.charCodeAt(i++); e3 = isNaN(c3) ? c2 : (((c3 & 15) << (c2 / 32)) | (c4 >> (c2 - 58))); e4 = isNaN(c4) ? c2 : (c4 & (c2 - 1)); b64e += b64c.charAt(e1) + b64c.charAt(e2) + b64c.charAt(e3) + b64c.charAt(e4); } return b64e; }; self.GF = function(n) { return n ? Math.round(n).toString(16) : ''; }; self.ZB = function(str, n, r) { var length = str.length; if (length <= n) { return str; } var start = r ? length - n : 0; return str.substr(start, n); }; self.BE = function(element) { var offsetLeft = 0, offsetTop = 0; do { offsetLeft += element.offsetLeft; offsetTop += element.offsetTop; } while (element = element.offsetParent); return { 'x': offsetLeft, 'y': offsetTop }; }; self.EG = function(event) { var x = 0, y = 0; if (!event) event = self.LL.event; if (event.pageX || event.pageY) { x = event.pageX; y = event.pageY; } else if (event.clientX || event.clientY) { x = event.clientX + (self.LL.document.documentElement.scrollLeft || self.LL.document.body.scrollLeft) - self.LL.document.documentElement.clientLeft; y = event.clientY + (self.LL.document.documentElement.scrollTop || self.LL.document.body.scrollTop) - self.LL.document.documentElement.clientTop; } return { 'x':x, 'y':y }; }; self.II = function() { var FO = 0; if (self.LL.opera) { FO += 1; } if (self.LL.opera && self.LL.opera.buildNumber) { FO += 2; } if (self.LL.document.all || self.LL.MSStream) { FO += 4; } if (!self.LL.btoa || self.LL.navigator.msPointerEnabled) { FO += 8; } if (self.LL.chrome) { FO += 16; } if (self.LL.mozInnerScreenX != undefined) { FO += 32; } if (!self.LL.external) { FO += 64; } return FO; }; self.QI = function() { return self.LL.navigator.javaEnabled() ? 1 : 0; }; self.UO = function() { var b = 0; if (typeof(self.LL.navigator.plugins) != 'undefined' && typeof(self.LL.navigator.plugins["Shockwave Flash"]) == 'object') { b = 1; } else if (typeof self.LL.ActiveXObject != 'undefined') { try { if (new ActiveXObject('ShockwaveFlash.ShockwaveFlash')) { b = 1; } } catch(e) {} } return b; }; self.BH = function() { return self.LL.navigator.cookieEnabled ? 1 : 0; }; self.YV = function() { if (self.LL.sessionStorage) { try { var e = null; self.LL.sessionStorage.setItem('svs', 1); e = self.LL.sessionStorage.getItem('svs'); } catch (n) {} } return e ? 1 : 0; }; self.EO = function() { if (self.LL.localStorage) { try { var e = null; self.LL.localStorage.setItem('svs', 1); e = self.LL.localStorage.getItem('svs'); } catch (n) {} } return e ? 1 : 0; }; self.NE = function() { var b = 0; if (self.QI()) b += 1; if (self.UO()) b += 2; if (self.BH()) b += 4; if (self.EO()) b += 8; if (self.YV()) b += 16; return b; }; self.ZR = function(number) { return 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcde.ghijklmnopqrstuv0123456789wxyz-_'.substr(number, 1); }; self.VF = function(number) { var dict = { '00': 'A', '01': 'B', '02': 'C', '03': 'D', '04': 'E', '05': 'F', '06': 'G', '07': 'H', 10: 'I', 11: 'J', 12: 'K', 13: 'L', 14: 'M', 15: 'N', 16: 'O', 17: 'P', 20: 'Q', 21: 'R', 22: 'S', 23: 'T', 24: 'U', 25: 'V', 26: 'W', 27: 'X', 30: 'Y', 31: 'Z', 32: 'a', 33: 'b', 34: 'c', 35: 'd', 36: 'e', 37: '.', 40: 'g', 41: 'h', 42: 'i', 43: 'j', 44: 'k', 45: 'l', 46: 'm', 47: 'n', 50: 'o', 51: 'p', 52: 'q', 53: 'r', 54: 's', 55: 't', 56: 'u', 57: 'v', 60: '0', 61: '1', 62: '2', 63: '3', 64: '4', 65: '5', 66: '6', 67: '7', 70: '8', 71: '9', 72: 'w', 73: 'x', 74: 'y', 75: 'z', 76: '-', 77: '_', 0: '!', 1: '*', 2: '\'', 3: '(', 4: ')', 5: ';', 6: ':', 7: '@' }; return dict[number]; }; self.NT = function(l1, l2, l3) { var arr = [self.YU, self.VI, self.RD]; var sizes = [l1, l2, l3]; var totalSize = 0; var totalLength = 0; for (var i = 0; i < sizes.length; i++) { totalSize += sizes[i]; totalLength += arr[i].length; } if (totalLength <= totalSize) return arr; var completes = [0, 0, 0]; var buffer = []; for (var i = 0; i < arr.length; i++) { var end = -1; if (arr[i].length >= 8) { end = arr[i].indexOf("/", 8); } if (end == -1) { buffer[i] = arr[i]; arr[i] = ''; } else { buffer[i] = arr[i].substr(0, end); arr[i] = arr[i].substr(end); } sizes[i] -= buffer[i].length; } var domains = buffer.slice(); var replaces = []; if (domains[0] == domains[1]) { replaces[0] = "++"; } else if (domains[0] == domains[2]) { replaces[0] = "::"; } if (domains[1] == domains[2]) { replaces[1] = ";;"; } while(1) { var bFlag = 0; for (var i = 0; i < arr.length; i++) { if (!completes[i] && !arr[i].length) { completes[i] = 1; for (var j = 0; j < completes.length; j++) { if (!completes[j]) { sizes[j] += sizes[i]; sizes[i] = 0; break; } } } else if (!completes[i]) { bFlag = 1; buffer[i] += arr[i][0]; if (arr[i].length != 1) { arr[i] = arr[i].substr(1); } else { arr[i] = ''; } sizes[i]--; if (!sizes[i]) { completes[i] = 1; } } } if (!bFlag) { for (var i = 0; i < arr.length; i++) { if (!arr[i].length) continue; for (var j = 0; j < sizes.length; j++) { if (sizes[j]) { completes[i] = 0; sizes[i] = sizes[j]; sizes[j] = 0; bFlag = 1; break; } } if (bFlag) { break; } } } if (!bFlag) { break; } } for (var i in replaces) { buffer[i] = buffer[i].split(domains[i]).join(replaces[i]); } return buffer; }; self.TS = function(number) { if (number == null) { return ''; } var oct = parseInt(number, 10).toString(8); var OJ = 2; var n = Math.ceil(oct.length/OJ); var chars = ''; for (var i = 0; i < n; i++) { var part = oct.substr(i*OJ, OJ); chars += self.VF(part); } return chars; }; self.IP = function() { var WY = {"props":{"3":"window['close']","13":"window['navigator']['taintEnabled']","16":"window['EventTarget']['toString']","18":"window['navigator']['appName']","20":"window['ApplicationCacheErrorEvent']","22":"window['clearImmediate']","23":"window['CryptoKey']","25":"window['external']['AddSearchProvider']","32":"window['chrome']['search']","33":"window['clientInformation']['vendor']","40":"window['TouchEvent']","43":"window['DeviceMotionEvent']","46":"window['navigator']['webkitGetGamepads']","49":"window['Notification']","56":"window['BeforeLoadEvent']","57":"window['Entity']","72":"window['AnalyserNode']","74":"window['ArrayBufferView']","76":"window['HTMLBaseFontElement']","86":"window['self']['SharedWorker']","87":"window['Touch']","91":"window['DOMException']['ABORT_ERR']","92":"window['Set']","98":"window['document']['createTouch']","138":"window['NaN']","139":"window['document']['prepend']","163":"window['SiteBoundCredential']","165":"window['CanvasCaptureMediaStreamTrack']"},"rules":{"contains":{"3":["({command:\"window.close.self\"})"],"18":["MicrosoftInternetExplorer"],"33":["GoogleInc."]},"not_empty":[13,16,18,20,22,23,25,32,40,43,46,49,56,57,76,86,87,91,92,98,138,139,163,165],"undefined":[25,46,72,74,87]}}; var EN = ''; for (var i in WY['props']) { i = parseInt(i, 10); var value = "undefined"; try { value = (eval(WY['props'][i])+"").replace(/\s/g,""); } catch (e) {} if (WY['rules']['contains'] && i in WY['rules']['contains']) { for (var j in WY['rules']['contains'][i]) { EN += value.indexOf(WY['rules']['contains'][i][j]) != -1 ? "1" : "0"; } } if (WY['rules']['empty'] && WY['rules']['empty'].indexOf(i) != -1) { EN += value == "" ? "1" : "0"; } if (WY['rules']['not_empty'] && WY['rules']['not_empty'].indexOf(i) != -1) { EN += (value != "undefined" && value != "") ? "1" : "0"; } if (WY['rules']['undefined'] && WY['rules']['undefined'].indexOf(i) != -1) { EN += value == "undefined" ? "1" : "0"; } } var OJ = 6; var n = Math.ceil(EN.length/OJ); var chars = ''; for (var i = 0; i < n; i++) { var part = EN.substr(i*OJ, OJ); var dec = parseInt(part, 2); chars += self.ZR(dec); } return chars; }; self.JB = function(el) { while (el.first && el.first .nodeType == 1) { el = el.first ; } while (el.parentNode) { if (self.LL.getComputedStyle(el).getPropertyValue('opacity') <= 0.2) { return 1; } if (el == self.LL.document.body) { break; } el = el.parentNode; } return 0; }; self.CT = function(event, element) { if (false == self.FQ) { return; } var element = element || self.LL.document.createElement('A'); var event = event || self.LL.document.createEvent('MouseEvent'); var date = new Date(); var TX = self.EG(event); var b = element.getBoundingClientRect(); var IA = self.BE(element); var d = self.LL.document; var tsp = self.JB(element); var XL = ''; for (var i = 1; i <= Math.ceil((self.OS + 1) / 68) * 35; i++) { if ((i % 26 == 0) || ((i % 26 == 6) && (((i % 26) + 5) % 11 == 0))) { continue; } XL += (i == 1 ? String.fromCharCode(97 + (i % 26)) : String.fromCharCode(102)); var ES = ''; if (i > 35) { break; } switch (i) { case 1: ES = self.ET; break; case 2: ES = self.TS(b.bottom); break; case 3: ES = self.KD; break; case 4: ES = self.TS(date.getTime()); break; case 5: ES = self.TS(d.body.clientHeight); break; case 7: ES = self.TS(event.clientX); break; case 8: ES = self.TS(event.clientY); break; case 9: ES = self.TS(b.left); break; case 10: ES = self.TS(self.PK); break; case 11: ES = self.TS(Math.abs(b.top)); break; case 12: ES = self.TS(Math.abs(d.body.clientHeight - event.clientY)); break; case 13: ES = self.TS(Math.abs(b.right - b.left)); break; case 14: ES = self.TS(Math.abs(b.bottom - b.top)); break; case 15: ES = self.GU; break; case 16: ES = self.TS(event.clientY); break; case 17: ES = self.TS(self.OS); break; case 18: ES = self.TS(element['\x64\x61\x74\x61\x2d\x72\x65\x6C']); break; case 19: ES = self.RD; break; case 20: ES = self.VI; break; case 21: ES = self.YU; break; case 22: ES = self.TS(self.KZ); break; case 23: ES = self.TS(TX.x); break; case 24: ES = self.TS(TX.y); break; case 25: ES = self.TS(IA.x); break; case 27: ES = self.TS(IA.y); break; case 28: ES = self.ZR(self.NE()); break; case 29: ES = self.YH; break; case 30: ES = self.TS(self.LL.screen.width); break; case 31: ES = self.TS(self.LL.screen.height); break; case 33: ES = self.TS(self.JG); break; case 34: ES = self.TS(tsp); break; case 35: ES = self.x64String(self.LL.navigator.userAgent); break; } XL += ES; } return encodeURIComponent(XL); }; self.WS = function(event, element) { if (!event) var event = self.LL.event; if (!event.target) { event.target = event.srcElement; } var hash = element['data-hash'] || element.getAttribute('data-hash'); if (typeof(hash) == 'undefined' || element.tagName != 'A') { return; } element[self.hrefAttr] = self.LU(hash, event, element); }; self.LM = function(event) { if (!event) var event = self.LL.event; if (!event.target) { event.target = event.srcElement; } self.FQ = true; var element = event.target; if (element.tagName != 'A') { var element = self.KP(element); if (null == element) { return; } } if (!element.hasAttribute('data-hash')) { return; } self.WS(event, element); self.LL.setTimeout(function() { self.FQ = false; self.WS(event, element); }, 100); }; self.RL = function(event) { if (!event) var event = self.LL.event; if (!event.target) { event.target = event.srcElement; } self.FQ = true; var element = event.target; if (element.tagName != 'A') { var element = self.KP(element); if (null == element) { return; } } if (!element.hasAttribute('data-hash')) { return; } var v = 0; if (parseInt(element['\x64\x61\x74\x61\x2d\x72\x65\x6C'])) { v = parseInt(element['\x64\x61\x74\x61\x2d\x72\x65\x6C']); } if (v % 2 != 1) { element['\x64\x61\x74\x61\x2d\x72\x65\x6C'] = v + 1; } self.WS(event, element); }; self.MW = function(event) { if (!event) var event = self.LL.event; if (!event.target) { event.target = event.srcElement; } self.PK = 0; self.LL.clearInterval(self.NO); self.NO = self.LL.setInterval(function() { self.PK++; }, 1000); }; self.HQ = function(event) { if (!event) var event = self.LL.event; if (!event.target) { event.target = event.srcElement; } self.FQ = true; var element = event.target; if (element.tagName != 'A') { var element = self.KP(element); if (null == element) { return; } } if (!element.hasAttribute('data-hash')) { return; } var v = 0; if (parseInt(element['\x64\x61\x74\x61\x2d\x72\x65\x6C'])) { v = parseInt(element['\x64\x61\x74\x61\x2d\x72\x65\x6C']); } if ((v >> 1) % 2 != 1) { element['\x64\x61\x74\x61\x2d\x72\x65\x6C'] = v + 2; } self.WS(event, element); }; self.GV = function(event) { if (!event) var event = self.LL.event; if (!event.target) { event.target = event.srcElement; } self.FQ = true; var element = event.target; if (element.tagName != 'A') { var element = self.KP(element); if (null == element) { return; } } if (!element.hasAttribute('data-hash')) { return; } var v = 0; if (parseInt(element['\x64\x61\x74\x61\x2d\x72\x65\x6C'])) { v = parseInt(element['\x64\x61\x74\x61\x2d\x72\x65\x6C']); } if (!((v >> 1) & (4 >> 1))) { element['\x64\x61\x74\x61\x2d\x72\x65\x6C'] = v + 4; } self.WS(event, element); }; self.SA = function(event) { if (!event) var event = self.LL.event; if (!event.target) { event.target = event.srcElement; } self.FQ = true; var element = event.target; if (element.tagName != 'A') { var element = self.KP(element); if (null == element) { return; } } if (!element.hasAttribute('data-hash')) { return; } var v = 0; if (parseInt(element['\x64\x61\x74\x61\x2d\x72\x65\x6C'])) { v = parseInt(element['\x64\x61\x74\x61\x2d\x72\x65\x6C']); } if (!((v >> 1) & (8 >> 1))) { element['\x64\x61\x74\x61\x2d\x72\x65\x6C'] = v + 8; } self.WS(event, element); }; self.DD = function() { if (!self.JG) { self.JG = (new Date()).getTime(); } }; self.WN = function(element) { if (typeof element == 'undefined') { element = self.root; } self.addEvent(element, "mouseup", self.LM); self.addEvent(element, "mouseover", self.RL); self.addEvent(element, "mousemove", self.HQ); self.addEvent(element, "ontouchstart", self.GV); self.addEvent(element, "ontouchend", self.SA); self.addEvent(self.LL.document, "scroll", self.MW); var regex = /\/\/img.*\/[\d]+\/([\d]+).*\.(jpg|gif)/; var images = self.root.getElementsByTagName('IMG'); for (var i = 0; i < images.length; i++) { if (regex.exec(images[i].src)) { self.addEvent(images[i], "load", self.DD); } } };}; this['MarketGidCAntifraudBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['Antifraud'] = 'MarketGidCAntifraudBlock138325'; MarketGidCResponsiveBlock138325 = function(self){ self.IL.push("responsiveInit"); self.responsiveInit = function() { self.ElementQueries.init(); self.fixGetElementsByClassNameHandler(self.root); if (!self.fakeMode) { self.fixPrices(); setTimeout(function() { self.fixFlexbox(); }, 100); } }; self.fixElementPrice = function(element) { self.fixGetElementsByClassNameHandler(element); var priceArray = element.getElementsByClassName("mcpriceouter"); for (var i = 0; i < priceArray.length; i++) { var parent = priceArray[i].parentNode; self.fixGetElementsByClassNameHandler(parent); var oldPriceArray = parent.getElementsByClassName("mcpriceold"); if (priceArray[i].getBoundingClientRect()['bottom'] >= parent.getBoundingClientRect()['bottom']) { for (var j = 0; j < oldPriceArray.length; j++) { oldPriceArray[j].style.display = 'none'; } } else { for (var j = 0; j < oldPriceArray.length; j++) { oldPriceArray[j].style.display = 'inline-block'; if (priceArray[i].getBoundingClientRect()['bottom'] >= parent.getBoundingClientRect()['bottom']) { oldPriceArray[j].style.display = 'none'; } } } } }; self.fixPrices = function() { var elements = self.root.getElementsByClassName("mgline"); for (var i = 0; i < elements.length; i++) { (function(element) { self.fixElementPrice(element); element.resizeSensor = new self.ResizeSensor(element, function() { self.fixElementPrice(element); }); })(elements[i]); } }; self.fixFlexbox = function() { var s = self.LL.document.body || self.LL.document.documentElement, s = s.style; if (s.webkitFlexWrap == '' || s.msFlexWrap == '' || s.flexWrap == '') return true; var elements = self.root.getElementsByClassName("mgline"); for (var i = 0; i < elements.length; i++) { elements[i].style.height = "auto"; } setTimeout(function() { var maxH = 0; for (var i = 0; i < elements.length; i++) { var rect = elements[i].getBoundingClientRect(); var elH = rect.bottom - rect.top; if (elH > maxH) { maxH = elH; } } if (elH != 0) { for (var i = 0; i < elements.length; i++) { elements[i].style.height = maxH + "px"; } } self.fixImages(); }, 0); }; self.fixImages = function() { setTimeout(function() { var needToRefresh = false; var els = self.root.getElementsByClassName("mcimg"); for (var i = 0; i < els.length; i++) { if (els[i].tagName == "DIV") { var rect = els[i].getBoundingClientRect(); if (rect.bottom - rect.top <= 25) { needToRefresh = true; els[i].style.display = "none"; (function(el) { setTimeout(function() { el.style.display = "block"; }, 0); })(els[i]); } } } if (needToRefresh) { self.fixFlexbox(); } }, 200); }; function generateHash(str) { var hash = 0, i, chr, len; if (str.length == 0) { return hash; } for (i = 0, len = str.length; i < len; i++) { chr = str.charCodeAt(i); hash = ((hash << 5) - hash) + chr; hash |= 0; } return hash; } /*! Copyright (c) 2013 Marc J. Schmidt Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. */ self.ElementQueries = function() { function SetupInformation(element) { this.element = element; this.options = {}; var key, option, width = 0, height = 0, value, actualValue, attrValues, attrValue, attrName; this.addOption = function(option) { var idx = [option.mode, option.property, option.value].join(','); this.options[idx] = option; }; var attributes = ['min-width', 'min-height', 'max-width', 'max-height']; this.call = function() { width = this.element.offsetWidth; height = this.element.offsetHeight; attrValues = {}; for (key in this.options) { if (!this.options.hasOwnProperty(key)){ continue; } option = this.options[key]; value = parseFloat(option.value); actualValue = option.property == 'width' ? width : height; attrName = option.mode + '-' + option.property; attrValue = ''; if (option.mode == 'min' && actualValue >= value) { attrValue += option.value; } if (option.mode == 'max' && actualValue <= value) { attrValue += option.value; } if (!attrValues[attrName]) attrValues[attrName] = ''; if (attrValue && -1 === (' '+attrValues[attrName]+' ').indexOf(' ' + attrValue + ' ')) { attrValues[attrName] += ' ' + attrValue; } } for (var k in attributes) { if (attrValues[attributes[k]]) { this.element.setAttribute(attributes[k], attrValues[attributes[k]].substr(1)); } else { this.element.removeAttribute(attributes[k]); } } }; } function setupElement(element, options, queryHash) { if (element.elementQueriesSetupInformation) { element.elementQueriesSetupInformation.addOption(options); } else { element.elementQueriesSetupInformation = new SetupInformation(element); element.elementQueriesSetupInformation.addOption(options); element.elementQueriesSensor = new self.ResizeSensor(element, function() { element.elementQueriesSetupInformation.call(); }, queryHash); } element.elementQueriesSetupInformation.call(); } function queueQuery(selector, mode, property, value) { var query; var queryHash = generateHash(selector + mode + property + value); if (self.root.querySelectorAll && self.root.querySelectorAll.bind) query = self.root.querySelectorAll.bind(self.root); if (!query) { return; } var elements = query(selector); for (var i = 0, j = elements.length; i < j; i++) { setupElement(elements[i], { mode: mode, property: property, value: value }, queryHash); } } var regex = /,?([^,\n]*)\[[\s\t]*(min|max)-(width|height)[\s\t]*[~$\^]?=[\s\t]*"([^"]*)"[\s\t]*]([^\n\s\{]*)/mgi; function extractQuery(css) { var match; css = css.replace(/'/g, '"').replace(/(\[.*?\])([A-z\.-]*)/g, "$2$1"); while (null !== (match = regex.exec(css))) { if (5 < match.length) { queueQuery(match[1] || match[5], match[2], match[3], match[4]); } } } function readRules(rules) { var selector = ''; if (!rules) { return; } if ('string' === typeof rules) { rules = rules.toLowerCase(); if (-1 !== rules.indexOf('min-width') || -1 !== rules.indexOf('max-width')) { extractQuery(rules); } } else { for (var i = 0, j = rules.length; i < j; i++) { if (1 === rules[i].type) { selector = rules[i].selectorText || rules[i].cssText; if (-1 !== selector.indexOf('min-height') || -1 !== selector.indexOf('max-height')) { extractQuery(selector); }else if(-1 !== selector.indexOf('min-width') || -1 !== selector.indexOf('max-width')) { extractQuery(selector); } } else if (4 === rules[i].type) { readRules(rules[i].cssRules || rules[i].rules); } } } } this.init = function() { var sSheets = self.LL.document.styleSheets; for (var i = 0, j = sSheets.length; i < j; i++) { try { if (sSheets[i].ownerNode && sSheets[i].ownerNode.className == 'MarketGidC138325') { readRules(sSheets[i].cssRules || sSheets[i].cssText || sSheets[i].rules); } } catch(err) { continue; } } }; this.update = function() { this.init(); }; }; self.ElementQueries.update = function() { self.ElementQueries.instance.update(); }; self.ElementQueries.init = function() { if (!self.ElementQueries.instance) { self.ElementQueries.instance = new self.ElementQueries(); } self.ElementQueries.instance.init(); }; self.initElementQueries = function() { self.addEvent(self.LL, "load", function() { self.ElementQueries.init(); }); }; self.ResizeSensor = function(element, callback, queryHash) { function EventQueue() { this.q = []; this.add = function(ev) { this.q.push(ev); }; var i, j; this.call = function() { for (i = 0, j = this.q.length; i < j; i++) { this.q[i].call(); } }; } function getComputedStyle(element, prop) { if (element.currentStyle) { return element.currentStyle[prop]; } else if (self.LL.getComputedStyle) { return self.LL.getComputedStyle(element, null).getPropertyValue(prop); } else { return element.style[prop]; } } function attachResizeEvent(element, resized, queryHash) { if (!element.resizedAttached) { element.resizedAttached = new EventQueue(); element.resizedAttached.add(resized); } else if (element.resizedAttached) { element.resizedAttached.add(resized); return; } if (!self.LL.document.querySelector) return; var resizeSensorElement = self.LL.document.querySelector('.resize-sensor.hash_' + queryHash); if (null == resizeSensorElement || !queryHash) { element.resizeSensor = self.LL.document.createElement('div'); if (queryHash) { element.resizeSensor.className = 'resize-sensor hash_' + queryHash; } else { element.resizeSensor.className = 'resize-sensor'; } var style = 'position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: scroll; z-index: -1; visibility: hidden;'; var style = 'position: absolute; left: 0; top: 0;'; element.resizeSensor.style.cssText = style; element.resizeSensor.innerHTML = '
' + '
' + '
' + '
' + '
' + '
'; element.append (element.resizeSensor); var resizeSensorElement = element.resizeSensor } if (!{fixed: 1, absolute: 1}[getComputedStyle(element, 'position')]) { element.style.position = 'relative'; } var expand = resizeSensorElement. Nodes[0]; var expand = expand. Nodes[0]; var shrink = resizeSensorElement. Nodes[1]; var lastWidth, lastHeight; var reset = function() { expand .style.width = expand.offsetWidth + 10 + 'px'; expand .style.height = expand.offsetHeight + 10 + 'px'; expand.scrollLeft = expand.scrollWidth; expand.scrollTop = expand.scrollHeight; shrink.scrollLeft = shrink.scrollWidth; shrink.scrollTop = shrink.scrollHeight; lastWidth = element.offsetWidth; lastHeight = element.offsetHeight; }; reset(); var changed = function() { if (element.resizedAttached) { element.resizedAttached.call(); } }; self.addEvent(expand, 'scroll', function() { if (element.offsetWidth > lastWidth || element.offsetHeight > lastHeight) { changed(); } reset(); }); self.addEvent(shrink, 'scroll',function() { if (element.offsetWidth < lastWidth || element.offsetHeight < lastHeight) { changed(); } reset(); }); } if ("[object Array]" === Object.prototype.toString.call(element) || ('undefined' !== typeof jQuery && element instanceof jQuery) || ('undefined' !== typeof Elements && element instanceof Elements) ) { var i = 0, j = element.length; for (; i < j; i++) { attachResizeEvent(element[i], callback, queryHash); } } else { attachResizeEvent(element, callback, queryHash); } };}; this['MarketGidCResponsiveBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['Responsive'] = 'MarketGidCResponsiveBlock138325'; MarketGidCCountersBlock138325 = function(self){ this.IL.push("IO"); this.IO = function() { }; this.IL.push("compositeComscoreCountersLoad"); this.compositeComscoreCountersLoad = function() { if(!this.comscoreCompositeCounter){ this.comscoreCompositeCounter=true; this.LL._comscore = this.LL._comscore||[]; var mirrorStr = ((this.JQ=='news') ? ('0' + '0') : ('1' + '20')); this.LL._comscore.push({ c1: "7", c2:"15208452", c3:mirrorStr, c4: this.blockId }); (function(){var s = MarketGidInfC138325.LL.document.createElement("script"), el = MarketGidInfC138325.LL.document.getElementsByTagName("script")[0]; s.async = true; var scriptSrc = (MarketGidInfC138325.LL.document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js";s.src=scriptSrc; el.parentNode.insertBefore(s, el); })(); } }; }; this['MarketGidCCountersBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['Counters'] = 'MarketGidCCountersBlock138325'; this['MarketGidCAdvertLinkBlock138325'] = function(self) { self.IX.push("refreshAdvertLink"); self.IL.push("initAdvertPopup"); self.getAdvertLinkValue = function() { return parseInt('0'); }; self.removeElements = function(elements) { for (var i = 0; i < elements.length; i++) { elements[i].parentNode.remove (elements[i]); } }; self.refreshAdvertLink = function() { var adLink = self.getAdvertLinkValue(); if (adLink) { try { var adLinkBlock = self.QKsAdLinkBlocks[self.WB].replace(/%id/g, '138325'); var widgetTitle = "Promoted Content" || ''; adLinkBlock = adLinkBlock.replace("%WIDGET_TITLE%", widgetTitle); var utm = ''; if (utm == '') { utm = self.QKsUtm[self.WB]; } self.IS = adLinkBlock.replace(/%utm/, utm); if (adLink === 1) { return; } var container = document.createElement('div'); container.innerHTML = self.IS; if (adLink === 2) { self.removeElements(container.getElementsByClassName('mg_addad138325')); } if (adLink === 3) { self.removeElements(container.getElementsByClassName('mghead')); } self.IS = container.innerHTML; } catch (e) { } } else { self.IS = ''; } }; self.parseAdvertLink = function(template) { var marker = ''; var adLink = self.getAdvertLinkValue(); var isMarkerInTheSecondPart = template.indexOf(marker) > (template.length / 2); if (isMarkerInTheSecondPart) { self.fixGetElementsByClassNameHandler(self.root); self.removeElements(self.root.getElementsByClassName('mg_addad138325')); } if (isMarkerInTheSecondPart || self.JJ == 0) { if (template.indexOf(marker) >= 0) { template = template.replace(marker, this.IS); } else { template = self.IS + template; } } return template; }; self.initAdvertPopup = function () { if (self.LL.top != self.LL.self) { return; } if ('header-widget' == 'banner') { return; } if ('header-widget' == 'exit-pop-up' || parseInt('0') > 0) { return; } if (['tablet', 'desktop'].indexOf(self.deviceType) == -1) { return; } if (typeof self.LL._mgDisableAdvertPopup != 'undefined') { return; } if (typeof MarketGidCConstructorBlock138325 == 'function') { return; } var adEl = self.root.querySelector('.mg_addad138325'); if (adEl) { adEl.addEventListener("click", self.showAdvertPopup); } }; self.showAdvertPopup = function (event) { var srcEl = self.LH(event.target, '[data-advert-url]'); if (!srcEl) { return null; } event.preventDefault(); var root = (self.realRoot != undefined ? self.realRoot : self.root).parentNode; var container = root.querySelector('._mgAdvertPopupC138325'); var innerEl = root.querySelector('._mgPopupInner'); var scrollTo = function(element, to, duration) { if (duration <= 0) return; var difference = to - element.scrollTop; var perTick = difference / duration * 10; setTimeout(function() { element.scrollTop = element.scrollTop + perTick; if (element.scrollTop === to) return; scrollTo(element, to, duration - 10); }, 10); }; if (!container) { var template = '
'; var elements = self.htmlToElements(template); for (var i = 0; i < elements.length; i++) { root.append (elements[i]); } container = root.querySelector('._mgAdvertPopupC138325'); if (!container) { return false; } innerEl = container.querySelector('._mgPopupInner'); var shadowEl = container.querySelector('._mgPopupShadow'); innerEl.style.marginTop = -(innerEl.clientHeight / 2) + 'px'; shadowEl.addEventListener('click', function(event) { if (null == self.LH(event.target, '._mgPopupInner')) { container.setAttribute('style', 'display: none'); } }); var closeButton = container.querySelector('._mgClosePopup'); if (closeButton) { closeButton.addEventListener('click', function (event) { container.setAttribute('style', 'display: none'); }) } var iframe = container.querySelector('iframe'); iframe.setAttribute('src', srcEl.getAttribute('data-advert-url')); var eventMethod = self.LL.addEventListener ? "addEventListener" : "attachEvent"; var eventer = self.LL[eventMethod]; var messageEvent = eventMethod == "attachEvent" ? "onmessage" : "message"; eventer(messageEvent,function(e) { var key = e.message ? "message" : "data"; var data = JSON.parse(e[key]); if (typeof data.target == 'undefined' || data.target != 'correct-popup-height') { return true; } iframe.style.height = data.height + 'px'; if (data.safariIPad) { if (data.keyboard) { scrollTo(self.LL.document.body, 0, 500); innerEl.classList.add('fixPop'); } else { innerEl.classList.remove('fixPop'); } } innerEl.style.marginTop = -(innerEl.clientHeight / 2) + 'px'; }, false); } container.setAttribute('style', 'display: block'); if (innerEl.className.indexOf('fixPop') >= 0) { scrollTo(self.LL.document.body, 0, 500); } };}; this['MarketGidCAdvertLinkBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['AdvertLink'] = 'MarketGidCAdvertLinkBlock138325'; this['MarketGidCRejectBlock138325'] = function(self) { self.isInsertedRejectStyles = false; self['MarketGidReject'] = function () { var baseUrl = self.subnetDashboardDomains[self.getSubnetByMirror('steepto')]; self.fixGetElementsByClassNameHandler(self.root); var mglines = self.root.getElementsByClassName('mgline'); for (var i = 0; i < mglines.length; i++) { (function(mgline) { if (mgline.className.indexOf('dsp') >= 0) { return; } self.fixGetElementsByClassNameHandler(mgline); var imgList = mgline.getElementsByClassName('mcimg'); var img = false; for (var j = 0; j < imgList.length; j++) { if (imgList[j].tagName == "DIV") { img = imgList[j]; break; } } if (!img) { return; } self.fixGetElementsByClassNameHandler(img); var el = img.getElementsByClassName('close-informer'); var matchId = mgline.className.match(/teaser-([0-9]+)/); if (null == matchId) { return; } var matchType = mgline.className.match(/type-(w|e|i)/); if (null == matchType || matchType[1] == 'i') { return; } if (el.length == 0) { var url = baseUrl; url += '/publisher/blocked'; var a = self.LL.document.createElement('a'); var imgStyles = self.LL.getComputedStyle(img); a.className = "close-informer"; a.href = url + '/teaser/' + matchId[1] + '/widget/' + (matchType[1] == 'w' ? '5583829/type/goods' : '/type/news'); a.target = '_blank'; a.rel = "nofollow"; a.style.top = (parseInt(imgStyles.borderTopWidth) + 3) + 'px'; a.style.right = (parseInt(imgStyles.borderRightWidth) +3) + 'px'; img.style.position = "relative"; img.append (a); } })(mglines[i]); } }; self.initRejectStyles = function() { if (self.isInsertedRejectStyles) { return; } var rejectStyles = '\ div.mcimg a.close-informer {\ width: 14px;\ height: 14px;\ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo5NzI0ODBDMzY3ODcxMUU1OEM4RUU2RUJCOUREODIyQiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo5NzI0ODBDNDY3ODcxMUU1OEM4RUU2RUJCOUREODIyQiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjk3MjQ4MEMxNjc4NzExRTU4QzhFRTZFQkI5REQ4MjJCIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjk3MjQ4MEMyNjc4NzExRTU4QzhFRTZFQkI5REQ4MjJCIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+uNcpEQAAAHxJREFUeNqckgEKwCAIRe3fYjfKc2zX6hydaLRbbDnGkLDIPggl/5lKIcbIRJRqbDSnUmOHE6LPm+CEfhj6lnN+o5WVh1VOm6xColCXc/cgLWYev9gaejnQojCab5RDzyDt6RantqoBaz5zq54ZywJ3CXjIwQGd8skfAQYALdQqftYulocAAAAASUVORK5CYIJ0ZW50Ij4NCiA8ZGl2IGNsYXNzPSJjb250ZW50LWNvbnRhaW5lciI+PGZpZWxkc2V0Pg0KICA8aDI+NTAyIC0gV2ViIHNlcnZlciByZWNlaXZlZCBhbiBpbnZhbGlkIHJlc3BvbnNlIHdoaWxlIGFjdGluZyBhcyBhIGdhdGV3YXkgb3IgcHJveHkgc2VydmVyLjwvaDI+DQogIDxoMz5UaGVyZSBpcyBhIHByb2JsZW0gd2l0aCB0aGUgcGFnZSB5b3UgYXJlIGxvb2tpbmcgZm9yLCBhbmQgaXQgY2Fubm90IGJlIGRpc3BsYXllZC4gV2hlbiB0aGUgV2ViIHNlcnZlciAod2hpbGUgYWN0aW5nIGFzIGEgZ2F0ZXdheSBvciBwcm94eSkgY29udGFjdGVkIHRoZSB1cHN0cmVhbSBjb250ZW50IHNlcnZlciwgaXQgcmVjZWl2ZWQgYW4gaW52YWxpZCByZXNwb25zZSBmcm9tIHRoZSBjb250ZW50IHNlcnZlci48L2gzPg0KIDwvZmllbGRzZXQ+PC9kaXY+DQo8L2Rpdj4NCjwvYm9keT4NCjwvaHRtbD4NCg==");\ display: block;\ opacity: 0;\ position: absolute;\ right: 3px;\ top: 3px;\ z-index: 1;\ cursor: pointer;\ }\ div.mgline:hover a.close-informer {\ opacity: 0.7;\ -moz-transition: all 0.3s ease-out;\ -o-transition: all 0.3s ease-out;\ -webkit-transition: all 0.3s ease-out;\ -ms-transition: all 0.3s ease-out;\ transition: all 0.3s ease-out;\ }\ div.mgline a.close-informer:hover {\ opacity: 1;\ -moz-transition: all 0.3s ease-out;\ -o-transition: all 0.3s ease-out;\ -webkit-transition: all 0.3s ease-out;\ -ms-transition: all 0.3s ease-out;\ transition: all 0.3s ease-out;\ }\ div.mcimg {\ position: relative;\ display: inline-block\ }\ div.image-with-price {\ position: relative;\ }\ .mgline .image-container {\ width: auto;\ margin: 0 auto;\ display: table;\ position: relative;\ }'; self.styles += rejectStyles; self.isInsertedRejectStyles = true; }; self.IX.push('initRejectStyles');}; this['MarketGidCRejectBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['Reject'] = 'MarketGidCRejectBlock138325'; this['MarketGidCExternalCountersBlock138325'] = function(self){ self.LW; self.IL.push("DK"); var WV = function (event) { if (self.LW && event.target.className.indexOf('Button') === -1) { return; } if (!event) { event = self.LL.event; } if (!event.target) { event.target = event.srcElement; } var element = event.target; if (element.tagName != 'A') { element = self.KP(element); if (null == element) { return; } } if (!element.hasAttribute('data-hash')) { return; } var hash = element.getAttribute('data-hash'); if (!self.IF[hash]) { return; } if (!Array.isArray(self.IF[hash]['clicktrackers'])) { return; } var clicktrackers = self.IF[hash]['clicktrackers']; if (!clicktrackers.length) { return; } for (var i = 0; i < clicktrackers.length; i++) { var img = self.LL.document.createElement('IMG'); img.src = clicktrackers[i]; } }; self.DK = function(element) { if (typeof element == 'undefined') { element = self.root; } self.addEvent(element, 'click', WV); };}; this['MarketGidCExternalCountersBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['ExternalCounters'] = 'MarketGidCExternalCountersBlock138325'; MarketGidCCriteoBlock138325 = function(self){ self.LL.LoadCriteoAllPlaces = function (params) { self.criteoNurl = params.l; var s = self.LL.document.createElement('script'); self.criteoParams = params.pos; s.type = 'text/javascript'; s.src = '//cas.criteo.com/delivery/0.1/napi.jsonp?zoneid=' + params.z + '&callback=ProcessCriteo&publisherid=' + self.blockId; var h = self.LL.document.getElementsByTagName('script')[0]; h.parentNode.insertBefore(s, h); }; self.LL.ProcessCriteo = function (response) { if (response.response_status === 0 && response.products.length >= self.json.length) { self.JJ = 0; self.root.innerHTML = ''; self.iteration = 1; self.UI = []; var data = self.json; var advDomain = ""; if ("advertiser" in response && "domain" in response.advertiser) { advDomain = response.advertiser.domain; } var host = 7 === 1 ? 'marketgid' : 'mgid'; var placements = response.products.length; for (var k = 0; k <= placements; k++) { self.criteoPlacement = k; if (data[k] == undefined){ continue; } data[self.criteoPlacement][0] = advDomain; data[self.criteoPlacement][1] = k+1; data[self.criteoPlacement][3] = response.products[k].title; data[self.criteoPlacement][4] = response.products[k].description; data[self.criteoPlacement][7] = response.products[k].price; data[self.criteoPlacement][8] = ""; data[self.criteoPlacement][10].i = "//imggprx." + host + ".com/i/resize?img=" + encodeURIComponent(response.products[k].image.url) + "&size=19"; data[self.criteoPlacement][10].l = self.criteoParams[k]+"&u="+self.NP(response.products[k].click_url); data[self.criteoPlacement][10].adc = []; } self.MarketGidLoadNews(data); for (var k = 0; k <= placements; k++) { self.criteoPlacement = k; if (data[k] == undefined) { continue; } if (response.hasOwnProperty('privacy') && response.privacy.hasOwnProperty('optout_click_url') && response.privacy.hasOwnProperty('optout_image_url')) { var imgElement = self.root.getElementsByClassName('mgline')[self.criteoPlacement].getElementsByClassName('mcimg')[0]; var privacyDiv = self.LL.document.createElement('DIV'); privacyDiv.style.position = 'absolute'; privacyDiv.style.zIndex = '100'; privacyDiv.style.left = '90%'; privacyDiv.style.top = '0'; var privacyHref = self.LL.document.createElement('A'); privacyHref.setAttribute('href', response.privacy.optout_click_url); privacyHref.setAttribute('target', "_blank"); var privacyImg = self.LL.document.createElement('IMG'); privacyImg.setAttribute('src', response.privacy.optout_image_url); privacyHref.append (privacyImg); privacyDiv.append (privacyHref); imgElement.append (privacyDiv); if (response.hasOwnProperty('impression_pixels')) { for (var i in response.impression_pixels) { if (response.impression_pixels[i].hasOwnProperty('url')) { var im = self.LL.document.createElement('IMG'); im.src = response.impression_pixels[i].url; self.LL.document.body.append (im) } } } var n = self.LL.document.createElement('IMG'); n.src = self.criteoNurl; self.LL.document.body.append (n); } } } };}; this['MarketGidCCriteoBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['Criteo'] = 'MarketGidCCriteoBlock138325'; MarketGidCSendDimensionsBlock138325 = function(self){ self.blankImage = "data:image/gif;base64,"; self.precalcRect = {}; self.updatePrecalcRect = function() { self.JQ = "goods"; self.WB = '0'; self.fakeMode = true; var realRoot = self.root; var cnt = self.LL.document.createElement('div'); var newRoot = self.LL.document.createElement('div'); newRoot.id = self.root.id; self.root.id += "_"; cnt.append (newRoot); self.root.append (cnt); self.root = newRoot; realRoot.style.height = "0px"; realRoot.style.overflow = "hidden"; var countNews = 5; var lorem = "Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet"; var data = []; for (var i = 1; i <= countNews; i++) { data.push(['', i,'', lorem, lorem, '', '', '', '', '', {i: self.blankImage}]); } self.MarketGidLoadNews(data); var h = self.SJ(); self.fixGetElementsByClassNameHandler(self.root); var widgetRect = self.root.getBoundingClientRect(); if (self.root.getElementsByClassName("mgbox")[0]) { widgetRect = self.root.getElementsByClassName("mgbox")[0].getBoundingClientRect(); } self.precalcRect.width = parseInt(widgetRect.width ? widgetRect.width : widgetRect.right - widgetRect.left); self.precalcRect.height = parseInt(widgetRect.height ? widgetRect.height : widgetRect.bottom - widgetRect.top); self.precalcRect.top = widgetRect.top; self.precalcRect.bottom = widgetRect.bottom; self.requestParams.w = "w=" + self.precalcRect.width; self.requestParams.h = "h=" + self.precalcRect.height; var cols = 0; var elx = self.root.getElementsByClassName('mgline'); for (i = 0; i < elx.length; i++) { var rect = elx[i].getBoundingClientRect(); if (prepTop != undefined && prepTop < rect.top) { cols = i; break; } var prepTop = rect.top; } if (cols == 0) { cols = elx.length; } self.requestParams.cols = "cols=" + cols; self.fakeMode = false; self.root = realRoot; self.root.remove (cnt); self.root.id = self.root.id.substr(0, self.root.id.length - 1); self.root.style.height = "auto"; self.root.style.overflow = "visible"; self.JQ = ""; self.WB = ""; self.JJ = 0; self.template = ""; self.iteration = 1; self.UI = {}; }; this.TU.push("updatePrecalcRect");}; this['MarketGidCSendDimensionsBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['SendDimensions'] = 'MarketGidCSendDimensionsBlock138325'; MarketGidCMonitorBlock138325 = function(self){ this.IL.push("monitorInit"); this.shownBlocks = {}; this.monitorTimeout = null; this.isFirstByType = {}; this.monitorInit = function() { var regex = /\/\/img.*\/[\d]+\/([\d]+).*\.(jpg|gif)/; if (!this.monitorTimeout) { (function() { var newBlocks = {}; var viewportSize = self.utils.getViewportSize(); var images = self.root.getElementsByTagName('IMG'); for (var i = 0; i < images.length; i++) { if (self.isElementInViewport(images[i])) { var res = regex.exec(images[i].src); if (!res){ if (images[i].dataset.i){ res = []; res[1] = images[i].dataset.i; } } if (res && res[1] && !self.shownBlocks[res[1]]) { var teaserBlock = self.getParentTeaserBlock(images[i]); var imageRect = self.utils.getRect(images[i], true); if (teaserBlock) { var teaserDims = self.utils.getRect(teaserBlock, true); newBlocks[res[1]] = { width: Math.round(imageRect.width), height: Math.round(imageRect.height), atf: teaserDims.top < viewportSize.height, align: self.getTeaserAlign(teaserDims), desc: self.isTeaserElementVisible(teaserBlock, 'mcdesc'), price: self.isTeaserElementVisible(teaserBlock, 'mcprice'), domain: self.isTeaserElementVisible(teaserBlock, 'mcdomain') }; } else { newBlocks[res[1]] = { width: Math.round(imageRect.width), height: Math.round(imageRect.height), desc: false, price: false, domain: false }; } self.shownBlocks[res[1]] = 1; } } } self.prepareCappingData(newBlocks); self.monitorTimeout = setTimeout(arguments.callee, 1000); })(); } }; this.prepareCappingData = function(blocks) { var typePrefix = "&t=" + (self.JQ == 'news' ? "N" : "G"); var data = ""; var counter = 0; for (var i in blocks) { var prefix = blocks[i].width + "|" + blocks[i].height + "|" + ( (blocks[i].desc ? 1 : 0) + (blocks[i].price ? 2 : 0) + (blocks[i].domain ? 4 : 0) + (blocks[i].atf ? 8 : 0) + (blocks[i].align == 'right' ? 16 : 0) + (blocks[i].align == 'left' ? 32 : 0)) + "|"; var showHash = self.teaserHashes[i]; data += "&v=" + prefix + showHash; if (self.IF[showHash] && self.IF[showHash]['coopType']) { var type = self.IF[showHash]['coopType']; if (!self.isFirstByType[type]) { data += '&f' + type + "=1"; self.isFirstByType[type] = 1; } } counter++; if (counter > 20) { self.sendCappingData(typePrefix + data); data = ""; counter = 0; } } if (data != "") { self.sendCappingData(typePrefix + data); } }; this.sendCappingData = function(data) { var img = document.createElement('IMG'); if (typeof self.LL._mgwcapping == 'undefined' || self.LL._mgwcapping.indexOf('138325') == -1 ) { data = "&f=1" + data; self.LL._mgwcapping = self.LL._mgwcapping || []; self.LL._mgwcapping.push('138325'); if (self.servicerData && self.servicerData.tt) { data += '&tt=' + self.servicerData.tt; } if (self.servicerData && self.servicerData.ts) { data += '&ts=' + self.servicerData.ts; } } data += "&cid=" + '138325'; if (self.servicerData && self.servicerData.h2) { data += '&h2=' + self.servicerData.h2; } if (self.WB == 2) { var scriptSrc = "//c.adskeeper.co.uk/c?pv=2" + data; } else if (self.WB == 3) { var scriptSrc = "//c.idealmedia.com/c?pv=2" + data; } else { var scriptSrc = "//c.mgid.com/c?pv=2" + data; } img.src = scriptSrc; img.onerror = function () { self.mg_ws.onmessage = self.mg_ws_messageHandler; self.sendMessage('c|'+scriptSrc); }; }; this.isElementInViewport = function(el) { var rect = self.utils.getRect(el, false); var viewport = self.utils.getViewportSize(); return ( rect.height > 0 && rect.width > 0 && rect.top >= 0 && rect.left >= 0 && rect.bottom <= viewport.height && rect.right <= viewport.width ); }; this.getParentTeaserBlock = function(el) { var current = el; while (current != self.root && current != self.LL) { if (current.className.indexOf("mgline") >= 0) { return current; } else { current = current.parentNode; } } return null; }; this.isTeaserElementVisible = function(el, className) { self.fixGetElementsByClassNameHandler(el); var elements = el.getElementsByClassName(className); if (elements.length > 0) { var dims = elements[0].getBoundingClientRect(); if (dims.right - dims == 0 || dims.bottom - dims.top == 0) { return false; } else { return true; } } else { return false; } }; this.getTeaserAlign = function(teaserDims) { var bodyWidth = self.LL.document.body.scrollWidth; if (teaserDims.right < 0.3 * bodyWidth) { return 'left'; } else if (teaserDims.left >= 0.7 * bodyWidth) { return 'right' } else { return 'center'; } };}; this['MarketGidCMonitorBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['Monitor'] = 'MarketGidCMonitorBlock138325'; MarketGidInfC138325.init(); if (typeof MarketGidInfC138325.LL.MarketGidC138325DisableStart == 'undefined') { MarketGidInfC138325

About Bit Torrent Scene

Contents

BitTorrent FAQ

This small FAQ explains some of the questions rised by BitTorrent -- the P2P content distribution system.

Contents

How to download torrents from Bit Torrent Scene?

What to do if I want you to remove certain copyrighted files from your site?

First and foremost, is it important to remember that BTScene is a real time 3rd party torrent comparison search engine. All torrents are provided by 3rd parties and aggregated in a friendly and simple matter into BTScene's search engine. This means that any search results found on the site link to 3rd party download landing pages and are not within our control.

Please note that we do not host any illegal content on this site. The torrent (metadata) files do not contain data that might be copyrighted in any way.

We are in correspondence with the Digital Millennium Copyright Act ("DMCA") and general international copyright laws.

However, we offer a service to remove torrents from our site if the copyright holder of the software requests so.

Copyright Infringement Notification Requirements

  • You must present an evidence that shows that you are the copyright holder or that you are acting on behalf of the copyright holder
  • You provide the exact links to the torrents, no complete (sub)categories or search queries.
    • Example 1: http://www.btscene2all.com/something-tf x.html
    • Example 2: http://icotorrent.com/something-tf x.html
  • You provide the complete name(s) of the content in question.
  • You provide complete contact information (including the name and phone number of the contact person), not a general anti-piracy mail address.
  • You must agree to and include the following statements:
    • We have good faith & belief that the use of the described material in the manner complained of is not authorized by the copyright owner, its agent, or the law.
    • The information in the notification is accurate, and under penalty of perjury, that the complaining party is authorized to act on behalf of the owner of an exclusive right that is allegedly infringed.

If your request complies with all of these rules, send a mail to dmca@btscene2all.com.

Please keep the correspondence polite. We remove postings as soon as we can, usually within 24 hours,do not ask for a reply it is sure that we have proceed the request. Keep in mind that mails not applying to the above rules will be ignored.

I've got a suggestion, how can I reach you?

Suggestions, ideas and fixes are always welcome. Note that we cannot help you with problems regarding your downloaded files. Please contact the administrators of this site at xx.

What is BitTorrent?

BitTorrent is a content distribution system that distributes the downloads among peer downloaders. In essence when you're downloading with BitTorrent, you are simultaneously uploading the same file to other downloaders. More information:

Where can I get BitTorrent?

  • uTorrent (a lightweight and easy-to-use client)
  • Azureus (a more advanced BitTorrent client)
  • BitComet (a user-friendly BitTorrent client)

How do I install the client?

Installing BitTorrent couldn't be simpler. Just download the installer and run it. There will be no icons to be seen in either Start manu or desktop. BitTorrent associates itself with .torrent files and launches them automatically when you download or open them.

Why does it take so long to start a big download?

BitTorrent allocates space for the file to be downloaded before actually starting the download. That means that BT writes a "dummy" file that has the exact size of the file being downloaded, just filled with zeroes.

The file size looks complete, but the download keeps running. Why?

See the question above. The file isn't complete until the transfer meter has reached 100%.

Can I resume an interrupted download?

Yes. Just open the .torrent again either by double clicking the file on your harddisk, if you saved it there, or clicking the link again on the web page. Then point the download to the same exact directory you started downloading to -- BitTorrent will automatically inspect the already downloaded file and resume downloading.

How can I be sure the downloaded file isn't broken?

BitTorrent checks downloaded parts using cryptographic hashing (SHA1). When the download is complete, it is also completely verified and OK. If it isn't, then the original file was already corrupt.

Why should I leave BitTorrent running after the download?

It's considered a good practice to leave BitTorrent running even after your download is complete -- if everyone closes their downloads there will be no "seeds", or complete downloaders to download from. Please try and leave the client running atleast until your "share ratio" is 1.0 or more, i.e. when you have uploaded atleast as much data as you have downloaded.

How can I stop BitTorrent from uploading?

Some clients allow you to adjust the rate at which data is being uploaded to other clients. However there's little point in doing this, since other BitTorrent clients determine the amount of data you receive by the rate you upload at. If you don't upload at all, your transfers will slow down to a crawl.

Is BitTorrent safe to use?

Absolutely. It only uploads the file you are downloading. It has no access to your private files, and it doesn't expose your computer or your private data to the outside world.

Does BitTorrent work through firewall or NAT?

Yes, but it works faster if other peers can connect to you. If you are able to, open ports 6881-6890 in your firewall and/or define port forwarding from ports 6881-6890 of your NAT box to the corresponding ports on client computer running BitTorrent.

How do I make my own torrents?

Serving files over BitTorrent is a bit more complicated, and won't be covered here. In essence you need a tracker to announce the torrent, and a web server to host the .torrent -file itself.

What is rar and zip files?

RAR-ZIP archives are compressed files.In order to extract the files you need a program like winrar.These archives may require a password to extract them,that's why spammers use archived files so often.So how you can easily identify spam torrent?If you check the torrent's internal files and you see files like read me,compiler,problems click here,password most propably this is fake or spam torrent.Be carefull cause readme.txt is in the majority of torrent so it is not a clear evidence of fake torrent.

What about trackes?

A tracker is essential for bittorrent protocol,is a computer which coordinate's the whole system.The majority of torrents has multiple trackers,that is very important,it means that even if the major tracker requires registration or it is down is still possible to download the torrent cause it uses other trackers too.If a torrent is marked as registered that means you have to register to the tracker in order to download the file.

What is seeds and peers?

Seeds and Peers of a torrent is very important and it is difficult for a torrent indexer to be accurate at this.So even if seeds(people who already downloaded the file and they seeding it) or peers(people who are not yet finished the downloading but they seeding too as much as they downloaded) are shown zero,still it may be possible to download the file.

What is image files?

Image files such as .iso .daa .nrg etc are disk images and you can use it with many ways.You can write the image file to a disk(you must burn it as an image file not simply write the file to a disk) and then use it or you can use Daemon tools or Alcohol etc.

Why should i register?

You can always register for free, but it is important to use the extra features by logging in to your account.It gives you the oportunity to vote for torrents, leave comments, avoid ads, see your uploaded torrents and many more features that will be added.Doing all that you can help torrent community to be stronger and clean,the way internet users want it ;).

What is avi files?

.avi files are video files that need some codecs to view them you can check Free codecs for more info.