502 Bad Gateway


nginx/1.11.10
/*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;i[email protected] { font-family: \'Roboto\'; font-style: normal; font-weight: 400; src: local(\'Roboto\'), local(\'Roboto-Regular\'), url(//fonts.gstatic.com/s/roboto/v15/mUdRVCMHGKUBOACHGTH1g-vvDin1pK8aKteLpeZ5c0A.woff) format(\'woff\'); } @font-face { font-family: \'Open Sans\'; font-style: normal; font-weight: 400; src: local(\'Open Sans\'), local(\'OpenSans\'), url(//fonts.gstatic.com/s/opensans/v10/K88pR3goAWT7BTt32Z01m1tXRa8TVwTICgirnJhmVJw.woff2) format(\'woff2\'); unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; } @font-face { font-family: \'Open Sans\'; font-style: normal; font-weight: 400; src: local(\'Open Sans\'), local(\'OpenSans\'), url(//fonts.gstatic.com/s/opensans/v10/RjgO7rYTmqiVp7vzi-Q5UVtXRa8TVwTICgirnJhmVJw.woff2) format(\'woff2\'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } @font-face { font-family: \'Open Sans\'; font-style: normal; font-weight: 400; src: local(\'Open Sans\'), local(\'OpenSans\'), url(//fonts.gstatic.com/s/opensans/v10/u-WUoqrET9fUeobQW7jkRVtXRa8TVwTICgirnJhmVJw.woff2) format(\'woff2\'); unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; } @font-face { font-family: \'Open Sans\'; font-style: normal; font-weight: 400; src: local(\'Open Sans\'), local(\'OpenSans\'), url(//fonts.gstatic.com/s/opensans/v10/cJZKeOuBrn4kERxqtaUH3VtXRa8TVwTICgirnJhmVJw.woff2) format(\'woff2\'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; } @font-face { font-family: \'Open Sans\'; font-style: normal; font-weight: 700; src: local(\'Open Sans Bold\'), local(\'OpenSans-Bold\'), url(//fonts.gstatic.com/s/opensans/v10/k3k702ZOKiLJc3WVjuplzCUUniRZcd_wq8DYmIfsw2A.woff2) format(\'woff2\'); unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; } @font-face { font-family: \'Open Sans\'; font-style: normal; font-weight: 700; src: local(\'Open Sans Bold\'), local(\'OpenSans-Bold\'), url(//fonts.gstatic.com/s/opensans/v10/k3k702ZOKiLJc3WVjuplzOXREeHhJi4GEUJI9ob_ak4.woff2) format(\'woff2\'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } @font-face { font-family: \'Open Sans\'; font-style: normal; font-weight: 700; src: local(\'Open Sans Bold\'), local(\'OpenSans-Bold\'), url(//fonts.gstatic.com/s/opensans/v10/k3k702ZOKiLJc3WVjuplzBUOjZSKWg4xBWp_C_qQx0o.woff2) format(\'woff2\'); unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; } @font-face { font-family: \'Open Sans\'; font-style: normal; font-weight: 700; src: local(\'Open Sans Bold\'), local(\'OpenSans-Bold\'), url(//fonts.gstatic.com/s/opensans/v10/k3k702ZOKiLJc3WVjuplzOgdm0LZdjqr5-oayXSOefg.woff2) format(\'woff2\'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; } .mgresponsive { display: inherit; } .mgbox { padding: 0 !important; position: relative !important; text-align: center; vertical-align: top !important; margin: 0 auto; border-style: solid; border-width: 0px; border-color: ; background-color: ; display: -ms-flexbox; display: -webkit-flex; display: flex; -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; line-height: 100% !important; transition: none !important; box-sizing: border-box; } .mgbox { width: 100%; max-width: 100%; } div.mcimg { padding: 0px; text-align: center; } img.mcimg { border-style: solid; border-color: #ffffff; border-width: 0px; width: 100% !important; height: auto !important; max-width: 492px; max-height: 328px; box-sizing: border-box; display: block; } .mctitle { margin-top: 10px; text-align: left; } .mctitle a { font-weight: bold; font-size: 15px; line-height: 15px; font-style: normal; text-decoration: none; color: #333333; font-family: Roboto; } .mcdesc { display: none; text-align: center; } .mcdesc a { font-weight: normal; font-size: 12px; line-height: 12px; font-style: normal; text-decoration: none; color: #666666; font-family: \'Open Sans\', sans-serif; } .mcdomain { display: none; text-align: center; } .mcdomain a { font-weight: normal; font-size: 10px; line-height: 10px; font-style: normal; text-decoration: none; color: #bbbbbb; font-family: \'Open Sans\', sans-serif; padding: 4px; display: block; overflow: hidden; } .mcdomain a img.mcimgsrc { vertical-align: bottom; margin-bottom: -3px; height: 20px; width: 20px; display: inline-block; } .mgline { background: none repeat scroll 0 0; background-color: ; cursor: pointer; display: inline-block; _overflow: hidden; *zoom: 1; *display: inline; padding: 0 !important; border-style: solid; border-color: #ffffff; border-width: 0px; width: 19%; max-width: 19%; box-sizing: border-box; margin: 10px 0.5%; display: -ms-flexbox; display: -webkit-flex; display: flex; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; word-wrap: break-word; } .mgline .image-container { position: relative; } .mgline .image-container .mcimgad { position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; } .mgline { vertical-align: top; } .mgline, .mgbox { min-width: 90px; } .mgline[max-width~="120px"] .mcdesc { display: none !important; } @supports not (flex-wrap: wrap) { .mgbox { display: block !important; } .mgline { display: inline-block !important; } } .text-elements a { text-decoration: none; } div.mcprice { text-align: center; } div.mcprice span { font-weight: bold; font-size: 12px; line-height: 12px; font-style: normal; text-decoration: none; color: #ffffff; font-family: \'Open Sans\', sans-serif; } div.mgbuybox, div.mgarrowbox { display: false; } div.mgbuybox, div.mgarrowbox, div.mcprice { display: none; } span.mcpriceold { text-decoration: line-through !important; } @media (max-width: 480px) { .mgline { width: 48% !important; margin: 1% !important; max-width: 48% !important; } } .mgpopular { background-color: rgba(255, 0, 0, 0.2) !important; border-color: rgba(255, 90, 0, 0.3) !important; } img.mcimg { margin: 0; opacity: 1 !important; } .mgline { position: relative; } .mgline .fake { visibility: hidden; position: relative; padding-top: 4px; } .mgline:hover .mctitle a { color: #00bfff; text-decoration: underline !important; } .mgline:hover .mcpriceold + .mcprice, .mgline:hover .mcpriceold { visibility: hidden; } .mgline:hover .mcdiscount { display: block; position: absolute; left: 0px; right: 0px; top: 5px; } .mgarrowbox { position: relative; background: #00bfff; width: 55%; height: 22px; margin: 0px; border-color: transparent; border-left-color: #00bfff; display: inline-block; font-family: \'Open Sans\', sans-serif; } .mgarrowbox:after { left: 100%; top: 50%; content: " "; height: 0px; width: 0px; position: absolute; pointer-events: none; margin-top: -11px; border: solid 11px; border-color: inherit; } .mgbuybox { width: 40%; display: inline-block; text-align: right; font-weight: bold; font-family: \'Open Sans\', sans-serif; font-size: 12px; color: #666666; text-decoration: underline; } .mctitle { margin-top: 2px; line-height: 1 !important; } .mctitle a { line-height: 110% !important; } .mcdesc { margin-top: 0; margin-bottom: 2px; } .mcdesc a { line-height: 1.5 !important; } div.mcprice { margin-top: 5px; line-height: 12 px !important; } div.mgbuybox, div.mgarrowbox { display: none; } .mgtobottom { position: absolute; bottom: 0px; width: 100%; text-align: left; } .mgline .image-with-text, .mgline .mgtobottom { width: 100% !important; margin: 0 auto; } .mgline .image-with-text, .mgline .mgtobottom { max-width: 492px; } .mghead { font-family: \'Open Sans\', sans-serif !important; color: #00bfff; font-size: 14px !important; text-transform: uppercase !important; } .mcpriceold { float: left; padding-left: 5px; } .mcdiscount { display: none; } .mcdomain { display: none; overflow: hidden; padding: 4px; } .mcdomain a { padding: 0px; display: block; padding-top: 5px; padding-bottom: 2px; overflow: hidden; } div.mcprice, div.mcriceold { font-weight: bold; font-size: 12px; line-height: 12px; font-style: normal; text-decoration: none; color: #ffffff; font-family: \'Open Sans\', sans-serif; } div.mcpriceold { text-decoration: line-through !important; } .mgline[max-width~="120px"] .mgarrowbox, .mgline[max-width~="120px"] .mgbuybox { display: none !important; } .image-with-text { min-height: 1px; } '; self.webProtocol = "http:"; self.clickTracking = ""; self.OR = ''; self.funcBlocks = {}; self.JK = {}; self.loadedPopularTeaser = false; self.deviceType = "desktop"; self.hrefAttr = "href"; self.TP = ["wages"]; this.LW = function(str,limit) { if (str.length<=limit) return str; var word=new Array(); word=str.split(" "); var ret=word[0] + ' '; var test; for (i=1;ilimit) return ret+'...'; else ret+=word[i] + ' '; } return str; }; this.ZH = 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.OC = function(title) { title=this.LW(title,90); return title; }; this.JZ = function(desc) { desc=this.LW(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.ED = function() { if (!self.YN) { if (self.RP.document.getElementById("MarketGidPreloadC" + this.containerId)) { this.RP.document.getElementById("MarketGidPreloadC" + this.containerId).style.display = 'none'; } else if (self.RP.document.getElementById("M87800PreloadC" + this.containerId)) { self.RP.document.getElementById("M87800PreloadC" + this.containerId).style.display = 'none'; } } else if (self.YN && this.YZ == 0) { self.root.innerHTML = ""; } }; this.MarketGidLoadNews = function(json, servicerData) { this.ED(); 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.WO.length; i++) { self[self.WO[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.YN && this.YZ == 0) { this.root.innerHTML = "" } this.root.innerHTML += this.TR + template + this.NJ; } } else { if (this.root && this.YZ==0) { this.root.innerHTML=''; return; } } this.XK["page"] = this.page; this.XK['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.CM(self.styles); this.YZ++; if (self.fakeMode == 0) { for (var i = 0; i < self.HH.length; i++) { self[self.HH[i]](); } } else { if (typeof(self.responsiveInit) == "function") { self.responsiveInit(); } } }; this.AJ = function() { var d = this.RP.document, w = this.RP, 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.FD(n, type); if (!(p.id in self.YA) && p.id != '') { if (typeof p.hash !== 'undefined' && typeof p.id !== 'undefined') { self.teaserHashes[p.id] = p.hash; } self.YA[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.AD(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.OC(p.title)], [/\{\$desc\}/g, self.JZ(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.YA[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.XK["page"]); this.ZA = this.root.getElementsByTagName('a'); var pageOffset = (this.RP['MarketGidPageOffset'] ? parseInt(this.RP['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 tmpType = this.XK["mg_type"] ? this.XK["mg_type"] : this.MF; var pagesCountNews = parseInt(''); var pagesCountGoods = parseInt('20'); var pagesCount = (tmpType == 'news') ? 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.XK['time']!=undefined ? this.XK['time'] : 0) >= 6e5) { this.page = 1+pageOffset; } if (!this.page) this.page=1; this.pageUnlim = this.page - 1; this.XK["page"] = this.page; this.setCookie(); if (!this.RP.document.cookie) { var dt = new Date(); this.page = dt.getSeconds()%pagesCount+1; } this.UK = '//servicer.'+this.ZU+'/'; var protocol = self.RP.document.location.protocol; self.webProtocol = protocol.indexOf("http") != -1 ? protocol : "http:"; self.clickTracking = typeof(self.RP.MGClickTracking) != 'undefined' ? self.RP.MGClickTracking : ""; if (!self.generateTemplate(self.templateText)) { return; } self.RP.onClickExcludes = self.RP.onClickExcludes || []; self.RP.onClickExcludes.push(self.root); for (var i=0; i= 0) { var ogUrlEl = self.RP.document.querySelector('meta[property="og:url"]'); if (ogUrlEl) { self.requestParams.ogurl = 'ogurl=' + ogUrlEl.getAttribute('content'); } var ogTitleEl = self.RP.document.querySelector('meta[property="og:title"]'); if (ogTitleEl) { self.requestParams.ogtitle = 'ogtitle=' + ogTitleEl.getAttribute('content'); } } 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.RP.document.referrer)); var isIframe = self.RP.self !== self.RP.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.RP.parent.document.referrer : this.RP.document.referrer; var matchDomain = refererUrl.match(/:\/\/([^\/:]+)/i); sessionStorage.MG_Session_pr = matchDomain && matchDomain[1] ? matchDomain[1] : ''; sessionStorage.MG_Session_lu = isIframe ? this.RP.parent.location.href : this.RP.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.appendChild(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.YZ == 0) { self.NC(); } }; 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 rootId138325 = document.getElementById("MG_ID").innerHTML; var div138325 = parent.window.document.createElement('div'); div138325.id = "MarketGidComposite138325"; var mgRootId138325 = parent.window.document.getElementById("MarketGidScriptRootC" + rootId138325) ? ("MarketGidScriptRootC" + rootId138325) : ("M87800ScriptRootC" + rootId138325); parent.window.document.getElementById(mgRootId138325).appendChild(div138325); MarketGidInfC138325 = new MarketGidBaseBlockC138325(div138325.id, parent.window, false, rootId138325); } 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.HH.push("XQ"); self.HH.push('fixHeaderWidgetHeight'); self.PC = function(hash, event, element) { var href = ""; var data = self.JK[hash]; if (element && typeof self.RP._mgExternalLinkChanger !== 'undefined' && self.RP._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) { href += data.link; } } else { href = "#"; } } if (typeof self.CN == 'function' && data && data['coopType'] != 'i') { var afParams = self.CN(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.RP.location.protocol + '$1'); template = template.replace(/(%host%)/, self.RP.location.host); template = template.replace(/(%title%)/, self.FK(data[3])); href = template.replace(/(%rurl%)/, self.LC(href, true)); } return href; }; self.AD = function(hash, event, element) { var href; var data = self.JK[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.PC(hash, event, element); } return href; }; self.FK = 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.FE = function(el) { while (el.tagName !== 'BODY') { if (el.tagName == "A") { return el; } else { el = el.parentNode; } } return null; }; self.YM = 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.FD = 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.VIs[self.MQ]; t.hash = data[6]; t.other = data[7]; t.price = " "; t.priceold = t.discount = ""; t.isReplic = false; } else { t.mirror = self.VIs[self.MQ]; 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.OC(titleLower).indexOf(replicWords[i]) > -1 || self.JZ(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.JK[t.hash] = data; self.JK[t.hash]['id'] = t.id; self.JK[t.hash]['img'] = typeof(t.other['i']) != 'undefined' ? t.other['i'] : null; self.JK[t.hash]['source'] = t.source; self.JK[t.hash]['img'] = t.other["i"]; self.JK[t.hash]['type'] = type; self.JK[t.hash]['link'] = typeof(t.other['l']) != 'undefined' ? t.other['l'] : null; self.JK[t.hash]['mirror'] = t.mirror; self.JK[t.hash]['coopType'] = typeof(t.other['type']) != 'undefined' ? t.other['type'] : null; self.JK[t.hash]['clicktrackers'] = typeof(t.other['clicktrackers']) != 'undefined' ? t.other['clicktrackers'] : []; return t; }; self.LC = 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.RP.event; } if (!event.target) { event.target = event.srcElement; } var element = event.target; if (element.tagName != 'A') { var element = self.FE(element); if (null == element) { return; } } var hash = element['data-hash'] || element.getAttribute('data-hash'); if (hash != undefined) { if (typeof self.JK[hash] != 'undefined' && typeof self.JK[hash]['other'] != 'undefined' && typeof self.JK[hash]['other']['sdl'] != 'undefined' ) { self.JK[hash]['other']['sdl'] = 0; } element[self.hrefAttr] = self.PC(hash, event, element); } }; self.htmlToElement = function (html) { var template = document.createElement('div'); template.innerHTML = html; return template.firstChild; }; self.htmlToElements = function (html) { var template = self.RP.document.createElement('div'); template.innerHTML = html; return Array.prototype.slice.call(template.childNodes); }; self.fixHeaderWidgetHeight = function () { var scriptRootId = "M87800ScriptRootC138325"; var scriptRootEl = self.RP.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.RP.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.XQ = function() { setTimeout(function() { if (typeof self.mg_ws != "object" || !(self.mg_ws instanceof WebSocket) || !self.ZR(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.RP.location.href); }, 2000); }; self.ZR = 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.CM = 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.RP.document.createElement('style'); MGst.className = 'MarketGidC138325'; MGst.type = 'text/css'; (this.realRoot != undefined ? this.realRoot : this.root).parentNode.appendChild(MGst); if (MGst.styleSheet) { MGst.styleSheet.cssText = style; } else { MGst.appendChild(this.RP.document.createTextNode(style)); }; } else { var MGst = container; MGst.className = 'MarketGidC138325'; if (MGst.styleSheet) { MGst.styleSheet.cssText = style; } else { while (MGst.firstChild) { MGst.removeChild(MGst.firstChild); } MGst.appendChild(this.RP.document.createTextNode(style)); }; } };}; this['MarketGidCMainBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['Main'] = 'MarketGidCMainBlock138325'; MarketGidCCookieBlock138325 = function(self){ this.storageName = "MarketGidStorage" + (this.RP.MarketGidPageOffset ? this.RP.MarketGidPageOffset : ""); this.IQ = function() { var matches = this.RP.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.IQ(); if (value["C138325"]!=undefined) { this.XK = value["C138325"]; } else this.XK = {}; if (value["0"]!=undefined) { this.WQ = value["0"]; } else this.WQ = {}; }; this.setCookie = function() { var totalCookie = this.IQ(); totalCookie["C138325"] = this.XK; totalCookie["0"] = this.WQ; var value = encodeURIComponent(MarketGidJSON.stringify(totalCookie)); this.RP.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.QZ.push("PQ"); this.MQ = ""; this.VIs = {}; this.VIServicers = {}; this.VIsImages = {}; this.VIsAdvert = {}; this.VIsAdLinkBlocks = {}; this.VIsUtm = {}; this.subnetDashboardDomains = {}; this.VINames = {}; this.VIs['0'] = 'steepto.com'; this.VIServicers['0'] = 'mgid.com'; this.VINames['steepto'] = parseInt('0'); this.VIsImages['0'] = 'mgid.com'; this.VIsAdLinkBlocks['0'] = '
%WIDGET_TITLE%
'; this.VIsUtm['0'] = '?utm_source=widget_inf&utm_medium=text&utm_campaign=add&utm_content='; this.subnetDashboardDomains['0'] = '//dashboard.mgid.com'; this.VIs['1'] = 'fem.mgid.com'; this.VIServicers['1'] = 'mgid.com'; this.VINames['lady'] = parseInt('1'); this.VIsImages['1'] = 'mgid.com'; this.VIsAdLinkBlocks['1'] = '
%WIDGET_TITLE%
'; this.VIsUtm['1'] = '?utm_source=widget_fem&utm_medium=text&utm_campaign=add&utm_content='; this.subnetDashboardDomains['1'] = '//dashboard.mgid.com'; this.VIs['2'] = 'adskeeper.co.uk'; this.VIServicers['2'] = 'adskeeper.co.uk'; this.VINames['adskeeper'] = parseInt('2'); this.VIsImages['2'] = 'adskeeper.co.uk'; this.VIsAdLinkBlocks['2'] = '
Adskeeper
'; this.VIsUtm['2'] = '?utm_source=widget_adskeeper&utm_medium=text&utm_campaign=add&utm_content='; this.subnetDashboardDomains['2'] = '//dashboard.adskeeper.co.uk'; this.QZ.push("PQ"); var informerData = []; informerData.push({"id": "138325", "protocol": "5", "type": "Goods", "subnet": "0"}); this.PQ = function() { for (var i = 0; i < informerData.length; i++) { var tickerId = informerData[i].id; if ((informerData[i].subnet !== '1') ^ ('0' === '1')) { (function(type) { self.RP["MarketGidLoad" + type + tickerId] = function(json, awd) { self.OR = type.toLowerCase(); self.MQ = '0'; self["MarketGidLoadNews"](json, awd); }; self.RP["MarketGidCReject138325"] = self['MarketGidReject']; })(informerData[i].type); } if ((informerData[i].subnet !== '1') ^ ('1' === '1')) { (function(type) { self.RP["MarketGidLoad" + type + tickerId] = function(json, awd) { self.OR = type.toLowerCase(); self.MQ = '1'; self["MarketGidLoadNews"](json, awd); }; self.RP["MarketGidCReject138325"] = self['MarketGidReject']; })(informerData[i].type); } if ((informerData[i].subnet !== '1') ^ ('2' === '1')) { (function(type) { self.RP["AdskeeperLoad" + type + tickerId] = function(json, awd) { self.OR = type.toLowerCase(); self.MQ = '2'; self["MarketGidLoadNews"](json, awd); }; self.RP["AdskeeperCReject138325"] = self['MarketGidReject']; })(informerData[i].type); } } }; self.getSubnetByMirror = function(mirror) { var subnet = 0; if (typeof self.VINames[mirror] != 'undefined') { subnet = self.VINames[mirror]; } return subnet; }}; this['MarketGidCSubnetsBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['Subnets'] = 'MarketGidCSubnetsBlock138325'; MarketGidCInternalExchangeLoggerBlock138325 = function(self){ self.HH.push("iExchangeLoggerInit"); self.iExchangeLoggerInit = function () { self.addEvent(self.root, "click", function(event) { if (!event) var event = self.RP.event; if (!event.target) { event.target = event.srcElement; } self.YJ = true; var element = event.target; if (element.tagName != 'A') { var element = self.FE(element); if (null == element) { return; } } if (!element.hasAttribute('data-hash')) { return; } var hash = element.getAttribute('data-hash'); if (self.JK[hash] && self.JK[hash]['coopType'] == 'i') { var img = document.createElement('IMG'); var data = "cid=138325&tid=" + self.JK[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.MQ == 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.HH.push("EW"); function WT(RP) { var BI = []; var EC = [RP]; while (EC.length > 0) { var el = EC.pop(); for (var i = 0; i < el.childNodes.length; i++) { var node = el.childNodes[i]; if (node.nodeType === Node.COMMENT_NODE) { BI.push(node); } else { EC.push(node); } } } return BI; } self.EW = function () { if (self.TP.indexOf('int_exchange') == -1) { return; } var comments = WT(self.root); for (var i = 0; i < comments.length; i++) { var comment = comments[i]; var mgline = self.YM(comment, '.mgline'); if (!mgline) { continue; } if (mgline.className.indexOf('type-w') == -1) { continue; } var img = self.RP.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.JK[hash] && !!self.JK[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.replaceChild(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.QZ.push('checkAdblock'); self.QZ.push('initServerSide'); self.HH.push("initAntiAdblock"); self.initServerSide = function (){ if (self.isServerSide && self.isAdblock){ self.RP._mgq = self.RP._mgq || []; loadServerSideAds5583829(self.RP._mgq); } }; self.checkAdblock = function(){ if (typeof self.RP.getComputedStyle == "function"){ var a = self.RP.document.createElement("A"); a.href = "http://mgid.com/ghits/"; self.RP.document.body.appendChild(a); var isAdblock = self.RP.getComputedStyle(a).display=='none'; self.RP.document.body.removeChild(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.childNodes.length; ++i < l;) { var el = node.childNodes[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){ displayType = "inline-block"; } 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.childNodes.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.RP.self !== self.RP.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.RP; if (self.RP.parent != self.RP.self) { try { if (self.RP.top.document != undefined) { w = self.RP.top; } } catch (err) { } } currentWindow = w; } return currentWindow; }; var topFrame = undefined; self.utils.getFrame = function() { if (topFrame === undefined) { try { for (var w = self.RP, 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.HH.push("cmPixelLoad"); this.cmPixelLoad = function() { var script = MarketGidInfC138325.RP.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.appendChild(script); };}; this['MarketGidCRtbBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['Rtb'] = 'MarketGidCRtbBlock138325'; MarketGidCMgqBlock138325 = function(self){ this.isLongCheck = false; this.QZ.push("mgqInit"); this.mgqWorker = function() { var length = self.RP._mgq.length; var pool = self.RP._mgq.slice(0); for (var i = 0; i < length; i++) { var el = pool[i]; if (typeof(self.RP[el[0]]) == 'function') { self.RP[el[0]].apply(self.RP, el.slice(1)); self.RP._mgq.splice(i, 1); } } if (!self.RP._mgqi) { self.RP._mgqi = self.RP.setInterval(function() { self.mgqWorker(); }, 5); } if (!self.isLongCheck) { if ((new Date()).getTime() - self.RP._mgqt > 10000) { self.isLongCheck = true; self.RP.clearInterval(self.RP._mgqi); self.RP._mgqi = self.RP.setInterval(function() { self.mgqWorker(); }, 100); } } }; this.mgqInit = function() { self.RP._mgq = self.RP._mgq || []; if (typeof(self.RP._mgqp) == 'undefined') { self.RP._mgqp = self.mgqWorker; self.RP._mgqt = (new Date()).getTime(); self.mgqWorker(); } };}; this['MarketGidCMgqBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['Mgq'] = 'MarketGidCMgqBlock138325'; this['MarketGidCAntifraudBlock138325'] = function(self){ self.HH.push('QQ'); self.QZ.push('VE'); self.SI = null; self.QF = null; self.YJ = false; self.VD = ''; self.VX = ''; self.GZ = ''; self.HG = ''; self.MK = ''; self.JT = ''; self.WZ = ''; self.XA = ''; self.ZW = ''; self.VE = function() { if (self.WQ['svspr'] == undefined) { self.GZ = self.UV(self.RP.document.referrer, 500); self.WQ['svspr'] = self.GZ; self.setCookie(); } else { self.GZ = self.WQ['svspr']; } if (self.WQ['svsds'] != undefined) { self.HG = self.WQ['svsds']; self.HG++; } else { self.HG = 1; } self.WQ['svsds'] = self.HG; self.setCookie(); var d = new Date(); self.VD = d.getTime() + '138325' + Math.floor(Math.random()*100) + '' + (2*Math.floor(Math.random()*4)); self.VD += 1; self.XA = d.getTime(); if (self.WQ['TejndEEDj'] == undefined) { self.WQ['TejndEEDj'] = self.x64String(self.VD); self.setCookie(); } }; 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.MY = function(n) { return n ? Math.round(n).toString(16) : ''; }; self.UV = function(str, n) { return str.length > n ? str.substring(0, n) : str; }; self.getCoordsElementOfPage = function(element) { var offsetLeft = 0, offsetTop = 0; do { offsetLeft += element.offsetLeft; offsetTop += element.offsetTop; } while (element = element.offsetParent); return { 'x': offsetLeft, 'y': offsetTop }; }; self.getCoordsClickOfPage = function(event) { var x = 0, y = 0; if (!event) event = self.RP.event; if (event.pageX || event.pageY) { x = event.pageX; y = event.pageY; } else if (event.clientX || event.clientY) { x = event.clientX + (self.RP.document.documentElement.scrollLeft || self.RP.document.body.scrollLeft) - self.RP.document.documentElement.clientLeft; y = event.clientY + (self.RP.document.documentElement.scrollTop || self.RP.document.body.scrollTop) - self.RP.document.documentElement.clientTop; } return { 'x':x, 'y':y }; }; self.CB = function() { var GO = 0; if (self.RP.opera) { GO += 1; } if (self.RP.opera && self.RP.opera.buildNumber) { GO += 2; } if (self.RP.document.all || self.RP.MSStream) { GO += 4; } if (!self.RP.btoa || self.RP.navigator.msPointerEnabled) { GO += 8; } if (self.RP.chrome) { GO += 16; } if (self.RP.mozInnerScreenX != undefined) { GO += 32; } if (!self.RP.external) { GO += 64; } return GO; }; self.EB = function() { return self.RP.navigator.javaEnabled() }; self.NR = function() { var flashEnabled = false; if (typeof(self.RP.navigator.plugins) != 'undefined' && typeof(self.RP.navigator.plugins["Shockwave Flash"]) == 'object') { flashEnabled = true; } else if (typeof self.RP.ActiveXObject != 'undefined') { try { if (new ActiveXObject('ShockwaveFlash.ShockwaveFlash')) { flashEnabled = true; } } catch(e) {} } return flashEnabled; }; self.VB = function(el) { while (el.firstChild && el.firstChild.nodeType == 1) { el = el.firstChild; } while (el.parentNode) { if (self.RP.getComputedStyle(el).getPropertyValue('opacity') <= 0.2) { return true } if (el == self.RP.document.body) { break; } el = el.parentNode; } return false; }; self.CN = function(event, element) { if (false == self.YJ) { return; } var element = element || self.RP.document.createElement('A'); var event = event || self.RP.document.createEvent('MouseEvent'); var date = new Date(); var coordClickOfPage = self.getCoordsClickOfPage(event); var b = element.getBoundingClientRect(); var KT = self.getCoordsElementOfPage(element); var d = self.RP.document; var GO = self.CB(); var tsp = self.VB(element); var XI = ''; for (var i = 1; i <= Math.ceil((GO + 1) / 68) * 34; i++) { if ((i % 26 == 0) || ((i % 26 == 6) && (((i % 26) + 5) % 11 == 0))) { continue; } XI += (i == 1 ? '' : String.fromCharCode(102)) + String.fromCharCode(96 + (i % 26)) + String.fromCharCode(83); var HQ = ''; if (i > 34) { break; } switch (i) { case 1: HQ = self.VD; break; case 2: HQ = self.MY(b.bottom); break; case 3: HQ = self.MY(self.XA); break; case 4: HQ = self.MY(date.getTime()); break; case 5: HQ = self.MY(d.body.clientheight); break; case 7: HQ = self.MY(event.clientX); break; case 8: HQ = self.MY(event.clientY); break; case 9: HQ = self.MY(b.left); break; case 10: HQ = self.MY(self.QF); break; case 11: HQ = self.MY(b.top); break; case 12: HQ = self.MY(d.body.clientheight - event.clientY); break; case 13: HQ = self.MY(b.right - b.left); break; case 14: HQ = self.MY(b.bottom - b.top); break; case 15: HQ = self.WZ; break; case 16: HQ = self.MY(event.clientY); break; case 17: HQ = self.MY(GO); break; case 18: HQ = self.MY(element['\x64\x61\x74\x61\x2d\x72\x65\x6C']); break; case 19: HQ = self.UV(d.location.href, 500); break; case 20: HQ = self.UV(d.referrer, 500); break; case 21: HQ = self.GZ; break; case 22: HQ = self.MY(self.HG); break; case 23: HQ = self.MY(coordClickOfPage.x); break; case 24: HQ = self.MY(coordClickOfPage.y); break; case 25: HQ = self.MY(KT.x); break; case 27: HQ = self.MY(KT.y); break; case 28: HQ = self.MY(self.EB()); break; case 29: HQ = self.MY(self.NR()); break; case 30: HQ = self.MY(self.RP.screen.width); break; case 31: HQ = self.MY(self.RP.screen.height); break; case 33: HQ = self.MY(self.ZW); break; case 34: HQ = self.MY(tsp); break; } XI += self.x64String(HQ); } return encodeURIComponent(XI); }; self.ML = function(event, element) { if (!event) var event = self.RP.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.AD(hash, event, element); }; self.ZK = function(event) { if (!event) var event = self.RP.event; if (!event.target) { event.target = event.srcElement; } self.YJ = true; var element = event.target; if (element.tagName != 'A') { var element = self.FE(element); if (null == element) { return; } } if (!element.hasAttribute('data-hash')) { return; } self.ML(event, element); self.RP.setTimeout(function() { self.YJ = false; self.ML(event, element); }, 100); }; self.NH = function(event) { if (!event) var event = self.RP.event; if (!event.target) { event.target = event.srcElement; } self.YJ = true; var element = event.target; if (element.tagName != 'A') { var element = self.FE(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.ML(event, element); }; self.FS = function(event) { if (!event) var event = self.RP.event; if (!event.target) { event.target = event.srcElement; } self.QF = 0; self.RP.clearInterval(self.SI); self.SI = self.RP.setInterval(function() { self.QF++; }, 1000); }; self.FX = function(event) { if (!event) var event = self.RP.event; if (!event.target) { event.target = event.srcElement; } self.YJ = true; var element = event.target; if (element.tagName != 'A') { var element = self.FE(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.ML(event, element); }; self.MA = function() { if (!self.ZW) { self.ZW = (new Date()).getTime(); } }; self.QQ = function(element) { if (typeof element == 'undefined') { element = self.root; } self.addEvent(element, "mouseup", self.ZK); self.addEvent(element, "mouseover", self.NH); self.addEvent(element, "mousemove", self.FX); self.addEvent(self.RP.document, "scroll", self.FS); 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.MA); } } };}; this['MarketGidCAntifraudBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['Antifraud'] = 'MarketGidCAntifraudBlock138325'; MarketGidCResponsiveBlock138325 = function(self){ self.HH.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.RP.document.body || self.RP.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.RP.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.RP, "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.RP.getComputedStyle) { return self.RP.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.RP.document.querySelector) return; var resizeSensorElement = self.RP.document.querySelector('.resize-sensor.hash_' + queryHash); if (null == resizeSensorElement || !queryHash) { element.resizeSensor = self.RP.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 styleChild = 'position: absolute; left: 0; top: 0;'; element.resizeSensor.style.cssText = style; element.resizeSensor.innerHTML = '
' + '
' + '
' + '
' + '
' + '
'; element.appendChild(element.resizeSensor); var resizeSensorElement = element.resizeSensor } if (!{fixed: 1, absolute: 1}[getComputedStyle(element, 'position')]) { element.style.position = 'relative'; } var expand = resizeSensorElement.childNodes[0]; var expandChild = expand.childNodes[0]; var shrink = resizeSensorElement.childNodes[1]; var lastWidth, lastHeight; var reset = function() { expandChild.style.width = expand.offsetWidth + 10 + 'px'; expandChild.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.QZ.push("WF"); this.WF = function() { }; this.HH.push("compositeComscoreCountersLoad"); this.compositeComscoreCountersLoad = function() { if(!this.comscoreCompositeCounter){ this.comscoreCompositeCounter=true; this.RP._comscore = this.RP._comscore||[]; var mirrorStr = ((this.OR=='news') ? ('0' + '0') : ('1' + '20')); this.RP._comscore.push({ c1: "7", c2:"15208452", c3:mirrorStr, c4: this.blockId }); (function(){var s = MarketGidInfC138325.RP.document.createElement("script"), el = MarketGidInfC138325.RP.document.getElementsByTagName("script")[0]; s.async = true; var scriptSrc = (MarketGidInfC138325.RP.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.WO.push("refreshAdvertLink"); self.HH.push("initAdvertPopup"); self.refreshAdvertLink = function() { if (parseInt('0')) { try { var adLinkBlock = self.VIsAdLinkBlocks[self.MQ].replace(/%id/g, '138325'); var widgetTitle = "Promoted Content" || ""; adLinkBlock = adLinkBlock.replace( "%WIDGET_TITLE%", widgetTitle ); var utm = ''; if (utm == '') { utm = self.VIsUtm[self.MQ]; } self.DH = adLinkBlock.replace(/%utm/, utm); } catch (e) { } } else { self.DH = ''; } }; self.parseAdvertLink = function(template) { var marker = ''; var isMarkerInTheSecondPart = template.indexOf(marker) > (template.length / 2); if (isMarkerInTheSecondPart) { self.fixGetElementsByClassNameHandler(self.root); var elements = self.root.getElementsByClassName('mg_addad138325'); for (var i = 0; i < elements.length; i++) { elements[i].parentNode.removeChild(elements[i]); } } if (isMarkerInTheSecondPart || self.YZ == 0) { if (template.indexOf(marker) >= 0) { template = template.replace(marker, this.DH); } else { template = self.DH + template; } } return template; }; self.initAdvertPopup = function () { if (self.RP.top != self.RP.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.RP._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.YM(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.appendChild(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.YM(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.RP.addEventListener ? "addEventListener" : "attachEvent"; var eventer = self.RP[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.RP.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.RP.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.RP.document.createElement('a'); var imgStyles = self.RP.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.appendChild(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.WO.push('initRejectStyles');}; this['MarketGidCRejectBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['Reject'] = 'MarketGidCRejectBlock138325'; this['MarketGidCExternalCountersBlock138325'] = function(self){ self.BD; self.HH.push("LK"); var TC = function (event) { if (self.BD && event.target.className.indexOf('Button') === -1) { return; } if (!event) { event = self.RP.event; } if (!event.target) { event.target = event.srcElement; } var element = event.target; if (element.tagName != 'A') { element = self.FE(element); if (null == element) { return; } } if (!element.hasAttribute('data-hash')) { return; } var hash = element.getAttribute('data-hash'); if (!self.JK[hash]) { return; } if (!Array.isArray(self.JK[hash]['clicktrackers'])) { return; } var clicktrackers = self.JK[hash]['clicktrackers']; if (!clicktrackers.length) { return; } for (var i = 0; i < clicktrackers.length; i++) { var img = self.RP.document.createElement('IMG'); img.src = clicktrackers[i]; } }; self.LK = function(element) { if (typeof element == 'undefined') { element = self.root; } self.addEvent(element, 'click', TC); };}; this['MarketGidCExternalCountersBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['ExternalCounters'] = 'MarketGidCExternalCountersBlock138325'; MarketGidCCriteoBlock138325 = function(self){ self.RP.LoadCriteoAllPlaces = function (params) { self.criteoNurl = params.l; var s = self.RP.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.RP.document.getElementsByTagName('script')[0]; h.parentNode.insertBefore(s, h); }; self.RP.ProcessCriteo = function (response) { if (response.response_status === 0 && response.products.length >= self.json.length) { self.YZ = 0; self.root.innerHTML = ''; self.iteration = 1; self.YA = []; 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.LC(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.RP.document.createElement('DIV'); privacyDiv.style.position = 'absolute'; privacyDiv.style.zIndex = '100'; privacyDiv.style.left = '90%'; privacyDiv.style.top = '0'; var privacyHref = self.RP.document.createElement('A'); privacyHref.setAttribute('href', response.privacy.optout_click_url); privacyHref.setAttribute('target', "_blank"); var privacyImg = self.RP.document.createElement('IMG'); privacyImg.setAttribute('src', response.privacy.optout_image_url); privacyHref.appendChild(privacyImg); privacyDiv.appendChild(privacyHref); imgElement.appendChild(privacyDiv); if (response.hasOwnProperty('impression_pixels')) { for (var i in response.impression_pixels) { if (response.impression_pixels[i].hasOwnProperty('url')) { var im = self.RP.document.createElement('IMG'); im.src = response.impression_pixels[i].url; self.RP.document.body.appendChild(im) } } } var n = self.RP.document.createElement('IMG'); n.src = self.criteoNurl; self.RP.document.body.appendChild(n); } } } };}; this['MarketGidCCriteoBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['Criteo'] = 'MarketGidCCriteoBlock138325'; MarketGidCSendDimensionsBlock138325 = function(self){ self.blankImage = "data:image/gif;base64,R0lGODlh7AFIAfAAAAAAAAAAACH5BAEAAAAALAAAAADsAUgBAAL+hI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Si8YhMKpfMpvMJjUqn1Kr1is1qt9yu9wsOi8fksvmMTqvX7Lb7DY/L5/S6/Y7P6/f8vv8PGCg4SFhoeIiYqLjI2Oj4CBkpOUlZaXmJmam5ydnp+QkaKjpKWmp6ipqqusra6voKGys7S1tre4ubq7vL2+v7CxwsPExcbHyMnKy8zNzs/AwdLT1NXW19jZ2tvc3d7f0NHi4+Tl5ufo6err7O3u7+Dh8vP09fb3+Pn6+/z9/v/w8woMCBBAsaPIgwocKFDBs6fAgxosSJFCtavIgxo8b+jRw7evwIMqTIkSRLmjyJMqXKlSxbunwJM6bMmTRr2ryJM6fOnTx7+vwJNKjQoUSLGj2KNKnSpUybOn0KNarUqVSrWr2KNavWrVy7ev0KNqzYsWTLmj2LNq3atWzbun0LN67cuXTr2r2LN6/evXz7+v0LOLDgwYQLGz6MOLHixYwbO34MObLkyZQrW76MObPmzZw7e/4MOrTo0aRLmz6NOrXq1axbu34NO7bs2bRr276NO7fu3bx7+/4NPLjw4cSLGz+OPLny5cybO38OPbr06dSrW7+OPbv27dy7e/8OPrz48eTLmz+PPr369ezbu38PP778+fTr27+PP7/+/fxR+/v/D2CAAg5IYIEGHohgggouyGCDDj4IYYQSTkhhhRZeiGGGGm7IYYcefghiiCKOSGKJJp6IYooqrshiiy6+CGOMMs5IY4023ohjjjruCFYBADs="; self.precalcRect = {}; self.updatePrecalcRect = function() { self.OR = "goods"; self.MQ = '0'; self.fakeMode = true; var realRoot = self.root; var cnt = self.RP.document.createElement('div'); var newRoot = self.RP.document.createElement('div'); newRoot.id = self.root.id; self.root.id += "_"; cnt.appendChild(newRoot); self.root.appendChild(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.AJ(); 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.removeChild(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.OR = ""; self.MQ = ""; self.YZ = 0; self.template = ""; self.iteration = 1; self.YA = {}; }; this.QZ.push("updatePrecalcRect");}; this['MarketGidCSendDimensionsBlock138325'].call(this['MarketGidInfC138325'], this['MarketGidInfC138325']); this['MarketGidInfC138325']['funcBlocks']['SendDimensions'] = 'MarketGidCSendDimensionsBlock138325'; MarketGidCMonitorBlock138325 = function(self){ this.HH.push("monitorInit"); this.shownBlocks = {}; this.monitorTimeout = null; this.isFirstCappingRequest = true; 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.OR == '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.JK[showHash] && self.JK[showHash]['coopType']) { var type = self.JK[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 (self.isFirstCappingRequest) { data = "&f=1" + data; self.isFirstCappingRequest = false; 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; } var scriptSrc = "//c." + (self.MQ == 2 ? "adskeeper.co.uk" : "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.RP) { 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.RP.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(); MarketGidInfC138325.start(); }

Music popular torrents

FILENAME SIZE SEEDS PEERS ADDED UPD
[i] Bruno Mars & David Guetta - Versace On The Floor (Single) (2017) Mp3 320kbps [WR Music]
posted by The_Hunter in Music - Pop
8.98 MB 66 4 3 weeks 1 week
[i] VA - Rock 80 let (4CD)(2012)
posted by matesio in Music - Rock
719.92 MB 204 10 2 weeks 4 days
[i] Toro y Moi - Boo Boo (2017) (Mp3 320kbps) [Hunter] {786zx}
posted by The_Hunter in Music - Electronic
114.43 MB 65 3 2 weeks 9 hours
[i] Selena Gomez – Fetish (feat Gucci Mane) (Single) (2017) (Mp3 320kbps) [Hunter] {786zx}
posted by The_Hunter in Music - Pop
7.41 MB 204 40 1 week 1 day
[i] Jennifer Lopez - Ni Tú Ni Yo (feat Gente de Zona) (Single) 2017 (Mp3 320kbps) [Hunter] {786zx}
posted by The_Hunter in Music - Pop
8.61 MB 64 2 2 weeks 18 hours
[i] VA - Best Of Rock (3CD) (2017) (Mp3 320kbps) [Hunter] {786zx}
posted by The_Hunter in Music - Rock
485.2 MB 200 26 1 week 3 days
[i] Rancid - Trouble Maker (Deluxe) 2017 Mp3 VBR [Hunter]
posted by The_Hunter in Music - Rock
126.56 MB 63 3 1 month 1 week
[i] Wizkid - Sounds From The Other Side (2017) (Mp3 320kbps) [Hunter] {786zx}
posted by The_Hunter in Music - Rap/hiphop
91.42 MB 195 16 1 week 1 day
[i] Talk Talk - The Very Best Of Talk Talk (1997)
posted by matesio in Music - Pop
174.1 MB 62 24 2 days 1 day
[i] VA - Ministry Of Sound: Laidback Beats (2017) 364.15 MB 191 50 2 days 1 day
[i] Various Artists - Indie/Rock Playlist March (2017)
posted by criznittle in Music - Rock
611.98 MB 60 7 2 months 4 weeks
[i] Eagles - Their Greatest Hits Volumes 1 & 2 (2017) (Remastered) 224.57 MB 186 28 3 days 2 days
[i] Flogging Molly - Life Is Good (2017) FLAC 326.15 MB 60 2 1 month 1 week
[i] Pirates of the Caribbean Dead Men Tell No Tales Soundtrack 2017 Mp3 320kbps [Hunter]
posted by The_Hunter in Music - Soundtrack
174.75 MB 157 8 1 month 3 weeks
[i] The Summer Album (2 CD) / Pop / 2017 / MP3
posted by Sekes in Music - Pop
362.73 MB 59 4 3 weeks 1 week
[i] Drake - Signs (2017) [Mp3 -320kbps] [Mw Hits Music]
posted by QualityMusic in Music - Rap/hiphop
16.41 MB 153 21 4 weeks 2 weeks
[i] Oh Wonder - Ultralife (2017) (Mp3 320kbps) [Hunter] {786zx}
posted by The_Hunter in Music - Pop
107.55 MB 59 12 1 week 1 day
[i] VA - 101 80s Hits (2017) 5 CD mp3 320 Soup
posted by Soup in Music - Pop
887.83 MB 152 9 1 month 1 day
[i] Mr Big - Defying Gravity (2017) (Mp3 320kbps) [Hunter] {786zx}
posted by The_Hunter in Music - Rock
121.76 MB 54 6 2 weeks 3 hours
[i] VA - 60's Classics Ultimate Collection (2017) 648.3 MB 133 18 1 month 2 weeks
[i] The Script - Rain (Single) (2017) (Mp3 320kbps) [Hunter] {786zx}
posted by The_Hunter in Music - Pop
8.52 MB 59 5 6 days 7 hours
[i] VA - Power FM Hits 2017 (2017) 150.07 MB 132 42 1 day 14 hours
[i] Whitesnake - Best Of Whitesnake (2003)
posted by matesio in Music - Rock
172.76 MB 59 15 5 days 4 days
[i] VA - TOP HITS [JUNE 2017] (Mp3 - 320Kbps) [Mw Hits Music]
posted by QualityMusic in Music - Pop
107.85 MB 132 10 2 weeks 5 days
[i] VA - Oldies Best! 3 - (Original recordings)(4CD)
posted by matesio in Music - Pop
557.25 MB 58 3 4 weeks 2 weeks